Repository navigation
fix(ui): state the real page:header mobileMaxVisible default in designer text - #35951
Conversation
…ner text and comments Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgWdb2isyvQFrgHazQx
|
repo:objectstack#1 · os-sales · session_01L6bhgWdb2isyvQFrgHazQx Final green head for L1 · 2026-11-20T23:14Z · Area: b1-DB
|
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读
席位核对 — ACCEPT (L1-c) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Seat landing · 2026-11-20T23:17Z · Area b1-DB's PR for #35840 (a copy fix: the designer's |
Fixes #35840
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Text only in
ui/packages/components/src/renderers/layout/containers.tsx:mobileMaxVisible(was "A positive integer, defaulting to 1") now states the unset default: 2 in a record page's bottom action bar on a phone (host Edit counted), 1 on any other header;PageHeaderActionsPropscomments formaxVisible/mobileMaxVisible(were "falls back to 3" / "falls back to 1");Regenerated, not hand-edited, with
node scripts/gen-sdui-manifest-node.mjsandnode scripts/gen-sdui-reference.mjs:sdui.manifest.json,content/docs/ui/components/page.mdx, andscripts/sdui-manifest.record.json(the manifest generator re-records its own sha256 there; one line,sha256). One changeset.types/ui-action.tsandaction/auto-trigger.tsare untouched (they describeaction:bar, fallback still 3 / 1).Spec text matched (
packages/spec/src/ui/component.zod.tson main, from #35660 / #35821):maxVisible: "Renderer default when unset: 1 in a record page's one-row header bar, 3 on any other header."mobileMaxVisible: "Renderer default when unset: 2 in a record page's bottom action bar on a phone, 1 on any other header."Code agrees with the spec (read before writing):
containers.tsxPHONE_ACTION_BAR_BUTTONS = 2forface: 'bar'(Edit takes a slot there),?? 1for other mobile headers,defaultMaxVisible ?? 3on desktop with the record one-row header passing 1.Tests
No behavior change, so no test change.
pnpm check:sdui-referenceexit 0 (page.mdx matches the manifest, 106 components);node scripts/check-sdui-manifest.mjsexit 0;pnpm check:changeset-fixedexit 0;node scripts/check-nul-bytes.mjsexit 0.Acceptance notes
scripts/sdui-manifest.record.jsonis outside the stated file surface but is written by the same generator run (sha256 line only).Verification
Read
page.mdxrowmobileMaxVisible: it now reads "...when unset it is 2 in a record page's bottom action bar on a phone (counting the host's Edit) and 1 on any other header...".🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgWdb2isyvQFrgHazQx