Skip to content

[P1] Finish ADR-0021 analytics migration (chart view / dashboard+Studio / report) #1890

Description

@os-zhuang

Part of the metadata liveness audit umbrella #1878 (P1 — finish ADR-0021).

Problem

ADR-0021 moved the analytics spec to dataset + values/dimensions, but renderers and Studio still read the removed legacy shape (object/categoryField/valueField/aggregate, xAxisField/yAxisFields/aggregation). The result: a spec-compliant chart/dashboard/report renders nothing, and Studio emits widgets the spec rejects. (This is the same debt that invalidated the showcase dashboard/report seeds.)

Checklist

  • Chart view variantListView.tsx:1413 / ObjectView.tsx:754 read legacy xAxisField/yAxisFields/aggregation; migrate to dataset/dimensions/values.
  • Dashboard renderer + Studio WidgetConfigPanel — still author/read legacy object/categoryField/valueField/aggregate while dashboard.zod.ts:153 declares dataset+values required; migrate both read and authoring paths.
  • Report chart — dead on the dataset path; migrate. ReportColumnSchema/ReportGroupingSchema/ReportChartSchema are obsolete type-only re-exports — remove or repoint.
  • Re-validate / regenerate the showcase dashboard + report seeds against the migrated shape.

Evidence

  • docs/audits/2026-06-dashboardschema-property-liveness.md, 2026-06-reportschema-property-liveness.md, 2026-06-viewschema-property-liveness.md, 2026-06-datasetschema-property-liveness.md
  • ListView.tsx:1413, ObjectView.tsx:754, dashboard.zod.ts:153
  • ADR-0021

Metadata

Metadata

Assignees

Labels

priority:p1High: required for production / M2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions