Bufdir Report Generation
Feature Detail
Description
Bufdir Report Generation automates the creation of grant compliance reports required by the Norwegian Directorate for Children, Youth and Family Affairs. The feature aggregates activity data from all peer mentors in an organization into the structured format Bufdir requires for annual grant reporting. Org Admins select a reporting period, review aggregated figures in a preview step, and generate a formatted report that meets Bufdir submission requirements without any manual data extraction, reformatting, or spreadsheet work.
Sources & reasoning
Section 1.4 explicitly identifies Bufdir reporting as a universal MUST HAVE across all four organizations and states it is an admin-only function. The Phase 2 roadmap lists it as the primary admin deliverable. Blueprint assigns [v1.0], matching Phase 2 by ordinal (second phase = v1.0). Report generation is separated from export to enforce a mandatory preview/review checkpoint before any data is committed for submission.
No source references — this artifact was included based on reasoning alone (see above).
Analysis
All four organizations receive Bufdir funding and currently spend significant administrative time on grant reporting. The workshop documentation states the shared desire directly: "trykk på én knapp og få ut det Bufdir trenger." Norse Digital Products has committed to initiating dialogue with Bufdir on behalf of all organizations to simplify the reporting format. Automating report generation eliminates hours of manual data compilation per reporting cycle per organization, reduces volunteer-run associations' administrative burden, and removes the risk of Bufdir grant non-compliance caused by data entry errors or missed activities. The preview step before export gives Org Admins confidence in the figures, protecting organizations from submitting incorrect totals.
A dedicated Bufdir report builder runs server-side in Next.js, aggregating activities from PostgreSQL scoped strictly to the requesting organization's tenant. A report schema maps internal activity fields (type, duration, contact category, date) to Bufdir's required output structure. The generation pipeline persists the result to the bufdir_exports table with status, period, and generating user before surfacing a preview screen. Norse Digital Products coordinates with Bufdir to confirm accepted field mappings; the schema is maintained as a versioned server-side configuration rather than hardcoded so it can be updated without a client release. Role guard restricts this page to Org Admin only.
Components (48)
Shared Components
These components are reused across multiple features
Service Layer (11)
Data Layer (23)
Infrastructure (7)
User Stories
No user stories have been generated for this feature yet.