SUBMISSION-253: Add delete confirmation modal to Review Files page - #130
Open
DavidLFielding wants to merge 1 commit into
Open
SUBMISSION-253: Add delete confirmation modal to Review Files page#130DavidLFielding wants to merge 1 commit into
DavidLFielding wants to merge 1 commit into
Conversation
DavidLFielding
marked this pull request as ready for review
August 28, 2026 15:28
DavidLFielding
requested review from
bdc34,
bmaltzan,
jweiskoff and
norbusan
as code owners
August 28, 2026 15:28
norbusan
approved these changes
Aug 31, 2026
bdc34
approved these changes
Sep 1, 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.
Summary
Adds a confirmation dialog to the Review Files page before it deletes files on Continue, for parity with Submit 1.5. Previously the page deleted every checked file (including the ones auto-checked as unused) with no confirmation — unlike the Upload page, which confirms every delete.
Behavior
requestSubmit(button)so theaction=nextvalue is preserved.Design
Mirrors the 1.5 confirm-on-delete dialog: centered title-case heading with a close (×), a centered "By continuing the following N files will be deleted:" lead, a plain bulleted list, and two equal-width Cancel / Confirm buttons.
One intentional deviation from 1.5: the file list scrolls within its own region rather than scrolling the whole dialog, so a large submission (hundreds of files) keeps the heading and buttons in view.
Tests
submit_ce/ui/static/js/tests/review_delete_confirm.test.js— self-contained Node test (DOM stub, no test runner) covering intercept + list/count, Confirm submitting with the button as submitter, Cancel, Escape, and the no-checked-files pass-through. Run withnode submit_ce/ui/static/js/tests/review_delete_confirm.test.js.