feat(studio): wire inline approval driver methods
Some checks failed
Security / Security check (push) Failing after 2s

StudioFlowRunDriver gains three new methods that satisfy the
editor 0.21.0 FlowRunDriver interface:

  - pendingApprovalIdForStep(flowName, stepId) — picks the
    newest pending approval row matching this (flow, step)
    pair from HubService.pendingApprovals().
  - approveApproval(approvalId, reviewer) — delegates to
    HubService.approve, same RPC the Approvals page uses.
  - rejectApproval(approvalId, reviewer, reason) — delegates
    to HubService.reject.

End result: when a flow run pauses on system.approval@^0,
the Run tab now renders a complete Approve / Reject form
directly under the awaiting step. Operator no longer needs
to switch tabs to make the decision; the standalone Approvals
page stays available for non-running approvals and history.

Studio bumped to 0.68.0; editor pin moves to 0.21.0.

Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
flemming-it 2026-06-09 09:18:55 +02:00
parent 971196518c
commit 626404c5e4
4 changed files with 39 additions and 3 deletions

View file

@ -126,7 +126,7 @@ packages:
path: "../fai_studio_flow_editor"
relative: true
source: path
version: "0.20.1"
version: "0.21.0"
fake_async:
dependency: transitive
description: