fix(dashboard): carry pr_number on live approval_added

Completes the merge_config_pr approval-card link for live-added approvals.
The ApprovalAdded SSE event now carries pr_number (only for
merge_config_pr); applyApprovalAdded was dropping it, so a live-added
merge_config_pr card showed the sha but not the 'review PR on forge' link
until a cold /api/state reload. Carry pr_number through the same way as
sha_short.
This commit is contained in:
iris 2026-06-23 18:44:13 +02:00
commit 211dab6f90

View file

@ -129,6 +129,7 @@ export function applyApprovalAdded(ev) {
agent: ev.agent,
kind: ev.approval_kind,
sha_short: ev.sha_short || null,
pr_number: ev.pr_number ?? null,
diff: ev.diff || null,
description: ev.description || null,
// The ApprovalAdded event carries no requested_at; a live-added