Skip to content

Commit ef3afdb

Browse files
committed
docs(ui): stop teaching record:highlights.actions — nothing has ever rendered it
Found by the #3746-style corpus scan this batch owes: every `content/docs/**` and `skills/**` code block carrying a registered component type was parsed and its props judged against the now-closed `ComponentPropsMap`. One hit, in the "Complete Example" of the pages guide — an `os:check` block, so it is an example the docs gate compiles and an AI author copies. `RecordHighlightsProps` has never declared `actions`, and objectui's `record-highlights.tsx` reads `schema.fields` and nothing else. Under strip the key was dropped in silence, which is precisely why a doc could teach it for this long: the example parsed clean and rendered without the actions, and no layer disagreed. With the shape closed it is a rejection, so the doc had to be right before the batch could land. The actions move to `record:quick_actions`, which is the component that renders them (`actionNames`, per objectui's own designer config) and which the same page already lists two sections up. Scan after the fix: 392 mdx + 2299 markdown files, 8 registered-type props bags, 0 teaching a key these schemas reject. `check:skill-examples` — 209 prose examples type-check. Part of #4001 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012NLJ8PWLdwLSyi84LHzrAx
1 parent 7ad607f commit ef3afdb

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎content/docs/ui/pages.mdx‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,14 @@ const accountRecordPage = {
196196
id: 'header',
197197
properties: {
198198
fields: ['name', 'type', 'industry', 'owner'],
199-
actions: ['edit', 'delete', 'clone'],
199+
},
200+
},
201+
// Record actions are their own component — `record:highlights` renders
202+
// field chips and nothing else.
203+
{
204+
type: 'record:quick_actions',
205+
properties: {
206+
actionNames: ['edit', 'delete', 'clone'],
200207
},
201208
},
202209
],

0 commit comments

Comments
 (0)