This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
Commit 5b5a5c3
feat(types)!: mirror eight ObjectViewSchema keys (three by spec reference) and retire viewTabBar (objectui#7779) (#7922)
`ObjectViewSchema`'s TypeScript face declared ten keys its Zod mirror never
did (objectui#7279's `UnmirroredDeclared` reading), so a document authoring
any of them passed the validator unexamined through `BaseSchema`'s
passthrough. Maintainer ruling B (2026-09-06): liveness first, then
mirror-or-retire per key.
- objectql.zod.ts: `navigation` / `searchableFields` / `filterableFields` are
`SpecListViewSchema.shape.*` by reference (identity-pinned);
`allowCreateView` / `viewActions` are the sibling `ViewSwitcherSchema`
slots by reference (the renderer forwards both verbatim into the
`view-switcher` node); `defaultViewType` (the declaration's seven-value
union) / `defaultListView` / `showViewSwitcher` are local literals after a
reader census on `plugin-view/src/ObjectView.tsx`; `viewTabBar` is a
`retirementTombstone()` (zero reads — the tab-bar config is `ViewTabBar`'s
`config` prop from the host, never a node key)
- objectql.ts: `viewTabBar?: never` with the RETIRED docblock (the #7322 shape)
- `listViews` stays unmirrored on the ruling's own fallback clause, with the
measurement pinned against the spec: the declaration's `NamedListView`
(about 52 members, seven read) and the spec's strict `ObjectListViewSchema`
(requires `columns`, refuses `options`, tuple filters and `default`) are
incompatible, and the spec value refuses the named views the docs teach
- zod-mirror-parity: the entry shrinks to `listViews`; `ObjectViewSchema`
joins `SPEC_DERIVED_PAIRS` by a real code reference; header figures
14 / 96 -> 14 / 87, split 1 / 2 + 13 / 94 -> 2 / 3 + 12 / 84, with the
history sentences
- object-view-spec-parity: `TS_ONLY_BACKLOG` shrinks to `listViews` +
`onNavigate`; the audit figures move 11 / 13 -> 20 / 22 with the arithmetic
- new pin object-view-unmirrored-keys-7779: reads derived off disk with
controls, membership, spec/sibling identity, accept-and-survive plus
wrong-typed refusal at the key per mirrored key, the tombstone on both
faces, the `listViews` measurement, neighbour and passthrough controls,
the two doc tables
- docs: the plugin-view README and plugin-view.mdx import tables no longer
teach `viewTabBar` as a node key
- changeset: `@object-ui/types` minor, "Breaking for authored metadata"
Claude-Session: https://claude.ai/code/session_01BAZFhALsQsGqxui8sNqM8s
Co-authored-by: Claude <noreply@anthropic.com>1 parent 0adb329 commit 5b5a5c3
8 files changed
Lines changed: 898 additions & 70 deletions
File tree
- .changeset
- content/docs/plugins
- packages
- plugin-view
- types/src
- __tests__
- zod
| 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 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
576 | | - | |
| 576 | + | |
577 | 577 | | |
578 | 578 | | |
579 | | - | |
| 579 | + | |
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
642 | | - | |
| 642 | + | |
643 | 643 | | |
644 | 644 | | |
645 | | - | |
| 645 | + | |
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
242 | 254 | | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | 255 | | |
252 | 256 | | |
253 | 257 | | |
| |||
268 | 272 | | |
269 | 273 | | |
270 | 274 | | |
271 | | - | |
272 | | - | |
273 | | - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
274 | 278 | | |
275 | 279 | | |
276 | 280 | | |
| |||
304 | 308 | | |
305 | 309 | | |
306 | 310 | | |
307 | | - | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
308 | 317 | | |
309 | 318 | | |
310 | 319 | | |
| |||
388 | 397 | | |
389 | 398 | | |
390 | 399 | | |
391 | | - | |
| 400 | + | |
392 | 401 | | |
393 | 402 | | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
399 | 411 | | |
400 | 412 | | |
401 | 413 | | |
| |||
0 commit comments