Repository navigation
feat(record-page): a related tab's menu moves and hides it, and 「更多」 restores the default order - #35818
Conversation
…es the default Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY
…e fixed tabs; add the checklist item Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY
…here moving and hiding went Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY
… reader arrangement is back Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY
|
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY Final head for L1: Readings
What it changes
Tests
Not filed (noted)
|
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对ACCEPT · head Routing: no Checked:
No required item. Nit (no action required):
|
|
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY Landing · area ux-1 · 2026-11-20T10:11Z
Head |
Requested by Bill · project thread
Fixes #35783
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
A reader arranges the record page's related lists from their tabs again. The related cards that carried the ⠿ handle, ⌥↑ / ⌥↓ and 「隐藏」 left the page with #35763; the maintainer's decision on that removal was 「先合并,另开卡恢复」.
editRelatedArrangementinsynth/relatedArrangement.ts(move = itsmove-up/move-down, hide =hide, reset =restore-default-arrangement), into the same per-reader, per-object workspace preference the cards wrote. A stored order and stored hides keep working, and the rail's 「已隐藏 N · 显示」 / 「恢复默认顺序」 foot still undoes them on a full page.detail.relatedCardHide, the reset reusesdetail.relatedRestoreDefaultOrder, the bare trigger reusescommon.more. No key fitted 「左移」 / 「右移」, sodetail.recordTabMoveBefore/detail.recordTabMoveAfterare added in all eleven packs. They are named by position in the row, not by side: in Arabic, where the row runs right to left, "before" reads as "move right".RelatedCardStack.tsxanduseRelatedArrangement.ts. Nothing else imported them once their two foot-line helpers (RelatedDefaultChangedHint,RelatedFootLine) moved intoRecordPageColumns.tsxas module-local components, and neither is exported from the package.RelatedCardMenu.tsxis not deleted:RelatedList.tsxstill imports it (outside this card's fence). The reducer's tests (synth/__tests__/relatedArrangement-27055.test.ts) are untouched.RecordDetailView.tsxis not touched. The drawer goes through the sameRecordPageColumnspath withrail={false}, and the host already passes the stored arrangement and its setter.Size: 21 files, +535 / −461 (996 changed lines; 435 of the deletions are the two removed files).
Tests
New pins (plugin-detail, in the shared harness file RecordPageColumns.readerArrangement-35595.test.tsx, as a new top-level describe)
rail={false}, no foot line); CONTROL: in the default arrangement there is no 「更多」 at all.aria-haspopup; CONTROL: an open list's tab carriesaria-haspopup="menu"and opens its menu.Playwright (ui/e2e/record-tabs-rail-35595.spec.ts, new top-level describe, Chromium, zh-CN)
Migrated and retired tests
RecordPageColumns.readerArrangement-35595.test.tsx(header now says the move and hide came back on the tabs; its nine existing cases are unchanged),ui/e2e/record-tabs-rail-35595.spec.ts(header bullet and the new describe; its five cases are unchanged).RelatedCardStack-27055.test.tsxwas already retired by feat(record-page): one tab per related list, and an Overview rail that sums up the other tabs #35763, anduseRelatedArrangementhad no test of its own.Platform checklist
records-forms.related-tab-arrangement(revision 1) indocs/qa/platform-checklist/areas/records-forms.json: move, hide, reload persistence, the reset in 「更多」, the fixed tabs, the drawer, and the pins. It was read from source on this branch; no live run was made.Runs (all heavy runs through scripts/pm/os-verify-lock.sh)
pnpm exec vitest run packages/plugin-detail/ packages/i18n/ packages/app-shell/src/__tests__/defaults-maps-mirror-en-pack.test.tsx(from ui/): Test Files 498 passed / 1 skipped, Tests 5549 passed / 31 skipped, VERDICT command-exit 0. This ran at 819ea87; the only later commit, 17dd9e4, touches.changeset/alone.RecordPageColumns.readerArrangement-35595.test.tsx: 15 passed (9 existing + 6 new).record-tabs-rail-35595.spec.ts, Chromium: 6 passed (5 existing + 1 new).@object-ui/plugin-detailand@object-ui/i18n(tsc --noEmit && tsc -p tsconfig.test.json): both Done, VERDICT command-exit 0.type-check:e2e(ui root): VERDICT command-exit 0.pnpm --dir ui exec vitest run scripts/: 171 files passed / 2 skipped, 5092 tests passed, VERDICT command-exit 0.pnpm turbo run build --filter='@object-ui/plugin-detail^...' --concurrency=2, 52/52 tasks, VERDICT command-exit 0.Ablations (each through scripts/ablation-replace.mjs: the anchor hit once, the blob changed, the file was restored with blob == HEAD and an empty git diff HEAD)
The subject is imported from
src/by relative path, so no build sits between the edit and the test.move-up/move-downedit replaced by a no-op): the 左移/右移 pin went red, 1 failed / 14 passed.hideedit replaced by a no-op): the 隐藏 pin went red, 1 failed / 14 passed.onResetArrangementreplaced byvoid 0): both reset pins went red, 2 failed / 13 passed. The first attempt used the replacementundefined, which the tool refused because the text already occurs in the file. It ran nothing and restored, and was redone withvoid 0.arrange): the fixed-tabs pin went red, 1 failed / 14 passed.Acceptance notes
aria-haspopup="menu"on a tab is allowed) and the row's width measuring stays the same. The ▾ is measured only on the open tab, so inactive tabs keep their width and the fold is unchanged. To move a list that is not open, the reader opens it first.RelatedCardMenu.tsxstays becauseRelatedList.tsximports it. WithRelatedCardStackgone, nothing in production providesRelatedCardChromeContext, soRelatedList'scardChromebranch (the ⠿ handle and the ⋯ 隐藏 menu) can no longer draw on a page. Only its tests provide the context. That is dead code outside this fence; not filed.RelatedCardStackinRecordDetailView.tsx(around lines 1277 and 4327),RelatedList.tsx(around line 1370) andui/packages/plugin-detail/README.md(line 849). All are outside the fence and were not touched.mark-seenstamp were the cards' (useRelatedArrangement). They do not come back on the tabs, and a relationship new since the reader's last move is still placed by the reducer's rule 3.Verification
Two-minute check: open a record with three or more related lists at 1280 × 800. Open the second list's tab and click it again; expect 左移 / 右移 / 隐藏. Choose 左移, and the tab moves one place left. Choose 隐藏 on another list: the page returns to 概览, and 「更多」 lists it under 已隐藏 with 恢复默认顺序 at the end. Choose 恢复默认顺序: the default order comes back with every list. Do the same in the record drawer.
Read first:
ui/packages/plugin-detail/src/RecordTabRow.tsx: the related tab wrapped as a controlledDropdownMenutrigger, and itsonOpenChange/onKeyDown. A tab that is not open must select, not open a menu.ui/packages/plugin-detail/src/RecordPageColumns.tsx:arrangeTab(hiding the open tab closes its face) andonResetArrangement(offered only whileresolved.rearranged).ui/packages/plugin-detail/src/synth/recordTabRow.ts:alwaysInDropdownnow counts the reset entry, which makes the dropdown exist.Gates: on head 17dd9e4,
dispatch-gates.mjs --commandsderived 48 families and all 48 ran locally (--ran: 48 derived, 48 run, 0 NOT-MEASURED). On head 95aefa1, which only restores #35763's changeset and rewrites this PR's own, the changeset families were run again and every one exited 0:check-empty-changeset --base origin/mainand its--self-test,check-changeset-no-major,check-adr-0087-registrationand its--self-test,check:changeset-gate-self-tests,check-closing-keyword-parityand its--self-test,check:nul-bytes.check-platform-checklist --changed-from origin/main: OK, 2 anchors judged, 0 lost.overlap-checkbefore each push exited 0 (it shares the locale files with #35747, which merges cleanly). The wide run belongs to CI.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY