Skip to content

feat(frontend): show previous approvals dialog on overview (ARG-443)#2337

Merged
gregberge merged 1 commit into
mainfrom
greg/arg-443-previous-approvals-detected-dialog-not-shown-on-overview
Jul 5, 2026
Merged

feat(frontend): show previous approvals dialog on overview (ARG-443)#2337
gregberge merged 1 commit into
mainfrom
greg/arg-443-previous-approvals-detected-dialog-not-shown-on-overview

Conversation

@gregberge

Copy link
Copy Markdown
Member

ARG-443

The "Previous approvals detected" dialog was only shown once the user entered the review flow. It now appears as soon as the user arrives on the build overview.

The dialog logic itself was already correct — it opens only when there are previous branch approvals to reapply, the viewer hasn't submitted a review, and no diffs have been marked yet; and on Reapply it reapplies the approvals and redirects to the first still-pending snapshot. The only issue was where it was mounted.

Changes

  • BuildDiffDetail.tsx — removed the <BuildDialogs> render, its import, and the ...BuildDialogs_Build fragment spread (this is what delayed the dialog until review mode).
  • BuildOverview/index.tsx — mounted <BuildDialogs> here and added ...BuildDialogs_Build to the BuildOverview_Build fragment.

Behavior

  • Arrive on overview with previous approvals → dialog shows immediately.
  • Accept → approvals reapplied + redirected to the first snapshot for review.
  • Cancel → dialog closes, user stays on the overview.

🤖 Generated with Claude Code

Move the "Previous approvals detected" dialog from the review view to the
build overview so it appears as soon as the user arrives. Accepting still
reapplies the approvals and redirects to the first snapshot to review.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gregberge gregberge requested a review from jsfez July 5, 2026 20:49
@linear-code

linear-code Bot commented Jul 5, 2026

Copy link
Copy Markdown

ARG-443

@argos-ci

argos-ci Bot commented Jul 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
argos/default (Inspect) ✅ No changes detected - Jul 5, 2026, 8:52 PM
storybook/default (Inspect) ✅ No changes detected - Jul 5, 2026, 8:51 PM
Deployment Status Branch Updated (UTC)
storybook/preview (Open) Ready greg/arg-443-previous-approvals-detected-dialog-not-shown-on-overview Jul 5, 2026, 8:50 PM

@gregberge gregberge merged commit 0fed59a into main Jul 5, 2026
14 checks passed
@gregberge gregberge deleted the greg/arg-443-previous-approvals-detected-dialog-not-shown-on-overview branch July 5, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant