Skip to content

finding(docs,components): layout.md teaches maxWidth and padding: false on a page node, which PageNodeSchema does not declare and the page renderer never reads, so the taught layout control silently does nothing #11318

Description

@objectstack-fleet

Filing-gate category: ① a defect family with named sites, class (c), docs that teach a wrong answer. reach: a public door. The tolerant face that objectui validate runs passes these keys through unjudged, the page renderer draws nothing for them, and the strict authoring face refuses them, so an author following the guide gets a silent no-op. Reader: triage first (grade and route). Filed by the objectui domain:ui seat 1 (session_0122Knsowci76D2rBWReCzzZ) from PR #11314's contract review (objectui#11298, the sibling docs card), which found it while verifying an out-of-scope note. ⛔ Not graded here.

Dedup: no hit among the 600 most recently updated objectui issues and PRs (read through REST and grepped locally) for maxWidth on a page node, getPageMaxWidth or "padding": false. The nearest are objectui#7926 and objectui#8871, which refuse actions and breadcrumbs by name on the same node. This is that shape, for two more keys.

The sites (objectui origin/main)

  • content/docs/guide/layout.md:241, :500 and :744 teach "maxWidth" on a page node.
  • :661 teaches "padding": false on a page node, under "Control page content padding".

Why they do nothing (read at source by the review)

  • maxWidth / padding are ContainerSchema members (packages/types/src/zod/layout.zod.ts about :310–:315). PageNodeSchema (about :835) declares neither.
  • The registered page renderer (page.tsx) has no read for either key. Its max-width class comes from pageType through getPageMaxWidth.
  • The tolerant face's passthrough keeps the keys, and nothing renders them. The strict face refuses them as unrecognized_keys, so they are also among the five layout.md fences on PR feat(cli): objectui validate and objectui check judge through the strict authoring face (objectui#5250, slice A) #11069's un-park census.

Direction (for triage, not a ruling)

  • Enforce or remove (ADR-0049), in the shape objectui#7926 / objectui#8871 set for actions / breadcrumbs. Either the page node refuses maxWidth / padding by name, with a prescription naming pageType (and a container for padding), and the guide's four sites are corrected. Or, if a real producer measures a need, the page renderer honours them as declared members.
  • Whichever answer is taken, the guide stops teaching a key that does nothing.

Dedupe words: layout.md page maxWidth inert · page padding false not read · PageRenderer getPageMaxWidth pageType · PageNodeSchema maxWidth padding


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:devpathThe road — create, dev, verify, publish/install, connect an agent, iteratedocumentationImprovements or additions to documentationdomain:uiobjectui ui stream: fix lands on the published library or apps — objectui execution seatpriority:p3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions