Map Activity Types to Bufdir Reporting Categories
Each activity type must be assigned a Bufdir category (e.g., individual guidance, group activity, telephone support, digital meeting) when it is created or edited. This mapping is used by the Bufdir export service when aggregating activities for the reporting period. The form presents the available Bufdir categories as a controlled dropdown, validated against the current Bufdir schema configuration. This eliminates the end-of-year reconciliation process where coordinators manually review and reclassify hundreds of activity entries.
User Story
Acceptance Criteria
- Given I am on the activity type form screen, When I view the Bufdir category field, Then I see a dropdown with the current valid Bufdir categories
- Given I select a Bufdir category, When I save the activity type, Then the mapping is persisted and associated with all future activities of this type
- Given activities have been registered using this type, When the Bufdir export service runs for a reporting period, Then activities are automatically grouped under the correct Bufdir category based on their type mapping
- Given I attempt to save an activity type without selecting a Bufdir category, When validation runs, Then I receive a warning (not a hard block) since some internal types may not require Bufdir reporting
- Given Bufdir updates their reporting categories, When an administrator updates the category configuration, Then the dropdown in the form reflects the new categories and existing mappings that are still valid are preserved
- Given an activity type has no Bufdir mapping, When the Bufdir export runs, Then activities of this type are excluded from the export with a coordinator-visible warning
Business Value
Bufdir reporting is a mandatory compliance obligation for all three workshop organizations, and all three identified 'press one button and get the Bufdir report' as a top shared requirement. Accurate Bufdir category mapping at the activity type level is the foundational prerequisite for this automation. Without it, coordinators must manually review and reclassify every activity entry before each annual submission—a process currently taking days. Correct configuration here eliminates that entirely.
Components
- Activity Type Form Screen ui
- Activity Type Service service
- Activity Type Repository data
- Bufdir Category Mapper service
- Activity Category Mapping Configuration infrastructure
- Bufdir Export Service service
- Supabase Client infrastructure