Skip to content

feat(spec): Report matrix columns (across) + drilldown flag (ADR-0021 D2) - #1732

Merged
os-zhuang merged 1 commit into
mainfrom
feat-spec-matrix-columns-drilldown
Jun 11, 2026
Merged

feat(spec): Report matrix columns (across) + drilldown flag (ADR-0021 D2)#1732
os-zhuang merged 1 commit into
mainfrom
feat-spec-matrix-columns-drilldown

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

Summary

Implements the remaining two fields of the ADR-0021 D2 report pivot grammar (see docs/adr/0021-analytics-dataset-semantic-layer.md §D2):

  • columns?: string[] — dimension names across. A matrix report pivots rows (down) × columns (across) with values in the cells, replacing the flattened rows-only stopgap. Also added to JoinedReportBlockSchema.
  • drilldown: boolean (default true) — declares click-through from an aggregated row/cell to the underlying records (dataset-backed; the host resolves the dataset's object and dimension→field mapping).

reportForm surfaces both in the Dataset binding section (columns gated on data.type == 'matrix'). The showcase matrix fixture (showcase_status_priority_matrix) moves to the true pivot form (rows: ['status'], columns: ['priority']).

Changeset: minor on @objectstack/spec (fixed group).

Downstream: objectui implements the real cross-tab renderer + drill on these fields (PR to follow).

Test plan

  • packages/spec: pnpm build + pnpm test — 6528 passed (new matrix/drilldown cases included)
  • examples/app-showcase: pnpm test — 20 passed

🤖 Generated with Claude Code

…0021 D2)
A matrix report now pivots `rows` (down) × `columns` (across dimension
names) with `values` in the cells — the pivot triple ADR-0021 D2
specified; the flattened rows-only stopgap retires. Joined blocks gain
the same `columns` field.
`drilldown` (boolean, default true) declares click-through from an
aggregated row/cell to the underlying records; the host resolves the
dataset's object and dimension→field mapping.
reportForm surfaces both in the Dataset binding section (columns gated
on type == 'matrix'); the showcase matrix fixture moves to the true
pivot form.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercelBot commented Jun 11, 2026

Copy link
Copy Markdown

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

ProjectDeploymentActionsUpdated (UTC)
specReadyReadyPreview, CommentJun 11, 2026 3:16pm

Request Review

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

Labels

documentationImprovements or additions to documentationprotocol:uisize/steststooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@os-zhuang