Repository navigation
fix(plugin-dashboard,types): the drill drawer scopes a dataset-bound report by runtimeFilter; the pre-9.0 objectName drill report retires (objectui#11506) - #11516
Conversation
…report by `runtimeFilter`; the pre-9.0 `objectName` drill report retires
The drawer wrote the drill filter into a dataset-bound report as `filter`,
which `ReportSchema` refuses and `DatasetReportRenderer` does not apply
(objectui#5137), so the drilled report queried the whole dataset. It now
writes `runtimeFilter`, joined once with the report's own `runtimeFilter`.
The pre-9.0 object-bound drill report (`objectName` plus column objects)
had no producer and, through the real drawer, drew an empty presentation
with no query. It retires: `DrillDownConfig.report` and its zod mirror
take the spec's `ReportSchema` by reference (or a `{ name }` reference),
and the drawer recognises a report by its dataset binding, the reading
`isDatasetReport` uses, so tabular, summary and joined dataset reports
are drawn as reports instead of listing records.
Claude-Session: https://claude.ai/code/session_01YLg8XqWGJ785fwQ5v4pH37
Co-authored-by: Claude <noreply@anthropic.com>
… scoped by `runtimeFilter` The plugin-dashboard docs page gains a section on `drillDown.report`; a changeset declares the drawer fix and the `DrillDownConfig.report` narrowing; and the pending drill-node changeset gets a dated note, since its sentence that the drilled report's `filter` member "this release does not change" stops holding. Claude-Session: https://claude.ai/code/session_01YLg8XqWGJ785fwQ5v4pH37 Co-authored-by: Claude <noreply@anthropic.com>
…pair Its `report` member's inline arm is the spec's `ReportSchema` by reference since the drill report narrowed to the dataset-bound form. Claude-Session: https://claude.ai/code/session_01YLg8XqWGJ785fwQ5v4pH37 Co-authored-by: Claude <noreply@anthropic.com>
`check:doc-types` reads a `"type"` literal in a fence as a component key; the report's `type` defaults to `tabular` in the spec, so the example leaves it out rather than widening that gate's exemptions. Claude-Session: https://claude.ai/code/session_01YLg8XqWGJ785fwQ5v4pH37 Co-authored-by: Claude <noreply@anthropic.com>
|
changeset-claim-re-read
|
ℹ️ Console Performance Budget — not measuredThis run did not produce a console bundle to measure, so there is no pass/fail verdict for the performance budget. This is not a budget violation. Nothing was measured — the numbers a real violation would carry are simply absent.
See the workflow run for details. 📦 Bundle Size Report
Size Limits
|
… is the spec report The pending `.changeset/7352-drill-down-config-mirror.md` says an inline drill report keeps its extra keys through `.catchall(z.unknown())`; this release narrows that arm to the spec's `ReportSchema`, so a dated note is appended, verbatim as ruled on the card. Claude-Session: https://claude.ai/code/session_01YLg8XqWGJ785fwQ5v4pH37 Co-authored-by: Claude <noreply@anthropic.com>
ℹ️ Console Performance Budget — not measuredThis run did not produce a console bundle to measure, so there is no pass/fail verdict for the performance budget. This is not a budget violation. Nothing was measured — the numbers a real violation would carry are simply absent.
See the workflow run for details. 📦 Bundle Size Report
Size Limits
|
…ters `find` and `queryDataset` were `vi.fn` over parameterless functions, so `mock.calls[0]?.[0]` indexed an empty tuple and the console program (`tsc` in `pnpm --filter @object-ui/console build`, the `Bundle Analysis` job) refused it with TS2493. The mocks now declare `(resource, params)` and `(dataset, selection)`, the selection reader drops its cast, and the provider takes the fake through the console's `as never` spelling. Claude-Session: https://claude.ai/code/session_01YLg8XqWGJ785fwQ5v4pH37 Co-authored-by: Claude <noreply@anthropic.com>
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
Claude-Session: https://claude.ai/code/session_01YLg8XqWGJ785fwQ5v4pH37 Co-authored-by: Claude <noreply@anthropic.com>
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
Contract reviewServed-tier: Read for this record: card #11506 (body and every comment; triage ① Derived judgments
② Semver level
③ Boundary flags
Required for PASS, one patch round, text only. In Implemented-by: VERDICT: FAIL |
`objectui validate` runs `safeValidateSchema`, the tolerant face, which
still reads a retired `objectName` drill report as a `{ name }` reference
and reports it valid; the TypeScript declaration and the strict authoring
face (`StrictAnyComponentSchema`) are what refuse it, naming `objectName`.
The changeset, the docs section and the types pin's header said otherwise.
The changeset's required-keys sentence now states the spec's own refine:
`name` and `label`, then a `dataset` with non-empty `values`, or, for a
`joined` report, non-empty `blocks`.
Claude-Session: https://claude.ai/code/session_01YLg8XqWGJ785fwQ5v4pH37
Co-authored-by: Claude <noreply@anthropic.com>
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
Contract reviewServed-tier: Delta on record ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
Brings objectui#11506 (the drill drawer's runtimeFilter, PR #11516) onto the branch; no file overlaps this branch's diff. Claude-Session: https://claude.ai/code/session_01XvhGmGAP79ZB8swnkapxPC Co-authored-by: Claude <noreply@anthropic.com>
Fixes #11506
Clause-②: yes
What this changes
@object-ui/plugin-dashboard).DrillDownDrawer's report arm writes the drill's filter into the wrapped report asruntimeFilter, the keyReportSchemadeclares andDatasetReportRendererapplies. It is joined once with the report's ownruntimeFilterwith$and, the same single join the old write used. The old write wasfilter, which the spec refuses and the renderer does not apply (objectui#5137), so the drilled report queried the whole dataset. Nothing writesfilternow.@object-ui/types,@object-ui/plugin-dashboard), with no alias window.DrillDownConfig.reportis nowSpecReportInput | { name: string }. The inline arm is@objectstack/spec'sReportSchemaauthor shape, by reference: the same memberReportNodeSchemadeclares on thereportnode the drawer emits (objectui#11440). The zod mirror putsstripImportedDefaults(SpecReportSchema)ahead of the unchanged{ name }arm, and is typed by reference (DrillDownReportZodType).isReportDrillused to be "acolumnsarray or anobjectNamekey". Both limbs mark the pre-9.0 shape. It is nowisDatasetBoundReport, the same reading asisDatasetReportin plugin-report: a non-emptydataset, or ajoinedreport with a block that binds one. Contract note 2 says why this moves with the retirement.content/docs/plugins/plugin-dashboard.mdxgets a "Drilling into a report" section. Its JSON example validates on both faces (StrictAnyComponentSchemaandsafeValidateSchema, read off the built dist)..changeset/11506-drill-drawer-runtime-filter.md:plugin-dashboardminor, andtypesminor with the BREAKING line and FROM/TO. A dated note is appended to.changeset/11440-drill-drawer-report-node.md, because its sentence "which this release does not change (objectui#11506)" stops holding.Measured first: BASE
9d9ed5495, realDrillDownDrawer, realreportregistrationThe probe was a throwaway test in
apps/console, deleted and never committed.{ stage: 'Won' }DatasetReportRendererqueryDataset('deals_ds', { dimensions, measures, totals })filter... NO filter was applied"DatasetReportRendererobjectName+ column objects,type: 'tabular'report-presentation-bridge(lossyspecReportToPresentation,data: [])queryDatasetcalls and 0findcallsobjectName+ column objects, notypeLegacyReportRenderercolumns), filterfind('deal', { stage: 'Won' })queryDatasetqueryDataset{ name }reference, filterqueryDatasetProducer census for an
objectNamedrill report (triage item 3): zero.9d9ed5495:drillDownhas zero hits underexamples/,content/anddocs/, and none inapps/console/srcoutside tests. No non-testpackages/*code builds adrillDown.report.4e6dc233: zerodrillDownhits underexamples/. Its docs namedrillDownonly as the chart prop.drillDownhits inpackages/plugin-charts/srcandpackages/plugin-dashboard/src;object-metrichits in objectstack'sexamples/app-showcase.Contract notes
{ type: 'report', report: { ...report, runtimeFilter } }. It used to emit{ ..., filter }. With no drill filter and no ownruntimeFilter, the report passes through unchanged and no key is added.objectNamegone, the only limb left would beArray.isArray(columns). Butcolumnsis optional inReportSchema, and only a matrix carries it. The new declaration takes any spec report, so keeping the old limb would leave tabular, summary and joined dataset reports declared but listed as records, which was already measured above. The new predicate matches the renderer's own dispatch, so the drawer sends a value to thereportnode exactly when that node draws it with the renderer that readsruntimeFilter. Observable effects: those reports are now drawn as reports;target: 'navigate'no longer navigates for them; the "Open in list" button is not shown for them. The retired form, and a{ name }reference, now list the records scoped by the drill filter. The retired form used to draw an empty presentation.filteron an authored report. It is not merged, as the brief says. It is also not stripped: it passes through to the renderer, whose dev warning (objectui#5137) still names it. Stripping it would make the drawer silently drop a key the author wrote. Can such a document reach the drawer? Yes. TypeScript refuses it, and so does the strict face. But the tolerant face lets it through: the inline arm fails, and the reference arm accepts the value and strips the parsed copy to{ name }. The renderer receives the raw props, not that parsed copy. This differs from the brief's "don't carry it forward". The pin asserts both halves: the clicked filter alone reaches the query, and the warning fires once.ReportNodeZodTypeavoids). Every zod schema type that carriesdrillDownprints the alias:z.ZodOptional of DrillDownReportZodTypeat 3 sites indata-display.zod.d.ts, 2 inobjectql.zod.d.tsand 4 inindex.zod.d.ts. The parse OUTPUT types are not aliased, though. The inferred return type ofvalidateSchema/safeValidateSchemainindex.zod.d.tsgrows from 555,325 to 582,500 characters, with whitespace. TypeScript's serialization cap is an approximate length of 1e6. TheSpec Main Shape Gateagainst objectstackmainis CI's to read: NOT MEASURED locally.{ name }arm is unchanged, a plainz.object. A value that fails the inline arm and has a stringnamestill parses as a reference stripped to{ name }, as before. The retired form is refused atproperties.drillDown.reporton the strict face (unrecognized_keys:objectName), and by TypeScript (TS2353 onobjectName).{ name }arm's shape;ObjectDataTable's tombstone ofreport;ChartSchema.drillDown(thechartnode), which still references the shared mirror.Verification (final head
3b2ebb84b)pnpm exec vitest run --maxWorkers=2 packages/plugin-dashboard/src/__tests__/: 155 files, 1517 passed, 6 skipped.VERDICT command-exit 0.pnpm exec vitest run --maxWorkers=2 packages/plugin-report/ packages/types/, plus consoledrillDownReport.runtimeFilter-11506,drillDownReport.invalidationRefetch-10814,registry-inputs-spec-parityandunfulfilled-chart-stubs-8760, plus cliunfulfilled-chart-stubs-retired-8760, plus the 8scripts/__tests__suites that read a changed file by path: 380 files, 10129 passed, 7 skipped.VERDICT command-exit 0.pnpm --filter @object-ui/types type-checkandpnpm --filter @object-ui/plugin-dashboard type-check, after the closure build (turbo run build --filter=@object-ui/plugin-dashboard^..., 12/12): exit 0.tsc -p tsconfig.test.json --listFileslists both types pins, so their@ts-expect-errorlines are checked.plugin-dashboard/srcgave TS2353 onobjectNameagainst the rebuilt typesdist, and no error on the dataset report. The file was removed, andgit statusis clean.check:control-bytescheck:new-line-citations(0 new)check-changeset-presence(9 source files, 3 released packages, 1 changeset)changeset:checkcheck:changeset-claims(report-only)check:pending-changeset-literalscheck:spec-symbolscheck:doc-typescheck:doc-fencesmarkdown-test-inputs --auditcheck:test-path-rootscheck:phantom-deps.ts/.tsxfiles: 0 errors and 34 warnings. One warning is new, ano-explicit-anyin the new console pin, in the same spelling as its 10814 sibling. The narrowing is proven three ways:eslint.config.jslints every**/*.{ts,tsx}outsidedist/node_modules/public/.next/.sourceand three named files, and no package has its own config.--format jsonreturned 9 files, none of them ignored.parserOptions.projectorprojectService(type-aware linting is off), and no rule undereslint-rules/reads the filesystem. So the diff cannot move the verdict of an untouched file.check:doc-snippetsandcheck:doc-examples. Each needs the whole build closure (34 packages, per its--build-filter). This diff adds nots/tsxfence and no@example, and no docstsfence namesdrillDownorDrillDownConfig. CI'sdoc-snippet-typesworkflow runs both.Reverse verification. The prediction came first: the BASE drawer is red on the dataset pins, and the unfiltered control stays green.
DrillDownDrawer.tsxwas swapped for its9d9ed5495blob (on-disk blob15841ef4= base). The console pin file gave 5 failed and 1 passed. The first failure reads "the drilled report queried the whole dataset: expected undefined to deeply equal { stage: 'Won' }". The restore is proven: blobc627df8e= HEAD, andgit diff HEADis empty.ablation-replace.mjs, the write was put back tofilter: runtimeFilter: anchor 1 to 0, blobc627df8eto4ff028d1. That gave 4 failed and 2 passed. Red: filtered, joined, summary and stale-filter. Green: the unfiltered control, and the retired-form pin, which reads the predicate. The tool's restore check passed: blob = HEAD, andgit diff HEADis empty.931bb10ce, seat REWORK5962597328):Bundle Analysiswas red on3b2ebb84b. The console build'stsccompilesapps/console/src/__tests__, and the new console pin indexedmock.callson mocks typed with no parameters (TS2493 at 90/128/129). Reproduced red (pnpm --filter @object-ui/console build, exit 2). The mocks are now typed with their real parameters, with noas anyand no@ts-expect-error, and the build is green..changeset/7352-drill-down-config-mirror.mdcarries a dated note (pure append), because this PR falsifies its.catchallsentences.main059bf1b59shares no file with the branch, so no merge.6ec654f10, seat REWORK5963119236, on contract record5963102792, text only): the changeset and the docs now attribute each face. The TypeScript declaration andStrictAnyComponentSchemarefuse the retired form, namingobjectName.objectui validateruns the tolerant face, which accepts it as a{ name }reference stripped to that member. A throwaway probe confirmed both faces. The changeset's required-keys sentence now statesReportSchema's refine in the pinned spec 17.5.0:nameandlabel;datasetwith non-emptyvalues, orblocksfor ajoinedreport. The types pin's header prose was corrected too (comment lines only).main059bf1b59unchanged, so no merge.Acceptance notes
objectMetricDrillDownMembers-8071.test.tsx, whose row "anobjectName-bearing report goes to the report body" turns into the retirement row;zod-mirror-parity.test.ts, whereSPEC_DERIVED_PAIRSgainsDrillDownConfigSchema, since the mirror now depends on the spec; and the new types pindrill-down-report-dataset-bound-11506.test.ts. Two files are left unedited, outside the surface:.changeset/7352-drill-down-config-mirror.md(pending, same release) says the inline arm keeps "an inline report's extra keys (the declaration's index signature is.catchall(z.unknown()))". That no longer holds. It needs a dated note, and the report gives the text.apps/console/src/__tests__/registry-inputs-spec-parity.test.ts, the ledger prose for the 8071 file says "anobjectName-bearing (or array-columns) report goes to aspec-reportbody". That was already stale before this change, atspec-report.{ name }reference arm is declared but not resolved. Measured through the real drawer, it lists the records. The JSDoc now says so; the arm itself is unchanged. It goes in the report for the seat.pnpm install --config.engine-strict=false, because this container's Node v22.22.0 is refused bymain's jsdom 30 until objectui#11366 lands.object-metricdrill filter dialect: the metric registersfilteras an array and hands it to the drawer unconverted, so a metric drill into a dataset report now sends that array asruntimeFilter, whereReportSchemadeclares the object dialect. The pivot path lowers throughcomposeDrillFilter. The spec's dataset-selection door declaresruntimeFilteras the object-dialectFilterCondition, so it refuses the array: a visible refusal where the drill used to render unscoped (contract record5963102792: this PR does not ship a path it makes worse).drillDown.reporthas zero producers today. Per seat REWORK5962597328, no card until it is measured through a public door. The fix belongs at the producer, not in the drawer.{ name }reference arm ofDrillDownConfig.report, which validates but resolves nowhere, is filed as objectui#11517, sequenced after this PR.Generated by Claude Code