Uh oh!
There was an error while loading. Please reload this page.
fix(chart): render ADR-0021 dataset-bound chart views (framework#1890) - #1757
Merged
Conversation
…k#1890) Chart views (list `type:'chart'` + object chart view) only read the removed legacy inline `xAxisField`/`yAxisFields`/`aggregation` shape, so a chart authored to the current spec (ADR-0021: dataset + dimensions + values) rendered nothing. - ObjectChart: when `schema.dataset` is set, fetch via the governed `dataSource.queryDataset` path (same as dashboard DatasetWidget) instead of the legacy single-object aggregate; server resolves dimension labels + formats. - object-chart schema (types): `objectName`/`xAxisField` now optional; added optional `dataset`/`dimensions`/`values`. - ListView + ObjectView (plugin-view & app-shell): chart case emits the dataset shape when `chart.dataset` is set; legacy aggregate kept as deprecated fallback. Verified in-browser: showcase task "Hours by Status (Chart)" view (binds showcase_task_metrics) now renders a bar chart (was blank before). Refs objectstack-ai/objectstack#1890 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
❌ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
Contributor
❌ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Chart views authored to the current spec rendered nothing. Post-ADR-0021 the spec exposes only
dataset/dimensions/values(the legacy inlinexAxisField/yAxisFields/aggregationshape was removed in@objectstack/spec9.0.0), but the chart renderers were never migrated — they still read the removed legacy keys. A spec-compliant chart view showed an empty canvas.Surfaced by the view-schema liveness audit (objectstack-ai/objectstack#1890).
Change
ObjectChart— when a chart binds to adataset, fetch via the governeddataSource.queryDatasetpath (the same path the dashboardDatasetWidgetand dataset-bound reports use, so numbers/labels/formats stay consistent). Legacy single-objectaggregatekept as a deprecated fallback.@object-ui/types) —objectName/xAxisFieldnow optional; added optionaldataset/dimensions/values.ListView(type:'chart') +ObjectView(plugin-view & app-shell) — chart case emits the dataset shape whenchart.datasetis set; legacy aggregate retained as a deprecated fallback so pre-ADR-0021 metadata keeps rendering.Verification
@object-ui/types,plugin-charts,plugin-list,plugin-view).showcase_task_metrics) now renders a bar chart with live data (was blank before the change).Refs objectstack-ai/objectstack#1890
🤖 Generated with Claude Code