Detect and Resolve Duplicate Activities During Proxy Registration
Duplicate registrations are a known risk in multi-coordinator environments — NHF specifically flagged this as a unique concern given their complex structure of 1,400 local chapters. When a coordinator registers an activity on behalf of a peer mentor, the system should check whether a similar activity (same peer mentor, overlapping date/time, same activity type) already exists, either registered by the peer mentor themselves or another coordinator. A non-blocking warning should surface, giving the coordinator context to decide whether to proceed, modify, or cancel the registration.
User Story
Acceptance Criteria
- Given the coordinator submits a proxy registration, when the system detects an existing activity for the same peer mentor on the same date with the same activity type, then a duplicate warning dialog is shown before final save
- Given the duplicate warning dialog is shown, when the coordinator reviews it, then the dialog displays the conflicting existing activity's details (date, duration, who registered it, registration source)
- Given the duplicate warning is displayed, when the coordinator decides to proceed anyway, then the registration is saved with a flag indicating it was submitted despite a duplicate warning
- Given the duplicate warning is displayed, when the coordinator cancels, then they return to the form to modify the details without losing their input
- Given a bulk registration of 10 mentors is submitted, when 2 of them have potential duplicates, then the confirmation screen highlights the 2 affected mentors separately and allows per-mentor review before final submission
- Given a registration was flagged as a potential duplicate, when it appears in reporting views, then the duplicate flag is visible to auditors
Business Value
NHF explicitly identified duplicate activity registration as a high-risk issue in their 1,400-chapter structure where multiple coordinators may manage overlapping groups. Inflated activity counts directly undermine Bufdir reporting credibility, which is the primary mechanism for organizational funding. Duplicate detection protects the statistical integrity of all four organizations' grant applications and compliance reports.
Components
- Proxy Duplicate Detector service
- Duplicate Warning Bottom Sheet ui
- Duplicate Comparison Panel ui
- Duplicate Detection Service service
- Duplicate Reviewed Flag Middleware infrastructure
- Duplicate Detection BLoC infrastructure
- Duplicate Activity Warning Dialog ui
- Proxy Duplicate Detection Service service
- Activity Attribution Validator service
- Proxy Audit Logger infrastructure