…heading; schema-reference teaches the five PageType members
objectui#11436, the sweep for objectui#11423's family. A page with no
pageType is a record page, which draws neither title nor description.
- The five catalog demos of the Page reference, examples/hello-world, and
the page fences of runner.mdx (json and jsonc), schema-reference.md,
schema-playground.md, schema-rendering.md (json and two tsx),
core/schema-renderer.mdx (tsx) and toaster.mdx (plaintext) name app,
home or utility.
- page.mdx gains a paragraph on what pageType decides, and its Schema
block declares pageType.
- schema-reference.md's PageNodeSchema example names app instead of the
refused detail, and its table and a new Page types table teach record,
home, app, utility and list.
- A new render pin reads every docs fence in any language and every
example source, and replaces objectui#11423's layout-guide pin.
Claude-Session: https://claude.ai/code/session_01YLg8XqWGJ785fwQ5v4pH37
Co-authored-by: Claude <noreply@anthropic.com>
Fixes #11436
Clause-②: no
What changed
A
pagenode with nopageTypeis arecordpage.PageRendererleaves a record page'sh1to apage:headerblock and never draws itsdescription. So every producer below drew no heading. Each now names the page type that draws what it shows. None of them teaches a detail page, so none moved its heading into apage:headerblock.simple-page.json(Page reference, Basic Usage)apppage-with-header.json(With Title and Description)appfull-dashboard.json(Dashboard Page)homehomedashboard-style, with a wider layout.settings-layout.json(Settings Page)utilityutilityfor settings and forms.documentation-page.json(Content Page)appexamples/hello-world/schema.jsonapputilities/runner.mdx› 1. Plugin Developmentjsonapputilities/runner.mdx› Add Custom Schemasjsoncappapi/schema-reference.md› Schema Compositionjsonappguide/schema-playground.md› Composing Schemasjsonappguide/schema-rendering.md› Nested Schemasjsonappguide/schema-rendering.md› The SchemaRenderer ComponenttsxappPageNodeSchema.guide/schema-rendering.md› TypeScript Supporttsxappcore/schema-renderer.mdx› Simple Renderingtsxappcomponents/feedback/toaster.mdx› In App Layoutplaintextappapi/schema-reference.md› PageNodeSchema (Part B)jsonapp, was the refuseddetailappdraws both.components/layout/page.mdxgains a paragraph on whatpageTypedecides. Its Schema block now declarespageTypewith the five members, and it notes that a record page draws neithertitlenordescription.The seat's scan read
jsonfences and.jsonfiles and found ten of these producers. Five more sat outside that scan: thejsoncfence in runner.mdx, the threetsxfences and theplaintextfence in toaster.mdx. They are the same family, so this PR corrects them too, as the dispatch allowed.Part B
The PageNodeSchema example in
schema-reference.mdnamed"pageType": "detail". Its table listed list, detail, form, dashboard, report and custom. I measured the section's own example document on both faces (safeValidateSchemaandStrictAnyComponentSchema), once per value:invalid_valueatpageType.The card named three of those refusals; all five are refused. The example now names
app. ThetitleandpageTyperows say what draws, and adescriptionrow is new. A new "Page types" table lists record, home, app, utility and list, with each kind and what it draws. It points to the layout guide for widths rather than restating them.Measured first
These were one-time render probes through the real
SchemaRenderer, at BASE52c95a166. The probe file was not committed.data-page-type="record", noh1and no description.app,home,utilityorlistdrew theh1and the description. Withrecordit drew neither.The pin
New file:
packages/components/src/__tests__/page-node-headings-drawn-11436.test.tsx.The population is computed. The reader walks every fence of every
.md/.mdxpage undercontent/docs, in any language, and every non-test source underexamples. It parses each one with the TypeScript parser and evaluates its literals. Every object literal whosetypeispageis a page node. A node joins the population when it has atitle, adescription, or a titledpage:headerblock in its children or regions. A navigation entry that targets a page (type: "page"with apageName) has none of these, so it stays out. At this head the population is 24 heading nodes, 7 of which also have a description.What it asserts:
titleordescriptionnames a drawingpageType. That means every member of the spec'sPageTypeSchemaexceptrecord, read from@objectstack/spec/ui.pageTypeit names is a member of that schema.h1with its heading. Theh1sits inside thepage:headerblock when that block owns the heading, and outside any header otherwise. Each node with a description draws it.pageTyperemoved, renders asrecordwith noh1and no description.page:headerblock (the layout guide's Detail Page with Actions), with that heading moved back onto the page node, draws noh1.json, ajsonc, atsxand aplaintextfence.type: 'page'node withtitlealso declarespageType. Today that interface is the one inpage.mdx.It is a sibling that subsumes objectui#11423's pin, and this PR deletes that file. That pin read only the layout guide's
jsonfences, and only lines that open exactly with thejsonfence. Every node it read is in this population. Its four named passages are in the floor, and its two live controls are the general ones in (3). Keeping both would leave two readers, with different fence parsers, asserting one rule over overlapping populations. A change to the mechanism would then have to be re-derived twice. I did not extend it in place because its name and ledger row say "layout guide", and nothing of it would survive. The ledger row inscripts/markdown-test-inputs.mjsmoves to the new file, with readscontent/docs/**and amarkdown-treewalker.node scripts/markdown-test-inputs.mjs --auditsays all candidates are adjudicated.The catalog's reader tests (
layout-props-conversion.test.tsx,grid-columns-key.test.tsx) findgridandcontainernodes inside the demos. AddingpageTypeto the page root moves none of those nodes, so neither file changed. Both ran green below. Nothing readsexamples/hello-world/schema.jsonexcept itsApp.tsx, and the package has no tests: it is the zero-test member thatzero-test-member-exclusion-9106.test.tsnames.Reverse verification
Every leg ran from the committed head
727873f0d, and I wrote down each prediction before its run. Mutations went through objectstack'sablation-replace.mjs, whose anchors must hit, or through a script with a trap and absolute paths. Each restore was proven by blob == HEAD and an emptygit diff HEAD.pageType, plusdetail, which is not a drawing member."pageType": "home"line infull-dashboard.json(anchor 1 → 0). Predicted 4 failed. Got 4 failed / 56 passed: the record check, plus that node's render, description and live control."detail"back in schema-reference's PageNodeSchema example. Predicted 2 failed. Got 2 failed / 58 passed: the member check and that node's live control.detailstill draws, so its render passes. The member check is the static read that catches it.node scripts/markdown-test-inputs.mjs --auditexits 1 and names the pin (unadjudicated-test).Tests and gates (head
727873f0d)domproject.container-max-width-false.test.tsx, and all ofexamples/schema-catalog/(39 files): Test Files 49 passed (49), Tests 2691 passed (2691).scripts/markdown-test-inputs.mjs, including its ownmarkdown-test-inputs.test.ts: Test Files 21 passed (21), Tests 966 passed (966).turbo run build --filter='@object-ui/components^...' --concurrency=2: 7 successful.pnpm --filter @object-ui/components type-checkexits 0, andtsc -p tsconfig.test.json --listFilesOnlyincludes the pin.pnpm check:doc-snippets, after building its own--build-filterclosure (35 successful): 775 of 775 blocks judged, 0 failed. None of the edited pages is ungated.pnpm check:doc-examplesexits 0.python3 scripts/regenerate-catalog-index.py --checkcheck:doc-types,check:doc-fences,check:doc-example-idsandcheck:doc-example-readersnode scripts/check-doc-links.mjs: links valid across 17 scan rootsnode scripts/markdown-test-inputs.mjs --auditcheck:control-bytesandcheck:test-path-rootscheck:new-line-citations: 0 new citationscheck-changeset-presence(the empty-frontmatter changeset),check-changeset-no-major,check-changeset-fixedandcheck-changeset-overwritecheck:pending-changeset-literals,check:unreferenced-sources,check-type-check-coverageandcheck-lint-coveragecheck-governed-queue-guard.mjs --testover the 17 paths: an ordinary pull request.--no-inline-config --format jsonover the 2 changed lintable files: 2 files, 0 errors, 0 warnings. The narrowing holds:--print-configgives 119 rules for the pin and 0 forscripts/markdown-test-inputs.mjs.eslint.config.jssets noparserOptionsorprojectService, and no rule undereslint-rules/reads the filesystem (both greps exit 1, against a control grep that hits). So the verdicts on untouched files cannot move.NOT MEASURED, a declared narrowing:
packages/componentssuite. This diff adds one test file to that package, deletes one, and changes no source in it. CI runs the full suite.pnpm lint. CI owns that run.Acceptance notes
Found while measuring and left for the seat:
content/docs/**andexamples/**):objectui generate page NAME(generatePageinpackages/cli/src/commands/generate.ts) writes a page withtitleand nopageType, so the generated title never draws. That is released@object-ui/clisource, so it needs a changeset and the CLI's unit layer.packages/core/README.md(aPageNodeSchemaliteral withtitle) andpackages/runner/README.md(its Example Schemajsonfence).packages/runner/src/App.tsx's own fallback page has the shape too. That code path also sets an error, and the error branch renders instead, so the fallback page never draws.examples/hello-world/schema.jsonwrites its button's text ascontent.ButtonSchemadeclareslabel, and the renderer readslabelor children. Measured through the realSchemaRenderer, the button draws empty text, and alabelcontrol draws "Get Started".safeValidateSchemaaccepts the document.StrictAnyComponentSchemarefuses it withunrecognized_keysat the button. It is a different defect class from this card, so it is not fixed here.PageRendererdrawstitleanddescriptionfor apageTypeoutside the spec's enum (in the probe,detaildrew both). Validation already refuses such a value, so a renderer-side change would only be consumer tolerance. Carrier: none.Concurrency:
maingained objectui#11447 after BASE. It touches none of these files. The one docs page it edits,plugin-charts.mdx, has no page node, checked on the new tip.Session:
https://claude.ai/code/session_01YLg8XqWGJ785fwQ5v4pH37(dispatched os-dev run,domain:uiseat 1).Generated by Claude Code