Commit 00a5e74
docs(react-pages): state the html tier's registered-name rule and scope the PascalCase one (#13734)
The html tier's allowed tags are the registry's own type names: `compile()` in
`@objectstack/sdui-parser` builds its whitelist as `Object.keys(manifest.components)`
and `parse.ts` matches the tag against it by exact string, with no case folding. All
57 keys in `sdui.manifest.json` are lowercase — `list-view` is there, `ListView` is
not — so a PascalCase tag borrowed from the react tier is rejected at save time with
"is not an allowed component".
The page never said so. Its PascalCase sentence was unqualified while the page is
also the documentation home for the html tier, so an author reading top to bottom
had no way to learn the naming rule before hitting the error.
Two body edits, no restructuring:
- the html-tier section now names the registered spelling, including the namespaced
and layout forms, and names the error a borrowed PascalCase tag produces;
- the react-tier sentence is scoped to that tier and points at the html spelling.
Claude-Session: https://claude.ai/code/session_01Pk26oZ12t5N1hwGW1m1MgC
Co-authored-by: Claude <noreply@anthropic.com>1 parent cff17af commit 00a5e74
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
| |||
74 | 81 | | |
75 | 82 | | |
76 | 83 | | |
77 | | - | |
78 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
79 | 88 | | |
80 | 89 | | |
81 | 90 | | |
| |||
0 commit comments