Commit ba4b531
docs(ui): react-pages html-tier names are verbatim, not kebab-case (#16258)
The html-tier spelling paragraph in react-pages.mdx told authors that
registered block names are "lowercase and kebab-case", but four
registered names (record:line_items, record:quick_actions,
record:reference_rail, record:related_list) are snake_case after
their namespace prefix. The sdui-parser whitelist is an exact
Set.has comparison with no case folding or separator normalisation,
so a kebab-case respelling of one of those names (record:related-list)
is rejected at save time exactly like a PascalCase borrow.
Drop the "lowercase and kebab-case" gloss, let the verbatim rule
stand on its own, and add a second snake_case example
(record:line_items) plus a concrete negative example so the shape is
demonstrated rather than described.
Claude-Session: https://claude.ai/code/session_01Vbw3RPgdtqesx4azk9SbW8
Co-authored-by: Claude <noreply@anthropic.com>1 parent 6573af9 commit ba4b531
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
0 commit comments