This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
Commit 160c6c6
fix(plugin-dashboard): a dataset-less
Fixes #11525
Clause-②: no (narrowing)
The maintainer's ruling C on objectui#11525 (record `5964914121`)
retires one stored widget form. The form is a dataset-less single-value
widget whose `options.data` (or widget-level `data`) is `{ provider:
'object', … }`. The single-value family is `metric`, `gauge`,
`solid-gauge`, `kpi` and `bullet`, plus a typeless widget, which
resolves to `metric` since objectui#11514.
- **Both surfaces.** The metric arms of `DashboardRenderer` and
`DashboardGridLayout` now return the shared
`LEGACY_RETIRED_WIDGET_SCHEMA`. It is the same imported object the pivot
arms already return for that input (objectui#10528).
- **The producer is gone.** The flat `object-metric` node both arms used
to build is removed. That node carried an ObjectQL-dialect `filter` that
no node type declares.
- **What does not move.** The inline chart and table arms are untouched.
No zod or TS authoring face moves.
Implemented by the `domain:spec @ objectui` seat's dev, session
`session_01XvhGmGAP79ZB8swnkapxPC`, under the PM claim `5965174453`.
## Before and after, per surface
The before/after run went through the real `SchemaRenderer` and real
registrations. The adapter's `aggregate` answers 4242 and `queryDataset`
answers 510000. "Before" is base `9d7419b9`; "after" is this branch.
| surface | widget | before | after |
| --- | --- | --- | --- |
| `DashboardRenderer` | `metric`, provider `options.data` | "Pipeline
4,242", 1 `aggregate` call | the placeholder, 0 calls |
| `DashboardRenderer` | `kpi`, same data | heading "Pipeline", then
"Pipeline 4,242" | heading "Pipeline", then the placeholder, 0 calls |
| `DashboardRenderer` | no `type`, same data | "Pipeline 4,242", 1 call
| the placeholder, 0 calls |
| `DashboardRenderer` | `pivot`, same data (control) | heading "Deals",
then the placeholder | unchanged |
| `DashboardRenderer` | `metric` bound to a dataset (control) | "Revenue
510000", 1 `queryDataset` call | unchanged |
| `DashboardGridLayout` | the same five rows | the same readings as
above | the same readings as above |
The placeholder text is "This widget uses a retired data format. Edit it
to bind a dataset."
**Chrome, measured (the dispatch's H2).** The tile's chrome follows the
widget's family, not the placeholder.
- A dataset-less `metric` (and a typeless widget) is self-contained on
both surfaces, so its tile draws the placeholder without the widget's
heading. That is the same tile the retired top-level `object` metric
shape already drew, and a pin holds the two DOMs equal.
- `gauge`, `solid-gauge`, `kpi` and `bullet` take the Card chrome, so
their heading is drawn above the placeholder, as the pivot's is.
- I did not change the chrome. Doing so would also move the legacy-shape
metric's tile, which no ruling covers. This is listed under Acceptance
notes and in the report's open question.
## What stays, and why: the filter broadcast's `object-metric` member
`DashboardRenderer`'s `FilterableComponentType` /
`FILTERABLE_COMPONENT_TYPES` keeps `object-metric`. The member is not
dead after the producer goes, measured:
- An author's legacy `component` envelope holding an `object-metric`
node still reaches the merge.
- The filter bar scopes it today. A probe got `filter: { region: 'EMEA'
}` on that node, for both an untyped and a `custom` envelope.
- Dropping the member would silently stop that, which the ruling did not
ask for.
Its docblock now says so, and a pin holds it. `DashboardGridLayout` has
no filter bar, so it has no such plumbing.
## The pins
The pins are in
`packages/plugin-dashboard/src/__tests__/inlineObjectMetricRetired-11525.test.tsx`:
29 tests, both surfaces.
- **Subjects.** Each single-value type with provider `options.data` is
read off `METRIC_LIKE_TYPES`, not restated. Widget-level `data` and a
typeless widget are cases too. Each draws
`LEGACY_RETIRED_WIDGET_SCHEMA`, checked by identity on the recorded
node. The test also reads the placeholder text on screen, finds no
`object-metric` node, and sees no `aggregate`, `find` or `queryDataset`
call. One more case holds that the retired `metric` tile's DOM equals
the retired legacy-shape metric tile's.
- **Controls.** The provider pivot draws the same placeholder object,
and a dataset-bound metric draws "510000". A static metric draws its
`options.value` through `plugin-dashboard:metric`. A provider bar still
builds an `object-chart` node naming `deal`, and a provider table still
builds `object-data-table` and fetches. An envelope `object-metric`
receives `{ region: 'EMEA' }` from the filter bar and queries.
**Reverse verification.** The fix was committed first (`856f56f0`). The
two producer files were then checked out at `9d7419b9`, with a trap
restoring them from `HEAD`.
- **Before running.** On disk, the base `object-metric` producer lines
were 2 in `DashboardRenderer.tsx` and 1 in `DashboardGridLayout.tsx`.
The renderer's 2 are the producer and the kept union member. The
retired-arm marker read 0 and 0.
- **Result.** The run gave **16 failed, 13 passed (29)**. The failures
are every subject (8 per surface); the passes are every control. This is
the direction stated in the file header.
- **Restore.** The restored blob hashes equal `HEAD`'s, `git diff HEAD`
on both files is 0 bytes, and the rerun is 29 passed.
## Corpus re-judged (H3)
**The census.** I ran `git grep` over the whole tracked tree for a file
that pairs a `provider: 'object'` literal with a metric-family `type`.
It found no test, fixture, story or example that authors a dataset-less
inline provider metric through a dashboard surface or asserts its
number. The hits are prose, CHANGELOGs, this card's own files, and two
plugin-dashboard tests whose provider widget is a `bar`.
The full plugin-dashboard suite was green before this branch's pins were
added. Verdicts:
- `DashboardGridLayout.legacyRetired.test.tsx`: its header said the
nested provider config is live for every family. It gets a dated note.
Its provider control is a `bar`, so the control stands as written.
- `DashboardGridLayout.datasetPath.test.tsx`,
`widgetDataProviderRetired-7353.test.tsx`,
`dashboard-producer-node-types-11514.test.tsx` and the three
`DashboardChart.*` files: these are provider `bar`, `table` or `pivot`
widgets, all live or already retired. Left alone.
- `DashboardRenderer.legacyRetired.test.tsx`: it covers the top-level
`object` shape only. Left alone.
- Docs. `content/docs/guide/dashboard-filters.md` and
`content/docs/plugins/plugin-dashboard.mdx` each get one paragraph
naming the form that now draws the prompt. In
`packages/plugin-dashboard/README.md`, the filters example's comment
does the same, and the accent table's "inline `object-metric`" now reads
"an `object-metric` block".
- Comments falsified by this change: `legacyRetiredWidget.ts` (the
dated, append-only correction the ruling names),
`ObjectMetricWidget.tsx`'s `aggregate` docblock (it said both relays
compose this node), and the render-site and broadcast comments in the
two surfaces.
## Pending changesets
- **New entry.** `.changeset/11525-inline-metric-retired.md`
(`@object-ui/plugin-dashboard`: `minor`) states the render change: what
the tile showed before, what it shows now, and the fix, which is to bind
a dataset.
- **Dated note.** `.changeset/11514-dashboard-slot-entry-types.md` gets
one: its "Every widget that names a known family draws as before" no
longer holds for this form. Its frontmatter is unchanged.
- **Left alone, and why.** I read every pending entry that names the
inline provider, `object-metric`, `ObjectMetricWidget`,
`legacyRetiredWidget`, objectui#4612, objectui#10528, objectui#11479 or
the filter broadcast.
- `11348-dashboard-widget-reads` still holds: the type guard still
covers the same three `object-*` types.
- `10528-grid-object-table-fetch` and `7353-retire-widget-dataprovider`
cover the table and pivot only.
- The `object-metric` block entries (`8613`, `8970`, `9002`, `10221`,
`10356`, `10572`, `10993`, `11254`, `11444`, `11475`, `7352`, `7752`,
`11506`) describe the widget, which stays live as an authored block.
None says a dataset-less provider widget reaches it.
- `check:changeset-claims` named three entries for files this branch
edits: `11483-metric-card-needs-value`,
`8114-detail-tab-activity-timeline` and `8760-unfulfilled-chart-stubs`.
Their paragraphs concern `metric-card`, a detail tab and `line-chart`,
which this branch does not move.
## V1 census (H4)
This was a throwaway worktree detached at PR #11512's head `ff7f748e`. I
applied `git merge-tree` of that head and this branch, which had one
conflict, `zod-mirror-parity.test.ts`; I took V1's side because no
plugin-dashboard program reads that file. After a fresh install and a
closure build, I ran plugin-dashboard's two programs. Nothing was
committed or pushed from the probe, and the probe was removed.
- **As is, with this change:** 4 lines per program (8 in all), only the
four `SchemaRenderer` cast sites, two in each surface.
- **With the probe-only annotation that types both `getComponentSchema`
returns as the renderer prop:**
- **Base producers:** 12 lines per program. That is 5 `object-metric`
lines (3 in `DashboardRenderer`, 2 in `DashboardGridLayout`), 2
`plugin-dashboard:metric`, 1 static `pivot` and the 4 casts.
- **This branch:** 7 lines per program, with `object-metric` at **0**.
Left are 2 `plugin-dashboard:metric`, 1 static `pivot` and the 4 casts,
which belong to objectui#11466.
## Gates
Read at `29b4ab28` unless stated. objectui has no `dispatch-gates.mjs`;
the list is hand-derived from `package.json`.
- **Closure build.** `pnpm --filter '@object-ui/plugin-dashboard^...'
build` exited 0 under the verify lock.
- **`pnpm --filter @object-ui/plugin-dashboard run type-check`** exited
0. The script echoed `tsc --noEmit && tsc -p tsconfig.test.json`. The
test program covers the new pin file: its first run failed on that
file's case-table typing, which was then fixed.
- **`pnpm exec vitest run packages/plugin-dashboard/`** (from the
worktree root): 165 files and 1620 tests passed, 6 skipped. This ran at
`a1c7e645`; the only later change is the pin file's stub registration,
whose own rerun gave 29 passed.
- **Readers of the touched files, 29 test files:** 720 passed. They are
the doc readers, `sdui-parser`'s options census, the app-shell
`DashboardView` and preview suites, the console drill-down suites, the
schema-catalog gallery render and the widget DOM-leak sweep.
- **Light gates, all exit 0:**
- `check:new-line-citations`: 0 new.
- `check:control-bytes`, `check:doc-types` and
`check-changeset-no-major`.
- `check-changeset-presence`: 1 changeset for 6 published source files.
- `check:changeset-claims` and `check-changeset-overwrite`: reports
only, judged above.
- **Targeted eslint** over the six touched TS files: 0 errors. Each
edited source file has the same warning count as at base. The new test
carries 2 `any` warnings, the same two the objectui#7353 listener
carries. This is a targeted run, not the repo lint, which CI owns.
- **NOT MEASURED:** `check:doc-snippets` and `check:doc-examples`. They
exited 2, PREREQUISITE NOT MET, because they need a 34-package build.
They compile `ts`/`tsx` fences only; this branch edits no such fence and
moves no published type.
- **Not reached:** `check:component-surface-parity` and
`check:sdui-registration-pins`. No registration input moves.
## Acceptance notes
- **Chrome.** A retired dataset-less `metric` tile (and a typeless one)
draws no heading, as the retired legacy-shape metric tile already does.
Giving retired tiles Card chrome would move the legacy shape too. Not
done; the report carries it as an open question.
- **`DashboardGridLayout.tsx` line addresses.** The one cross-file line
address in the paragraph this branch edits was replaced by a symbol
citation. Eleven others stay, in the props docblock and the render-site
comment. Two of them also carry content that is stale at base: the
sibling's `as any` read of `dataset`, and a second fork in the sibling's
self-contained branch. Their repair is a content correction outside this
card. Carrier: none.
- **`packages/sdui-parser/src/dashboard-widget-options.ts`.** Its scope
note lists `object-metric` among the legacy inline spread targets, which
no longer holds for the metric family. It is a comment in a package
outside this card's surface. Carrier: none.
- **`packages/plugin-dashboard/src/index.tsx`.** `ObjectMetricBlock`'s
docblock names "the dashboard grid path" as a props-only host; no
dashboard path builds the node now. Comment only. Carrier: none.
- **`packages/data-objectstack/src/index.ts`.** A comment there cites
`isObjectProvider` as how a metric's `groupBy` arrives. It is a dated
measurement (2026-09-08) and is left as written.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01XvhGmGAP79ZB8swnkapxPC)_
---------
Co-authored-by: Claude <noreply@anthropic.com>provider: 'object' metric widget draws the retired-format placeholder on both surfaces (objectui#11525) (#11538)1 parent 6837bfa commit 160c6c6
11 files changed
Lines changed: 364 additions & 48 deletions
File tree
- .changeset
- content/docs
- guide
- plugins
- packages/plugin-dashboard
- src
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
77 | 82 | | |
78 | 83 | | |
79 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
328 | 332 | | |
329 | 333 | | |
330 | 334 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
446 | | - | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
447 | 450 | | |
448 | 451 | | |
449 | 452 | | |
| |||
511 | 514 | | |
512 | 515 | | |
513 | 516 | | |
514 | | - | |
| 517 | + | |
515 | 518 | | |
516 | 519 | | |
517 | 520 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
375 | 383 | | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | 384 | | |
392 | 385 | | |
393 | 386 | | |
| |||
585 | 578 | | |
586 | 579 | | |
587 | 580 | | |
588 | | - | |
589 | 581 | | |
590 | 582 | | |
591 | 583 | | |
| |||
623 | 615 | | |
624 | 616 | | |
625 | 617 | | |
626 | | - | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
627 | 621 | | |
628 | 622 | | |
629 | | - | |
| 623 | + | |
630 | 624 | | |
631 | 625 | | |
632 | 626 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
| 168 | + | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
172 | 180 | | |
173 | | - | |
174 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
175 | 184 | | |
176 | 185 | | |
177 | 186 | | |
| |||
841 | 850 | | |
842 | 851 | | |
843 | 852 | | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
844 | 870 | | |
845 | 871 | | |
846 | 872 | | |
| |||
861 | 887 | | |
862 | 888 | | |
863 | 889 | | |
864 | | - | |
| 890 | + | |
865 | 891 | | |
866 | 892 | | |
867 | 893 | | |
868 | 894 | | |
869 | 895 | | |
870 | | - | |
871 | | - | |
872 | | - | |
873 | | - | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
881 | | - | |
882 | | - | |
883 | | - | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | 896 | | |
888 | 897 | | |
889 | 898 | | |
| |||
1028 | 1037 | | |
1029 | 1038 | | |
1030 | 1039 | | |
1031 | | - | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
1032 | 1044 | | |
1033 | 1045 | | |
1034 | 1046 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
32 | 40 | | |
33 | 41 | | |
34 | 42 | | |
| |||
0 commit comments