From cda3d767aeb4a0bd6387d0c582755707042287c8 Mon Sep 17 00:00:00 2001 From: Maksim Chervonnyi Date: Tue, 3 Dec 2024 17:42:19 +0100 Subject: [PATCH] Enable "html" in `quilt_summarize.json` (#4252) Co-authored-by: Alexei Mochalov --- catalog/CHANGELOG.md | 1 + catalog/app/components/Preview/loaders/summarize.ts | 1 + docs/Catalog/VisualizationDashboards.md | 1 + shared/schemas/quilt_summarize.json | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/catalog/CHANGELOG.md b/catalog/CHANGELOG.md index 0465b0aad76..b5ba576e5cc 100644 --- a/catalog/CHANGELOG.md +++ b/catalog/CHANGELOG.md @@ -17,6 +17,7 @@ where verb is one of ## Changes +- [Added] Support "html" type in `quilt_summarize.json` ([#4252](https://github.com/quiltdata/quilt/pull/4252)) - [Fixed] Resolve caching issues where changes in `.quilt/{workflows,catalog}` were not applied ([#4245](https://github.com/quiltdata/quilt/pull/4245)) - [Added] A shortcut to enable adding files to a package from the current bucket ([#4245](https://github.com/quiltdata/quilt/pull/4245)) - [Changed] Qurator: propagate error messages from Bedrock ([#4192](https://github.com/quiltdata/quilt/pull/4192)) diff --git a/catalog/app/components/Preview/loaders/summarize.ts b/catalog/app/components/Preview/loaders/summarize.ts index 19932fcadc0..66839d20817 100644 --- a/catalog/app/components/Preview/loaders/summarize.ts +++ b/catalog/app/components/Preview/loaders/summarize.ts @@ -12,6 +12,7 @@ export type TypeShorthand = | typeof FileType.Vega | typeof FileType.Voila | typeof FileType.Text + | typeof FileType.Html export type FileShortcut = string diff --git a/docs/Catalog/VisualizationDashboards.md b/docs/Catalog/VisualizationDashboards.md index c5ed869b5a6..32f8c5b76a1 100644 --- a/docs/Catalog/VisualizationDashboards.md +++ b/docs/Catalog/VisualizationDashboards.md @@ -76,6 +76,7 @@ or an object with one or more of the following properties: - `["perspective"]` to render tabular data (csv, xlsx etc.) with Perspective - `["igv"]` to render JSON with Integrative Genomics Viewer - `["voila"]` to render a Jupyter notebook as an interactive Voila dashboard + - `["html"]` to render HTML in iframes. See also [Advanced HTML rendering](./Preview.md#advanced-html-rendering-and-quilt-package-file-server) - `["text"]` to render anything as text with syntax highlighting If you need to control the height of an element (useful for Voila dashboards), diff --git a/shared/schemas/quilt_summarize.json b/shared/schemas/quilt_summarize.json index a7ca919b34c..7bcaa3699e5 100644 --- a/shared/schemas/quilt_summarize.json +++ b/shared/schemas/quilt_summarize.json @@ -44,7 +44,7 @@ "typeShorthand": { "type": "string", - "enum": ["echarts", "igv", "json", "jupyter", "perspective", "text", "vega", "voila"] + "enum": ["echarts", "html", "igv", "json", "jupyter", "perspective", "text", "vega", "voila"] }, "typeExtended": {