feat(website): Add confirmation dialog for citation deletion#6919
Merged
Conversation
The "Remove" button for CURATED SeqSet citations on the admin dashboard previously deleted the citation immediately on click, with no way to back out of an accidental click. This adds a confirmation dialog gate before the delete request is sent, matching the existing pattern used for deleting SeqSet versions (displayConfirmationDialog). The dialog names the citation being removed so the admin can confirm they are removing the right one. The actual delete logic is unchanged and only runs once the admin confirms. The integration test helper (admin.page.ts deleteCitation) is updated to click the confirmation dialog's "Confirm" button after clicking "Remove". Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011J2KqZ78uAwuMYZL2J6gCV
theosanderson
marked this pull request as ready for review
July 16, 2026 13:09
Contributor
|
Claude finished @theosanderson's task in 1m 12s —— View job Reviewing PR #6919Todo list:
SummaryClean, small change. The implementation follows the exact same A few notes (none blocking):
No inline comments — nothing actionable to flag. |
tombch
approved these changes
Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
resolves #
Description
Added a confirmation dialog that appears when users attempt to delete a citation from the admin dashboard. This prevents accidental deletions by requiring explicit confirmation before the deletion is processed.
Changes:
handleDeleteto display a confirmation dialog before deletiondeleteCitationfor clarityhandleDeleteis now synchronousPR Checklist
Test Plan
The integration test
deleteCitationhas been updated to verify the complete deletion flow including the confirmation dialog. The test now clicks the "Confirm" button and verifies the citation row is hidden, ensuring the feature works end-to-end.https://claude.ai/code/session_011J2KqZ78uAwuMYZL2J6gCV
🚀 Preview: Add
previewlabel to enable