Skip to content

列表:去掉视图切换器旁边的记录数 #34603

Closed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #34571(控制台核心业务操作体验专题,维护者直派,「都是p1」)。⛔ 不是认领。
维护者 2026-11-17 原话:「列表视图切换的位置也不应该有记录数,这个有点反人类」

现状(读码,objectstack origin/main ed45eb9;界面实测在 staging os-4e4qa4 与 hotcrm 本地实例)

要做的

  1. 桌面端视图切换器旁不再显示记录数(不传 count 或删掉该元素)。
  2. 手机端保留一处记录数(底部计数在手机上是隐藏的),位置不放在视图名旁边。

不做的

  • 不动列表底部的记录数与合计。

验收

  1. 桌面端列表标题只有「对象 / 视图名」,没有数字。
  2. 手机端仍能看到记录数。
  3. 更新 objectViewTitleSwitcher.test.tsx、ObjectView.titleViewSwitcher-27594.test.tsx、e2e/list-toolbar-view-name-phone.spec.ts。

设计图(静态示意稿,标「新」的是改动;字段和文案以实际元数据为准)

图 15(左侧列表头部)

图 15(左侧列表头部)

Reader: domain:ui 车道,改 objectViewTitleSwitcher.tsx。

Dedupe: repo:objectstack-ai/objectstack list-view-switcher-count record count view switcher → 4(#27594、#27950、#28438 等,均已关,是当初加这个计数的那一轮)。

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:28Z

    ⛔ 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-34603-switcher-count
    Worktree: objectstack-issue-34603
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: ui/packages/app-shell/src/views/** (objectViewTitleSwitcher.tsx, ObjectView.tsx and their tests), ui/packages/plugin-list/src/** (phone compact header only, if the phone count moves there), ui/e2e/list-toolbar-view-name-phone.spec.ts, 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: n/a — not a defect card (maintainer-directed UX change, epic #34571)
    Thread-read: 6937234967
    Premise: holds (origin/main f4a2d14: objectViewTitleSwitcher.tsx:397-400 renders list-view-switcher-count, fed by count at :541 from ObjectView.tsx viewTotal :270; ListView.tsx:6492 renders ListViewCompactHeader)
    Serial constraints cleared: #34623 (#34580, ListView.tsx :1072/:2578) is the only open PR on the surface; its hunks are far from the phone header, overlap-check re-runs before every push and this card queues behind #34623 on any conflict. Superseded intent: #27594 added the count; the maintainer's 2026-11-17 quote in the body reverses it.
    Pre-claim lane: domain:ui — every path is under ui/** (app-shell views, plugin-list, ui/e2e).
    Pre-claim deps: no Blocked-by: / "after #N" on the card; overlap-check at claim exit 0 (no branch commits yet), #34623 named above.
    Prior rulings read: view switcher,record count,list-view-switcher-count,viewtotal,titleviewswitcher → 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": 34603,
      "status": "done",
      "branch": "claude/issue-34603-switcher-count",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34634",
      "head": "44015884",
      "session": "session_01WGufziunkXbDT7wUWqfmWz",
      "premise_still_valid": true,
      "summary": "The list title (the view switcher) no longer draws the count beside the view name, on any width. The count span, the switcher's count prop, ObjectView's viewTotal state, handleListTotalChange and the onTotalChange wire to ListView are removed. app-shell is private and does not export the switcher, so nothing published narrows. Phone: ListViewCompactHeader draws only in the list-view page block's compact posture, never on the Console object list. The footer record-count-bar has no phone hiding class and renders at 390 px, so the phone keeps one count, in the footer. No plugin-list change. The card's note that the footer is hidden on a phone did not hold in the source at 97defd60.",
      "tests": "head 44015884: vitest on 7 app-shell files (the 2 touched + 5 neighbours): 7/7 files, 54/54 tests, exit 0; re-run of the 2 edited files after the last commit: 22/22, exit 0. Ablation on the committed fix: a re-inserted list-view-switcher-count span turned the 3 new assertions red (3 failed / 19 passed, exit 1); restored with git checkout HEAD, git diff HEAD empty, hash equals the HEAD blob. app-shell type-check (src + tsconfig.test.json): exit 0. eslint on the 6 touched ui files: exit 0. The e2e spec is declared to CI.",
      "gates": "dispatch-gates --commands: 38 derived, all exit 0. check:test-source-alias exited 1 on its first run, then 0 after the module-top lint import was added. ui vitest scripts/: 5077 passed. --ran: 38/38, 0 NOT MEASURED. check:new-line-citations: 0. overlap-check: exit 0. CI at report time: 5 completed (0 failed), 17 in_progress.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 — git push (branch), pr_create via relay (POST pulls + POST issues/34634/assignees), this comment via post-stamped",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim amendment (claim 6937462744, same session, same branch claude/issue-34603-switcher-count):
    File surface: ui/packages/app-shell/src/views/**, ui/packages/plugin-list/src/** (unused in this PR), ui/e2e/list-toolbar-view-name-phone.spec.ts, root .changeset/, plus content/docs/ui/views.mdx (§ "Switching views" describes the removed count; L1 REWORK on PR #34634, comment 6938542041).
    Everything else in the claim stands (Clause-②: no, Metadata-protocol: none).

  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim amendment · 2026-11-17T04:44Z

    File surface (claim 6937462744) adds content/docs/ui/views.mdx: it still says the list title shows the record count ("Leads / My Leads ▾ · 12"); the PR corrects that line to match the removed counter. Docs only.

    Clause-②: unchanged
    Metadata-protocol: none

  9. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Fix round 1 for PR #34634, answering L1 REWORK 6938542041.

    {
      "issue": 34603,
      "status": "done",
      "round": "fix-1",
      "branch": "claude/issue-34603-switcher-count",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34634",
      "head": "a4a08660836daa755222494fc9b3f3c2ec183e9c",
      "session": "session_01WGufziunkXbDT7wUWqfmWz",
      "summary": "Must-fix: content/docs/ui/views.mdx section 'Switching views' drops the count clause and the '· 12' in its example. It now says the list's footer gives the record count. File surface amended per claim amendment 6938557606. Should-fix: the four stale title comments now read 'OBJECT / VIEW ▾' or 'VIEW ▾', in objectViewPageHeader.tsx (2), ObjectView.tsx (1) and ObjectView.objectListTitle-27950.test.tsx (1). A re-grep for '▾ · ', 'VIEW ▾ · COUNT' and 'number of records the view holds' over ui, content and skills, CHANGELOGs excluded, finds 0 hits. CI red on d017996c: 'Lint · CI, release & engine gates' failed on check:test-source-alias, because editing the 27950 test's comment put that test under the gate's reach rule. Fixed with the module-top `import '@objectstack/lint'`. Local run: exit 1 on d017996c, exit 0 after; CI on a4a08660: success. 'Test UI' on d017996c reads cancelled, not failed: every shard log ends 'The operation was canceled.' at 04:53:03Z, right after the a4a08660 push. On a4a08660 all 9 shards succeeded; the aggregator was still in progress at report time.",
      "tests": "vitest at a4a08660 on ObjectView.objectListTitle-27950, ObjectView.titleViewSwitcher-27594, objectViewTitleSwitcher and objectViewTitleSwitcher.phoneWidth-29074: 4/4 files, 34/34 tests, exit 0.",
      "gates": "dispatch-gates --commands for the new change set: 70 commands, all exit 0 in the end. check:test-source-alias: 1, then 0 after the fix. check:skill-examples: exit 3 (client-react dist missing in the recreated worktree), then 0 after building it: 347 examples type-check. ui vitest scripts/: exit 1 on the first loop run, before the recreated worktree's closure was built (the log was overwritten), then 0 on a4a08660 after the build: 171 files, 5077 tests passed. The docs gates (check:docs, doc-anchors, doc-authoring, docs-single-h1 and the rest of the 32 new families) exit 0. --ran: 70/70, 0 NOT MEASURED. overlap-check: exit 0 before both pushes.",
      "mcp_calls": "0",
      "api_writes": "1 — this comment. Plus 2 git pushes. The PR body was not edited: os-dev.md bars a dev PATCH of a PR body, so the edits are named in the final report for the seat to write.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  10. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Delivered by PR #34634 (merged): the Console list title / view switcher no longer shows a record count on any width; the list footer keeps the count (on a phone too), and content/docs/ui/views.mdx § Switching views says so. Nothing remains on this card. pm:dispatched comes off with the close.

  11. 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