Skip to content

feat(record-page): two-row record header — navigation over the record, up to three actions - #35983

Merged
objectstack-fleet[bot] merged 14 commits into
mainfrom
claude/project-thread-ntrvrh
Nov 21, 2026
Merged

objectstack-fleet[bot] merged 14 commits into
mainfrom
claude/project-thread-ntrvrh

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread

Fixes #35853

repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

Clause-②: yes (widening) — @object-ui/components takes four optional members: RecordTopBarProps.record, RecordTopBarStepper.onScope, NavigationOverlayProps.recordRow and PageHeaderActionsProps.fitWidth; nothing removed or renamed
Metadata-protocol: none

维护者速读

What changes

The record's top bar, on the full page and in the drawer alike, is two rows (#35853):

  • The navigation row (40 px). When the record came from a list: ↑ ↓ and 「第 N 条,共 M 条 · 视图名」 ("N of M · view"), where M is the count the list matched (the total feat(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.
  • The record row (48 px). The record's icon, its name one size larger (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.
  • The drawer shows ↑ ↓ and the count again; 记录页头部压成一行;只有一组按钮,随记录状态换内容(等我审批时是通过、拒绝);审批状态只留一个短标签 #35593 had hidden them. A phone keeps its one-row bar.
  • Action budget 3. The header bar's default inline budget goes back to 3; 记录页头部压成一行;只有一组按钮,随记录状态换内容(等我审批时是通过、拒绝);审批状态只留一个短标签 #35593 had set the record bar to 1. Actions that do not fit the bar's width fold into 「更多」 one at a time, down to the primary, so a narrow drawer shows fewer. An authored maxVisible still 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.
  • The default this changes, stated plainly: the page:header maxVisible describe in packages/spec/src/ui/component.zod.ts goes 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". The mobileMaxVisible describe 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 stays patch under Metadata-protocol: none. PageHeaderActionsProps.defaultMaxVisible stays on the exported prop type, but no caller in the tree passes it any more; its JSDoc says the default is 3.
  • The same text is in content/docs/ui/pages.mdx (the Default cell), the Studio designer descriptions in containers.tsx, the generated content/docs/references/ui/component.mdx, and sdui.manifest.json / scripts/sdui-manifest.record.json (regenerated with node scripts/gen-sdui-manifest-node.mjs). This covers 页头「手机端最多显示几个按钮」在设计器输入说明里仍写「默认 1」,而手机记录页底栏实际默认 2;containers.tsx 内几处旧注释同样过时(承 #35660 L2) #35840 (the designer's mobileMaxVisible description and the stale budget comments). It does not close it.
  • No stray divider beside an empty toggle slot in the bar.

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:

Overlap

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.
  • Checklist item 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 --noEmit for @object-ui/app-shell and @object-ui/components: clean.
  • vitest: RecordDetailView*, recordDrawer* / recordPane*, and the components record-top-bar / page-header / navigation-overlay / containers tests gave Test Files 140 passed, Tests 1173 passed. The console ApprovalsInboxPage.queueStepper-34586 gave 7 passed.
  • Live lane (turbo build, start-backend.sh on :4010, vite preview on :5180): record-open-path-35854.spec.ts + record-topbar-35853.spec.ts gave 10 passed.
  • check-sdui-manifest, check-empty-changeset, check-adr-0087-registration (non-breaking) and check-changeset-no-major all pass.

Acceptance notes

  • Read first, by risk: 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).
  • Two-minute check: open a record from an object list in the Console. The bar is two rows: ↑ ↓ 「第 2 条,共 M 条 · 视图名」 and ✕ over the record's name and up to three buttons. ↓ steps, and ✕ returns to the list. Open the hover icon's drawer and see the same two rows in the card.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6Cbrs4FaLzn1HMmRDi1

…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
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation protocol:ui tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 21, 2026
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/spec, touching 3 documentable anchor(s).

1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/ui/pages.mdx (via maxVisible (symbol, a field of const object PageHeaderProps, an authorable key of ui/PageHeaderProps), mobileMaxVisible (symbol, a field of const object PageHeaderProps, an authorable key of ui/PageHeaderProps))

⛔ 2 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v15.mdx (via maxVisible (symbol, a field of const object PageHeaderProps, an authorable key of ui/PageHeaderProps), mobileMaxVisible (symbol, a field of const object PageHeaderProps, an authorable key of ui/PageHeaderProps))
  • content/docs/releases/v17/17-6.mdx (via PageHeaderProps (symbol, a top-level const object))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 174 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json fe753492ff75316c6325fb3f9db920386e61d3a0 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 162eb2ddc7021d4b76264740ad0b7e680c88822b — the merge of head b69bbad5336575ca10b6a088ea42734d4fef681b into base fe753492ff75316c6325fb3f9db920386e61d3a0, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# 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

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs fe753492ff75316c6325fb3f9db920386e61d3a0 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

Final head — 2026-11-21T05:02Z

Head 1066603fa34cc7d0e2ab6ec73d836287fb67e368: CI 61 success, 9 skipped, 0 failed. 24 files, +937 / −240 = 1,177 changed lines. It touches packages/spec in one file, component.zod.ts: the maxVisible / mobileMaxVisible describes and their JSDoc. All of @objectstack/spec, @object-ui/components and @object-ui/app-shell are graded patch (Metadata-protocol: none).

Commits after the draft opened (0aff0e4), all CI fixes:

  • d9ce0392a: the changeset grades components and app-shell patch, as Metadata-protocol: none requires (Check Changeset).
  • 366eb101e: content/docs/ui/components/page.mdx regenerated with node scripts/gen-sdui-reference.mjs from the regenerated sdui manifest (Component reference matches the SDUI manifest).
  • 1066603fa: the unused cn import is dropped from recordDrawerStack.tsx (Lint UI, object-ui/no-unused-imports).

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 scripts/sdui-manifest.record.json.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4

维护者速读

  • 记录页和侧边抽屉的顶部改成两行。上面一行是导航:上一条、下一条,「第 N 条,共 M 条 · 视图名」(点视图名回到列表),最右边是关闭。下面一行是记录本身:图标、名称(字号大一号)、状态标签和操作按钮。
  • 操作按钮恢复为最多显示 3 个;宽度不够时(比如窄抽屉)自动把放不下的收进「更多」,最少保留主按钮。
  • 抽屉里重新显示上一条、下一条和计数;手机上仍是原来的一行。
  • 页面上协作者头像和托管包标记移进记录行,不再压在标签页上方。
  • 席位意见:通过;需补一份认领范围说明,并请席位做接口复核,之后由区域自行合并。

席位核对

ACCEPT · head 1066603fa3 · card #35853 (claim 7042033558; covers #35840; PR-1 #35910 merged as d6be99d50c) · K=3 · merge-tree vs origin/main clean · governed: none · size +937/−240 = 1,177, 24 files (under 3000) · CI 61 success, 9 skipped · 2026-11-21T05:05Z

reviewFace (changeset as declaredOn): face schema, tier CONTRACT_REVIEW_TIER, hits.schema = packages/spec/src/ui/component.zod.ts, hits.rules empty. Routing: seat L2 at CONTRACT_REVIEW_TIER, then the area lands it (not Tier H). The spec delta touches only the maxVisible / mobileMaxVisible describe text and docblock. No shape changes and no value domain changes. The unset default in the record bar moves from 1 to 3 plus a width fold. That is a change in what renders, not in what parses. The body says Clause-②: no, and the seat rules on narrowing.

  • Width fold (fitWidth):
    • A layout effect with no deps reads whether the toolbar's last child wraps below the first. It lowers widthCap one action at a time, but never below the primary (floor).
    • A ResizeObserver on [data-record-top-bar] resets the cap when the bar's width changes. The bar's width is set by its container, not its content, so folding cannot feed the observer.
    • Wrapping does happen. The title cell is min-w-32 flex-1 and the controls are min-w-0 shrink, so the flex-wrap max-w-full row wraps once the title reaches 128 px.
    • Host buttons (Edit) take no slot. Bar face and mobile are excluded.
    • defaultMaxVisible={inBar ? 1 : undefined} is replaced by fitWidth={inBar}, and the designer describes follow.
  • Two rows:
  • Overlap: fix(spec): record page descriptions no longer claim a key-field strip or stage path #35977 conflicts only in the generated sdui-manifest.record.json, and whoever lands second regenerates it. The drift choices are in the body.

R1, a text-only claim amendment: the diff touches files outside claim 7042033558. These are ui/packages/app-shell/src/views/recordDrawerStack.tsx with its two __tests__ files, ApprovalsInboxPage.queueStepper-34586.test.tsx, and the generated scripts/sdui-manifest.record.json. The #35854 claim names recordDrawerStack.tsx, but that card is closed and this PR fixes #35853.

  • Nit: with no list, the drawer's root crumb is now plain text, where it used to be a button that closed the drawer. The changeset says "the object's name, linking to the object's list" for both faces. Either restore the link in the drawer or narrow that sentence to the page.
  • Nit: widthCap is reset only by a width change. If the action set shrinks while the width stays the same (for example, stepping ↑ ↓ to a record with fewer or shorter actions while the header stays mounted), the low cap stays and fewer buttons show than would fit. This is a candidate follow-up card, not a blocker.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 1066603fa34cc7d0e2ab6ec73d836287fb67e368
Local-runs: none
Scope: packages/spec/src/ui/component.zod.ts + ui/packages/components/src/renderers/layout/containers.tsx, ui/packages/components/src/custom/record-top-bar.tsx, ui/packages/components/src/custom/navigation-overlay.tsx

Inputs read: card #35853 (body and its 5 comments), PR #35983 (body, the 24-file list, the net diff against main from merge-base d6be99d50c; main at 8c8ff0f25d has not moved any scoped file since), and the 70 check-runs on the head: 61 success, 9 skipped, 0 failed, the eleven required contexts all success. The rest of the diff (tests, e2e, the checklist item, the app-shell hosts, the changeset prose, hand-written docs, generated output) is the lane seat's ACCEPT.

① Derived judgments

  • @objectstack/spec accept set: unchanged — right. PageHeaderProps.maxVisible and mobileMaxVisible are z.number().int().positive().optional() on both sides of the diff. The hunk is two .describe() strings and one docblock sentence. No key, no accepted value, no requirement and no schema default moves; component.zod.ts is the only packages/spec path in the diff, so no authorable-surface, authorable-defaults or api-surface shard moves either.
  • Not a narrowing — right as declared on that point. The 2026-11-19 ruling, as check-governed-queue-guard.mjs encodes it (the fifth leg, Narrowed Spec Change), is about a change that 「收紧作者能写的东西(会让现有应用报错)」: a key removed or tombstoned, a value refused, a requirement tightened. Nothing an author wrote before this PR is refused after it, and no published member is retired: stepperHidden and defaultMaxVisible stay on their prop types (the console simply stops passing them). The unset budget in the record bar moves up, from 1 to 3. feat(console)!: one way to open a record from an object's list; navigation.mode deprecated there #35910 carried the arm because it retired NavigationOverlayProps.maximizable and ListViewProps.recordOpen; this diff retires nothing.
  • Describe against renderer, desktop — agrees. containers.tsx resolves the row budget as readMax(rawMaxVisible) ?? defaultMaxVisible ?? 3, and at this head no caller passes defaultMaxVisible (the one that did, defaultMaxVisible={inBar ? 1 : undefined}, is replaced by fitWidth={inBar}), so unset is 3 on every header. In the host's bar the layout effect lowers widthCap one action at a time while the toolbar's last child sits below its first, never below one authored action, and the host's Edit takes no slot: "actions that do not fit its width fold as well, so a narrow drawer shows fewer" is what runs.
  • Describe against renderer, phone — agrees. The bottom bar (face: 'bar') reads readMax(rawMobileMaxVisible) ?? PHONE_ACTION_BAR_BUTTONS (2), and its queue puts the host's buttons first, so an editable record draws Edit, the primary and the ⋯: "2 … where the host's Edit counts as one". Any other header on a mobile viewport reads ?? 1. The width fold is off on both (fitWidth && !barFace && !isMobile), so the phone is unchanged, as the card asks.
  • Generated references — match. The two rows of content/docs/references/ui/component.mdx equal the two describe strings character for character; sdui.manifest.json and content/docs/ui/components/page.mdx carry the two designer descriptions of containers.tsx verbatim, and the manifest's sha256 equals the one in scripts/sdui-manifest.record.json. TypeScript Type Check (which carries check:docs) and Lint & Repo Gates are success on the head.
  • @object-ui/components public entry: widened, and the PR declares no widening — wrong (S2). Four new optional members are reachable from the package entry: RecordTopBarProps.record, RecordTopBarStepper.onScope (both through export * from './record-top-bar'), NavigationOverlayProps.recordRow and PageHeaderActionsProps.fitWidth.

② Semver level

③ Boundary flags

④ Design judgment

packages/spec/src/ui/component.zod.ts (hits). The change holds against the renderer it describes and against the card's item 5 and its acceptance line (1280 px: three and the ⋯; a drawer: fewer by width; 390 px: one). Both strings are true of the tree at this head, on desktop and on a phone, and the docblock's new parenthesis ("3 on desktop, folded by width in a record page's header bar … the mobile one differs by host") is true as well. Tried against it: an unset key in the bar (3, then folded), an authored key in the bar (the authored number, then folded), an out-of-contract value (falls to the default through readMax), a mobile viewport without the phone face (1, no fold), a read-only record on a phone (two authored buttons, no Edit to count). None contradicts the text.

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 (Math.min(maxVisible, widthCap)): an authored maxVisible: 4 in a narrow drawer shows fewer than four. The designer description says the same thing as a sentence of its own, which reads unambiguously. No test pins an authored number above the default in the bar, or an authored number under the fold (the #35593 pin moved from authored 3 over default 1 to authored 1 under default 3). Left as an accepted deviation unless the head moves anyway for S1, in which case making the clause its own sentence ("In a record page's header bar the number is an upper bound: …") and regenerating the reference row would settle it.

ui/packages/components/src/renderers/layout/containers.tsx (implements). The budget resolution, the fold and the two designer descriptions agree with the describe, sentence by sentence, with one exception.

S1 (should-fix) — containers.tsx:1947, the JSDoc of the exported PageHeaderActionsProps.maxVisible, still reads "an out-of-contract value falls back to the unset default: 1 in a record page's one-row header (defaultMaxVisible), 3 on any other header". At this head nothing passes defaultMaxVisible, so the fallback is 3 on every header; the sentence contradicts the describe this PR lands, ships in the package's typings, and is the same class of text #35840 was filed and fixed for. The claim's file surface names "comments that follow the new default" and the body says the stale budget comments are covered. Fix: state 3 on every header, folded by width in the host's bar (fitWidth).

N2 (nit) — widthCap is cleared only when the bar's width changes. When the set of visible actions changes at the same width (a record whose state swaps a long label for short ones), actions that would now fit stay folded until the next resize. Nothing is lost (the primary stays, the rest are in the ⋯), and the describe promises only that what does not fit folds. A follow-up, not this head's.

ui/packages/components/src/custom/record-top-bar.tsx (implements). data-record-top-bar is on both the one-row and the two-row root, so the fold's closest('[data-record-top-bar]') finds its host on every face; the bar is a stretched column item, so its width follows its container and folding cannot feed the observer. The record row gives the title min-w-32 flex-1 and the controls min-w-0 shrink, which is what lets the toolbar wrap and therefore fold. Without record the bar is the one-row bar it was, which is the phone's. Agrees.

ui/packages/components/src/custom/navigation-overlay.tsx (implements). Passes recordRow through as record and keeps stepperHidden accepted. Agrees.

S2 (should-fix) — the Clause-②: line, in the PR body and in .changeset/35853-record-header-two-rows.md, reads no; the diff widens @object-ui/components' published entry by four optional members, so it reads Clause-②: yes (widening) followed by the members and "nothing removed or renamed", as the changeset for #35593 listed its own additions. Both carriers are prose faces: the level, the Metadata-protocol: none line and every gate verdict are unchanged by the correction.

Open on this head: S1, S2. Nits N1 and N2 do not hold the round.

Implemented-by: claude/project-thread-ntrvrh
Reviewed-by: session_01Utp6CbUb7TcZK1XUAddUmQ

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
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4

维护者速读

  • 这次只改说明文字,没有改行为。
  • 更新说明写准了:没有来源列表时,页面上的对象名可以点回列表,抽屉里只显示名称、不能点。
  • 按钮数量的说明统一为默认 3 个;在记录页顶部,这个数(包括自己配置的)只是上限,宽度不够时会再收起。
  • 席位意见:通过;由区域自行合并。

席位核对

delta ACCEPT (on ACCEPT 7057677292) · head ccf9ada155 (two commits on 1066603fa3) · card #35853 · K=10 · merge-tree vs origin/main clean · delta +5/−5, 4 files, text only · PR now 1,179 lines, not governed · CI 63 success, 11 skipped · 2026-11-21T05:58Z

reviewFace (changeset as declaredOn): face schema, tier CONTRACT_REVIEW_TIER, hits.schema = packages/spec/src/ui/component.zod.ts, unchanged. The seat's L2 is 7057806258; its should-fix items are in this delta.

  • R1 closed: claim amendment 2 (7057686487) adds recordDrawerStack.tsx and its two tests, the ApprovalsInboxPage test, and the generated scripts/sdui-manifest.record.json.
  • Nit 1 closed (ea27bf6b3f): the changeset's no-list sentence now says the name links on the page and is plain text in the drawer, which matches the code.
  • Nit 2 → 记录页顶栏操作宽度折叠:切换到操作更少的记录后,可见操作上限停留在旧的较低值 #35997.
  • L2 S1, S2 and N1 (ccf9ada155):
    • The PageHeaderActionsProps.maxVisible JSDoc now reads "3 on every header", and calls the number an upper bound under fitWidth.
    • The changeset now declares Clause-②: yes (widening) and names the four optional members: RecordTopBarProps.record, RecordTopBarStepper.onScope, NavigationOverlayProps.recordRow and PageHeaderActionsProps.fitWidth. I checked these against the diff, and nothing is removed or renamed.
    • The maxVisible describe now says the number, authored or not, is an upper bound in the record bar. That matches rowBudget = Math.min(maxVisible, widthCap). component.mdx is regenerated.
    • sdui.manifest.json reads the designer descriptions in containers.tsx, which did not change, so it needs no regeneration.

No required item at L1.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ccf9ada155efe465aeb4acfc9bb580193d1d546e
Local-runs: none
Scope: packages/spec/src/ui/component.zod.ts + ui/packages/components/src/renderers/layout/containers.tsx, ui/packages/components/src/custom/record-top-bar.tsx, ui/packages/components/src/custom/navigation-overlay.tsx

Delta on record 7057806258 (head 1066603fa34cc7d0e2ab6ec73d836287fb67e368). Inputs read: the diff between that head and this one (two commits, ea27bf6b3f and ccf9ada155; 4 files, 5 lines in, 5 out), the PR body as it now stands, card #35853 and the PR thread (no new ruling on either), and the 74 check-runs on this head: 63 success, 11 skipped, 0 failed, the eleven required contexts all success. The file list is the same 24 paths. main is at 549c9f5ba9, the merge-base is still d6be99d50c, and main has moved none of the scoped files since.

① Derived judgments

  • What moved, in scope: two sentences, no code — right. component.zod.ts changes one .describe() string (maxVisible); the schema expression beside it is untouched, as are the mobileMaxVisible string and the docblock. containers.tsx changes one JSDoc line (:1947); the budget resolution (readMax(rawMaxVisible) ?? defaultMaxVisible ?? 3), the fold (Math.min(maxVisible, widthCap), fitWidth && !barFace && !isMobile), fitWidth={inBar} and both designer descriptions are byte-identical to the reviewed head. record-top-bar.tsx and navigation-overlay.tsx did not move.
  • The new describe against the renderer — agrees. "Renderer default when unset: 3 on every header." is the ?? 3 with no caller passing defaultMaxVisible. "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, so a narrow drawer shows fewer." is rowBudget, which caps the resolved number, authored or defaulted, by the width fold in the host's bar on a desktop viewport. The phone sentence is unchanged and still holds (2 in the bottom bar with Edit queued first, 1 elsewhere, no fold).
  • Generated row — equal. The maxVisible row of content/docs/references/ui/component.mdx equals the describe string character for character (305 characters), and the mobileMaxVisible row still equals its own. sdui.manifest.json, its record and content/docs/ui/components/page.mdx did not move and need not: they carry the designer descriptions, which did not move, and the manifest's sha256 still equals the record's. TypeScript Type Check and Lint & Repo Gates are success on this head.
  • Accept set and public surface — unchanged by the delta. No key, value, requirement or default moves; no member is added or retired beyond what the first record judged.

② Semver level

  • patch on the three packages under Metadata-protocol: none — holds, as before. The delta publishes two reworded sentences.
  • Clause-②: yes (widening) — now right. The line reads the same in the PR body and in .changeset/35853-record-header-two-rows.md, names the four optional members (RecordTopBarProps.record, RecordTopBarStepper.onScope, NavigationOverlayProps.recordRow, PageHeaderActionsProps.fitWidth) and says nothing is removed or renamed, which the tree bears out. No narrowing arm, no !, no BREAKING banner and no ADR-0087 disposition are owed. Check Changeset is success with the new line.

③ Boundary flags

  • defaultMaxVisible: stays on the exported PageHeaderActionsProps with no caller in the tree, and the body now says so. Keeping it is what keeps this a widening only; retiring it would be a narrowing of its own and is not this PR's.
  • The earlier dev flag (whether the default change is a narrowing) is answered in the body by reference to the first record. Nothing new is flagged.
  • SQL push-down: nothing to check; the delta is prose and comments.
  • Governed surface, author, size: no governed path (Governed Surface Queue Guard success), objectstack-fleet[bot] on an internal branch, 1,179 changed lines. Security-touching: no.
  • fix(spec): record page descriptions no longer claim a key-field strip or stage path #35977 still overlaps component.zod.ts: a merge that moves that file or containers.tsx is a new head.

④ Design judgment

packages/spec/src/ui/component.zod.ts (hits). The width fold is now a sentence of its own and says in so many words that an authored number is bounded too. That is what the renderer does, and it no longer hangs off "default when unset". Holds against the card's item 5 and its acceptance line.

ui/packages/components/src/renderers/layout/containers.tsx (implements). The JSDoc of PageHeaderActionsProps.maxVisible now reads "falls back to the unset default, 3 on every header. In a record page's header bar (fitWidth) the number is an upper bound: what does not fit the bar's width folds as well." True of the code beside it, and it agrees with the describe and with the defaultMaxVisible JSDoc below it ("Absent: 3"). No stale statement of the budget is left in the tree: the old "1 in a record page's one-row header" sentence has no occurrence at this head.

S1: closed
S2: closed
N1: closed
N2: carried by follow-up card #35997 (the fold's cap is not cleared when the visible actions change at the same width); not this head's.

The changeset's reworded no-list sentence (ea27bf6b3f: the object's name links on the page and is plain text in the drawer) is a prose face and the lane seat's; read against the hosts, it is what they draw.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-ntrvrh
Reviewed-by: session_01Utp6CbUb7TcZK1XUAddUmQ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

Landing · area ux-4 · 2026-11-21T06:00Z

Reading Value
check-governed-merges --pr 35983 not governed, 1,179 lines → ordinary queue landing
K (merge base..origin/main) 10 (< 15)
CI on head ccf9ada155 63 success, 11 skipped, 0 failed or pending; mergeable clean

Head ccf9ada155efe465aeb4acfc9bb580193d1d546e: L1-a ACCEPT 7057677292, then delta ACCEPT 7058294369, with no required items. Seat L2 PASS 7057806258 (Clause-② widening, not a narrowing; patch), then delta 7058307938 at this head. R1 is closed by claim amendment 7057686487 on #35853. The widthCap nit is follow-up #35997. Overlap: draft #35977 conflicts only in the generated scripts/sdui-manifest.record.json, and whichever lands second regenerates it. Ready + auto-merge now. #35853 closes on merge; #35840 is covered and is closed out after merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 21, 2026 06:00
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 21, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 21, 2026
github-merge-queue Bot pushed a commit that referenced this pull request Nov 21, 2026
…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>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4

维护者速读

  • 合入了主线的最新改动,重新生成了一份自动生成的清单,并把页面指南里按钮数量的说明改成和接口说明一致,功能本身没有变化。
  • 主线又前进了不少,需要再合一次主线后入队。
  • 席位意见:通过;再合一次主线后由区域自行合并。

席位核对

delta ACCEPT (on delta 7058294369) · head 14d7280e96 (merge 3443bf851f of a6607c798e, manifest re-record, one docs fix) · card #35853 · K=16 · merge-tree vs origin/main clean · PR diff vs main 24 files, +937/−240 (unchanged) · CI 61 success, 9 skipped · 2026-11-21T09:29Z

  • --remerge-diff on 3443bf851f: one conflict hunk, the sdui-manifest.record.json sha line, and no other hand edits. component.zod.ts merged automatically. Against main, the PR's spec delta is still only the two describes and the docblock, so reviewFace (schema, CONTRACT_REVIEW_TIER, component.zod.ts) and the L2 stand.
  • 97b964df27 changes only the generated record's sha line.
  • 14d7280e96: the pages.mdx Default cell for maxVisible now says "3 on every header" and calls the number an upper bound in the record bar, word for word what the describe says. The Docs Drift Check flagged it. Claim amendment 3 (7058720991) covers it.

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.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 14d7280e96e3e7a4bcfc312fc912ba5252a214f7
Local-runs: probe — git merge-file -p over scratch copies of the five files both sides changed, to check that the main merge is mechanical; nothing built, tested or re-run
Scope: packages/spec/src/ui/component.zod.ts + ui/packages/components/src/renderers/layout/containers.tsx, ui/packages/components/src/custom/record-top-bar.tsx, ui/packages/components/src/custom/navigation-overlay.tsx

Second delta, on record 7058307938 (head ccf9ada155efe465aeb4acfc9bb580193d1d546e), itself a delta on 7057806258. Inputs read: the three commits since that head (3443bf851f, a merge of main at a6607c798e; 97b964df27; 14d7280e96), the PR body (unchanged since the last record), card #35853 and the PR thread (one new claim amendment, 7058720991, for content/docs/ui/pages.mdx; no new ruling), and the 70 check-runs on this head: 61 success, 9 skipped, 0 failed, the eleven required contexts all success. The PR's diff against main is the same 24 paths, 937 lines in and 240 out.

① Derived judgments

  • The merge is mechanical — right. Against its two parents, 3443bf851f takes all 249 files only main changed from main, and all 19 files only the PR changed from the PR. Five files changed on both sides. Four of them (packages/spec/src/ui/component.zod.ts, sdui.manifest.json, ui/packages/app-shell/src/views/RecordDetailView.tsx, docs/qa/platform-checklist/areas/records-forms.json) are byte-identical to a recomputed three-way merge with no conflict. The fifth, scripts/sdui-manifest.record.json, conflicts in one hunk, the sha256 line, and the merge commit carries main's side of it. No hand edit rides in the merge.
  • The two describes and the docblock sentence — unchanged. Between the last reviewed head and this one component.zod.ts moves in one hunk only, at :1866, the docblock fix(spec): record page descriptions no longer claim a key-field strip or stage path #35977 rewrote for the key-field strip count beside RecordRelatedListProps. It is a thousand lines from PageHeaderProps, names neither key and changes no schema expression; it does not interact with this PR's text. The maxVisible and mobileMaxVisible region, docblock included, is byte-identical to the last reviewed head, and against main the PR's spec delta is still exactly that region.
  • The renderer — unchanged. containers.tsx, record-top-bar.tsx and navigation-overlay.tsx are byte-identical to the last reviewed head; main did not touch them. What main did change nearby (the custom/index.ts barrel gains three filter exports; RecordDetailView.tsx drops the highlight list it handed the page synthesizer) leaves the bar, the budget and the four widened members as they were: export * from './record-top-bar', NavigationOverlayProps and PageHeaderActionsProps are still on the entry.
  • Generated output — matches. The two rows of content/docs/references/ui/component.mdx equal the two describe strings character for character. sdui.manifest.json at this head hashes to the sha256 that 97b964df27 wrote into scripts/sdui-manifest.record.json, and that commit changes that one line only. The manifest and content/docs/ui/components/page.mdx still carry the two designer descriptions verbatim. TypeScript Type Check and Lint & Repo Gates are success.
  • content/docs/ui/pages.mdx:303 — agrees with the describe. The Default cell now reads "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) / 2 in a phone record page's bottom bar (the Edit button counts as one), 1 elsewhere". Each clause is the describe's own. A prose face, the lane seat's to accept.
  • Accept set and public surface — unchanged by this delta.

② Semver level

  • Unchanged and still right. .changeset/35853-record-header-two-rows.md did not move: patch on the three packages, Clause-②: yes (widening) with the four members named, Metadata-protocol: none. The body carries the same two lines. Check Changeset is success on this head.

③ Boundary flags

  • Does the queue guard need a record naming this head? No, on any leg.
    • Governed and tier legs: none of the 24 paths falls under a row of GOVERNED_SURFACES (17 rows read on main), so the path test clears before any thread is read.
    • Size leg: 1,177 changed lines, under the 3,000 line.
    • Narrowed leg: the body and the changeset declare Clause-②: yes (widening) and Metadata-protocol: none. Read through clause2-line.mjs, that is a declared value with the widening arm; the body's sentence that names a narrowing in prose is not a key line. Nothing is declared, so nothing is owed.
    • The guard therefore never reads a ## Contract review record on this PR. The record on the landing head is owed by the fleet's own rule for the schema face (contract-review.md: an at-tier PASS on the current head before landing), which is why this delta exists: the merge moved a hits file, so it is neither a pure regeneration nor a prose-only move and no Regen-provenance: carry covers it.
  • The next main merge (the L1 note asks for one, K being 16): main at c00be39b74 has moved none of the four scoped files, the reference page, the manifest pair or pages.mdx since a6607c798e. This record names this head only; a merge that leaves those paths untouched changes nothing judged here, and a merge that moves any of the four scoped files owes its own read.
  • SQL push-down: nothing to check; the delta is a merge of unrelated work, one regenerated line and one docs cell.
  • Governed surface, author, size: as above; objectstack-fleet[bot] on an internal branch. Security-touching: no.
  • fix(spec): record page descriptions no longer claim a key-field strip or stage path #35977 has landed; the overlap flag is spent.

④ Design judgment

packages/spec/src/ui/component.zod.ts (hits). The contract text this PR lands is byte-identical to what the last record judged, and the renderer it describes is byte-identical too, so the judgment stands as written there: 3 on every header, an upper bound in a record page's header bar whether authored or not, 2 in a phone's bottom bar with Edit counted, 1 on any other mobile header.

containers.tsx, record-top-bar.tsx, navigation-overlay.tsx (implement). Not moved; they agree with the describe as before.

S1: closed
S2: closed
N1: closed
N2: carried by follow-up card #35997; not this head's.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-ntrvrh
Reviewed-by: session_01Utp6CbUb7TcZK1XUAddUmQ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

Re-landing · area ux-4 · 2026-11-21T10:18Z

Reading Value
check-governed-merges --pr 35983 not governed, 1,177 lines → ordinary queue landing
K (merge base..origin/main) 7 (< 15)
CI on head b69bbad533 61 success, 9 skipped, 0 failed or pending; mergeable clean

The queue dropped the first landing (7058318653) with MERGE_CONFLICT after #35977 merged. Since then:

  • 3443bf851 merged main; the only conflict was the generated sdui-manifest.record.json sha line.
  • 97b964df2 re-recorded the manifest.
  • 14d7280e9 fixed content/docs/ui/pages.mdx:303 after the Docs Drift Check flagged it (claim amendment 7058720991).
  • b69bbad533 is a clean catch-up merge for K.

Reviews: L1-a delta ACCEPT 7060610173 at 14d7280e96; seat delta-2 L2 PASS 7060665425 at 14d7280e96. Under the seat's ruling, the catch-up merge owes no further delta: 14d7280e96...b69bbad533 touches none of component.zod.ts, containers.tsx, record-top-bar.tsx, navigation-overlay.tsx, references/ui/component.mdx or the manifest pair.

Re-queued now. #35853 closes on merge; #35840 is covered and gets closed out after the merge.

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit bc9ace2 Nov 21, 2026
70 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-ntrvrh branch November 21, 2026 10:48
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
… 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation protocol:ui size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants