Archive an Activity Type No Longer in Use
When an activity type becomes obsolete, deleting it would break historical activity records. Instead, coordinators archive it—marking it inactive so it is hidden from the peer mentor selection screen but retained in the database for historical queries, Bufdir exports, and audit purposes. The admin screen clearly differentiates active and archived types and provides a simple archive/unarchive toggle.
User Story
Acceptance Criteria
- Given I am on the activity type form or admin screen, When I tap 'Archive' on an active type and confirm the dialog, Then the type is marked inactive
- Given an activity type is archived, When a peer mentor opens the activity type selection screen, Then the archived type does not appear in the list
- Given an activity type is archived, When I run a Bufdir export for a historical period, Then activities registered under the archived type are still included in the export
- Given I am on the admin screen with 'Show Archived' toggled on, When I view an archived type, Then I can tap 'Unarchive' to restore it to active status
- Given I attempt to archive a type, When a confirmation dialog appears, Then I must confirm before the archive action is committed
- Given an activity type is archived, When I query historical statistics, Then activities of that type are counted correctly in the peer mentor's history
Business Value
As organizations evolve their programs, activity catalogues accumulate obsolete types. Presenting peer mentors with outdated or irrelevant options during registration increases cognitive load and registration errors—directly undermining the core design principle of minimal cognitive burden emphasized across all workshops. Archiving keeps the selection interface lean while maintaining data integrity for mandatory Bufdir historical reporting.
Components
- Activity Type Admin Screen ui
- Activity Type Service service
- Activity Type Repository data
- Activity Type Cache Provider data
- Supabase Client infrastructure