Repository navigation
docs(layout): correct retired BreakpointColumnMapSchema attribution and columns type row (objectui#10720) - #10795
Conversation
and the schema-reference columns row (objectui#10720) ResponsiveGrid's component docblock named the spec's retired BreakpointColumnMapSchema; it now names this package's own BreakpointColumnMap (the six keys xs..2xl), which the file already declares forty lines above. Comment only, no code line moved. content/docs/api/schema-reference.md's grid row for `columns` typed it as a string-keyed Record; retyped to number | Partial<Record<BreakpointName, number>>, naming the six keys, matching packages/types/src/layout.ts. Adds a patch changeset for @object-ui/layout since the docblock ships in the package's .d.ts.
|
changeset-claim-re-read
|
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
Contract reviewServed-tier: An in-seat review by the dispatching seat. The PR is text only: one docblock, one reference-table row and one changeset (3 files, +12 / −3). Inputs were the diff, the card and its triage ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
Fixes #10720
Clause-②: no — a docblock and one reference row are corrected; no declared surface moves
What changed
Two published-text-only sites, no runtime or code-behaviour change:
packages/layout/src/ResponsiveGrid.tsx'sResponsiveGridcomponent docblock named the spec's retiredBreakpointColumnMapSchemaas what the component consumes. The same file already declares its ownBreakpointColumnMapinterface earlier (the six keysxs…2xl), re-homed by objectui#7580 after objectstack#11027 retired the spec export. The docblock now names that local type. Comment only; the diff shows no code line moved.content/docs/api/schema-reference.md'sgridproperties table typedcolumnsasnumber | Record<string, number>(any string key legal). Onorigin/main,GridSchema.columns(declared inpackages/types/src/layout.ts) isnumber | Partial<Record<BreakpointName, number>>, from objectui#8505/fix(types): keyGridSchema.columnsby the breakpoint vocabulary, notstring#8519's narrowing.BreakpointName, declared inpackages/types/src/mobile.ts, is the six-member breakpoint union. The zod mirror (packages/types/src/zod/layout.zod.ts) is narrowed the same way by objectui#8516, as az.partialRecordover the six names. The row now names that type and spells the six keys.No release qualifier added. Both narrowings are pending release:
.changeset/8505-grid-columns-breakpoint-narrowing.mdand.changeset/8516-8556-mirror-partial-record-narrowing.mdare onmain, so the published 17.6.0 still takes an open string-keyed record. The corrected row teaches the narrower shape, and a map written from it is valid on 17.6.0 and onmainalike.content/docs/**carries no per-npm-version convention.Changeset
.changeset/10720-grid-columns-docs.md—@object-ui/layout: patch. The docblock ships in the package's.d.ts, so this is a released-surface text change. The docs row needs none (content/docs/**is not a published package).Serial constraints
Draft PR objectui#8941 also edits
content/docs/api/schema-reference.md, inside thedetail-viewJSON example's actioniconvalue (thelucide-reacticon-name bump). That is a different table from this PR'sgridproperties table, with no hunk overlap.Gates (all run at head
fc4b1f312d, from a freshorigin/mainfetch; no closure build needed, since none of these readdist/)pnpm check:doc-fences— exit 0: "every TypeScript block in 227 document(s) is fenced …"pnpm check:doc-types— exit 0: "Every documented component type is registered."pnpm docs:check-links(node scripts/check-doc-links.mjs) — exit 0: "Links are valid across 17 scan roots."pnpm check:control-bytes— exit 0: "OK (scanned 8987 tracked text file(s); skipped 85 binary)."pnpm check:new-line-citations— exit 0: "0 new citation(s), enforcement report-only"node scripts/check-changeset-presence.mjs— exit 0: "1 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s)"node scripts/check-changeset-no-major.mjs— exit 0: "No changeset declares amajorbump."git merge-tree --write-tree origin/main HEAD— one clean tree, no conflict markers, againstorigin/mainre-fetched right before the check.node scripts/pm/check-governed-merges.mjs --testover the 3 changed paths (objectstack checkout) — "NOT governed — ordinary queue landing applies to a PR with exactly this file list."Not run:
pnpm test/pnpm lint(repo-wide, CI's).Acceptance notes
packages/types/src/mobile.ts'sBreakpointNamedocblock still namesBreakpointColumnMapSchemain its history section. That is correct: it is in the past tense, as the spec name objectstack#11027 retired. Not a defect; left untouched.pr_body_replacement, which drops thepath:linecitations thechangeset-claim-re-readcomment flagged. The seat also corrected one false sentence: the original said the zod mirror is "unchanged, stillz.record", but it is narrowed by objectui#8516.Generated by Claude Code