Generate Bufdir Report with One-Click Export
Coordinators spend significant time manually compiling activity data from various sources to meet Bufdir grant reporting requirements. This story enables a one-click export that automatically aggregates all registered peer mentor activities, maps them to Bufdir categories, deduplicates participants, and produces a submission-ready report. The export screen should present a clear trigger action, show the scope being exported, and confirm the export is complete with a downloadable file. The entire flow from trigger to downloaded report should require no more than 3 taps.
User Story
Acceptance Criteria
- Given a coordinator is on the Bufdir export screen, when they tap the export button, then the system initiates aggregation across all activities in scope without requiring manual configuration
- Given an export is triggered, when the system aggregates data, then all peer mentor activities are mapped to the correct Bufdir activity categories using the category mapping configuration
- Given aggregation completes, when the report is generated, then the output file conforms to the current Bufdir schema and passes format validation
- Given the report is generated, when the coordinator taps download, then the file is saved to the device and a success confirmation is displayed
- Given a report was previously exported for the same period, when a new export is triggered, then the system warns the coordinator about a potential duplicate export before proceeding
Business Value
Bufdir grant funding is critical to all partner organizations. Manual reporting is error-prone and consumes coordinator hours every reporting cycle. Automating this export directly reduces administrative burden, improves data accuracy, and ensures organizations receive the full grant amounts they are entitled to. All four partner organizations (NHF, HLF, Blindeforbundet, Barnekreftforeningen) identified this as a MUST HAVE feature in Phase 3 of the roadmap.
Components
- Bufdir Export Screen ui
- Bufdir Export Service service
- Activity Aggregation Service service
- Bufdir Category Mapper service
- Organisation Hierarchy Resolver service
- Export Data Query Builder data
- Bufdir Format Serializer data
- Bufdir Export Edge Function infrastructure
- File Download Handler infrastructure
- Export Storage Bucket infrastructure
- Bufdir Export Trigger Screen ui
- Bufdir Export Orchestrator Service service
- Bufdir Activity Query Service service
- Bufdir Column Mapper service
- Export Audit Log Service service
- Bufdir Column Schema Config Repository data