Skip to content

手机宽度下列表的视图名被截成一个字(「全部客户」显示为「全.」) #33833

Closed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_0b694aec78a6416c9b4b75ecd4ac7112

Filing gate: ① 用户可见的体验缺陷,reach: 界面实测一次。

来源

2026-11-15 staging 浏览器全量测试(cloud 部署 c4153027,objectstack pin 181ad7d4),环境 os-6hf1jq(Jack,免费版,HotCRM 6.1.2)。报告:https://claude.ai/artifact/XaMk7Uo36seWMKsPy5ETPM,视口 375×812,HotCRM → 客户。

现象

顶部工具条把视图切换器挤到只剩「全.」,旁边「· 10」「在队列中」和四个图标按钮占满了宽度;用户看不出当前是哪个视图。页面本身没有横向滚动(scrollWidth 375)。

业务理由

手机上切视图是常用操作;只剩一个字时无法分辨「全部客户」「我的客户」等视图。

修复方向

窄屏下把视图名放到第一行、工具按钮折叠到「更多」,或视图名至少保留 4–6 个字再省略。

验收

  1. 375px 宽度下视图名完整显示或至少可辨认(如「全部客户」)。

Reader

objectstack console 车道(domain:ui),列表工具条的窄屏布局。

Dedupe

  • repo:objectstack-ai/objectstack mobile view switcher name truncated → 3 条,均为 QA 汇总卡,没有该截断问题的卡。

Activity

  1. added
    bug
    domain:ui
    on Nov 15, 2026
  2. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:ui · p2 · 2026-11-15T12:49Z

    ⛔ Not a claim.

    On a phone-width list, the view name is cut to one character (「全部客户」 shows as 「全.」). The view picker is unusable on mobile, so p2.

  3. added
    pm:queue
    priority:p2
    on Nov 15, 2026
  4. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

    Claim: PM loop round 1 · 2026-11-15T14:17Z
    Session: session_01ADHkmPnhMzygsUcv5uRQYU (card thread, dev) · seat session_01ADHkmT2NE3iyG1o6TDg3sf
    Account: os-steve
    Branch: claude/project-thread-ftv3gu
    Worktree: objectstack-issue-33833
    Domain: domain:ui
    Seat: domain:ui#1
    File surface: the Console list title / view switcher and its toolbar: ui/packages/app-shell/src/views/objectViewTitleSwitcher.tsx, objectViewListRenderer.tsx, ui/packages/plugin-view/src/ViewSwitcher.tsx as located, their tests, root .changeset/. The dev names the exact files in the report; a file outside these stops for the seat.
    Container & model: M, mode:thread, model: default tier, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: at 375px the list toolbar cuts the view name to one character, so a phone user cannot tell which view is shown | none | every Console user on a phone-width list
    Thread-read: 6894572119
    Premise: holds as filed from staging (pin 181ad7d4); the dev re-measures on origin/main 895783a1 at 375×812 before editing and stops with premise_still_valid: false if it no longer reproduces
    Serial constraints cleared: no domain:ui card carried pm:dispatched before this round; ui seat 2 holds #33581 / #33549 (ObjectView, register-plugins) unopened and its open batch touches no file here
    Scope: Keep the view name readable at narrow widths (full, or 4–6 characters before an ellipsis), chips and icon buttons wrap or fold; no horizontal scroll; desktop unchanged; layout pin + desktop control + ablation; real-browser check in the body. Fixes #33833. Order: /mnt/project-files/ui-seat1/standard-order.md + 33833-delta.md. Summons: the maintainer's 「开 skills spec ui devx 座位,任务多的可以考虑开多个座位。」 (this project, 2026-11-15T14:04Z).

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

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

    Claim amendment · 2026-11-15T14:19Z
    Branch: claude/project-thread-ftv3gu (unchanged, claim 6895872671).
    File surface (replaces the claimed one): ui/packages/plugin-list/src/ListView.tsx (toolbar row classes only, max-sm: variants, applied only when a host leading node is passed); new ui/packages/plugin-list/src/listToolbarRow.ts (the row's class constants, read by name in the spec); new ui/e2e/list-toolbar-view-name-phone.spec.ts (375px pin + 1280px control); root .changeset/33833-*.md (patch, @object-ui/plugin-list). ⛔ No app-shell or plugin-view edit.
    Why: the dev located the defect on origin/main 895783a1. Below VIEW_TABS_MIN_WIDTH the Console hands the title switcher to the list as toolbarLeading, and the row that starves it is plugin-list's toolbar (left group and right tool cluster shrink-0). Measured at 375px: the label 「全部客户」 is drawn 23.28px of 64px; 1280px draws 64/64.
    Clause-②: no
    Metadata-protocol: none (unchanged).
    Serial constraints cleared: no open domain:ui claim names a plugin-list file (live read); #33548 (plugin-list) is closed, PR #33671 merged.

  7. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmPnhMzygsUcv5uRQYU
    os-dev-report

    {
      "issue": 33833,
      "status": "done",
      "branch": "claude/project-thread-ftv3gu",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/33957",
      "session": "session_01ADHkmPnhMzygsUcv5uRQYU",
      "head": "e29b2d2a",
      "premise_still_valid": true,
      "summary": "Below sm the Console passes the view switcher to ListView as toolbarLeading; plugin-list's toolbar row kept every other item shrink-0, so the name got ~1.5 characters. With a leading node the row now wraps below sm (row max-sm:flex-wrap, left group max-sm:contents, leading max-sm:basis-auto, chips max-sm:shrink, cluster max-sm:ml-auto); classes live as named constants in the new listToolbarRow.ts. Without a leading node, and from sm up, the rendered classes are unchanged. Live Console 375x812: 'All Projects' 20.11px of 85px before, 85.28/85 after; 1280 unchanged.",
      "tests": "New ui/e2e/list-toolbar-view-name-phone.spec.ts (Chromium, real Tailwind from source class strings): 10 passed at e29b2d2a. Ablations via scripts/ablation-replace.mjs, each restored to HEAD blob with git diff HEAD empty: A no flex-wrap 8 failed/2 passed; B no contents 8/2; C ml-auto->mr-0 6/4; D no basis-auto 7/3; E shrink->shrink-0 1/9 (the green ones are the constants check and the 1280 control). No build needed: the spec reads source text. vitest under lock: packages/plugin-list/ 173/173 files, 1856/1856 tests; 13 toolbar-neighbour files (plugin-list, plugin-view ViewTabBar.hostWidth-12518, three app-shell ObjectView title pins) 86/86. plugin-list type-check exit 0; ui type-check:e2e exit 0; eslint on touched files 0 errors. app-shell full suite left to CI Test UI (no app-shell edit).",
      "gates": "dispatch-gates --commands at e29b2d2a: 37 derived, each run locally, all exit 0 (vitest run scripts/ and check:type-check-debt under the lock). --ran: 37 derived, 37 run, 0 NOT-MEASURED, 0 UNRUN. Extra: ui check:new-line-citations 0 new. CI check-runs: in_progress at report time.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "7 — mcp__github__issue_read x7 (get #33833 #33548 #33864 #33549; get_comments #33833 x3); no write tool",
      "api_writes": "2 — fleet-write relay pr_create (PR #33957, assignee os-steve, no labels); this os-dev-report comment via post-stamped.mjs",
      "files_changed": [
        "ui/packages/plugin-list/src/ListView.tsx",
        "ui/packages/plugin-list/src/listToolbarRow.ts (new)",
        "ui/e2e/list-toolbar-view-name-phone.spec.ts (new)",
        ".changeset/33833-list-toolbar-view-name-phone.md (new)"
      ],
      "line_budget": "361 changed lines (+355/-6), under the 3000 human-merge threshold; no ratcheted ledger touched",
      "deviations": [
        "One read of claim comments on #33864/#33581/#33549/#33833 went through gh api (REST GET) before switching to MCP reads; no write.",
        "PR body opens with the harness attribution pair, so 'Fixes #33833' is its fourth line, right after them.",
        "Claim's first file surface did not hold the defect; stopped, seat amended it (6895939370) before the first edit."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · the open phone search field (w-36) in the same cluster was not measured; noted in the PR's Acceptance notes, not filed"
      ]
    }

    Stamped 2026-11-15T14:55Z.


    Generated by Claude Code

  8. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

    Landing held · 2026-11-15T15:16Z
    PR #33957 is ACCEPTed (6896702944) on head e29b2d2a. The landing command node scripts/pm/label-write.mjs --repo objectstack-ai/objectstack --issue 33957 --comment-file <ACCEPT record> --land was refused by the seat session's auto-mode classifier ("Destructive or Unwanted Actions"). Nothing was written by that command. The seat has asked the maintainer in the seat thread to approve this landing; no other spelling is tried. Waiting on: the maintainer, since 2026-11-15T15:16Z.

  9. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

    Landed

    PR #33957 MERGED at 2026-11-15T17:03Z as d68f014799 through the merge queue; Fixes #33833 closed this card. Delivered: the list toolbar keeps the view name readable at phone width when a host passes toolbarLeading (listToolbarRow.ts phone classes, pinned by ui/e2e/list-toolbar-view-name-phone.spec.ts). Nothing remains on this card.

    State change: pm:dispatched removed and the assignee cleared in this stroke.

  10. removed
    pm:dispatched
    on Nov 15, 2026
  11. added a commit that references this issue on Nov 16, 2026
    d68f014
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

    bugdomain:uipriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions