Skip to content

approvals: a decided first-step request's page shows an empty "Approval progress" card #35730

Closed

Description

@os-bob

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):

  1. <ApprovalStepLine steps={request.flow_route?.steps} />
    • flowRoute (packages/plugins/plugin-approvals/src/approval-route.ts) returns [...passedSteps, own] once the row is not pending: no steps ahead are drawn for a decided request.
    • For a first-step request passedSteps is empty, so steps has length 1.
    • ApprovalStepLine returns null when steps.length < 2 (ui/packages/app-shell/src/views/approval-progress/ApprovalStepLine.tsx).
  2. {progress && <DecisionProgressIndicator …/>}: no decision_progress on a single-approver decided step.
  3. <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

  1. A record-change or submit flow with two sequential approval nodes (step 1 → step 2), single approver each.
  2. Submit a record; approve step 1.
  3. Open step 1's sys_approval_request record page.
  4. Observed: the Approval progress card is empty. Expected: per (a) or (b) above.

Activity

  1. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    Contributor

    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.

  2. added
    area:workflow
    domain:ui
    pm:queue
    priority:p2
    on Nov 20, 2026
  3. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    Contributor

    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:ui and pm:queue unchanged.

  4. added
    priority:p1
    and removed
    priority:p2
    on Nov 20, 2026
  5. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    Contributor

    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_016WV4czKnDE6hsyXQzB9wB2
    Account: os-elon-musk
    Branch: claude/area-a4W-35730
    Worktree: objectstack-issue-35730
    Domain: domain:ui
    Area: a4-W
    Seat: repo:objectstack#4
    File surface: ui/packages/app-shell/src/views/approval-decision/ApprovalDecisionPanel.tsx and ui/packages/app-shell/src/views/approval-progress/ApprovalStepLine.tsx (and their tests), ui/packages/i18n/src/locales/*.ts only 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: flowRoute already returns the own step and ahead: '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: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: defect — the 3-part card body (ApprovalStepLine returns null under 2 steps; no decision_progress on 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.tsx only, 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 — ApprovalStepLine if (!steps || steps.length < 2) return null; (line ~58); flowRoute returns [...passed, own] with ahead: 'decided' for a non-pending row. Dev re-measures and adds a repro test first.
    Serial constraints cleared: overlap-check before push.

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:workflowdomain:uipm:dispatchedpriority:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions