Repository navigation
feat(record): one header row and one button group on the record page (#35593, #35419) - #35679
Conversation
Claude-Session: https://claude.ai/code/session_01Utp6Cb8qTxAVaE2QKwquQU Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CbcHxEWkJvtLGgxfdd Co-authored-by: Claude <noreply@anthropic.com>
, #35419) The decisions are the record header's group; a header-less layout keeps the band. Approval tag, reject reason required, no Edit under an approval lock. Tests migrated; checklist item and changeset. Claude-Session: https://claude.ai/code/session_01Utp6CbcHxEWkJvtLGgxfdd Co-authored-by: Claude <noreply@anthropic.com>
…he one-row header (#35593) Claude-Session: https://claude.ai/code/session_01Utp6CbcHxEWkJvtLGgxfdd Co-authored-by: Claude <noreply@anthropic.com>
…35593) Claude-Session: https://claude.ai/code/session_01Utp6CbcHxEWkJvtLGgxfdd Co-authored-by: Claude <noreply@anthropic.com>
|
I re-ran the same slot locally at e1989c8, with the file list So I read it as a stalled shard, not a failure this diff causes. Every other job in run 44632666515 passed. Per the fleet rule I don't re-run it myself; the seat may re-run the failed job once, and a second failure counts as real. Generated by Claude Code |
…ds with the icon (#35593) Acceptance on the showcase: - The header's approval tag names the lock (its tooltip says why), so the DetailView band draws no 「审批中已锁定」 badge for an approval lock when the host's header draws the tag (`approvalTagDrawnByHost`). The tally and an editable approval's badge stay; a host that does not say so is unchanged. - The drawer's row leads with the object's icon once the record's header holds the bar, as the full page's crumb does. The approval-actions test's `@object-ui/react` mock factory imported `@object-ui/components`, which imports `@object-ui/react` itself: the factory awaited the module it was building and the file hung at collection with no test clock running (the silent Test UI shard 12). The stub now gets the context through the hoisted holder, assigned after the imports. Claude-Session: https://claude.ai/code/session_01Utp6CbcHxEWkJvtLGgxfdd Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU Final head for L1:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对L1-a: ACCEPT, two items before queueing · head Maintainer's word: verified. The epic #35590 body records direction 2 with the maintainer's 「同意」 given "与 #34361 的旧裁决并排确认后 … 取代 #34361 的 A". So the record page drops the band. The request page's Reject needs a reason: in scope. Card item 6 is 「拒绝」必须填理由. The claim records that the server's Fences.
Item (1): Pins. R1 (before queueing): merge R2 (text only, no push, no fresh L1): claim amendment for two existing e2e specs. The claim allows "new e2e specs under
Name both in one amendment line on #35593. Routing. Clause-② no, no contract face, not governed: ux-4 lands it after R1 and R2. No L2. |
|
repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU Landing · area ux-4 · 2026-11-20T01:18Z
Head |
Requested by Bill · project thread
Fixes #35593
Fixes #35419
repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU
What changes
The record page's header is one 44 px row, with one button group (epic #35590).
page:headerdraws into the page's top bar instead of a second row under it. Left: object icon, object name,/, record name, stage tag, approval tag. Right: n/m, ↓ ↑, a divider, the button group, ⊟.DeclaredActionsBarheader face):maxVisiblestill wins.record-approvals-panel) until the 审批 tab (记录页页签规则:第一个叫「概览」并含通栏的阶段条和关键字段;列出全部子表、带条数、只按宽度收进下拉;附件、审批、互动各一个页签 #35595) exists.InlineEditProviderapprovalTagDrawnByHost; the tag's tooltip says why; the tally stays). A state lock keeps Edit greyed and shows its lock tag beside the name (in the bar) or as before (no bar).requireRejectReasonmapscommenttorequired). The declaration and the approvals list are unchanged.ApprovalDecisionPanelband and its pins are unchanged. A record layout with nopage:headerkeeps the old band above its body as a fallback (counted throughApprovalGroupBeacon), so its decisions never vanish.New in
@object-ui/react:InlineEditProviderapprovalTagDrawnByHost. New in@object-ui/components:RecordHeaderBarContext(the host bar's two slots and a claim) andRecordHeaderStateContext(tags + group).RecordTopBar/NavigationOverlaytakeactionSlotRef;NavigationOverlayalso takesstepperHidden;PageHeaderActionstakesdefaultMaxVisible. Bar heightsm:h-10→sm:h-11.Why
Card #35593 (Twenty-style record header, structure and sizes only, no code copied): three stacked bands became one row, and the approval's levers were a second button group competing with the record's.
Verification
Clause-②: no
Metadata-protocol: none
Acceptance, #35593
ui/packages/components/src/renderers/layout/containers.tsx(drawsInBar,recordStageTag),RecordDetailView.tsx(pageHeaderBar,barTitleSlotEl),record-top-bar.tsx(actionSlotRef,sm:h-11)recordDrawerStack.tsx(headerBar,stepperHidden,onExpand)DeclaredActionsBar.tsx(headerLeads,SUBMITTER_LEAD_VERBS),containers.tsx(stateGroup),defaultMaxVisible={inBar ? 1 : undefined}RecordDetailView.tsx(approvalTag,recordHeaderState)RecordDetailView.tsx(affordances.edit && !approvalLocked,approvalTagDrawnByHost,stateLockChip),DetailView.tsx(badge gate),InlineEditContext.tsxDeclaredActionsBar.tsx(staticParams = requireReason && routeVerb === 'reject')Acceptance, #35419
DeclaredActionsBar.tsx(headerTone,data-header-tone); pinned inRecordDetailView.phoneFace-27058.test.tsxapproval_reject= 「驳回」)A1–A5 readings
approval_recall, 催办 =approval_remind; both declared; the record page no longer excludes remind.ui/packages/react/src/context/InlineEditContext.tsx: a host-only propapprovalTagDrawnByHost, default off, so every host that never passes it keeps the band's badge unchanged. Why: card item 5 says an approval lock draws no lock badge. The record page's header tag already names the approval, and the band in@object-ui/plugin-detailonly learns what the host draws throughInlineEditProvider, the same wayapprovalRecallDrawnByHost(record page under approval: the admin override bar ("管理员代为通过 / 代为拒绝 / 代为转签 / 撤回 / 回复") sits above the record title as five primary-looking buttons, and 撤回 is drawn twice on the page #25877) works. Placement only; it never decides whether the record is locked. Clause-② stays no.PageHeaderActions'barface portalled into the page's action bar; it now calls the state group too.Tests
New pins:
ui/packages/components/src/__tests__/page-header-record-bar-35593.test.tsx(8): bar claim and portal, budget 1, authoredmaxVisible,recordChrome: false, tags, state group modes.RecordDetailView.approvalDeclaredActions.test.tsx(+7): approver / submitter / unrelated / override / no request, approval tag, reject reason required.record-top-bar-27524.test.tsx(+1): action slot order and empty hiding.DetailView.approvalTagHostDrawn-35593.test.tsx(3): no approval-lock badge when the host draws the tag; kept otherwise; an editable approval keeps its badge.Migrated (record page only; the request page's band pins are untouched):
RecordDetailView.phoneFace-27058(记录页:审批条和记录标题各有一个「更多」菜单;手机上审批锁定时底部主位置是灰掉的「编辑」 #35016 desktop and phone, mobile record page: a disabled Edit (edit.disabledWhen or editLockedByState) still takes the bottom bar's first slot — move it into the overflow like the approval-lock case (#35016) #35099/record page: an Edit disabled by userActions.edit.disabledWhen gives no reason, unlike the state and approval locks #35135 approval-lock controls).RecordDetailView.userActionPredicates(approval lock: no Edit),RecordDetailView.editLockedByState-32756.RecordDetailView.topBar-27524(crumb →/+ header H1; drawer: no crumb/counter, j steps).RecordDetailView.headerMenuIcons-12529,accessibleNames-12625,placedHeaderActions-29951(budget 1).RecordDetailView.headerRefresh,childWriteRefreshesParent-12244,printPageHeaderActions-12906,recordPageTiers-26678,harness(header row is in the top bar).record-flow-phone-targets.spec.ts(sm:h-11),record-header-title-width.spec.ts(anchor on the row's own chip).RecordDetailView.editLockedByState-32756now reads the approval lock off the tag (no band badge).CI-only stall (Test UI shard 12 on e1989c8):
RecordDetailView.approvalDeclaredActions.test.tsx's@object-ui/reactmock factory imported@object-ui/components, which imports@object-ui/react; the factory awaited the module it was building and the file hung at collection, with no test clock running. Reproduced locally (300 s timeout, every describe); fixed in 5ff9d4d (context handed through the hoisted holder), file now 20/20 in ~10 s.Retired: none. The record-page band expectations in
RecordDetailView.approvalDeclaredActions.test.tsxnow read the header-less fallback band.Checklist:
docs/qa/platform-checklist/areas/approvals.jsonapprovals.record-page-decisionsrevision 10 (steps 2, 4, 7, 9; acceptance 0, 1, 3, 4; source 0).Gates:
@object-ui/componentsand@object-ui/app-shelltype-check green;dispatch-gates --commandsset green locally (check:new-line-citationsis not a script on this tree);overlap-check --branch=HEADclean.Screenshots (showcase, 1280×800 zh-CN and 390, DSF 2), in the project files
objectstack-seat5/area-ux/ux-4/record/card-35593/: approver (EXP-2001, 通过 / 驳回 / ⋮, menu), submitter (Mei: 撤回 / 催办 / ⋮), unrelated on a locked record (Ada: 审批中 tag, ⋯ only, no Edit), unrelated without access to the request (no tag), approver who is also submitter, reject dialog (审批意见 required; empty confirm stays open), next step locked, after approval (编辑 + ⋯, no tag), 390 approver (only 通过 filled) and submitter, drawer.Deviations
🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CbcHxEWkJvtLGgxfdd