Repository navigation
feat(app-shell): the served approval request page shows the flow origin and the vertical step line (objectui#12491) - #12938
Conversation
… flow origin (objectui#12491) The record:approval_decision panel now draws two more parts from the row the approval request page is bound to: - the vertical step line of the owning flow, from `flow_steps`, when the flow has more than one approval step, at any status; - the "Flow-initiated" marker (approvalsInbox.flowOrigin) when the row's `submitter_id` is absent or null, the contract's only spelling of a request no person submitted. No flow:/system: prefix branch. The stepper markup moves into one module-internal ApprovalStepLine that RecordApprovalsPanel draws too, with the same DOM. Claude-Session: https://claude.ai/code/session_0188TsgPV8kQXfuRuKmkj2ks Co-authored-by: Claude <noreply@anthropic.com>
…n (objectui#12491) Mounts the real RecordDetailView over the console's routed approvals read and objectstack's served sys_approval_request_detail page, with the row shaped as the approvals get serves it: flow_steps on the single read, and no submitter_id key for a request a flow run opened. Adds the README paragraph and the app-shell changeset. Claude-Session: https://claude.ai/code/session_0188TsgPV8kQXfuRuKmkj2ks Co-authored-by: Claude <noreply@anthropic.com>
|
changeset-claim-re-read
|
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
席位核对 — ACCEPT ·
|
Fixes #12491
Clause-②: no
Clause-② reason: the panel draws two more parts from attributes the bound row already carries. No entry export, prop, locale key or spec key is added or removed (measured below).
What changes
The decision panel (
record:approval_decision), which objectstack's servedsys_approval_request_detailpage mounts in itsactionsslot, now draws two more parts from the request row the page is bound to. This is face 5 of ruling C on objectui#12438, with the seat's answers Q1 A and Q2 A (comment6246197696).submitter_idis absent or null, the panel draws the existingapprovalsInbox.flowOrigincopy ("Flow-initiated") with the sheet's workflow icon, above the snapshot summary. That is the contract's only spelling of a request no person submitted (ADR-0118 D1); the approvals get serves the null column as an absent key. A request a person submitted carries no marker. Noflow:/system:prefix branch is ported from the sheet.flow_stepshas more than one step, the panel draws the flow's vertical step line between the snapshot summary and the tally, at ANY status. A decided request and afirst_responsenode (no tally) draw it too: that is the sheet's gate, not the indicator's.The stepper markup moves out of
RecordApprovalsPanelinto one module-internal component,approval-progress/ApprovalStepLine.tsx, which both panels draw. Its accessible name is the existingapprovalsInbox.stepProgressrow, asked for by literal key.RecordApprovalsPanel's output is unchanged (measured below), and its own gate (the record's pending request only) stays where it was.Not touched: the inbox side sheet (
ApprovalsInboxPage.tsx, ADR-0060 rule 3), any locale key, any spec key, and the served page. The flow's display name in the page's highlights strip is carried by objectstack-ai/objectstack#24264, a served-page edit in objectstack; this PR does not depend on it.Measurements
All at head
0c51cd64unless noted.DecisionProgressIndicatorPropshasprogressandeligibleApproversonly, and the indicator draws only when a tally exists, so the line is a sibling part. Holds.RecordApprovalsPaneldrew a stepper frompendingRequest.flow_stepswhen it had more than one step. Holds; it now drawsApprovalStepLine, with identical DOM.fb6fb24e2,getRequestattachesflow_steps(attachFlowSteps) on the single read, androwFromRequestservessubmitter_id: row.submitter_id ?? undefined, so a null submitter arrives as an absent key. The console'sApprovalRecordReadspasses the get's row through.ApprovalRequestLitealready declaresflow_stepsandsubmitter_id?: string | null; this PR does not change it. It is NOT reachable from the@object-ui/app-shellentry:src/index.tsre-exports a named list fromhooks/index.jsthat omits it, and the builtdist/index.d.tsnames neither it, nor either panel, norApprovalStepLine(0 hits). The build addsdist/views/approval-progress/ApprovalStepLine.*, which theexportsmap (.and./styles.css) does not reach.approvalsInbox.flowOriginandapprovalsInbox.stepProgressare in all ten packs. No key is added.RecordApprovalsPanelis byte-identical. A one-off parity test (deleted, never committed) rendered the panel from this branch and from base79cb8c03side by side and comparedinnerHTML. Equal for pending with 6, 2, 1 and 0 steps, pending with 12 steps all done, and a decided request with no pending row; a CONTROL (6 steps against 5) differed. 7 of 7 passed. The panel's six existing pin files pass unchanged.ablation-replace(anchor hit once, blob changed, restored to the HEAD blob withgit diff HEADempty). The tests import the panel by relative path, so no build sits between the mutation and the run.ApprovalStepLine:ApprovalDecisionPanel.stepLine-124917 failed, 1 passed (the one-step and no-steps CONTROL stays green).FlowOrigin:ApprovalDecisionPanel.flowOrigin-124914 failed, 2 passed (both CONTROLs stay green).pnpm exec vitest runfrom the repo root, under the verify lock, at0c51cd64):approval-decision/,approval-progress/,RecordApprovalsPanel*,apps/console/src/services/approvalRequestsDataSource*, the sheet'sApprovalsInboxPage.stepProgressVerticalandcharacterizationPins,product-neutral-renderer.ratchetanddead-pack-keys-retired-8754: 30 files, 268 tests passed.pnpm --filter @object-ui/app-shell type-check0, bothtsclegs; the two new app-shell pins are in the test project's program.pnpm --filter @object-ui/console type-check0; the new console pin is in its program.pnpm check:i18n-keys0;pnpm check:new-line-citations0 (0 new citations);pnpm check:test-path-roots0;pnpm check:changeset-claims0;node scripts/check-changeset-presence.mjs0;pnpm changeset:check0.RecordApprovalsPanel.tsxcode this PR does not change; the base version of that file reports the same 6.node scripts/check-governed-queue-guard.mjs --testover the diff: NOT GOVERNED.New pins
packages/app-shell/src/views/approval-decision/ApprovalDecisionPanel.stepLine-12491.test.tsx: the sheet's vertical layout contract over the panel's line (flex-col, named by thestepProgresspack row, one listitem per step in order, noshrink-0row,min-w-0labels with nowhitespace-nowrap, no horizontal scroller, no breakpoint-prefixed layout token, identical classes at 2, 5, 6 and 12 steps, each connector tinted by the step it leads into). Then the panel's gate: a decided 3-step request and afirst_responsenode draw the line; a one-step flow and a row with noflow_stepsdo not.packages/app-shell/src/views/approval-decision/ApprovalDecisionPanel.flowOrigin-12491.test.tsx: the contract's null shape (the key absent, the key null), at any status, in the active language. CONTROLs: a human submitter, and aflow:-prefixed id (no prefix branch).apps/console/src/services/approvalRequestsDataSource.servedPageStepLine-12491.test.tsx: the realRecordDetailViewoverApprovalRecordReadsand the served page copied whole, mounted as the face 1 and face 2 served-page pins mount it.Acceptance notes
servedPageApprovers-12482andservedPageSummary-12483) serve rows with nosubmitter_idkey, so on those pins the panel now also draws the flow-origin marker. None of their assertions reads it, and all of them pass. objectui#12484, which rewrites the served-page pins, is the natural place to give those rows a submitter if they should model human-submitted requests. Noted, not filed.RecordApprovalsPanelkeeps its own gate: it draws the line only for the record's pending request, so a business record whose approval is decided shows no line, while the inbox sheet and now the request page draw it at any status. The ruling keeps that panel's behaviour as it is. Noted, not filed: no contract states the record panel's gate.Generated by Claude Code