Commit 85ec26d
* refactor(spec)!: reconcile SDUI component props with their renderers — 4 retired, 9 declared (#5775)
#5068 wired the first parse `ComponentPropsMap` ever had, and the corpus it
landed on diverged in BOTH directions: keys objectui's renderers honour that the
schema never declared, and keys the schema declared — one of them REQUIRED —
that no renderer has ever read. Maintainer ruling (2026-08-06), direction A: the
#5611 rule again, the delivered and authorized shape is the contract.
The sharpest case is the record picker. It required `displayField`, which
appears in no renderer; `record-picker.tsx` resolves `props.labelField ?? 'name'`
and renders `row[labelField]`. An author who followed the schema and wrote
`displayField: 'title'` got a dropdown listing `name`, with a success receipt and
no diagnostic anywhere — ADR-0078 exactly.
Retired (tombstone + ADR-0087 D2 conversion + RETIRED_KEYS_BY_MAJOR[17]):
- `element:record_picker.displayField` → `labelField` (synonym rename)
- `page:card.body` → `children` (one composition key, not two)
- `element:record_picker.searchFields` (ADR-0049 — no search input exists)
- `element:record_picker.multiple` (ADR-0049 — the control is single-select)
Declared, because the renderers already honour them — no behaviour change, the
schema catching up: `element:record_picker` labelField/valueField/label/
emptyText; `record:path` stages[].terminal; `page:tabs` items[].value and
items[].count; `page:card` children; and `children` on page:section /
page:footer / page:sidebar, which were declared `EmptyProps` ("zero props")
while all three renderers render a child list.
Conversions are region-level and `retiredFromLoadPath`, matching
`page-header-subtitle-alias`: `PageComponentSchema` declares no children key, so
a component nested inside another's `properties` is covered by the tombstone
(tsc + the parse) rather than by the walk.
Not in scope, deliberately: `page:card.visible` is a component-level visibility
predicate written into `properties` and hoisted by the renderer — a page to
rewrite onto the ADR-0089 `visibleWhen`, not a key to declare.
Every A/B-table premise re-measured against objectui HEAD (7dfbeb7) before
acting; all still held. Reverse-verified: restoring `displayField` as live turns
`check:authorable-surface` gate (b2) red by name and fails the retirement pin.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AwTBGD3gTnPKWmJLYU9R7T
* test(spec): pin `PageContainerProps` as isomorphic for the ADR-0122 phase-2 flip (#5775)
`check:spec-parsed-alias` (the phase-1 gate from #6072) refuses a bare
`X = z.infer<typeof XSchema>` alias that is neither paired with an `XParsed`
nor pinned as isomorphic. `PageContainerProps` is a lone optional array with no
default, transform, catch or pipe anywhere in its tree, so `z.input` and
`z.infer` coincide and the phase-2 flip of the bare name changes nothing
observable — which is the pin route, not the `XParsed` route (a permanent
synonym is a name an author can only pick wrongly).
`component.zod.ts` had no bare alias until now, so this adds the file's first
module import to the registry. It takes the next free M-index rather than the
alphabetical slot: those indices are positional identifiers the 720 pin lines
reference by number.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AwTBGD3gTnPKWmJLYU9R7T
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent e8f435c commit 85ec26d
19 files changed
Lines changed: 910 additions & 57 deletions
File tree
- .changeset
- content/docs/references
- ui
- docs
- audits
- packages
- lint/src
- spec
- api-surface
- authorable-surface
- json-schema.manifest
- src
- conversions
- migrations
- ui
- skills/objectstack-ui
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
| 35 | + | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
| 369 | + | |
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
| 380 | + | |
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
145 | | - | |
146 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
147 | 149 | | |
148 | | - | |
149 | 150 | | |
150 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
151 | 156 | | |
152 | 157 | | |
153 | 158 | | |
| |||
208 | 213 | | |
209 | 214 | | |
210 | 215 | | |
211 | | - | |
| 216 | + | |
| 217 | + | |
212 | 218 | | |
213 | 219 | | |
214 | 220 | | |
215 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
216 | 233 | | |
217 | 234 | | |
218 | 235 | | |
| |||
239 | 256 | | |
240 | 257 | | |
241 | 258 | | |
242 | | - | |
| 259 | + | |
243 | 260 | | |
244 | 261 | | |
245 | 262 | | |
| |||
350 | 367 | | |
351 | 368 | | |
352 | 369 | | |
353 | | - | |
| 370 | + | |
354 | 371 | | |
355 | 372 | | |
356 | 373 | | |
| |||
Lines changed: 11 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
0 commit comments