Skip to content

页头「手机端最多显示几个按钮」在设计器输入说明里仍写「默认 1」,而手机记录页底栏实际默认 2;containers.tsx 内几处旧注释同样过时(承 #35660 L2) #35840

Closed

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

立卡门类别:② 施工中发现的范围外事项(#35660 / PR #35821 的 L2 合同复核 7037575508,复核人上报项)。⛔ 不是认领;车道与定级由分诊定。

现状(origin/main 读源码,未在公开入口实测)

  • spec: page:header 的 maxVisible 说明仍写「渲染器默认 3」,记录页一行头部改为默认 1 后要同步(承 #35593) #35660 已把 packages/spec 里 page:header 的 maxVisible / mobileMaxVisible 说明改成实际默认值:不设置时,记录页单行头部 maxVisible 为 1、其他头部为 3;手机记录页底栏 mobileMaxVisible 为 2(含宿主的「编辑」)、其他头部为 1。
  • ui/packages/components/src/renderers/layout/containers.tsx ~3631:设计器输入 mobileMaxVisible 的 description 仍写 "A positive integer, defaulting to 1"。这段文字会发布到 sdui.manifest.json 和生成的 content/docs/ui/components/page.mdx,与手机记录页底栏的 2 不符。
  • 同文件的旧注释也过时:~1947/~1949(maxVisible / mobileMaxVisible 的 prop 注释写 "falls back to 3" / "falls back to 1"),以及 ~2574-2575("default to 3 / 1")。

要做的

  • 把 ~3631 的设计器说明改成与 spec 说明一致的默认值;按仓库自己的生成命令重新生成 sdui.manifest.json 与 content/docs/ui/components/page.mdx,不手改生成物。
  • 一并修正 ~1947/~1949 和 ~2574-2575 的注释。
  • ⛔ 不要改 types/ui-action.ts ~1070-1073 和 action/auto-trigger.ts ~24:它们描述的是 action:bar,其回退值仍是 3 / 1。
  • 只改文字,不改行为。

验收

  • 设计器说明、生成的 manifest 和 page.mdx 与 spec 说明给出的默认值一致;生成物新鲜度门禁通过。

Reader: area:ux(domain:ui,组件渲染器文字)。

Dedupe: mobileMaxVisible defaulting(objectstack,open)→ 无相关。

Activity

  1. added
    priority:p2
    pm:queue
    domain:ui
    on Nov 20, 2026
  2. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Bug · the designer input for mobileMaxVisible (containers.tsx ~3631) still says "defaulting to 1", while the mobile record-page bar defaults to 2; that text ships in sdui.manifest.json and the generated page.mdx; nearby prop comments are stale too; follow-up of the #35660 L2 → p2 as filed (shipped-text rule: a wrong sentence) · size XS (one description, regenerate, three comments).

  3. added
    bug
    on Nov 20, 2026
  4. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim: PM loop · 2026-11-20T22:38Z
    Area: b1-DB
    Session: session_01L6bhgWdb2isyvQFrgHazQx (area b1-DB; its os-dev subagent runs under the same session)
    Account: os-sales
    Branch: claude/issue-35840-mobile-max-visible-copy
    Seat: repo:objectstack#1
    Domain: domain:ui
    File surface: ui/packages/components/src/renderers/layout/containers.tsx (the mobileMaxVisible description at ~3631 and stale comments at ~1947/1949/2575), the regenerated sdui.manifest.json, content/docs/ui/components/page.mdx and a changeset. The file is shared with #35938 (3015–3550) and #35937 (2647), in different regions; overlap-check before each push.
    Container & model: XS copy, mode:subagent, model: sonnet, effort: medium
    Clause-②: no
    Metadata-protocol: none
    Premise: re-read on main 170ca481 by the area: holds (containers.tsx:3631 still says "defaulting to 1" and the old comments are there).
    Basis: card #35840 (thread read 7038728124). Under the maintainer's 2026-11-20 22:31Z–22:32Z order (bugs derived from the record-page / list-page epics, p1 and p2 bugs only).
    Resume-from: none
    Fold-or-serial: serial; no fold. The PR carries Fixes #35840.

  5. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgWdb2isyvQFrgHazQx
    os-dev-report

    {
      "issue": 35840,
      "status": "done",
      "branch": "claude/issue-35840-mobile-max-visible-copy",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35951",
      "session": "session_01L6bhgWdb2isyvQFrgHazQx",
      "premise_still_valid": true,
      "summary": "Corrected the mobileMaxVisible designer description (was 'defaulting to 1') and the stale 3/1 comments in containers.tsx to the spec text from #35660: maxVisible 1 in the record one-row header else 3; mobileMaxVisible 2 in the phone record bottom bar (Edit counted) else 1. Verified in code first (PHONE_ACTION_BAR_BUTTONS=2 for face bar, ?? 1 other mobile, defaultMaxVisible ?? 3): code and spec agree. Manifest and page.mdx regenerated with the repo generators. Text only.",
      "tests": "No behavior change, no test added. pnpm check:sdui-reference exit 0 (page.mdx matches 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. Generator run under os-verify-lock: VERDICT command-exit 0. overlap-check VERDICT clean (#35938 merges cleanly). No ablation (text only).",
      "gates": "Local, exit codes captured unpiped: check:sdui-reference 0, check-sdui-manifest 0, check:changeset-fixed 0, docs-audit/check-affected-docs 0, check-nul-bytes 0. dispatch-gates --ran: exit 1, '76 of 76 derived UNRUN' - the derived list is the wide path-agnostic roster, deliberately narrowed to the families that read the touched files; the rest are CI-owned (declared narrowing). CI check-runs not yet read (PR just opened): in_progress.",
      "dogfood_battery": "n/a - no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 - relay pr_create (POST /pulls, assignees leg os-sales) and this os-dev-report via post-stamped; plus git push (not REST)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none - the desktop maxVisible designer description (containers.tsx ~3630) does not state its unset default (1 record one-row header / 3 other); not filed, noted only (copy gap, not a wrong sentence)."
      ],
      "files_changed": [
        "ui/packages/components/src/renderers/layout/containers.tsx",
        "sdui.manifest.json",
        "content/docs/ui/components/page.mdx",
        "scripts/sdui-manifest.record.json (generator-written sha256 line, outside the stated surface)",
        ".changeset/35840-mobile-max-visible-default-copy.md"
      ],
      "line_budget": "n/a - no skills/** touched",
      "deviations": "scripts/sdui-manifest.record.json changed (one sha256 line) because gen-sdui-manifest-node.mjs re-records it; first commit's Sonnet trailer refused by check:commit-card-trailers and amended model-free before first publish."
    }
  6. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

    Close-out · 2026-11-21T10:49Z: covered by PR #35983 (#35853), merged as bc9ace2. The designer and spec text this card named now read "3 on every header" plus the record-bar width fold: the containers.tsx designer descriptions and the stale JSDoc around PageHeaderActionsProps.maxVisible, the regenerated manifest, and content/docs/ui/components/page.mdx. ui-action.ts / auto-trigger.ts (action:bar) were not touched, as this card required. The card was never claimed, since auto mode refused the claim, so it rode as "covers". The seat ruled that it closes with #35853. pm:queue removed.

  7. removed
    pm:queue
    on Nov 21, 2026
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:uxbugdomain:uipriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions