Skip to content

fix(ui): state the real page:header mobileMaxVisible default in designer text - #35951

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-35840-mobile-max-visible-copy
Nov 20, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-35840-mobile-max-visible-copy

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #35840
Clause-②: no
Metadata-protocol: none

维护者速读

  • 在 Studio 设计器和组件文档里,页面头部「手机端最多显示的按钮数」的说明,现在写对了默认值(手机记录页底栏是 2,其他头部是 1,原来写成 1)。
  • 为了让设计器说明、文档与已定稿的规格说明一致,避免设计者按错误默认值配置。
  • 只改文字和注释,不改任何行为;出错也只是说明文字不准,可直接撤回。
  • 要你做什么:无。

What changes

Text only in ui/packages/components/src/renderers/layout/containers.tsx:

  • the designer input description of 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;
  • the PageHeaderActionsProps comments for maxVisible / mobileMaxVisible (were "falls back to 3" / "falls back to 1");
  • the inline/overflow comment ("default to 3 / 1").

Regenerated, not hand-edited, with node scripts/gen-sdui-manifest-node.mjs and node scripts/gen-sdui-reference.mjs: sdui.manifest.json, content/docs/ui/components/page.mdx, and scripts/sdui-manifest.record.json (the manifest generator re-records its own sha256 there; one line, sha256). One changeset. types/ui-action.ts and action/auto-trigger.ts are untouched (they describe action:bar, fallback still 3 / 1).

Spec text matched (packages/spec/src/ui/component.zod.ts on 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.tsx PHONE_ACTION_BAR_BUTTONS = 2 for face: 'bar' (Edit takes a slot there), ?? 1 for other mobile headers, defaultMaxVisible ?? 3 on desktop with the record one-row header passing 1.

Tests

No behavior change, so no test change. pnpm check:sdui-reference exit 0 (page.mdx matches the manifest, 106 components); node scripts/check-sdui-manifest.mjs exit 0; pnpm check:changeset-fixed exit 0; node scripts/check-nul-bytes.mjs exit 0.

Acceptance notes

Verification

Read page.mdx row mobileMaxVisible: 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

…ner text and comments

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgWdb2isyvQFrgHazQx
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 20, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgWdb2isyvQFrgHazQx

Final green head for L1 · 2026-11-20T23:14Z · Area: b1-DB

  • Head-sha: de6b8acbeca6fbda12a3726047d807a25adff0a0
  • Check runs on that head: 54 success, 10 skipped, 0 failed or pending. Mergeable state: clean.
  • Size: +20 / −8 over 5 files (text, regenerated manifest and docs, the generator's own record line, changeset). Clause-②: no, Metadata-protocol: none.
  • L1 requested from thread L1-c. No further pushes from the area before that reading.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP

维护者速读

  • 只改说明文字:设计器和组件文档里「手机端最多显示几个按钮」的默认值现在写对了(手机记录页底栏 2 个,其他头部 1 个),几处过时注释也一起改正。我对照代码逐句核过,都和实际行为一致。
  • 结论:通过。
  • 要你做什么:现在不需要。

席位核对 — ACCEPT (L1-c) · repo:objectstack#1 · head de6b8acbec · 2026-11-20T23:15Z

Read at de6b8acb: 5 files, +20/−8, text only. The face is Clause-②: no, Metadata-protocol: none. Not Tier H, and no L2 is owed for a text-only face.

Checked and fine

  • Shape. Draft, base main. Fixes #35840 is right, because merging delivers all three items and the card's acceptance line. The card's ⛔ is kept: types/ui-action.ts and action/auto-trigger.ts are untouched.
  • Every sentence read against the code (containers.tsx at this head):
    • The mobileMaxVisible description says "2 in a record page's bottom action bar on a phone (counting the host's Edit) and 1 on any other header". That matches barFace ? (readMax(raw) ?? PHONE_ACTION_BAR_BUTTONS /* 2 */) : isMobile ? (readMax(raw) ?? 1). It also matches the spec describe from spec: page:header 的 maxVisible 说明仍写「渲染器默认 3」,记录页一行头部改为默认 1 后要同步(承 #35593) #35660.
    • The PageHeaderActionsProps comments say an out-of-contract value "falls back to the unset default". That is true: readMax returns undefined for anything that is not a positive safe integer, and the ?? chain then gives the default. "1 in a record page's one-row header (defaultMaxVisible)" matches defaultMaxVisible={inBar ? 1 : undefined}, and "3 on any other header" matches ?? 3.
    • The inline/overflow comment states the same four defaults.
  • Generated files. The sdui.manifest.json and content/docs/ui/components/page.mdx rows are byte-identical to the new description. scripts/sdui-manifest.record.json changes only its sha256 line. The manifest generator writes that line itself, so it is part of the same regeneration and is an acceptable deviation from the stated surface.
  • Changeset. '@object-ui/components': patch. I read it sentence by sentence, and it matches the diff.
  • Overlap. containers.tsx is in the header region I watch. The hunks are two prop comments, one comment block and one registry description, with no code. The body reports a clean merge with feat(plugin-detail): the default record page drops the stage bar and key-field strip; the stage moves from the header tag #35938, which is now ACCEPTed.
  • Phone evidence. None is owed, because no rendering changes.
  • Gates. At de6b8acbec: 54 success, 10 expected skip, 0 failed, 0 pending. mergeable_state is clean and l1-face is CLEAN.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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 mobileMaxVisible help text and stale comments now give the real defaults). The dev confirmed the defaults in code first: 2 on the phone record bar, 1 on other phone headers and 3 on desktop, matching the spec. Clause-②: no, so no contract L2 is owed. L1-c ACCEPT 7052971096 on de6b8acb (this head). check-governed-merges --pr 35951 reads NOT governed, with 28 changed lines. landing-k reads K = 3. On this head, 54 check-runs are success, 10 are skipped and none failed, and the PR is mergeable clean. The seat readies this PR and arms auto-merge in the same step. The PR carries Fixes #35840.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 20, 2026 23:17
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 7de1bad Nov 20, 2026
65 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-35840-mobile-max-visible-copy branch November 20, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants