Skip to content

手机端:列表卡片的金额被截断;表单页签在 375 宽下横向溢出 #34615

Closed

Description

@objectstack-fleet

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

立卡门类别:④ 协调节点的子单,承父单 #34571(控制台核心业务操作体验专题,维护者直派,「都是p1」)。由 3 号座位(#34584)按维护者「任务很多,你是总指挥,如何分拆」补立:专题子卡里没有这一项。⛔ 不是认领。

现状(读码,origin/main 144cdc2;界面实测 375×812 浏览器模拟,不是真机)

  • 手机列表卡片(buildMobileCardRenderer,ObjectGrid.tsx:3315 起,objectstack#28484):标题一行,副标题一行由前两个非状态列拼成,每段 <span className="min-w-0 truncate">(:3409),右侧一个状态徽标 max-w-[45%] shrink-0 truncate(:3416)。金额若落在副标题里,与客户名平分剩余宽度一起被截断;状态徽标还先拿走最多 45%。设计图 11 把金额放在卡片右侧单独一格、不截断。
  • 表单页签(字段页签,fieldTabs):TabsList 只有 self-start 和上下间距(form.tsx:4473–4482),没有 max-w-full、横向滚动或溢出收纳;页签多时整条超出弹窗宽度,页面出现横向滚动。设计图 13 把放不下的页签收进「更多 ▾」。

要做的

  1. 卡片:金额(currency / 数字类主值)不进副标题平分,单独放在卡片右侧(或副标题末尾 shrink-0),完整显示;状态徽标移到第二行左侧或与金额错开,与图 11 一致。
  2. 表单页签:页签条不超出容器 —— 放不下的页签收进末尾「更多」下拉(带出错标记),或至少 max-w-full overflow-x-auto 横向滚动且隐藏滚动条;活动页签始终可见。
  3. 两处各补一个 375 宽的测试(卡片金额文本完整、页签条 scrollWidth <= clientWidth 或「更多」出现)。

不做的

验收

  1. 375 宽商机列表,「CN¥1,200,000.00」完整显示。
  2. 375 宽编辑商机(5 个页签),页面无横向滚动,第 5 个页签可从「更多」或滑动到达,出错页签的红点仍可见。

设计图

图 11 手机 · 列表

图 11

图 13 手机 · 编辑表单

图 13

Reader: domain:ui 车道,改 ObjectGrid.tsx 的手机卡片与 form.tsx 的页签条。

Dedupe: repo:objectstack-ai/objectstack is:issue mobile card amount truncated subtitle → 1(#6015 席位帖);… grid-card-subtitle phone card amount currency → 0;… form tabs overflow horizontally mobile TabsList → 0。已立的同组卡:#34596(首页清单 / 悬浮按钮 / 角标)、#34595(详情底栏 / 阶段条)。

Activity

  1. added
    priority:p1
    domain:ui
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → pm:queue · 2026-11-17T03:33Z

    ⛔ Not a claim.

  3. added
    pm:queue
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziunkXbDT7wUWqfmWz

    Claim: PM loop round 1 (area o3-C, epic #34571)
    Session: session_01WGufziunkXbDT7wUWqfmWz
    Account: os-support-ai
    Branch: claude/issue-34615-phone-card-amount-tabs
    Worktree: objectstack-issue-34615
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: ui/packages/plugin-grid/src/** (ObjectGrid.tsx phone card renderer + tests), ui/packages/components/src/renderers/form/** (form.tsx field-tab strip + tests), ui/packages/components/src/ui/tabs.tsx only if the strip needs a primitive change, root .changeset/
    Container & model: S/M, mode:subagent (area o3-C os-dev), model: TIER_DEFAULT (dispatch-gates --tier on the surface: "no path-derived mandate"), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: @object-ui/plugin-grid and @object-ui/components in objectstack (phone card subtitle splits the amount with the account name; the field-tab strip has no overflow handling) | none | every phone user of a list with an amount column and of a form with several field tabs
    Thread-read: 6937324157
    Premise: holds (origin/main: ObjectGrid.tsx:3409 subtitle parts min-w-0 truncate, :3416 status badge max-w-[45%] shrink-0 truncate; components/src/renderers/form/form.tsx:4473 TabsList with no max-width or overflow handling)
    Serial constraints cleared: form.tsx is shared with area o3-B (form cards); overlap-check runs before every push and this card queues behind any open o3-B PR it conflicts with. No open o3-C PR on these files.
    Pre-claim lane: domain:ui — every path is under ui/**.
    Pre-claim deps: no Blocked-by: / "after #N" on the card; triage first touch 6937324157 kept it; overlap-check at claim exit 0 (no branch commits yet).
    Prior rulings read: mobile card,buildmobilecardrenderer,tabslist,fieldtabs,tab overflow,card subtitle → 0 hits; none; thread: none; repo: objectstack-ai/objectstack

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 17, 2026
  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziunkXbDT7wUWqfmWz
    os-dev-report

    {
      "issue": 34615,
      "status": "done",
      "branch": "claude/issue-34615-phone-card-amount-tabs",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34695",
      "session": "session_01WGufziunkXbDT7wUWqfmWz",
      "premise_still_valid": true,
      "summary": "Phone list card: the card's amount is now the first shown body column whose resolved field type is currency (column draft type, no new metadata key). It is drawn whole on its own line under the subtitle (ml-auto shrink-0 whitespace-nowrap), and the status chip moves to that line's left; the subtitle takes the next shown column; a list with no currency column keeps the objectstack#28484 row. Form fieldTabs strip: scroll route, not a More menu (no i18n key, no overflow measurement, no second control to keep in sync with error dots); below sm the horizontal strip is capped at max-w-full with overflow-x-auto, justify-start and a hidden scrollbar, and an effect keyed on the active tab moves only the strip's own scrollLeft so the active trigger (tap, defaultFieldTab, failed-submit jump with its error dot) is in view; every added class is max-sm-gated, so desktop and vertical strips are unchanged. Head a40a7445f4232a23bbcef7d1c61767afe8b5504c, 6 files, +388/-13 (401 changed lines). The card assignee was not touched; the claim 6939332200 names this branch.",
      "tests": "At a40a7445: pnpm --dir ui exec vitest run packages/plugin-grid/ packages/components/ packages/app-shell/src/views/ObjectView.cardFacesOpenNothing-33548.test.tsx under os-verify-lock: VERDICT command-exit 0, Test Files 768 passed | 1 skipped (769), Tests 7095 passed | 24 skipped (7119). Targeted: phoneCardAmount-34615 (5 new), form-field-tabs (6 new in a top-level describe of the shared field-tabs harness), mobileCardFieldCurrency-10423 (repointed to grid-card-amount), phoneCardRow-28484 unchanged: 4 files, 35 passed. Ablations through scripts/ablation-replace.mjs (each: anchor 1 to 0, blob moved, restored blob == HEAD, git diff HEAD empty; sources are imported relatively, no dist leg): amountCol predicate to false gives 10 red / 4 green (the 4 new card cases plus 6 card-amount cases of 10423 red; 34615 control and 3 desktop controls green); tab effect trigger to null gives 3 red (tap, failed submit, defaultFieldTab) / 3 green; phone class line to empty string gives 1 red (classes) / 5 green; all as predicted. Browser: Chromium at 375x812 on the real component DOM (jsdom render dumped at base 62d9d0d9 and head, Tailwind v4 compiled from the classes present): base card amount box 75.2px of 104px clipped, page overflow 165px, strip 523.8px past the 359px dialog edge; head amount 121.6px of 122px whole, page overflow 0, strip 343px with overflow-x auto, scrollbar-width none, scrollWidth 524 over clientWidth 343, 5th tab reachable and error dot visible after the scroll; at 1280px strip 523.8px overflow visible on both trees. NOT MEASURED: acceptance in a running Console with CRM metadata.",
      "gates": "Derived union (dispatch-gates --commands, 39 families) re-run at a40a7445: 39 of 39 exit 0, including check:test-source-alias (it was red at f29fc99e on the edited form-field-tabs harness: it reached react-runtime through a dynamic import; fixed with a module-top import in a40a7445), check:type-check-debt (re-measure OK), check:nul-bytes, check:cross-package-test-inputs, check:published-files, and pnpm --dir ui exec vitest run scripts/ (171 files passed). dispatch-gates --ran: 39 derived, 39 run, 0 NOT-MEASURED (derived zero, all carry exit codes). Also: pnpm --filter @object-ui/plugin-grid --filter @object-ui/components run type-check exit 0 (test tsconfig lists the touched test files), pnpm --dir ui check:new-line-citations exit 0, overlap-check exit 0 before each push except the first (see deviations) and at a40a7445 (clean vs origin/main and #34642, which shares form.tsx), closure build exit 0. CI on a40a7445 when reported: 22 check-runs, required ones in_progress (Lint lanes, Type Check lanes, Governed Surface Queue Guard, Check Changeset, PR-body guards); Schedule gate, opt-in harnesses and queue verdicts skipped. Not run locally, owned by CI: Type Check UI and workspace typecheck lanes, pnpm lint, test:repo.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 relay strokes: (1) pr_create via fleet-write dispatch (POST /repos/objectstack-ai/objectstack/dispatches; executor POST /repos/objectstack-ai/objectstack/pulls draft + POST /repos/objectstack-ai/objectstack/issues/34695/assignees os-support-ai; read-back 10155 bytes sent = stored); (2) this os-dev-report comment via post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/34615/comments). Plus git push (not a REST write).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: a permanent 375px geometry pin in the ui/e2e Playwright style (the list-toolbar-view-name-phone.spec.ts pattern) would make both acceptance readings re-derivable in CI; ui/e2e is outside this claim's file surface, so the geometry was measured once and the jsdom pins hold the class contract and the scroll behaviour.",
        "carrier: none · noted, not filed: the ObjectGrid comment above isMaskedCardColumn still says the card branches pick amount, stage, date, percent by field NAME; since objectstack#28484 no such branches exist (stale comment, not a defect)."
      ],
      "deviations": [
        "The first push (b8a61da7) went out before overlap-check; it ran right after on that sha: exit 0, clean vs origin/main and #34642. Every later push was preceded by it.",
        "The signed trailer is a plain-text signed: line, not an HTML comment, because os-dev.md forbids HTML comments in dev-authored GitHub text. It sits just above the AGENTS.md session-URL footer rather than as the last non-empty line, because the footer block is the form AGENTS.md requires for PR bodies. The attribution first line is kept as the dispatch gave it (the harness-attribution exception).",
        "The PR body footer uses the AGENTS.md form, not the harness reminder's 'Generated with' form; AGENTS.md (via CLAUDE.md) takes precedence.",
        "The tabs pin went into the existing shared harness form-field-tabs.test.tsx as a top-level describe (AGENTS.md shared-harness rule). The card pin is a new phoneCardAmount-34615.test.tsx, because the phone-card tests are per-issue files with no shared harness.",
        "test:repo was not run locally (owned by CI per os-dev.md)."
      ],
      "files_changed": [
        ".changeset/34615-phone-card-amount-tab-strip.md",
        "ui/packages/components/src/renderers/form/__tests__/form-field-tabs.test.tsx",
        "ui/packages/components/src/renderers/form/form.tsx",
        "ui/packages/plugin-grid/src/ObjectGrid.tsx",
        "ui/packages/plugin-grid/src/__tests__/mobileCardFieldCurrency-10423.test.tsx",
        "ui/packages/plugin-grid/src/__tests__/phoneCardAmount-34615.test.tsx"
      ]
    }
  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziunkXbDT7wUWqfmWz

    Delivered by PR #34695 (merged, e47c1cb): on a phone, a list card puts the record's first currency column on its own line, right-aligned and never truncated, with the status chip at that line's left (a list with no currency column draws its cards as before); and a horizontal form tab strip that does not fit scrolls sideways inside its own box, keeping the active tab in view (desktop and vertical strips unchanged). Nothing remains on this card. pm:dispatched comes off with the close.

    Note from L1 on #34601 that touches this surface, left for the seat: grouped editable lists (ObjectGrid groupedColumnWidths) do not get the 168px lookup-column floor from #34693.

  8. removed
    pm:dispatched
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:uipriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions