docs(ui): react-pages html-tier names are verbatim, not kebab-case (#16164) - #16258
Merged
Merged
Conversation
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. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vbw3RPgdtqesx4azk9SbW8
This was referenced Sep 6, 2026
baozhoutao
marked this pull request as ready for review
September 6, 2026 08:42
baozhoutao
enabled auto-merge
September 6, 2026 08:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #16164
What the paragraph said, and what was wrong
content/docs/ui/react-pages.mdx's html-tier spelling paragraph told authors thatregistered block names are "lowercase and kebab-case". Four registered names carry
an underscore after their namespace prefix, so that gloss was wrong for them and
would lead an author who read the rule (rather than the worked examples) to derive
a kebab-case respelling that is not registered.
Registry reading (objectui, read-only, this PR touches nothing there)
objectuiorigin/mainat read time:15789d5655753c6cf4f0e01ea9fa63f184ff68c0.57 entries total, 28 carry a namespace prefix (
record:/page:/element:/action:), 4 are snake_case after the colon:record:line_itemsrecord:quick_actionsrecord:reference_railrecord:related_listThese numbers match the card's own reading (at a slightly earlier objectui sha,
b8e3f8379) exactly — 57 / 28 / 4, same four names, same four prefixes.sdui-parser exact-match confirmation (this repo)
packages/sdui-parser/src/index.ts:41—const allowedTags = new Set(Object.keys(manifest.components))packages/sdui-parser/src/parse.ts:95—if (this.opts.allowedTags && !this.opts.allowedTags.has(tag))No
toLowerCase/replace/normalisation touches the tag-matching path (the one.replace(...)inparse.tscollapses whitespace in text content, unrelated to tagnames). The comparison is an exact
Set.has, so<record:related-list>(kebab-case)is rejected at save time exactly like a PascalCase borrow — confirming the doc's
"verbatim" framing and the negative example now added.
The fix
Dropped the "lowercase and kebab-case" gloss, kept the verbatim rule standing on its
own, added a second snake_case example (
record:line_items) alongside the existingrecord:related_list, and added one sentence making the negative concrete: are-spelled name that "looks uniform" is not registered —
<record:related-list>isrejected at save time, only
<record:related_list>exists. No other content changed.Gates (pinned to
a955b752)Gate list derived via
node scripts/pm/dispatch-gates.mjs --commands(no pathargument — self-derived from the working-tree diff vs merge-base
0e16fc454oforigin/mainand HEAD), 38 commands matched by path or whole-tree declaration:33/38 green:
check-ci-filter-parity,check-closing-keyword-parity(+--self-test),check-comment-mask-corpus,check-doc-frontmatter(+--self-test),check-doc-route-spelling --advisory(+--self-test),check-docs-section-name(+
--self-test),check-section-landing-index(+--self-test),check:empty-state,check:liveness,check:strictness-ledger,check:variant-docs,check:yaml-examples,check:corpus-claim-drift,check:cross-package-test-inputs,check:doc-anchors,check:doc-authoring,check:docs-audit-scope,check:docs-redirects,check:docs-single-h1,check:driver-memory-census,check:nul-bytes,check:published-readme-links,check:react-page-adapter-contract,check:refd-timer-probe,check:role-word,check:skill-identifier-liveness,check:vendor-version-stamps,check:watch-hint-literal— all exit 0.5/38 NOT MEASURED (PREREQUISITE NOT MET, not findings):
check:doc-formula-expressionsandcheck:doc-security-posture(both print"Nothing was measured... Fix: pnpm exec turbo run build --filter=@objectstack/formula
--filter=@objectstack/lint", exit 3),
check:docs(spec docs check needsgen:schemafirst, exit 1 with an explicit "generate it first" message),check:skill-examples(needs@objectstack/spec buildfirst, exit 1, explicitfalse-green warning if skipped),
check:docs-transcript-drift(needs@objectstack/lintbuilt —packages/lint/dist/index.jsmissing — explicit"PREREQUISITE NOT MET", exit 3). All five name the exact build needed rather than
reporting a real check result. The container's shared heavy-verify lock
(
scripts/pm/os-verify-lock.sh) had a holder plus a queued waiter building thesame package set (
spec+lint+client-react) when this PR was opened; per thislane's resource discipline, the scope was collapsed here rather than waited on
indefinitely, and these five are reported honestly as NOT MEASURED.
skip-changesetlabel applied (docs-only change undercontent/docs/**).Open questions
None — no fork in this fix; the card's triage ruled
pm:queuewith no decision box.🤖 Generated with Claude Code
https://claude.ai/code/session_01Vbw3RPgdtqesx4azk9SbW8
Generated by Claude Code