From e89488b68d18fa5316ab138ff5fbe9d2544f5d6c Mon Sep 17 00:00:00 2001 From: wilkie Date: Thu, 28 May 2026 12:18:57 -0700 Subject: [PATCH 1/2] Fixes dev mode asset path. --- src/indexDev.tsx | 2 +- src/setAssetPathDev.ts | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 src/setAssetPathDev.ts diff --git a/src/indexDev.tsx b/src/indexDev.tsx index 2aa07138..d569cea5 100644 --- a/src/indexDev.tsx +++ b/src/indexDev.tsx @@ -1,4 +1,4 @@ -import './assetPath'; +import './setAssetPathDev'; import './setPublicPath'; import {initAll, instructionsDismissed} from './index'; import queryString from 'query-string'; diff --git a/src/setAssetPathDev.ts b/src/setAssetPathDev.ts new file mode 100644 index 00000000..eaa3f7dc --- /dev/null +++ b/src/setAssetPathDev.ts @@ -0,0 +1,20 @@ +// Dev-only: seed the asset-path global for the standalone dev host page. +// +// Production consumers (e.g. dashboard) call setAssetPath(...) themselves +// before loading the bundle, pointing it at wherever they serve the +// images + datasets. In dev the standalone index.html IS the consumer, +// so we inline the assignment here. +// +// Import this FIRST in indexDev.tsx so the global is set before either +// `setPublicPath` reads it for webpack's `__webpack_public_path__` OR +// the direct readers in `index.tsx` / `SelectDataset.tsx` build URLs +// from it. ESM guarantees depth-first evaluation in import order, so +// this module's body runs before any later import is evaluated. +// +// Value: './' — webpack emits images to `images/` (in-memory, served by +// webpack-dev-middleware) and `webpack-dev-server --static public` +// serves `public/datasets/*` at `/datasets/*` on disk. Both sit at the +// root, so the single-prefix model works. +import {setAssetPath} from './assetPath'; + +setAssetPath('./'); From b504279bd6cba29d3df689b8fbf31788583f9666 Mon Sep 17 00:00:00 2001 From: wilkie Date: Thu, 28 May 2026 12:20:34 -0700 Subject: [PATCH 2/2] Fixes chart labels. --- src/UIComponents/ColumnDetailsCategorical.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UIComponents/ColumnDetailsCategorical.tsx b/src/UIComponents/ColumnDetailsCategorical.tsx index 706869b4..da8938e3 100644 --- a/src/UIComponents/ColumnDetailsCategorical.tsx +++ b/src/UIComponents/ColumnDetailsCategorical.tsx @@ -37,7 +37,7 @@ const ColumnDetailsCategorical = ({ getLocalizedValue(option, datasetId), ); const barData = { - localizedLabels, + labels: localizedLabels, datasets: [ { label: id,