Cancel Activity Submission to Prevent Duplicate Entry
When the Duplicate Warning Dialog is presented, the user can choose to cancel the submission instead of proceeding. Cancellation dismisses the dialog and returns the user to the activity registration screen with their in-progress form data preserved, allowing them to correct the entry, change the date or duration, or abandon the submission entirely. No data is written to the database. This is the primary recovery path for coordinators who realize they are about to double-count an activity already logged by the peer mentor or another coordinator.
User Story
Acceptance Criteria
- Given the Duplicate Warning Dialog is visible, when the user selects the cancel action, then no new activity record is created in the database
- Given the user cancels from the duplicate warning, when the dialog closes, then the user is returned to the activity registration form with their previously entered data still populated
- Given the user cancels from the duplicate warning, when the form is shown, then the user can edit fields and re-submit, which will trigger a fresh duplicate check
- Given the user cancels from the duplicate warning, when the dialog closes, then no error state or success message is shown — the user is simply back in the editing flow
Business Value
Cancellation is the desired default outcome when the system correctly flags a true duplicate. Without a friction-free cancel path, users may dismiss the warning and proceed anyway. Preserving form data on cancel reduces the cost of the interruption and encourages users to verify rather than bypass the warning.