Commit dfeba25
docs(spec): state what the object-* blocks declare on record_picker's filter docblock (#17657)
The `filter` docblock on `ElementRecordPickerPropsSchema` (anchor: `Filter rules
narrowing which records the picker offers`) claimed that "the four `object-*`
blocks declare `filter` as `z.unknown()`, no orthography at all". Measured on
`packages/spec/src/ui/component.zod.ts`: zero occurrences of a `filter` key
declared `z.unknown()`, against 61 occurrences of `z.unknown()` in the same file
on the same instrument. All eight Zod `filter` declarations in the file are
`z.array(ViewFilterRuleSchema).optional()`.
The `object-*` family in `ComponentPropsMap` has six entries, not four. Four of
them carry a `filter` door -- `object-grid`, `object-metric`, `object-kanban`,
`object-calendar` -- and each declares `z.array(ViewFilterRuleSchema)`. The
other two, `object-form` and `object-master-detail-form`, declare no `filter`
key at all. The corrected parenthetical states both numbers, names all six and
keeps the existing provenance citation unchanged.
Prose only: no declaration moves and no accept set changes.
Claude-Session: https://claude.ai/code/session_01MkQhmuuJAVDjmeWNixwDDH
Co-authored-by: Claude <noreply@anthropic.com>1 parent 132dd13 commit dfeba25
2 files changed
Lines changed: 37 additions & 2 deletions
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2200 | 2200 | | |
2201 | 2201 | | |
2202 | 2202 | | |
2203 | | - | |
2204 | | - | |
| 2203 | + | |
| 2204 | + | |
| 2205 | + | |
| 2206 | + | |
| 2207 | + | |
| 2208 | + | |
2205 | 2209 | | |
2206 | 2210 | | |
2207 | 2211 | | |
| |||
0 commit comments