Skip to content

feat(frontend): rework rejection note dialog (ARG-444)#2336

Merged
gregberge merged 2 commits into
mainfrom
greg/arg-444-change-this-dialog-to-have-normal-button-in-the-footer
Jul 5, 2026
Merged

feat(frontend): rework rejection note dialog (ARG-444)#2336
gregberge merged 2 commits into
mainfrom
greg/arg-444-change-this-dialog-to-have-normal-button-in-the-footer

Conversation

@gregberge

Copy link
Copy Markdown
Member

Summary

Reworks the "Add a note about this rejection" dialog (shown when rejecting a snapshot during build review) per ARG-444.

  • Normal button in the footer, not in the field — replaces the editor's baked-in send button with a normal "Add to review" button in the dialog footer, next to Skip. ⌘/Ctrl+Enter still submits.
  • Snapshot shown on top of the field — a thumbnail + name of the snapshot the note attaches to, so the reviewer sees what they're commenting on (mirrors the sidebar's snapshot reference).
  • Post-submit flow — once the comment is added: the dialog closes, the right sidebar opens on the Review panel (so the new comment is visible), and the viewer advances to the next snapshot to keep reviewing.

Empty submit still surfaces the "Comment required" toast, and content is preserved on error. The provider/context/hook API is unchanged, so TrackButtons/BuildPage need no changes.

Notes

  • Skip closes without advancing (only submit advances), matching the issue wording.

Test plan

  • Reject a snapshot → dialog shows the snapshot thumbnail + name above the field, and an "Add to review" button in the footer
  • Type a note and submit → comment is added, right sidebar opens on the Review panel showing the comment, viewer advances to the next snapshot
  • Submit while empty → "Comment required" toast, no comment created
  • Skip → dialog closes, snapshot stays rejected

🤖 Generated with Claude Code

The "Add a note about this rejection" dialog now:
- shows a normal "Add to review" button in the footer instead of a send
  button baked into the editor field
- displays the target snapshot (thumbnail + name) above the field so the
  reviewer sees what they're commenting on
- after submit, opens the review panel (so the new comment is visible) and
  advances to the next snapshot so the reviewer can keep going

The provider/context/hook API is unchanged, so TrackButtons and BuildPage
need no changes.

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

linear-code Bot commented Jul 5, 2026

Copy link
Copy Markdown

ARG-444

@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, 9:17 PM
storybook/default (Inspect) ✅ No changes detected - Jul 5, 2026, 9:16 PM
Deployment Status Branch Updated (UTC)
storybook/preview (Open) Ready greg/arg-444-change-this-dialog-to-have-normal-button-in-the-footer Jul 5, 2026, 9:16 PM

Comment thread apps/frontend/src/pages/Build/RejectCommentDialog.tsx Outdated
…nt it

Address PR review feedback:
- Replace useMutation with useApolloClient().mutate(). useMutation subscribes
  the component to the mutation's own state and re-renders it while the request
  is in flight even though that state is never read here.
- Drive the modal's pending state via ModalActionContext (as a dialog Form
  does) so the footer buttons disable and the modal can't be dismissed while
  submitting — restoring the disabled-while-submitting behavior.
- Document the useMutation vs client.mutate guidance in apps/frontend/AGENTS.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gregberge gregberge enabled auto-merge July 5, 2026 21:18
@gregberge gregberge merged commit 3d6036e into main Jul 5, 2026
14 checks passed
@gregberge gregberge deleted the greg/arg-444-change-this-dialog-to-have-normal-button-in-the-footer branch July 5, 2026 21:18
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