ActivityFlagWidget
Component Detail
Description
An inline widget rendered within activity submission views that allows administrators and coordinators to attach concern flags to individual records. It presents flag type selection, an optional note field, and current flag status with resolution controls. The widget updates flag state without disrupting the surrounding activity review workflow.
activity-flag-widget
Sources & reasoning
Line 195 references corrections as part of the admin oversight mandate, and line 109 establishes NHF's structural complexity as a scaling challenge that binary approval alone cannot address. Blueprint marks this [v1.0] - an enhancement to the MVP approval workflow rather than a launch prerequisite. No explicit Fase 2 mention of flagging, but it naturally extends the oversight capability confirmed by the source and is prerequisite for duplicate detection integration.
-
docs/source/likeperson.md · line 195Activity oversight, approval workflows, and corrections
-
docs/source/likeperson.md · line 109Bredest organisasjonsstruktur: 12 landsforeninger, 9 regioner, 1 400 lokallag - aktivitetsfordeling mellom ledd må støttes.
Responsibilities
- Render flag creation form with type selector and optional note input
- Display current flag status and type badge on flagged activities
- Provide resolution and dismissal controls for existing flags
- Emit flag lifecycle events to the flagging service on user action
- Show flagged activity indicator in list and detail views
Interfaces
openFlagDialog(activityId: string): void
renderFlagBadge(flag: ActivityFlag): HtmlElement
submitFlag(activityId: string, type: FlagType, note?: string): Promise<void>
resolveFlag(flagId: string, resolution: FlagResolution): Promise<void>