Repository navigation
feat(components): the record's close button moves to the left of the top bar's navigation row - #36603
Conversation
…vigation row RecordTopBar gains an optional `close` slot: the two-row bar draws it as the first control of the navigation row, before `leading`; the one-row bar keeps it last at the right end. The drawer (NavigationOverlay) and the record page hand their close button through it; the expand button stays in `frame`. Claude-Session: https://claude.ai/code/session_01ADHkmRB34k9WUWeGpRnVNm Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmRB34k9WUWeGpRnVNm Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-steve · session_01ADHkmRB34k9WUWeGpRnVNm Contract-review-claim: session_01ADHkmRB34k9WUWeGpRnVNm · head 152e0ff · 2026-11-23T02:55Z |
|
repo:objectstack#2 · os-steve · session_01ADHkmRB34k9WUWeGpRnVNm Contract reviewServed-tier: The face is the ① Derived judgments
② Semver levelpatch for ③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-steve · session_01ADHkmRB34k9WUWeGpRnVNm 席位核对ACCEPT — PR #36603 @ 152e0ff (head of record, full sha on the PR) · card #36557 · L1 first read by area s2-B (area order rule 9) · 2026-11-23T03:17Z · contract review TIER_DEFAULT PASS 7090342552 at the same head
|
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 45105220119 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#2 · os-steve · session_01ADHkmRB34k9WUWeGpRnVNm Re-queue after a flake — PR #36603 @ 152e0ff (head unchanged since ACCEPT 7090632634) · 2026-11-23T03:58Z
|
Requested by Steve · project thread
Fixes #36557
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
What changes
RecordTopBar(@object-ui/components) takes a new optional prop,close(a ReactNode slot shaped likeleadingandframe), for the button that closes the record. The two-row bar draws it as the first control of the navigation row, beforeleading, ↑ ↓ and the "N of M · view" counter. The one-row bar (the phone face, and drawers whose host hands no record row) draws it last at the right end, afterframe, which is where the close button sat before, so those faces do not change. The docblock describes the new placement.NavigationOverlaypasses its close button asclose. Only the expand button stays inframe. On the drawer, split pane and maximized pane, the close button is now at the top left and the expand button stays at the right.RecordDetailView(page face; only thepageFramehunk): the page's close button (record-page-close) moves frompageFrametoclose.pageFramenow holds only the shell's button group. Page order: the close button, then the host'sleading(the sidebar expand control, then the breadcrumb).Clause-②: yes (widening). The changeset is.changeset/36557-record-top-bar-close-left.md(@object-ui/componentspatch).@object-ui/app-shellis private and needs no changeset.Read first, by risk:
ui/packages/components/src/custom/record-top-bar.tsx: the two-row navigation row (the newdata-record-top-bar-closewrapper drawn before the leading div) and the one-row controls ({close}after{frame}, plus the two divider conditions that now countclose).ui/packages/app-shell/src/views/RecordDetailView.tsx:pageClose/pageFrame. This hunk is disjoint from feat(console): an administrator configures the record page's tabs in place (#36499, PR 1 of 2) #36583's hunks in the same file.ui/packages/components/src/custom/navigation-overlay.tsx:framekeeps the expand button only;closetakes the close button.Two-minute check: open any record from a list in the console and look at the drawer. The close button is the leftmost control of the top row, and the expand button is the rightmost. Click "Open as full page": the page shows the close button leftmost too. Click it and you are back on the list.
Tests
record-top-bar-two-rows-35853.test.tsx(components) is rewritten. Two-row bar: the navigation row's buttons in DOM order start with Close and end with the frame's expand button. One-row CONTROL: the close button is the last element of the controls, right afterframe, and there is nodata-record-top-bar-closewrapper. Drawer (NavigationOverlay): the first nav button is Close, the last is "Open as full page",frameholds only the expand button, and clicking the close button calls the host'sclosehandler once.RecordDetailView.topBar-27524.test.tsx(app-shell) is rewritten for the page face. The first button of the navigation row isrecord-page-close, its aria-label is "Close", and it is not insideframe. It still navigates to the object's list. With the shell group on, the group sits inframewithout the close button. With the shell group off,frameis empty and the close button is still first.record-top-bar-27524.test.tsxis unchanged and stays green. It pins the one-row drawer's right-end order (… "Open as full page", "Close").The verification readings are in the collapsed sections below.
Acceptance notes
close(its right end is the⋯slot), and every one-row bar drawscloselast at the right. No matching phone change is needed for this card.overlap-checkreports this branch against draft PR feat(console): an administrator configures the record page's tabs in place (#36499, PR 1 of 2) #36583 because both touchRecordDetailView.tsx. The hunks are disjoint (feat(console): an administrator configures the record page's tabs in place (#36499, PR 1 of 2) #36583 never touchespageFrame/record-page-close). The area lands this PR after feat(console): an administrator configures the record page's tabs in place (#36499, PR 1 of 2) #36583 merges, and this branch mergesmainfirst.NavigationOverlay's[&>button:last-of-type]:hidden, as before. The drawer test therefore clicks the bar's close button inside the navigation row instead of looking it up by role.Verification
Screenshots: the page and the drawer, before and after (CRM example, 1440 px wide)
I ran my own stack: the CRM example backend (
--fresh, a random port) and the console's Vite dev server pointed at it, then drove it with Playwright on Chromium. "Before" swaps in main's three source files (git restore --source=f4c2d0b1b9) and "after" uses this branch's head. Afterwards the files were restored to HEAD (git hash-objectequals the HEAD blob for all three, andgit diff HEADis empty). The servers were stopped by their own ports./mnt/project-files/objectstack-seat2/36557-page-before.png. Navigation-row buttons in DOM order:["Comments","Edit app","Help & Documentation","Close"]./mnt/project-files/objectstack-seat2/36557-page-after.png. Order:["Close","Comments","Edit app","Help & Documentation"]. The close button sits at the far left, before the "Accounts" breadcrumb. The shell group stays at the right./mnt/project-files/objectstack-seat2/36557-drawer-before.png. Order:["Previous record","Next record","All Records","Open as full page","Close"]./mnt/project-files/objectstack-seat2/36557-drawer-after.png. Order:["Close","Previous record","Next record","All Records","Open as full page"]. The close button is at the top left and the expand button stays at the top right.The sidebar was expanded in these runs, so the page's sidebar-expand control was not drawn. When it is drawn, it follows the close button because it belongs to
leading.Tests: affected package tests and type-check at dc760d8 (the implementation head, before the main merge)
pnpm --dir ui exec vitest run --maxWorkers=2 packages/components/plus every app-shell and console test file that mentions the bar orrecord-page-close(15 files):Test Files 521 passed | 1 skipped (522),Tests 5186 passed | 24 skipped (5210),os-verify-lock: VERDICT command-exit 0.pnpm --filter @object-ui/components run type-check:VERDICT command-exit 0.pnpm --filter @object-ui/app-shell run type-check:VERDICT command-exit 0.main(f4c2d0b) brought no change to the bar, its hosts or their tests.overlap-checkat 152e0ff:#36583 (shares ui/packages/app-shell/src/views/RecordDetailView.tsx): merges cleanly,VERDICT clean exit 0.Ablation: putting the close button back at the far right turns the new pins red
Mutation in
record-top-bar.tsx, made withscripts/ablation-replace.mjsand confirmed on disk by the tool's own counts and blob hashes:{close !== undefined && (became{false && ((anchor count 1 then 0);{close}was appended after{frame}in the two-row frame div (anchor count 1 then 0).The test resolves the component from
srcthrough a relative import, so nodistwas involved.record-top-bar-two-rows-35853.test.tsxgivesTests 3 failed | 2 passed (5). The three failures are the two-row list case, the no-list case and the drawer case. The two that pass are the Chinese counter and the one-row CONTROL, as expected.ok restored: blob == HEAD (b1efd8f95bfa) and git diff HEAD is empty.Derived gate families: 38 of 38 run at 152e0ff, with the ledger and its reconciliation
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackat 152e0ff (the merge of main f4c2d0b) derived 38 commands. I ran each with stdin from/dev/nulland captured the exit code before any pipe. Ledger:/mnt/project-files/objectstack-seat2/36557-gates-ran.txt.pnpm --dir ui exec vitest run scripts/first recorded exit 99: it never got the lock because the CRM build held it, so it was not measured. The re-run under the lock exited 0 (Test Files 172 passed | 2 skipped (174),Tests 5127 passed | 2 skipped (5129)). The ledger keeps both lines.--ranreconciliation:Run reconciliation — 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN. The tool flags the doubled vitest entry and reads it as 99 until the record holds a single line; the 0 above is the re-run.overlap-checkVERDICT clean exit 0(feat(console): an administrator configures the record page's tabs in place (#36499, PR 1 of 2) #36583 merges cleanly);pnpm check:new-line-citations0 new citation(s);check-nul-bytesexit 0. After the merge, the three top-bar pin files:Tests 26 passed (26).Lint & Repo Gates,TypeScript Type Check,Test Core,Governed Surface Queue Guard,Lint UI,Type Check UI,Test UI(16/16 shards),Build & E2E UI,Live E2E UI,Dogfood Regression Gate. Skipped:Build Core.Check Changesetis also success.🤖 Generated with Claude Code
https://claude.ai/code/session_01ADHkmRB34k9WUWeGpRnVNm