Skip to content

feat(spec)!: trim ChartTypeSchema to distinctly-renderable families - #1692

Merged
os-zhuang merged 2 commits into
mainfrom
feat-trim-charttype-schema
Jun 10, 2026
Merged

feat(spec)!: trim ChartTypeSchema to distinctly-renderable families#1692
os-zhuang merged 2 commits into
mainfrom
feat-trim-charttype-schema

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

⚠️ BREAKING (spec major)

ChartTypeSchema drops 8 variant types that only rendered as their base chart — so the taxonomy no longer advertises a type that renders as something else (the last item from the Chart Gallery review: spec ↔ renderer ↔ showcase now in lockstep).

Removed (→ what they actually drew):grouped-bar / stacked-bar / bi-polar-bar (→ bar, no multi-series grouping/stacking), stacked-area (→ area), step-line / spline (→ line), pyramid (→ funnel), bubble (→ scatter, no size encoding).

Kept: bar / horizontal-bar / column, line / area, pie / donut / funnel, scatter, treemap / sankey, radar, table / pivot, and the single-value performance group metric / kpi / gauge / solid-gauge / bullet (honest values today; a real dial when a gauge renderer lands — gauge is used downstream by hotcrm's SLA widget, so it stays).

Why safe

0 downstream usages of the 8 removed types — the showcase gallery was already trimmed (#1690), and hotcrm/templates use none of them (verified). Only spec tests + the regenerated reference doc needed updating.

Changes

  • chart.zod.ts — enum trimmed; taxonomy NOTE documents both exclusion groups (unmodellable families + fallback-only variants).
  • chart.test.ts — removed types moved to the reject list (dedicated case).
  • showcase coverage.test.tsFALLBACK_ONLY simplified to the 4 metric-synonyms (the 8 variants are gone from the enum).
  • regenerated references/ui/chart.mdx.

Migration

A widget/series using a removed type switches to its base: stacked-barbar, splineline, pyramidfunnel, bubblescatter, etc. They can return via an opt-in renderer once a real renderer + data model backs them.

@objectstack/spec 6527/6527, turbo build 72/72, test 123/123.

🤖 Generated with Claude Code

os-zhuangand others added 2 commits June 10, 2026 20:25
Merge pull request #1626 from objectstack-ai/fix-flowrunner-terminal-failure-reset
objectui@ec530a92ba2cdb6dbb0a1f5ee3b800503296e2f1
Drops 8 variant types that only rendered as their base chart, so the taxonomy
no longer advertises a type that renders as something else: grouped-bar /
stacked-bar / bi-polar-bar (→bar), stacked-area (→area), step-line / spline
(→line), pyramid (→funnel), bubble (→scatter). 0 downstream usages (the
showcase gallery was already trimmed; hotcrm/templates use none of them).
Kept: the rendered families + the single-value performance group (metric / kpi /
gauge / solid-gauge / bullet) — honest values today, a dial when a gauge
renderer lands; `gauge` is used downstream (hotcrm SLA widget).
- chart.zod: enum trimmed + taxonomy NOTE documents both exclusion groups.
- chart.test: removed types moved to the reject list (+ a dedicated case).
- showcase coverage.test: FALLBACK_ONLY simplified to the 4 metric-synonyms now
that the 8 variants are gone from the enum.
spec 6527/6527, turbo build 72/72, test 123/123.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercelBot commented Jun 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
specBuildingBuildingPreview, CommentJun 10, 2026 3:29pm

Request Review

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@os-zhuang