Detect and Resolve Duplicate Proxy Registrations Before Submission
NHF specifically raised the risk of duplicate activity registrations when multiple coordinators manage overlapping peer mentor groups. Before a proxy registration is submitted, the system should compare the pending record against existing entries for the same peer mentor, date, and activity type. If a potential duplicate is detected, a warning dialog must be shown with a side-by-side comparison of the pending and existing records, allowing the coordinator to cancel, edit, or explicitly confirm the submission with a duplicate-acknowledged flag.
User Story
Acceptance Criteria
- Given the coordinator submits a proxy registration, when the system detects an existing record for the same peer mentor, date, and activity type within a 2-hour window, then a duplicate warning dialog is shown before the record is saved
- Given the duplicate warning dialog is shown, when the coordinator views it, then both the existing record and the pending record are displayed side by side with key fields highlighted
- Given the coordinator decides the records are distinct, when they confirm submission, then the record is saved with a 'duplicate-reviewed' flag and the original record is unchanged
- Given the coordinator decides it is a duplicate, when they cancel, then no record is saved and they are returned to the registration form
- Given a bulk proxy submission containing multiple potential duplicates, when the batch is reviewed, then all flagged participants are highlighted in the confirmation screen and must be individually acknowledged before the batch proceeds
Business Value
Duplicate activity registrations directly corrupt Bufdir report data, which is used to calculate grant allocations. NHF explicitly identified this as a risk given their 1,400 local chapters and overlapping coordinator responsibilities. Catching duplicates at submission time prevents data integrity issues that would otherwise require expensive manual audits or result in incorrect funding decisions.
Components
- Proxy Duplicate Detector service
- Duplicate Warning Bottom Sheet ui
- Duplicate Comparison Panel ui
- Duplicate Detection Service service
- Duplicate Resolution Handler service
- Duplicate Check Repository data
- Duplicate Reviewed Flag Middleware infrastructure
- Duplicate Detection BLoC infrastructure
- Duplicate Activity Warning Dialog ui
- Proxy Duplicate Detection Service service
- Duplicate Activity Detector infrastructure