Repository navigation
feat(record-page): two-row record header — navigation over the record, up to three actions - #35983
Conversation
…on budget 3 with width folding The record page and the side drawer draw a navigation row (back/trail, prev/next with the position in the list, the close button at the far right) above a record row (icon, title one size larger, actions). The header bar's authored-action budget returns to 3; actions that do not fit the bar's width fold into the overflow menu. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Cbrs4FaLzn1HMmRDi1
…pen path and the two-row header Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Cbrs4FaLzn1HMmRDi1
… for the open path and the two-row header Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Cbrs4FaLzn1HMmRDi1
…criptions Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Cbrs4FaLzn1HMmRDi1
… badges Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Cbrs4FaLzn1HMmRDi1
📓 Docs Drift CheckThis PR changes 1 package(s): 1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 2 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 174 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 162eb2ddc7021d4b76264740ad0b7e680c88822b && git checkout 162eb2ddc7021d4b76264740ad0b7e680c88822b
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin fe753492ff75316c6325fb3f9db920386e61d3a0 b69bbad5336575ca10b6a088ea42734d4fef681b && git checkout -B drift-repro fe753492ff75316c6325fb3f9db920386e61d3a0 && git merge --no-ff b69bbad5336575ca10b6a088ea42734d4fef681b
node scripts/docs-audit/affected-docs.mjs --json fe753492ff75316c6325fb3f9db920386e61d3a0
|
…none requires Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Cbrs4FaLzn1HMmRDi1
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Cbrs4FaLzn1HMmRDi1
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Cbrs4FaLzn1HMmRDi1
|
repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU Final head — 2026-11-21T05:02ZHead Commits after the draft opened (0aff0e4), all CI fixes:
No behaviour changed after the local runs in the body: vitest 141 files, the live lane 10/10. Overlap is unchanged: #35977 conflicts only in the generated Generated by Claude Code |
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对ACCEPT · head reviewFace (changeset as
R1, a text-only claim amendment: the diff touches files outside claim 7042033558. These are
|
…page only Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Cbrs4FaLzn1HMmRDi1
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ Contract reviewServed-tier: Inputs read: card #35853 (body and its 5 comments), PR #35983 (body, the 24-file list, the net diff against ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
N1 (nit) — the width-fold clause sits inside the sentence that opens "Renderer default when unset:", but the renderer applies it to an authored value too (
S1 (should-fix) — N2 (nit) —
S2 (should-fix) — the Open on this head: S1, S2. Nits N1 and N2 do not hold the round. Implemented-by: VERDICT: PASS |
…er bound in the bar; the changeset declares its widening Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Cbrs4FaLzn1HMmRDi1
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对delta ACCEPT (on ACCEPT 7057677292) · head reviewFace (changeset as
No required item at L1. |
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ Contract reviewServed-tier: Delta on record 7057806258 (head ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
S1: closed The changeset's reworded no-list sentence ( No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU Landing · area ux-4 · 2026-11-21T06:00Z
Head |
…-ntrvrh # Conflicts: # scripts/sdui-manifest.record.json
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Cbrs4FaLzn1HMmRDi1
…pper bound Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Cbrs4FaLzn1HMmRDi1
…entre of the list (#36021) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu2Mjk8ZWmMZxpXyNE5d5QSn)_ repo:objectstack#1 · os-sales · session_01L6bhgWRZyWba1HhfWN7hKy Fixes #35678 Clause-②: yes (widening) Metadata-protocol: none ## 维护者速读 - 勾选行后,列表区域底部居中浮起一条小栏:「已选 N 条」和 ×,最多 3 个带文字的操作,其余进「更多」;操作不超过 3 个时全部是按钮(只有删除时删除就是按钮)。 - 栏浮在合计行之上,列表末尾留出空间让最后一行完整露出;整页勾满且还有更多匹配时出「选择全部 N 条」;× 或 Esc 清空。页面顶部不再随勾选变化。 - 主列表、子表页签、侧边记录、嵌入表格共用这一条栏;旧的底部条和视图栏的「已选」face 都删了。列表页上只勾一条时显示这条记录自己的操作(行上没有操作列);其他位置一律显示批量操作。 - 风险:动了 ObjectGrid、data-table、列表页头三个热文件;浏览器 spec 跑出两个真问题已修(详见 Verification)。三个 i18n 键因此不再被读,留作后续卡。 ## What changes **One floating selection bar** (`ui/packages/plugin-grid/src/components/SelectionBar.tsx`, replacing `SelectionPageBar.tsx` and the old strip in `BulkActionBar.tsx`): - Count chip 「已选 N 条」 and ×, then up to `SELECTION_EXPOSED_ACTIONS = 3` labelled actions, the rest behind 「更多」. When the selection offers no more than three actions, every one is a button, Delete included (`planExposedEntries`). Over three, the first three non-destructive actions are buttons and Delete goes behind 「更多」, last. - A narrow host gives actions back to 「更多」 one at a time until the bar fits on one line (`useFittedCount`). It re-measures when the host's width changes and when the bar's own box changes (a font or stylesheet that arrives late). - 「选择全部 N 条」 shows when every loaded row is selected and more match. Over the 5000 cap, the offer, the chip and the chip's title name the cap (#28552 strings, unchanged). - × clears the selection. Esc clears it unless the key belongs to a field, or to another open dialog/menu/listbox/popper that does not hold the bar. A grid inside the record drawer still clears on Esc. - Look: `bg-popover`, rounded, shadow. In dark mode the border is `dark:border-foreground/20`, so the edge stays visible. **Where it floats** (no inline styles; utility classes only): - Flat table: a new runtime slot `DataTableSchema.floatingBar` (`ui/packages/types/src/data-display.ts`, refused by the zod twin with `handlerKeyRefusal` like the other runtime slots, KnownDrift ledger updated). `data-table.tsx` draws it in a zero-height sticky anchor after its scroll box, 12px above the bottom, or above the summary row when one is drawn. It also adds a spacer row (`data-table-floating-bar-room`) after the last row, so that row scrolls clear of the bar. - Card face, grouped cards, grouped table: `FloatingSelectionBarAnchor`, drawn right after the face's scroller, with `pb-16` room inside the scroller. - Because the anchor sits outside the scroller, the bar holds at the bottom of the page's own scroller when the face grows with its rows (a child-table tab, the side record). It sits at the scroller's bottom when the face is height-bounded (the list page). **One bar everywhere:** - `ObjectGrid` draws the same bar on every face. The portal into the page header and the bottom strip are gone. - `useListPageBarHost` / `ListPageBarState` (never published; absent from `@object-ui/plugin-grid@18.6.0`) are replaced by `useListPageScope(scope)` (`listPageScope.ts`). The list page registers its page column with it. A grid inside it draws no row-end controls (#35554) and, with one record selected, offers that record's actions in the bar (`singleRowMenu`, in row-menu order, Delete last). - Outside the list page the rows keep their own menu, and the bar offers the bulk actions at any count. - `objectViewPageHeader.tsx`: the page header and the view bar no longer hide or swap on selection. **Phone (card item 9):** - Below 768px the grid draws cards, and the same bar floats over the card scroller, centred, on one line. - List pages draw no phone bottom menu (`PhoneAppNavBar` is drawn only on Home/Notifications/Approvals), so there is nothing to replace there. - The ways into selection on a phone are #35883's (seat note), and they land on this bar. **Context menu:** unchanged. **Not changed (reading accepted in the claim):** the non-grid ListView strip (kanban and the other non-grid views) keeps its own bar. ## Tests Rewritten, because they asserted the retired faces: - `plugin-grid/src/__tests__/BulkActionBar.test.tsx`: fully rewritten. Old cases: the cross-page banner ("All N on this page are selected"), "Clear" text and the banner's clear. New cases: `planExposedEntries` (budget 3; all exposed at or under budget, Delete included; over budget the first admitted three; a narrower fit returns trailing entries in order), `singleRecordEntries` order, Delete-only → button, 3 vs 4+ actions, More contents (Delete last), one-record actions, 「Select all N」, the all-matching count, ×, Esc with the field / other-layer exceptions, Esc inside the dialog that holds the bar. - `plugin-grid/src/__tests__/listPageBarSlot-35554.test.tsx` → `selectionBar-35678.test.tsx`. Removed: "two rows selected: … Cancel restores the page bar" and "CONTROL: a grid with no page bar keeps the bottom bulk bar". Added: the bar floats in the table with one record's actions, the room row comes and goes with ×, Esc clears, and with no list-page scope the same bar shows bulk actions. Kept: no Actions column, Shift-extend, right-click. - `BulkActionBar.selectAllMatchingCap-28552.test.tsx`, `bulkActionRefresh.test.tsx`, `bulkFanoutHostParams.test.tsx`, `plugin-list/…/ListView.crossPageSelectAll.test.tsx`: banner assertions became assertions on the count chip's text and `title`. The offer reads `Select all N` (`grid.selectAllTotal`). - `app-shell/…/ObjectView.bulkWiredHeaderDuplicate-12462.test.tsx`: the selection face testids became the bar's (`bulk-actions-bar`, `bulk-selection-clear`). - `ui/e2e/list-no-actions-column-35554.spec.ts`: - Rewritten: the two-rows case (it asserted the page header hides and that nothing floats over the rows; it now asserts the opposite), the one-row case and the select-all case. - Added: 8 cases for the bar on the list page, a child-table tab and the side record, in light and dark, plus 375px. - `examples/app-showcase/e2e/bulk-capability-gate.spec.ts`: three exposed defs instead of two. Only import paths changed (`../components/SelectionBar`): `BulkActionBar.deleteLabel.zh-28910`, `BulkActionBar.regionName.zh-12145`, `bulk-action-visible`, `bulkActionCapabilityGate`, `lookupPredicateParity`. Added: `types/…/data-table-declared-keys-6882.test.ts` pins `floatingBar` as declared with type `React.ReactNode`. `zod-mirror-parity.test.ts` lists it in the DataTableSchema drift entry. ## Acceptance notes 1. Bottom centre of the list area, 「已选 N 条」 + ×, ≤3 labelled actions, rest in 「更多」, a single action is a button: yes (e2e measures the bar's centre against the scroll box's, ±1px). 2. Above the footer calc row, last row fully visible: yes (e2e: bar bottom ≤ tfoot top; after scrolling to the end, the last row's bottom ≤ the bar's top, on the list and on the child tab). 3. Top of the page does not change: yes (e2e: `page-header` stays visible). 4. × / Esc clear; 「选择全部 N 条」 when the page is all selected: yes. 5. One bar for main list, child tabs, side record, embedded tables; old strip and page-bar face retired: yes. 6. Phone: the bar works at phone width over the card face; list pages have no bottom menu to replace. 7. Context menu unchanged: yes (right-click e2e case kept). 8. Dark theme edge; 375px no wrap/overflow: yes (e2e: border ≠ background in dark; at 375px `scrollWidth ≤ clientWidth`, height 44, inside the window). Follow-up, not in this PR: `grid.bulkAllOnPage`, `grid.bulkSelectAllMatching` and `grid.selectedAllLoaded` are no longer read by any source. Retiring them from the 11 packs is a separate i18n card. ## Verification - Unit: `pnpm exec vitest run packages/plugin-grid packages/plugin-list packages/components/src/renderers/complex` (cwd `ui/`): 517 files, 4837 tests, all pass. `packages/types/src/__tests__` + data-table renderers: 432 files, 10784 tests, all pass. `packages/i18n/src/__tests__` + console `registry-inputs-spec-parity`: all pass. `packages/cli` i18n-bulk-action-coverage / i18n-walk-output-parity and `packages/lint` i18n-walk: pass. - Type check: plugin-grid, components, types (`tsc --noEmit` + test configs), `type-check:e2e`: clean. - Browser (Chromium, real components bundled by Vite from source, real Tailwind): `ui/e2e/list-no-actions-column-35554.spec.ts`, 24 of 24 pass, before and after merging `main`. Two defects the jsdom tests could not see were found and fixed: 1. With the anchor inside a scroller that grows with its rows (a child tab, the side record), the bar sat at the end of the rows instead of the bottom of the window. The anchor now sits after the scroller. 2. At 375px a stylesheet that arrived after the bar drew left it overflowing. The fit now re-measures on the bar's own resize. - Screenshots (main list, child tab, side record; light and dark; 375px) are kept with the card thread's evidence. - Derived gates: `node scripts/pm/dispatch-gates.mjs --ran`: 63 derived, 62 run and exit 0, 1 NOT-MEASURED (`check:dual-build-cjs-loads` exit 3: it needs dists of server packages this diff does not touch; CI builds them). - `node scripts/pm/overlap-check.mjs`: clean against `origin/main`, #35994 and #35983. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgWRZyWba1HhfWN7hKy --------- Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对delta ACCEPT (on delta 7058294369) · head
R1: K=16 is at or above the 15 line, so merge main again before re-queueing. merge-tree is clean, so this is a currency step only. |
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ Contract reviewServed-tier: Second delta, on record 7058307938 (head ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
S1: closed No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU Re-landing · area ux-4 · 2026-11-21T10:18Z
The queue dropped the first landing (7058318653) with MERGE_CONFLICT after #35977 merged. Since then:
Reviews: L1-a delta ACCEPT 7060610173 at Re-queued now. #35853 closes on merge; #35840 is covered and gets closed out after the merge. |
… on, Approve leads the band, one time face (objectstack-ai#36095) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu5xKbCuyXQ5nYfei9GkjzN3)_ Fixes objectstack-ai#35415 repo:objectstack#1 · os-sales · session_01L6bhgW5RH2VUXjRj9dZYH2 Clause-②: yes (widening) Metadata-protocol: none The widening: `@object-ui/components` takes one optional member, `RecordHeaderState.title`, and exports its type `RecordHeaderTitle`. Nothing is removed or renamed. ## 维护者速读 - 审批请求页的标题从流程名(「费用报告签批」)换成审批人要看的业务记录名(「EXP-2001」),点标题就打开那条记录。只有页面自己读得到那条记录时标题才是链接;无权读、读不到、或平台标记已删除时,标题只显示名字、不能点,和同页「提交时的内容」卡片的规则一致。取不到记录名时仍显示流程名,标题里不会出现裸记录 id。 - 流程名只在标题下方高亮条的「流程」一格出现一次。卡片第 1 条写了「副标题写流程名」,这里没有加副标题:那一格已经紧贴在标题下方,再加副标题就是卡片抱怨的重复。 - 审批条里「通过」仍是实心主按钮,「驳回」改为描边加危险色文字,「通过」成为页面上最醒目的按钮。业务记录页上的审批条是同一个组件,也一起变。 - 审批动态里的时间改成和页头一样的写法(`2026/11/21 上午10:09`),不再带秒。 - 列表、搜索、最近访问和面包屑里,审批请求仍按流程名称呼,对象定义不变。只改前端显示,可以整体撤回。 ## What changes Card objectstack-ai#35415 lists four defects on the approval request page. Read against main `fe753492`, two still held, one held in part, and one was already fixed: | Card item | On main | This PR | |:---|:---|:---| | 1. The title is the flow's name; the record cannot be opened from it | held | the title names the record and links to it | | 2. "As submitted" truncates text fields | fixed by objectstack-ai#34588 (the record is drawn whole, values wrap) | nothing to do; the screenshots confirm | | 3. Approve looks weaker than Reject | half: Approve was already filled, Reject was filled red | Reject becomes a destructive outline | | 4. Two time formats on one page | held | the timeline uses the page's one face | - **The page title (`RecordDetailView`, new `approval-decision/approvalSubjectTitle.tsx`).** On a `sys_approval_request` page the header names the business record by the `record_title` the approvals get already serves for it, as a link through the page's own record route (`RelatedRecordActionsBridge`'s `recordHref` / `openRecord`, the route the "As submitted" card's "Open record" link takes). A plain click opens the record the way the page opens one, which is the record drawer one level down on a desktop record page; a modifier or middle click keeps the anchor's new-tab behaviour. The name is a link only once one of the page's own reads of the record returned it, the rule the card's link follows (objectui#12557, objectui#11878): `SubmittedRecord`'s current read and `RecordPreviewCard`'s read report what they found through the new `RecordReadReportContext` (`approval-decision/recordReadReport.ts`), which `RecordDetailView` provides on a request page only. The title makes no read of its own. A refused, unresolvable or platform-deleted subject is named as plain text. Where the get serves no `record_title`, or one equal to the bare `record_id`, the header keeps the request's own title (`process_label`), so the page never names its subject by a raw id. That is the guarantee objectstack-ai#24665 / PR objectstack-ai#24708 gave the H1, kept here. - **`RecordHeaderState.title` (`@object-ui/components`).** The host hands `{ text, node? }`, and `page:header` draws `node` (else `text`) in its H1 in both faces: in the host's top bar and in its own row (phone, and pages with no bar). Absent, or with an empty `text`, every title rung the header had is unchanged. It sits beside the state's existing `tags`, `group` and `stage`. - **No subtitle.** The strip directly under the title already names the flow in its Flow chip, so the flow is named once. The card's item 1 asked for the flow as a subtitle. Adding one would put back the duplicate the card's first bullet complains about, so this PR does not add it. This reading is the one the claim (comment 7060828003, scope item 2) records. - **The decision band (`DeclaredActionsBar`).** In the approver's band (`foldDecisions`, drawn by the request page's panel and by the business record page's band), a declared `danger` decision is drawn as an outline button in the destructive text colour. That is the face the record header's group already gives a secondary danger lever (objectstack-ai#35593), and the two now share one condition (`secondaryDanger`). Approve keeps the filled primary face. A bar that does not fold keeps the declared filled danger face, and overrides keep their amber face. - **One time face (`ApprovalActionTimeline`).** Action times render through core's `formatDateTime(…, { style: 'compact' })`, the face every `datetime` cell and the strip's `updated_at` chip draw, in the host's display time zone. They used to be the browser's `toLocaleString` (seconds, a 24-hour clock under zh-CN). The timeline on a business record page's approvals panel is the same component, so it changes too. - `plugin-approvals`: comments only, in `sys-approval-request.object.ts` and `sys-approval-request.page.ts`, saying where the request page now names its record. The object's `nameField`, `highlightFields` and the page metadata are unchanged. Not changed, per the card's "不做的": the structure of the progress and timeline cards. ## Why An approver opens a request to decide on a business record. The page was titled by the process, which the strip repeated, and the record it is about had no name in the header and no link from it. The reject button outweighed approve, and the page wrote one moment in two ways. ## Verification Tests added (each run red with its fix ablated, green with it): - `approvalSubjectTitle.test.tsx` (new): read by the page, the title links through the host route; not read, plain text; a host that routes nowhere, plain text; a plain click is the host's `openRecord`, a modifier click the browser's; no title or an id-only title keeps the page's own. Ablating the read gate reds the not-read case. - Served request page (console, real adapter stack): `servedPageRecordLink-12557` gains an H1 case (the H1 reads the subject and its plain click opens the same drawer, the page stays put) and the readable case now counts the card's link and the H1's; its refused CONTROL also checks the H1 is plain `INV-2020`. `servedPageReferenceStates-12489`: readable names and links the H1; deleted names it as plain `INV-3030`. `ApprovalsInboxPage.opensServedPage-12484`: the served page is recognised by the subject's title in its H1. Ablating the read gate reds the refused CONTROL; ablating the report provider reds the two H1-link cases. - `RecordDetailView.harness.test.tsx`, block `RecordDetailView.approvalSubjectTitle-35415` (real `RecordDetailView`, real `page:header`, desktop top bar): the H1 reads the served subject title, and with no reader of the subject on that page it links nowhere and reads nothing; no `record_title` keeps the flow label with no link; a `record_title` equal to the record id keeps the flow label and never prints the id; CONTROL: another object with the same fields keeps its own title. Ablating the host wiring reds the subject case only. - `page-header-record-bar-35593.test.tsx`, block `the record state's title (objectstack#35415)`: the host's node is drawn inside the H1 in the bar and in the row; text-only; CONTROL: an empty title leaves the record's own name. Ablating the renderer reds the three host cases. - `DeclaredActionsBar.approverFold-34361.test.tsx`, block `…leads with a filled Approve, Reject outlined (objectstack#35415)`: Approve `bg-primary`, Reject outline with `text-destructive` and no `bg-destructive`; CONTROL: a bar that does not fold keeps `bg-destructive`. - `RecordApprovalsPanel.displayLocale-9909.test.tsx`: the de-DE and en pins now read the compact face (`4.3.2020 3:30 pm`, `3/4/2020 3:30 pm`), and a new zh-CN pin equals `formatDateTime(…, { style: 'compact' })` with no seconds. The three "is a reading of the session" pins are unchanged and green. Local runs on this head (`88775b7e`, main `493ad095` merged in, so objectstack-ai#35983's two-row record header is in): - vitest, `ui/` root, on this head: every ui test file that names an approval request, `DeclaredActionsBar`, `ApprovalActionTimeline`, `RecordHeaderState`, `RecordPreviewCard`, `SubmittedRecord`, the record pointer card, `RecordDetailView`, `ApprovalDecisionPanel` or `page:header` (490 files, console included): `Test Files 490 passed`, `Tests 6483 passed`. The first CI run on `9097b572` was red in three console served-page files (16 tests); this commit is the fix, above. - `turbo run type-check` for `@object-ui/components`, `@object-ui/app-shell` and `@object-ui/console`, on this head: 0 `error TS`. - `eslint` over the changed files: 0 errors. - `overlap-check.mjs` on this head: clean against origin/main `493ad095`, objectstack-ai#36105 and objectstack-ai#35923. Browser (showcase `objectstack dev --seed-admin --fresh`, console `vite`, zh-CN, the seeded pending request on `EXP-2001`, opened as its approver through `/system/approvals?request=`), before and after at 1280 and 375, light and dark, in the project thread's evidence folder: - before: H1 `费用报告签批`, no link; Reject `bg-destructive`; timeline `2026/11/21 10:09:5x`. - after (shot on `a02cb373`, where the subject reads, so the gate added since draws the same page; with objectstack-ai#35983's two-row header: the crumb row reads 审批请求, the title row reads the record): H1 `EXP-2001`, linked to `/apps/com.example.showcase/showcase_expense_report/record/…`; a click opens `EXP-2001` in the record drawer; Approve filled, Reject outlined; timeline `2026/11/21 下午1:37`, the same face as the strip's `更新时间` chip. ## Acceptance notes - Read first, by risk: `ui/packages/components/src/renderers/layout/containers.tsx` (`hostTitle` / `chipTitle`, both faces), `ui/packages/app-shell/src/views/approval-decision/approvalSubjectTitle.tsx` and `recordReadReport.ts` (the link's read gate), `ui/packages/app-shell/src/views/DeclaredActionsBar.tsx` (`secondaryDanger`). - Two-minute check: open a pending approval from the approvals inbox. The top bar reads the record's name, not the flow's. Click it and the record opens. In the band, 通过 is filled and 驳回 is outlined in red. The 审批动态 time reads like the strip's 更新时间. - The subject link follows the page's record route, so it exists exactly where the "As submitted" card's "Open record" link does: a subject object the console can route to. Where it cannot, the title is the record's name as plain text. - Breadcrumb, recent items and favourites still name a request by its own title (the flow), as lists and search do. Only the request page's header names the subject. - Observed, not changed: at 375 px the strip's `更新时间` value is cut (`上午10:…`) in a half-width cell. That is the strip's layout, outside this card. ## 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. - [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. - [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_01L6bhgW5RH2VUXjRj9dZYH2 <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgW5RH2VUXjRj9dZYH2 --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Bill · project thread
Fixes #35853
repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU
Clause-②: yes (widening) —
@object-ui/componentstakes four optional members:RecordTopBarProps.record,RecordTopBarStepper.onScope,NavigationOverlayProps.recordRowandPageHeaderActionsProps.fitWidth; nothing removed or renamedMetadata-protocol: none
维护者速读
What changes
The record's top bar, on the full page and in the drawer alike, is two rows (#35853):
totalfeat(console)!: one way to open a record from an object's list; navigation.mode deprecated there #35910 records in the page's provenance). The view's name links back to the list. When there is no list behind the record (a link, a notification, search): the object's name and no ↑ ↓; on the page the name links to the object's list, and in the drawer it is shown without a link. ✕ sits at the far right in every case. On the page it returns to the list as it was left, or to the object's default list. In the drawer it closes, with ⤢ (open the full page) before it.text-base), its stage and approval tags, then the presence avatars and the managed-by badge, and at the right the record's buttons and ⊟. On the page the two badges used to float over the corner above the tabs. The tabs now start right under the bar, so they stand in the record row instead.maxVisiblestill wins. A phone still shows one primary action, because its bottom bar holds the host's Edit and one more. There is still one primary-coloured button at a time.page:headermaxVisibledescribe inpackages/spec/src/ui/component.zod.tsgoes from "unset = 1 in a record page's one-row header bar, 3 on any other header" to "unset = 3 on every header. In a record page's header bar the number, authored or not, is an upper bound: actions that do not fit the bar's width fold as well". ThemobileMaxVisibledescribe gains "where the host's Edit counts as one". The shape and the accepted values are unchanged: describe text only, a patch bump. The seat L2 (7057806258) ruled this is not a narrowing: nothing an author wrote is refused, and the 1 never shipped in a release. The declaration is the widening arm, for the four optional members above. The level stayspatchunderMetadata-protocol: none.PageHeaderActionsProps.defaultMaxVisiblestays on the exported prop type, but no caller in the tree passes it any more; its JSDoc says the default is 3.content/docs/ui/pages.mdx(the Default cell), the Studio designer descriptions incontainers.tsx, the generatedcontent/docs/references/ui/component.mdx, andsdui.manifest.json/scripts/sdui-manifest.record.json(regenerated withnode scripts/gen-sdui-manifest-node.mjs). This covers 页头「手机端最多显示几个按钮」在设计器输入说明里仍写「默认 1」,而手机记录页底栏实际默认 2;containers.tsx 内几处旧注释同样过时(承 #35660 L2) #35840 (the designer'smobileMaxVisibledescription and the stale budget comments). It does not close it.PR-1 of this pair, #35910 (
Fixes #35854, one way to open a record), merged as d6be99d. This PR restarts the branch from that main.Drift from the saved #35853 commits
The #35853 work was saved before #35910 and re-applied here on d6be99d:
2596f853e("list view form help text follows the navigation.mode deprecation; regenerate the sdui manifest"): feat(console)!: one way to open a record from an object's list; navigation.mode deprecated there #35910 landed the finalview.form.tstext. The manifest regeneration it carried is redone here as its own commit, against this tree.Fixes #35745) already removed the band above the tabs. The page scroller pads sides and bottom only, andRecordPageColumnskeeps a 12 px top. The saved commit's own!pt-0variant is dropped in favour of main's..changeset/35854-one-way-to-open-a-record.mdstays exactly as feat(console)!: one way to open a record from an object's list; navigation.mode deprecated there #35910 landed it.Overlap
packages/spec/src/ui/component.zod.ts,sdui.manifest.json,scripts/sdui-manifest.record.jsonandui/packages/app-shell/src/views/RecordDetailView.tsx. The only conflict is in the generatedscripts/sdui-manifest.record.json(generatedAt/sha256). Whoever lands second re-runsnode scripts/gen-sdui-manifest-node.mjs.Tests
Added:
ui/packages/components/src/__tests__/record-top-bar-two-rows-35853.test.tsx: from a list, ↑ ↓ and 「N of M · view」 with ✕ at the right and the record below; from no list, the object's name and no ↑ ↓; the Chinese count; ⤢ then ✕ in the drawer; a CONTROL without a record row stays one row.ui/e2e/live/record-topbar-35853.spec.ts(live lane): at 1280 px, the page from a list (navigation row over record row, ✕ at the far right) and from no list (the object, ✕ to its list, no stepper); three authored actions on one line; the drawer's same two rows with the tabs right under; a narrow drawer folding actions into ⋯ instead of wrapping; and the phone's one-row bar that does not overflow.records-forms.record-open-path-and-header.Updated for the two rows:
ui/e2e/live/record-open-path-35854.spec.ts(title, "N of M", the view's name as the way back).RecordDetailView.topBar-27524,.accessibleNames-12625,.headerMenuIcons-12529.recordDrawerStack-26679,recordDrawerStack.rootStepper-26679,recordPaneGroupScope-28461.page-header-record-bar-35593,ApprovalsInboxPage.queueStepper-34586.Local runs (this PR's head)
tsc --noEmitfor@object-ui/app-shelland@object-ui/components: clean.RecordDetailView*,recordDrawer*/recordPane*, and the components record-top-bar / page-header / navigation-overlay / containers tests gaveTest Files 140 passed,Tests 1173 passed. The consoleApprovalsInboxPage.queueStepper-34586gave 7 passed.start-backend.shon :4010,vite previewon :5180):record-open-path-35854.spec.ts+record-topbar-35853.spec.tsgave10 passed.check-sdui-manifest,check-empty-changeset,check-adr-0087-registration(non-breaking) andcheck-changeset-no-majorall pass.Acceptance notes
ui/packages/components/src/custom/record-top-bar.tsx(the two rows, width folding),ui/packages/app-shell/src/views/RecordDetailView.tsx(the record row, the badges),ui/packages/app-shell/src/views/recordDrawerStack.tsx(✕ and the way back).Human Minimum
packages/specholds no runtime logic.pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6Cbrs4FaLzn1HMmRDi1