From 5719c8b55b4680f3aeaf76d8ba714bf51538bf88 Mon Sep 17 00:00:00 2001 From: Patrick Browne Date: Fri, 16 Feb 2024 17:02:30 +0100 Subject: [PATCH] fix: Missing published state --- app/docs/columns.docs.tsx | 1 + app/docs/fixtures.ts | 2 ++ app/docs/lines.docs.tsx | 12 ++---------- app/docs/scatterplot.docs.tsx | 1 + 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/app/docs/columns.docs.tsx b/app/docs/columns.docs.tsx index 40ac9b331e..2ac12d79af 100644 --- a/app/docs/columns.docs.tsx +++ b/app/docs/columns.docs.tsx @@ -41,6 +41,7 @@ ${( }, chartConfigs: [chartConfig], activeChartKey: "scatterplot", + published_state: "PUBLISHED", }} > diff --git a/app/docs/fixtures.ts b/app/docs/fixtures.ts index 6883d7240f..04643f2c5b 100644 --- a/app/docs/fixtures.ts +++ b/app/docs/fixtures.ts @@ -10,6 +10,7 @@ export const states: ConfiguratorState[] = [ state: "SELECTING_DATASET", version: CONFIGURATOR_STATE_VERSION, dataSource: DEFAULT_DATA_SOURCE, + published_state: "PUBLISHED", chartConfigs: undefined, layout: undefined, activeChartKey: undefined, @@ -18,6 +19,7 @@ export const states: ConfiguratorState[] = [ state: "CONFIGURING_CHART", version: CONFIGURATOR_STATE_VERSION, dataSource: DEFAULT_DATA_SOURCE, + published_state: "PUBLISHED", layout: { type: "tab", meta: { diff --git a/app/docs/lines.docs.tsx b/app/docs/lines.docs.tsx index b9a915137a..1c1b82c0d1 100644 --- a/app/docs/lines.docs.tsx +++ b/app/docs/lines.docs.tsx @@ -8,18 +8,9 @@ import { AxisTime, AxisTimeDomain } from "@/charts/shared/axis-width-time"; import { BrushTime } from "@/charts/shared/brush"; import { ChartContainer, ChartSvg } from "@/charts/shared/containers"; import { LegendColor } from "@/charts/shared/legend-color"; -import { - InteractiveFiltersConfig, - LineConfig, - SortingField, -} from "@/configurator"; import { ConfiguratorStateProvider } from "@/configurator/configurator-state"; -import { Dimension, Measure } from "@/domain/data"; import { InteractiveFiltersProvider } from "@/stores/interactive-filters"; -import { - CHART_CONFIG_VERSION, - CONFIGURATOR_STATE_VERSION, -} from "@/utils/chart-config/versioning"; +import { CONFIGURATOR_STATE_VERSION } from "@/utils/chart-config/versioning"; export const Docs = () => markdown` @@ -33,6 +24,7 @@ ${( version: CONFIGURATOR_STATE_VERSION, state: "PUBLISHED", dataSource: { type: "sparql", url: "" }, + published_state: "PUBLISHED", layout: { type: "tab", meta: { diff --git a/app/docs/scatterplot.docs.tsx b/app/docs/scatterplot.docs.tsx index a8d8c02d1a..2d724f2ac6 100644 --- a/app/docs/scatterplot.docs.tsx +++ b/app/docs/scatterplot.docs.tsx @@ -36,6 +36,7 @@ ${( version: CONFIGURATOR_STATE_VERSION, state: "PUBLISHED", dataSource: { type: "sparql", url: "" }, + published_state: "PUBLISHED", layout: { type: "tab", meta: {