Skip to content

Commit ca9eafa

Browse files
os-zhuangclaude
andcommitted
docs(components): react-page scope comment says ObjectGrid, not the unregistered ObjectTable
The `kind:'react'` page header comment advertised two identifiers that do not exist, so an author following it hit a wall either way: - `<ObjectTable>` -> ReferenceError, surfaced as the red "React page error" panel. `buildComponentScope` PascalCases each public non-container tag from the curated PUBLIC_BLOCKS contract, which carries `object-grid` (registered in plugin-grid) and no `object-table` at all, so the real injected identifier has always been `ObjectGrid`. - `<Block type="object-table" />` -> "Unknown component type", since nothing registers that type anywhere in the product. `object-table` survives only in sdui-parser's synthetic compiler fixtures, which build their own inline manifests and never touch the real registry. Comment-only; no behavior change. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent dc7a798 commit ca9eafa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/components/src/renderers/layout/react-page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
*
2020
* Scope injected into the source:
2121
* - `React` — so authors can call hooks.
22-
* - the PUBLIC data blocks — `<ObjectTable>`, `<ObjectForm>`, charts, metrics…
22+
* - the PUBLIC data blocks — `<ObjectGrid>`, `<ObjectForm>`, charts, metrics…
2323
* each as a prop-driven wrapper that renders via SchemaRenderer. Layout is
2424
* left to plain HTML + Tailwind (React's strength); only the data blocks
2525
* that can't be expressed in HTML are injected.
26-
* - `Block` — escape hatch: `<Block type="object-table" .../>`.
26+
* - `Block` — escape hatch: `<Block type="object-grid" .../>`.
2727
* - `useAdapter` — live data hook: query/create/update objects.
2828
* - `data` / `variables` — page data + local variables, for convenience.
2929
*/

0 commit comments

Comments
 (0)