Skip to content

feat(ui-dashboard): ChartConfigLike contract + first chart option panels (0.2.1)#302

Merged
frozenluo merged 4 commits into
mainfrom
dev/frozenluo/charts-options-to-ui-dashboard
Jun 18, 2026
Merged

feat(ui-dashboard): ChartConfigLike contract + first chart option panels (0.2.1)#302
frozenluo merged 4 commits into
mainfrom
dev/frozenluo/charts-options-to-ui-dashboard

Conversation

@frozenluo

Copy link
Copy Markdown
Contributor

What

Phase 3b foundation + first batch of chart option panels into @sentio/ui-dashboard.

Type contract — expand ChartConfigLike (was just yAxis) into a full structural mirror of the proto ChartConfig tree, plus the chart-config enums:

  • enums: Calculation / Direction / MarkerType / SortBy / ValueFormatter / ValueStyle / PieType / LineStyle
  • sub-configs: xAxis, lineConfig, valueConfig (+ mappingRules/colorTheme), pieConfig, barGauge, queryValueConfig, tableConfig (+ columnSort), labelConfig, scatterConfig, seriesConfig, dataConfig, timeRangeOverride (timeRange payload opaque), markers

Option panels (the ones needing only ui-core atoms + the contract):

  • LineControls, LabelControls, PieChartControls, BarGaugeControls

DisclosurePanel/Checkbox/Button/NewButtonGroup/HelpIcon from @sentio/ui-core; proto ChartConfig_**Like; strict-mode param types. Ladle stories for each.

Deferred to later 3b slices

  • value-formatting trio (ValueOptions/ValueControls/ValueStringMapping) — needs query-value-theme relocated
  • QueryValueControls — needs ColorSelect
  • data/sql-coupled panels: TableControls, ScatterControls, Yaxis/XaxisControls, DataControls, SeriesControls, TimeRangeOverride

Verification

pnpm build (css+js+dts) + tsc --noEmit clean; ladle serve lists/compiles all option stories. No proto/private imports. Bumps 0.2.0 → 0.2.1.

🤖 Generated with Claude Code

frozenluo and others added 4 commits June 18, 2026 15:00
… (3b)

Foundation for migrating the chart render/option components. Expands the
minimal ChartConfigLike (was just yAxis) into a full structural mirror of the
proto ChartConfig tree, plus the chart-config enums:

- enums: Calculation / Direction / MarkerType / SortBy / ValueFormatter /
  ValueStyle / PieType / LineStyle
- chart.ts: xAxis, lineConfig, valueConfig (+ mappingRules/colorTheme), pieConfig,
  barGauge, queryValueConfig, tableConfig (+ columnSort), labelConfig, scatterConfig,
  seriesConfig, dataConfig, timeRangeOverride (timeRange payload opaque), markers

All fields optional so a consumer's generated ChartConfig assigns structurally.
No proto/private imports. build + tsc clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
First batch of chart option panels into ui-dashboard (phase 3b) — the ones that
only need ui-core atoms + the ChartConfigLike contract, no data/sql coupling:

- LineControls, LabelControls, PieChartControls, BarGaugeControls

proto ChartConfig_* types -> *Like contracts; DisclosurePanel/Checkbox/Button/
NewButtonGroup/HelpIcon from @sentio/ui-core; strict-mode param types. Ladle
stories added. build + tsc clean.

Deferred to later 3b slices: the value-formatting trio (needs query-value-theme
relocation), QueryValueControls (ColorSelect), and the data/sql-coupled panels
(Table/Scatter/Yaxis/Xaxis/Data/Series/TimeRangeOverride).

Bumps 0.2.0 -> 0.2.1.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@frozenluo frozenluo merged commit f2d3de4 into main Jun 18, 2026
1 check passed
@frozenluo frozenluo deleted the dev/frozenluo/charts-options-to-ui-dashboard branch June 18, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant