Repository navigation
Description
What happens
On the approval request page (sys_approval_request record, ApprovalDecisionPanel), the right rail's Approval progress card (zh-CN 「审批进度」) renders only its title, with an empty body, when the request is the first approval step of its run and is already decided (approved or rejected).
Seen on an app deployment (a 4-step sequential quote approval, one approval node per step): the step-1 request, approved, shows
- header: Status Approved, Step = step 1's label;
- Activity card: submit + approve rows, as expected;
- Approval progress card: title only, nothing under it.
A reader takes the empty card as "something is broken", or as "the whole approval is done", while the record's own approval (step 2 onward) is still running.
Why (read from source, main at 3483407)
The card body is three parts (ui/packages/app-shell/src/views/approval-decision/ApprovalDecisionPanel.tsx, the approval-decision-progress RailCard):
<ApprovalStepLine steps={request.flow_route?.steps} />flowRoute(packages/plugins/plugin-approvals/src/approval-route.ts) returns[...passedSteps, own]once the row is notpending: no steps ahead are drawn for a decided request.- For a first-step request
passedStepsis empty, sostepshas length 1. ApprovalStepLinereturnsnullwhensteps.length < 2(ui/packages/app-shell/src/views/approval-progress/ApprovalStepLine.tsx).
{progress && <DecisionProgressIndicator …/>}: nodecision_progresson a single-approver decided step.<PendingApprovers …/>: nobody is pending on a decided request.
All three render nothing, so the card is an empty shell. The same holds for a decided request of a one-step flow.
Expected
One of:
- (a) Draw the card's step line for a decided request even with one step, e.g. "① Step 1 ✓ Approved", plus a line saying whether the run went on (the record's approval continues at the next step / the approval ended); or
- (b) Do not render the card when none of its three parts has anything to show.
(a) is more useful: the reader of a decided step request wants to know where the record's approval stands now. flow_route.ahead is already 'decided' there, so the UI can tell this case apart.
Repro
- A record-change or submit flow with two sequential
approvalnodes (step 1 → step 2), single approver each. - Submit a record; approve step 1.
- Open step 1's
sys_approval_requestrecord page. - Observed: the Approval progress card is empty. Expected: per (a) or (b) above.
Activity
objectstack-fleet commentedon Nov 20, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:ui(ApprovalDecisionPanel) ·pm:queue; rationale: area:workflow · Bug · Impeded (on a decided first-step approval request, the right rail's 「审批进度」 card renders its title with an empty body) · approvers and submitters opening decided requests, not every user every time → p2 under the UX rule · reported on an app deployment by an outside builder.objectstack-fleet commentedon Nov 20, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Ruling-ref: priority:p1 · maintainer 2026-11-20T04:5xZ, verbatim: 「审批过的第一步审批单,右侧“审批进度”是空的,p1」
2026-11-20T05:12Z · p2 → p1 on the maintainer's word. Lane
domain:uiandpm:queueunchanged.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#4 · os-elon-musk · session_016WV4czKnDE6hsyXQzB9wB2
Claim: PM loop round 5 · area a4-W · p1 (maintainer 「审批过的第一步审批单,右侧“审批进度”是空的,p1」): a decided first-step approval request shows an empty "Approval progress" card · 2026-11-20T10:46Z
Session:
session_016WV4czKnDE6hsyXQzB9wB2Account:
os-elon-muskBranch:
claude/area-a4W-35730Worktree:
objectstack-issue-35730Domain:
domain:uiArea: a4-W
Seat: repo:objectstack#4
File surface:
ui/packages/app-shell/src/views/approval-decision/ApprovalDecisionPanel.tsxandui/packages/app-shell/src/views/approval-progress/ApprovalStepLine.tsx(and their tests),ui/packages/i18n/src/locales/*.tsonly if a new sentence is needed (all locales),ui/.changeset/*.md. Card option (a): for a decided request (flow_route.ahead === 'decided') the card draws its step line even with one step (e.g. "① Step 1 ✓ Approved"), and the card never renders as an empty shell. Server side out of scope:flowRoutealready returns the own step andahead: 'decided'; a "the run went on / ended" line is drawn only if derivable from data the page already holds, otherwise named as a follow-up. Stop on breach.Container & model: S,
mode:subagent, model: TIER_DEFAULT, effort: highClause-②: no
Metadata-protocol: none
Responsibility: defect — the 3-part card body (
ApprovalStepLinereturns null under 2 steps; nodecision_progresson a single-approver decided step; nobody pending) leaves the card empty for any decided first step and any decided one-step flow.Pre-claim lane: domain:ui · area:workflow (triage 7030673427
domain:ui·pm:queue; p1 on the maintainer's word, 7031089378). Routed to a4-W by the seat (2026-11-20T10:44Z).Pre-claim deps: none; #35741 (merged) touched
ApprovalsInboxPage.tsxonly, not these files.Prior rulings read: maintainer p1 line in 7031089378;
check-prior-rulings.mjs --card 35730(report-only, no ruling). Card's option (a) chosen as the card itself recommends it ("(a) is more useful").Thread-read: 7031089378
Premise: holds on origin/main —
ApprovalStepLineif (!steps || steps.length < 2) return null;(line ~58);flowRoutereturns[...passed, own]withahead: 'decided'for a non-pending row. Dev re-measures and adds a repro test first.Serial constraints cleared: overlap-check before push.