Duplicate Alert Widget
Component Detail
User Interface
medium complexity
frontend
2
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
An admin portal widget embedded on the Activity Review page that surfaces potential duplicate activity registrations as actionable alert cards. Each alert shows the conflicting activities side-by-side with key fields (peer_mentor_id, date, type, organization) so a reviewer can compare and resolve without navigating away.
duplicate-alert-widget
Responsibilities
- Render a prioritized list of open duplicate alerts grouped by organization
- Display side-by-side comparison of conflicting activity records
- Expose dismiss and resolve actions per alert with confirmation prompts
- Reflect real-time flag status changes without full page reload
Interfaces
loadDuplicateAlerts(orgId: string, page: number): Promise<DuplicateAlertPage>
dismissAlert(flagId: string, actorId: string): Promise<void>
resolveAlert(flagId: string, resolution: FlagResolution): Promise<void>
getAlertCount(orgId: string): Promise<number>
Relationships
Dependencies (2)
Components this component depends on