Repository navigation
Labels
area:uxbugSomething isn't workingdomain:uiDomain lane — seat card indexed by label:pm:seatpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Description
coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff
立卡门类别:④ 协调节点的子单,承父单 #35547(专题:列表页重做,维护者直派)。⛔ 不是认领。
维护者 2026-11-20 对修法的回复:「刷新去掉,其他同意」(指协调席列出的整版方案,其中包含本卡两条修法);看过图 42 后:「按这版立卡」。
现状(主干 7878cf0557,本机环境,浏览器实测)
「会议」列表,先设好两级排序:会议日期升序、会议地点升序。
- 点列头会清掉原来的排序。 点一下「会议地点」的列头,排序变成只有「会议地点 降序」一级,原来的「会议日期」没有了,没有任何提示,也没有撤销。这个结果会立即存成这个人的个性化设置,刷新后仍然是被清掉的状态。
- 表格点列头时只交出这一列:
ui/packages/components/src/renderers/complex/data-table.tsx:2259(onSortChange?.([{ field: columnKey, order }]))。 - 列表收到后整体替换当前排序:
ui/packages/plugin-list/src/ListView.tsx:6127(handleHeaderSort里setCurrentSort(items))。
- 表格点列头时只交出这一列:
- 点排序标签会直接反转方向。 视图栏下面那一行的排序标签(「↑ 会议日期」),点一下就从升序变成降序,立即生效并保存。标签看起来像「点开看详情」,实际是一个立即生效的操作。
- 调不了多级排序的先后。 想把「会议地点」排到「会议日期」前面,只能删掉一个再加回来。右上「排序」面板底部有一个「全部排序级别」入口,协调席没有点开核对,如果那里能调先后,这一条以它为准。
要做的
效果图(图 42 第四、五张):
- 点列头出菜单:升序、降序、隐藏这一列。不再一点就直接排序。
- 在菜单里选了升序或降序时:
- 当前没有排序,或只有一级:直接换成这一列。
- 当前有两级或更多:把这一列放到第一级,原来的各级往后顺延;这一列原本就在排序里的,挪到第一级并用新选的方向。不清掉其余各级。
- 点排序标签打开面板,不再反转方向。面板里每级一行:拖动手柄、字段、升序或降序、删除;拖动调先后;底部「添加排序」。
- 表头上的 ↑1、↓2 这类标记保留。
第 2 条里「已有多级时放到第一级」是协调席提的做法,维护者以「其他同意」认可;另一种做法「替换并提供撤销」没有采用。
不做的
- 不改排序的保存方式(仍然是改了立即存成个人的)。
- 排序标签并成一个、入口的位置,在另一张卡(工具区重排)里,不在本卡。本卡先在现有的排布上把这两个行为改对,两张卡谁先做都可以。
- 手机宽度下没有列头,本卡不涉及。
验收
- 两级排序下点任意列头:出菜单,列表顺序不变,排序标签不变。
- 两级排序(会议日期升序、会议地点升序)下,在「会议名称」列头菜单选升序:排序变成三级,会议名称、会议日期、会议地点;刷新后仍是三级。
- 同样的两级排序下,在「会议地点」列头菜单选降序:排序仍是两级,顺序变成会议地点降序、会议日期升序。
- 没有排序时,在列头菜单选降序:排序是这一列降序一级。
- 点排序标签:打开面板,方向不变;在面板里拖动第二行到第一行,表头的 ↑1、↑2 跟着互换,刷新后保持。
- 键盘:列头获得焦点后按回车打开菜单,上下键选择,回车确认,Esc 关闭且不改排序。
Reader: domain:ui 车道。ui/packages/components/src/renderers/complex/data-table.tsx、ui/packages/plugin-list/src/ListView.tsx。
Dedupe: 列头 排序 多级 清掉、排序 标签 反转 方向、sort chip toggle header click multi sort(objectstack,open)→ 都是 0。相邻但不同:#35645(非安全连接下点表头排序报错,是另一个原因)。
Metadata
Metadata
Assignees
Labels
area:uxbugSomething isn't workingdomain:uiDomain lane — seat card indexed by label:pm:seatpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3


Activity
objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Claim: PM loop · 2026-11-20T16:38Z
Area: b1-L
Session:
session_01L6bhgTXY4rajwZcQmpLxS2(the card thread)Account:
os-salesBranch:
claude/project-thread-agxx3w(this card thread can push only this branch, a measured platform exception to the issue-numbered branch name)Seat:
repo:objectstack#1Domain:
domain:uiFile surface:
ui/packages/components/src/renderers/complex/data-table.tsx(column-header click and header menu only),ui/packages/components/src/custom/sort-builder.tsx(a drag handle per level to reorder),ui/packages/plugin-list/src/ListView.tsx(handleHeaderSortmulti-level merge; the sort chip opens the panel),ui/packages/plugin-list/src/conditions/ListConditionControls.tsx(chip click opens the panel instead oftoggleSortOrder),ui/packages/i18nlocales (new keys), and their tests.Scope routing (seat): the header menu (ascending, descending, hide this column) is drawn on the grids
ListViewdraws, the same reach as the #35683 ruling 7035276698 used for select-first. Other data-table hosts (related lists, dashboard tables, hand-written grids) keep click-to-sort and are evaluated separately; data-table carries it behind an opt-in the list turns on. The multi-level merge lives inListView; data-table still hands over only the chosen column.Container & model:
M,mode:thread,model: default (opus) — no path-derived mandate,effort: highClause-②: yes (widening expected: new published i18n keys and a new opt-in on data-table; declaration face at
TIER_DEFAULT, confirmed from the changeset at PR time)Metadata-protocol: none expected
Premise: re-read on main
8c18a362by the thread: the header click sorts at once viahandleSort,handleHeaderSortreplaces the whole sort, the chip'sonClickistoggleSortOrder, and 「全部排序级别」 (SortBuilder) cannot reorder, so item 3 adds drag there.Basis: epic #35547 child; the maintainer took the epic into this seat on 2026-11-20 16:32Z 「接手专题 35547」 and 「专题任务p1p2 都处理」. Scope per this card's quoted words 「刷新去掉,其他同意」「按这版立卡」.
Resume-from: none
Fold-or-serial: serial, alone. Parallel neighbour #35878 (claim 7044973419) owns the toolbar layout; its single sort chip opens this card's panel.
objectstack-fleet commentedon Nov 20, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:ui·pm:dispatched(as set); rationale: area:ux · Bug · list sorting: with a multi-level sort, clicking a column header silently drops every other level with no undo, and clicking a sort chip flips its direction directly; measured in the browser; child of the maintainer-directed list-page topic #35547, maintainer: 「按这版立卡」 → p2 as set by the coordinator · size S.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#1 · os-sales · session_01L6bhgTXY4rajwZcQmpLxS2
os-dev-report
{ "issue": 35876, "status": "done", "branch": "claude/project-thread-agxx3w", "pr": "https://github.com/objectstack-ai/objectstack/pull/35909", "session": "session_01L6bhgTXY4rajwZcQmpLxS2", "premise_still_valid": true, "summary": "On grids ListView draws (opt-in GridHeaderMenuProvider via ObjectGrid's headerMenu prop), a sortable header opens the column menu (Sort ascending / Sort descending / Hide column) instead of sorting, with keyboard open, arrows, Enter and Esc. ListView.handleHeaderSort keeps a multi-level sort: with two levels or more the picked column becomes first and no level is dropped. A sort chip opens the sort panel (every level) instead of reversing; SortBuilder gains a drag handle and ArrowUp/ArrowDown reorder. Head 663cd467 also fixes the CI declaration-build error (untyped onOpenAutoFocus) and migrates the e2e spec L1-b flagged.", "tests": "New: data-table-header-menu-35876 (7), ListView.headerMenuSort-35876, sort-builder-reorder-35876 (6). Whole components + plugin-list + plugin-grid vitest on fc35f473: 971 files, 9291 tests, 12 old pins failed, all migrated; re-run 11 files 103/103. On 663cd467: 5 affected unit files 79/79; ui/e2e/list-condition-row-35549.spec.ts chromium 3/3. Browser before/after on app-showcase (evidence /mnt/project-files/build-seat1/35876/). app-shell whole suite NOT MEASURED locally (stopped after 53 min on the shared box), CI runs it.", "gates": "dispatch-gates --commands: 42 commands; 40 exit 0 on c3e4d776; on 663cd467 `pnpm --dir ui exec vitest run scripts/` :: exit 0 and `pnpm check:type-check-debt` :: exit 0. ui closure build :: exit 0; type-check components/plugin-grid/plugin-list/i18n :: exit 0 each. eslint changed files 0 errors. overlap-check VERDICT clean. CI on c3e4d776: Build & E2E UI, Type Check UI, Lint UI failed on the one TS2322 now fixed; CI on 663cd467 pending at writing.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "read only: issue_read, pull_request_read, get_job_logs; no MCP write tool", "api_writes": "0 — GitHub writes went through scripts/pm/fleet-write (pr_create, issue_patch)", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "class: c · reach: docs/qa/platform-checklist has no item driving the header menu or the sort level reorder · evidence: records-forms.adhoc-filter-sort-builder covers chips and builders only · carrier: PR body · noted, not filed" ] }Generated by Claude Code
docs(qa): checklist item for the list column-header menu and the sort…