Edit an Existing Activity Type
Coordinators must be able to update activity types as organizational needs evolve—terminology changes, Bufdir reporting categories are reclassified, or default durations need adjustment. The form screen is reused in edit mode, pre-populated with existing values. Changes must be saved to the repository and immediately reflected in the cache so peer mentors see updated names and defaults without requiring an app restart.
User Story
Acceptance Criteria
- Given I tap an existing activity type in the admin list, When the form screen opens, Then all existing values are pre-populated in the correct fields
- Given I edit the name field, When I save, Then the updated name appears in the admin list and in the peer mentor selection screen immediately
- Given I change the default duration, When a peer mentor next selects this activity type, Then the updated duration is pre-filled in the duration step
- Given I change the Bufdir category mapping, When the next Bufdir export runs, Then future activities of this type are exported under the updated category
- Given I save an edit, When I return to the admin screen, Then a success confirmation is shown and the list reflects the changes
- Given the activity type has existing activity records, When I edit its name or metadata, Then existing activity records retain their original type reference and are not broken
Business Value
Organizations' terminology and Bufdir category structures change over time. Without the ability to edit activity types, coordinators are forced to create duplicate types or accept inaccurate data in reports. Clean, updatable activity type metadata directly reduces the error rate in Bufdir submissions, which is critical given that all three workshop organizations identified Bufdir reporting accuracy as a top concern.
Components
- Activity Type Form Screen ui
- Activity Type Service service
- Activity Type Metadata Resolver service
- Activity Type Repository data
- Activity Type Cache Provider data
- Supabase Client infrastructure