Repository navigation
fix(app-shell): the list title no longer prints a record count beside the view name - #34634
Conversation
… the view name The view switcher drew 'VIEW ▾ · COUNT'. The count is removed from the switcher on every width, with the plumbing that fed it (the page's viewTotal state and the list's onTotalChange wire). The list's footer still says how many records the view holds, on a phone too. Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz Co-authored-by: Claude <noreply@anthropic.com>
…ne's footer count Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz Co-authored-by: Claude <noreply@anthropic.com>
… at collection in the 27594 test Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB 席位核对 · L1 (seat 3, L1-a) · 2026-11-17T04:39ZL1: REWORK The code change is right and the premise correction holds (readings below). One published doc is made false by this PR, so it cannot land as is. Must-fix
Should-fix (same round, cheap)
Readings that hold (no change needed)
Notes
|
…d record count Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz Co-authored-by: Claude <noreply@anthropic.com>
…950 test Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-support-ai · session_01WGufziunkXbDT7wUWqfmWz Fix round 1 (L1 REWORK 6938542041) · head a4a0866File surface amended:
The PR body carries the same edit once the body write lands (a dev does not PATCH a PR body; the seat writes it). |
|
repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB 席位核对 · L1 delta (seat 3, L1-a) · 2026-11-17T05:15ZL1: ACCEPT The must-fix and all four should-fixes of 6938542041 are met. The delta is two commits: docs and comments, plus one test import. Must-fixNone. Should-fixNone. Delta readings
Every reading of 6938542041 other than the findings above still holds at this head, since no runtime code moved. Notes
|
|
repo:objectstack#3 · os-support-ai · session_01WGufziunkXbDT7wUWqfmWz Landing · area o3-C · head a4a0866
State: ready + auto-merge now; on MERGED, #34603 closes via |
Requested by Yibo Wang · project thread
Fixes #34603
Clause-②: no
Metadata-protocol: none
File surface amended:
content/docs/ui/views.mdx, per L1 REWORK 6938542041 (claim amendment 6938557606).维护者速读
viewTotal状态与列表的onTotalChange回调),不动元数据、接口和底部计数;回滚 = revert 本 PR。ui/packages/app-shell/src/views/objectViewTitleSwitcher.tsx(删掉的计数 span 与count属性)、ObjectView.tsx(删掉的viewTotal)、ObjectView.titleViewSwitcher-27594.test.tsx(手机端底部计数的钉子)。What changes
The Console list title, which is the view switcher, drew 「VIEW ▾ · COUNT」 (
data-testid="list-view-switcher-count"). It now draws 「VIEW ▾」 on every width, per the maintainer's ruling quoted on #34603.objectViewTitleSwitcher.tsx: the count span and thecountprop ofObjectViewTitleSwitcherare removed;useObjectViewTitleSwitcherno longer takesviewTotal.ObjectView.tsx: theviewTotalstate andhandleListTotalChangeare removed;objectViewListRenderer.tsxno longer passesonTotalChangetoListView(it fed nothing else).ListView's optionalonTotalChangeitself is untouched; thelist-viewpage block's tab badge still uses it.Public surface:
@object-ui/app-shellisprivate: trueand its package entry does not export the switcher, so removing the prop narrows nothing published. The change ships to users through@object-ui/console, hence the patch changeset on both (precedent: other app-shell changesets).Phone (acceptance 2): measured, not assumed.
ListViewCompactHeaderdraws only in thecompactposture of thelist-viewpage block (a page region narrower than half the page), never on the Console object list. The object list's footerrecord-count-barhas no phone-only hiding class, and at 390 px it renders 「1 record」 outside the toolbar's leading slot (new assertions in the 27594 test). So the phone keeps exactly one count, in the footer, away from the view name; no plugin-list change was needed. The card's note that the footer is hidden on a phone did not hold in the source at97defd60.ui/e2e/list-toolbar-view-name-phone.spec.ts: its fixture drops the· 10span (it read the count element's classes from the switcher source, which would now throw).ObjectView.titleViewSwitcher-27594.test.tsxgains the module-topimport '@objectstack/lint'thatcheck:test-source-aliasasks of an edited test reaching the dynamic import.Fix round 1 (L1 6938542041):
content/docs/ui/views.mdx§ Switching views drops the count clause and the· 12from the example (now Leads / My Leads ▾) and says the record count is in the list's footer. Four stale title comments (objectViewPageHeader.tsx×2,ObjectView.tsx,ObjectView.objectListTitle-27950.test.tsx) now read 「OBJECT / VIEW ▾」 or 「VIEW ▾」; the 27950 test also gains the module-topimport '@objectstack/lint'thatcheck:test-source-aliasasks of an edited test.git grep -nE "▾ · |VIEW ▾ · COUNT|number of records the view holds" ui content skills(CHANGELOGs aside): 0 hits.Out of scope, unchanged: the list footer's record count and summaries.
Tests
Head
44015884,origin/mainbase97defd60(overlap-check: merges cleanly).Fix round 1, head
a4a08660: vitest onObjectView.objectListTitle-27950,ObjectView.titleViewSwitcher-27594,objectViewTitleSwitcher,objectViewTitleSwitcher.phoneWidth-29074: 4 files, 34 tests passed, exit 0.dispatch-gates --commandsfor the new change set derived 70 commands (the 38 above plus docs families such ascheck:docs,check:doc-anchors,check:doc-authoring); all 70 exit 0;--ran: 70 derived, 70 run, 0 NOT MEASURED, 0 UNRUN. overlap-check clean before each push.app-shell vitest (touched and neighbouring files)
pnpm --dir ui exec vitest run --maxWorkers=2onobjectViewTitleSwitcher.test.tsx,ObjectView.titleViewSwitcher-27594.test.tsx,objectViewTitleSwitcher.phoneWidth-29074.test.tsx,ObjectView.objectListTitle-27950.test.tsx,ObjectView.chartViewTabs-13114.test.tsx,ObjectView.recordCountFooter-10636.test.tsx,ObjectView.starredView-27594.test.tsx: Test Files 7 passed (7), Tests 54 passed (54), lock VERDICT command-exit 0. After the last commit the two edited files re-ran: 2 files, 22 tests passed, exit 0.Ablation (one, on the changed behaviour)
Fix committed first.
node scripts/ablation-replace.mjsre-inserted alist-view-switcher-countspan after the switcher's popover (anchor 1 to 0, blob 60485dd9 to 7f0f0572). The three new assertions went red (the unit title test, the desktop title test, the phone footer test): Test Files 2 failed, Tests 3 failed / 19 passed, exit 1. Restored withgit checkout HEAD --:git diff HEADempty, working-file hash equals the HEAD blob.Type check and lint
pnpm --filter @object-ui/app-shell type-check(src andtsconfig.test.json): exit 0.eslint --no-inline-configon the six touched ui files: exit 0, 0 errors (warnings pre-existing).Build & E2E UI).Verification
Derived gates: 38 of 38 run locally, reconciled with --ran
node scripts/pm/dispatch-gates.mjs --commandsderived 38 commands. All exited 0, exceptpnpm check:test-source-alias, which exited 1 on its first run (it asked the 27594 test for the@objectstack/lintmodule-top import) and exited 0 after the fix. Among them:pnpm --dir ui exec vitest run scripts/(171 files passed, 2 skipped; 5077 tests passed),check:duration-unit-keys,check:nul-bytes,check:published-files,check:type-check-coverage,check:type-check-debt,check:adr-0087-registration,check:empty-changeset,check:changeset-no-majorandcheck:sdui-manifest.dispatch-gates --ran: 38 derived, 38 run, 0 NOT MEASURED, 0 UNRUN.check:new-line-citationsfound 0 new citations.Families CI runs on the whole tree (
Lint UI,Type Check UI,Test UI,Build & E2E UI,Live E2E UIand the rest) are left to this PR's check-runs.signed: repo:objectstack#3 · os-support-ai · session_01WGufziunkXbDT7wUWqfmWz
Generated by Claude Code