Repository navigation
fix(plugin-list): a list's column header opens a menu and keeps a multi-level sort; a sort chip opens the sort panel - #35909
Conversation
…rt; sort chip opens the sort panel Co-Authored-By: Claude <noreply@anthropic.com>
…rtBuilder reordering Co-Authored-By: Claude <noreply@anthropic.com>
…lace and the one-button builder row Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — REWORK (L1-b)Head-sha: 维护者速读
Must-fix
Checked and fine
Nits (no rework needed; fix in the same push if convenient, else drop)
Owed before landing
|
…row e2e spec DropdownMenuContent does not type onOpenAutoFocus, so the declaration build failed. A keyboard-opened column menu now focuses its first entry from an effect once the content mounts. The condition-row e2e spec read the old sort chip testid and a header click that sorted; the header now opens the column menu and the entry chosen there sorts. Review nits: a sort chip's panel is a required prop of ConditionChipRow, the unread toggleSort fallback is dropped, and a header that opens the menu shows a focus ring. Co-Authored-By: Claude <noreply@anthropic.com>
…rder key Co-Authored-By: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — delta ACCEPT (L1-b), CI red owedHead-sha: 维护者速读
Delta read
CI at this head (blocks landing)
Still owed
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Flake reading · 2026-11-20T18:40Z · |
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — delta ACCEPT (L1-b), regen onlyHead-sha: 维护者速读
Delta read
CI at this head
Still owed
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Posted 2026-11-20T18:55Z. The brief handed to the isolated declaration-face reviewer for PR #35909 (owed by the PR's Contract review brief — PR #35909 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: Inputs read: card #35876 (body and all three comments: claim 7045047594, triage 7045201347, dev report 7047105023), PR #35909 (body, six commits, 37 files), the net diff ① Derived judgmentsGate verdicts at this head: 52 success, 12 skipped, 0 failed, 1 in progress. The one in progress is Public-surface changes:
Accept-set changes, against the card:
② Semver levelThe changeset Clause-②: yes (widening), correct. The diff adds two exports, one optional prop and one locale key, and removes or renames nothing on a package entry. The only removals ( ③ Boundary flags
Must-fix: none. Should-fix:
Nit: Hide column removes the header the menu was opened from, so the menu's close-focus target is detached and focus falls to the body. Implemented-by: VERDICT: PASS |
…raggable sort handle Under GridHeaderMenu a header that does not sort now opens the column menu with Hide column alone, and its click still changes no sort. Hide column moves focus to the header beside the hidden one. The sort builder's handle is a span with role button and a tab stop, since Firefox starts no HTML5 drag from a button. The condition-row e2e spec drags a handle in a chip's panel. Co-Authored-By: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — delta ACCEPT (L1-b)Head-sha: 7dcbb2e · read 2026-11-20T19:25Z · delta 046c89d..7dcbb2e only (one commit) · L1 only, never an L2 维护者速读
Checked
Nit (non-blocking)
Owed
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Posted 2026-11-20T19:28Z. The DELTA brief handed to the same isolated declaration-face reviewer for PR #35909 (delta of its record 7048122153 on Contract review brief — PR #35909 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: This is a delta record. It covers ① Derived judgmentsGate verdicts on this head: CI is still running. 15 success, 12 skipped, 34 in progress, 0 failed. Among the success checks are
None of those running checks is answered yet. The PASS below holds only once every check on
② Semver levelUnchanged and still right. The changeset sets ③ Boundary flags
Must-fix: none. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob L2 adoption and landing · 2026-11-20T19:46Z · The seat adopts the isolated declaration-face L2 delta record 7048693262 on head L1-b REWORK 7046835312 at |
…-level reorder (objectstack-ai#36415) <!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Steedos** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbGyo1s5XDjcEx7u8WDqbFTx)_ Fixes objectstack-ai#35922 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户无感:只是测试清单多了一条列表页检查项(点列标题弹菜单、多级排序调先后),并改正了一句过时的步骤说明。 - 属于列表页重做这一组工作,补上了列标题菜单功能上线后测试清单里缺的那一块。 - 出错只会让测试人员按错的步骤操作,不影响任何用户,可以直接撤回。 - 无 ## What changes - New item `records-forms.list-header-menu-and-sort-levels` (P2, browser, since v18.7), placed right after `records-forms.adhoc-filter-sort-builder`. It drives the two things objectstack-ai#35876 added to the list page (PR objectstack-ai#35909), read from the shipped source at base 4e55e4e: - a click on a column header opens the column menu (Sort ascending / Sort descending / Hide column) and changes no sort; a second click shuts it; - the entry chosen is the server sort (`sort=-due_date`), and over two levels or more the picked column becomes the first level while every other level keeps its place (`withHeaderSortPick`); - keyboard: Enter, Space or ArrowDown on the focused header opens the menu with focus on the first entry; Esc shuts it without touching the sort and gives focus back to the header; - a header that does not sort (showcase_task's Project, a master_detail column) opens a menu with Hide column alone; - a click on the sort chip opens every level in one panel and never flips a direction; - the sort panel's handles reorder the levels by ArrowUp / ArrowDown (the handle keeps focus, nothing happens past either end) and by drag; a single level's handle is disabled. It cites the four pins objectstack-ai#35909 added as `automated` and an acceptance clause, and anchors `source` to `GridHeaderMenuProvider`, `openHeaderMenu`, `withHeaderSortPick`, `handleHeaderSort` and `moveItem`. - `ux-conventions.write-feedback` revision 17: `variants[8]` said a click on a Studio Records grid header "sorts the column (QA run objectstack-ai#33914)". On main that click selects the field and opens its properties and never sorts; sort and hide are in the header's 'Sort and hide' caret menu. This was made false by objectstack-ai#34794 (Studio's capture-phase header handler), not by objectstack-ai#35876; objectstack-ai#35876 only turned that caret menu into a `role=menu`. No clause changed. ## Tests No code changed. `pnpm check:platform-checklist` (self-tests and the ledger) passes at 0e001f0, and the new item's seven `#symbol` anchors resolve (1754/1764 before, 1761/1771 after). ## Acceptance notes - The card listed "add to the existing sort" as a menu entry. The shipped menu has no such entry: with two levels or more a pick puts the column first and keeps the other levels. The item follows the code. - The record page's related list also opens the header menu (`headerMenu: true` in `ui/packages/plugin-detail/src/RelatedList.tsx`). No checklist item drives that host. Noted here only. - No live run was made. The item is authored from source, as its history row says. ## Verification Files to read first, riskiest first: 1. `docs/qa/platform-checklist/areas/records-forms.json`: the new item's `acceptance[2]` (the three-level request strings). 2. `docs/qa/platform-checklist/areas/ux-conventions.json`: `variants[8]`'s rewritten last clause. Two-minute check: `node scripts/checklist-select.mjs records-forms.list-header-menu-and-sort-levels` resolves the item, and `pnpm check:platform-checklist` prints `check-platform-checklist: OK — 16 areas, 437 items`. <details><summary>Gate readings at 0e001f0</summary> ``` check-platform-checklist: OK — 16 areas, 437 items (429 active, 3 planned); coverage: 40 kinds mapped, 4 waived; traps: 19 documented, 19 in use; ... symbol anchors: 1761/1771 resolved dispatch-gates --ran: 17 derived famil(ies) accounted for — 17 run, 0 NOT-MEASURED overlap-check: VERDICT clean exit 0 ``` Every derived family exited 0: check-adr-links (and --self-test), check-closing-keyword-parity (and --self-test), check-comment-mask-corpus, plan-test-core-shards --self-test, lint check:doc-formula-expressions (after building formula and lint), check:adr-anchors, check:ci-filter-parity, check:cross-package-test-inputs, check:doc-authoring, check:driver-memory-census, check:gitlink-declared, check:nul-bytes, check:platform-checklist, check:refd-timer-probe, check:watch-hint-literal. </details> ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. (No code changed; CI runs it.) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (Nothing publishes: `skip-changeset`.) - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (Not touched.) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01QsR2jTqAcPU4VyEPH7iVn2 Co-authored-by: Claude <noreply@anthropic.com>
Requested by Sales · project thread
repo:objectstack#1 · os-sales · session_01L6bhgTXY4rajwZcQmpLxS2
Fixes #35876
Clause-②: yes (widening) — new members on the
@object-ui/componentsentry:GridHeaderMenuProvideranduseGridHeaderMenu; a new optionalheaderMenuruntime prop onObjectGrid(@object-ui/plugin-grid); a newsortBuilder.reorderkey in every@object-ui/i18nlocale; nothing removed or renamedMetadata-protocol: none
Flow: dev-thread rule (maintainer 2026-11-20 09:22:50Z 「所有 p1 都按照新规则执行」): the card thread builds itself; L1 and the isolated L2 run in parallel at hand-back (epic #35547 child, run under that rule by the seat's claim 7045047594).
维护者速读
What changes
The list page's column header opens a menu (
@object-ui/componentsdata-table,@object-ui/plugin-grid,@object-ui/plugin-list). Only a table under the newGridHeaderMenuProviderchanges;ObjectGridmounts it when its host passesheaderMenu, andListViewpasses it on the object-grid it draws (besidecellSelection, the same reach as #35683's ruling 7035276698, as the seat routed). Every other table keeps click-to-sort.tabIndex 0,aria-haspopup="menu",aria-expanded); Enter, Space or ArrowDown opens the menu with its first entry focused; the arrows move, Enter chooses, Esc shuts it without touching the sort, and focus goes back to the header.sortable: false, a masked column) opens the same menu with Hide column alone; its click changes no sort, as before (L2 S1).DropdownMenu(non-modal, like the row context menu), wherever it opens: the header under the provider, a right-click on any header, and the design host's caret (Studio 数据栏:「添加字段」常驻工具栏,点列头改字段,名称列排第一,字段属性面板先显示名后内部名 #34794). Its entries arerole="menuitem". A press on the control it was opened from is that control's own toggle.The header menu keeps a multi-level sort (
ListView.handleHeaderSort). The table still hands back the one column picked. With no sort or a single level, that column replaces the sort. With two levels or more it becomes the first level and every other level keeps its order after it; a column already in the sort moves up with the picked direction. No level is dropped. Persistence is unchanged (the sameonSortChangeas before, saved as the reader's own).A sort chip opens the sort panel (
ConditionChipRow,ListView). A click on a sort chip opens every level in one popover (the Sort panel's 「全部排序级别」 body,sortPanelBody: the reset-to-default row, theSortBuilder, the notes) and changes nothing; the chip no longer reverses its direction. The chip's × and its drag between chips are unchanged.toggleSortOrder(its only caller was the chip) is removed from the internalconditionModel.ts, andConditionChipRow'srenderSortLevelsis required, so a sort chip is never a button with no action.The sort builder reorders its levels (
@object-ui/componentsSortBuilder). The card asked to check the existing 「全部排序级别」 entry first: it opens theSortBuilder, which could not reorder levels, so the handle is added there. Each level row starts with a handle (sortBuilder.reorder, 「拖动以调整先后」): drag it onto another row, or press ArrowUp / ArrowDown on the focused handle (focus stays on the moved row's handle). The handle is aspanwithrole="button"and a tab stop, not a<button>, because Firefox starts no HTML5 drag from a button (L2 S2; the repo's line-items grid handle is built the same way). A single level draws itaria-disabledand out of the tab order. The builder's drag events stop at the builder, so a host that draws it inside its own drag target (the sort chip) cannot undo the move (found in the browser, pinned in jsdom). Belowsmthe handle takes a column beside the level's three lines.For the phone cards (#35880, #35884)
The sort panel's content is
SortBuilderfrom@object-ui/components:fields(value, label, optionaldisabledandtype),value: SortItem[]andonChange(next: SortItem[]). It reads nothing from the list and writes nothing itself; every add, remove, direction change and reorder goes throughonChange. So a phone bottom sheet can draw the same component and hold a staged copy for the 「点 ✓ 才生效」 layer, with no second save path.ListView'ssortPanelBodywraps it with the reset-to-default row and the notes for the desktop popover; that wrapper is ListView-internal and the phone container can reuse it or drawSortBuilderdirectly. The header-menu merge rule lives inListView.handleHeaderSort(phones draw no column headers, per the card).Touch:
SortBuilderreorders by mouse drag (HTML5 drag and drop) and by ArrowUp / ArrowDown on the handle. Neither works on a touch screen, so #35884 needs a touch reorder affordance of its own (for example up / down buttons, or a touch drag), still writing through the sameonChange.Why
#35876: on a two-level sort, a header click left a single level and stored it; a sort chip reversed its direction at once. The maintainer agreed the fix (「刷新去掉,其他同意」, then 「按这版立卡」), with 「已有多级时放到第一级」 rather than "replace and offer undo".
Acceptance notes
ListViewdraws get the header menu. Related lists, dashboard tables, report tables and otherObjectGridhosts keep click-to-sort (seat routing 16:39Z).listConditions.chips.toggleSortstring is no longer read (the chip is named by its field and direction,aria-haspopup="dialog"); the key stays in the published locales, and only the internal fallback inconditionTranslations.tsis dropped.sortable: false, a masked column) opens the menu with Hide column alone, since a sort entry there would offer a sort the column refuses.focus-visiblering.docs/qa/platform-checklisthas no item that drives the header menu or the level reorder;records-forms.adhoc-filter-sort-buildercovers the chips and builders but says nothing contrary, so no item is changed here.Tests
New:
ui/packages/components/src/renderers/complex/__tests__/data-table-header-menu-35876.test.tsx— a header click opens the menu (three menu items) and changes no sort, a second click shuts it; the chosen entry is what the table hands its host; the multi-level marks stay; keyboard Enter → first item focused → ArrowDown → Enter sorts descending and focus returns; Esc shuts with no sort and focus returns; a non-sortable header opens a menu with Hide column alone, is a tab stop, and changes no sort; Hide column from the keyboard moves focus to the header beside it; CONTROL without the provider a click sorts and draws no menu.ui/packages/plugin-list/src/__tests__/ListView.headerMenuSort-35876.test.tsx— ListView asks the grid forheaderMenu; the card's four merge cases (two levels + new column → three, new first; two levels + an existing column descending → it moves first; no sort → that column; one level → replaced); a chip click opens the panel with every level and leaves the direction alone; ArrowUp on the second handle makes it the first level and the grid's sort and the chip priority follow; a mouse drag of the third handle onto the first row moves it there and the chip around the panel does not undo it.ui/packages/components/src/__tests__/sort-builder-reorder-35876.test.tsx— named handle per level, a draggable tab stop that is not a<button>; ArrowUp / ArrowDown; arrows past either end change nothing; drag onto a row; a drop with no drag of this list in flight is left to the host; a single level's handle isaria-disabledand out of the tab order.Migrated (the behaviour they pinned is replaced by this card):
ListView.sortFieldFallback.test.tsx› "restores the two-level default … after a header click flattened it" → "… after a header pick changed it": the pick now yields three levels, reset still restores the declared two. "CONTROL — the header click itself still replaces the whole sort array" → "CONTROL — a header pick over a two-level sort puts its column first and drops no level".listConditions.test.tsx› "… and flip on click" → "… and open the sort levels on click without flipping".ListView.conditionRow-35549.test.tsx› the Reset case made the sort differ by flipping the chip; it now removes the chip instead.data-table-header-column-menu-34794.test.tsxandapp-shell/…/DataPillar.recordsTab-34794.test.tsx: the menu's entries are read asmenuitem, notbutton.list-builders-phone-width-29074.test.tsx: the row's phone grid gains the handle column.sort-builder-disabled-entry-11943.test.tsx,ListView.sortRemovableOnly-11943.test.tsx,ListView.sortPersistLeak.test.tsx,ListView.withheldFields-34901.test.tsx: a builder row now holds two buttons, so its remove control is found by name.clickableNonControlCensus-13461.test.ts: the column menu'sdiv · stopPropagationwrapper is gone (repaired), so its declared row is deleted.ui/e2e/list-condition-row-35549.spec.ts(Build & E2E UI) › the sort case: the chip is read assort-chip-open-amount; "a header click shows as a chip" → "a header menu pick shows as a chip": a header click openscolumn-context-menuand leaves the sort empty, then Sort descending givesamount:descand its chip. The same case now also opens a chip's panel and drags the second level's handle onto the first row with PlaywrightdragTo(a real pointer drag in Chromium).Voided: none.
Verification
vitest(fromui/), base of the runfc35f473plus the migrations:packages/components,packages/plugin-list,packages/plugin-gridwhole — 971 files, 9291 tests: 12 failed, all old pins listed under Migrated; after the migrations the 11 affected files re-run: 11 passed, 103 tests, 0 failed (plussort-builder-reorder-35876after its host fix, 6/6).packages/app-shellwhole: stopped after 53 minutes on the shared box without a summary → NOT MEASURED locally; CI's UI test job runs it. The app-shell file this PR migrated (DataPillar.recordsTab-34794) anddefaults-maps-mirror-en-packpass on their own.663cd467): the 5 affected unit files 79/79 passed;ui/e2e/list-condition-row-35549.spec.tsunder Playwright chromium (local config without the preview web server): 3/3 passed.eslinton every changed.ts/.tsxfile: 0 errors (warnings only, pre-existing kinds).node scripts/pm/dispatch-gates.mjs --commands: 42 derived commands, run one by one onc3e4d776: 40 exit 0; the other two re-run on663cd467:pnpm --dir ui exec vitest run scripts/exit 0 (172 files, 5111 tests passed, 2 skipped),pnpm check:type-check-debtexit 0.c3e4d776failed Build & E2E UI, Type Check UI and Lint UI on one error:DropdownMenuContentdoes not typeonOpenAutoFocus(TS2322 in the@object-ui/componentsdeclaration build). Fixed in663cd467(the first entry is focused from an effect). Locally on that tree: the@object-uiclosure build (turbo run build --filter=@object-ui/plugin-list^... --filter=@object-ui/plugin-grid^..., which runs the components declaration build with fail-on-type-errors) exit 0;pnpm run type-checkincomponents,plugin-grid,plugin-list,i18n: exit 0 each.663cd467: every check green butTest UI (16/16):packages/i18n/src/__tests__/zh-hant-generated.test.ts—zh-Hant.tsis generated fromzh-Hans.tsand the hand-writtenreorderstring differed from the converter's (拖曳 vs 拖動). Regenerated withpnpm --filter @object-ui/i18n gen:zh-hantin046c89d3; that file 11/11 andpackages/i18nwhole 1957 passed locally.7dcbb2e8:packages/components,packages/plugin-listandpackages/plugin-gridwhole under the verify lock — 971 files passed (1 skipped), 9274 tests passed, 24 skipped, 0 failed.ui/e2e/list-condition-row-35549.spec.tswith the new handle drag step, Chromium: 3/3. Studio header tests (StudioDesignSurface.leafColumnSelection-12725,DataPillar.recordsScroll-35061,DataPillar.recordsTab-34794): 21/21.type-checkincomponents: exit 0; eslint on the changed files: 0 errors.spanlike the line-items grid's handle; Chromium's realdragTopasses on it.node scripts/pm/overlap-check.mjs: VERDICT clean (merges cleanly withorigin/main8c18a362; no open PR shares a file).457c7b3c, before docs).examples/app-showcase(objectstack dev --seed-admin, own port and DB) with theui/apps/consoleVite dev server over it, headless Chromium 1400×900, zh-CN, the task list (showcase_task). Before =main8c18a362; after = this branch'sui/sources over the same server.priority descalone, and a reload kept it; a click on the sort chip flipped it toascat once.dragTo) of the third level onto the first moves it there and the marks follow. Keyboard: focus the progress header, Enter opens the menu, ArrowDown + Enter → progress desc first, the other three after it.Human Minimum
packages/specholds no runtime logic. (not touched)pnpm lintpasses. (eslint on the changed files: see Verification)main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgTXY4rajwZcQmpLxS2