CRITICAL story-bufdir-reporting-export-coordinator-004 8 pts
8
Story Points
Critical
Priority
Bufdir Reporting & Export
Feature

User Story

As a Coordinator
I want to select an export format (Excel, CSV, or PDF), confirm the export, and download the generated file directly to my device
So that I can submit the report to Bufdir in the exact format they require, or share it internally for review

Acceptance Criteria

  • Given I am on the export trigger screen, when I view format options, then I see Excel, CSV, and PDF as selectable formats
  • Given I select a format, when I tap Generate Report, then an export confirmation dialog shows the scope, period, record count, and format before I confirm
  • Given I confirm the export, when the orchestrator processes the request, then an export progress indicator is displayed and the UI remains responsive
  • Given the export completes, when the file is ready, then the file download handler triggers a native device download prompt
  • Given the export is an Excel or CSV file, when I open it, then the columns match Bufdir's required schema with correct headers and data formatting
  • Given the export is a PDF, when I open it, then it contains all required sections in a human-readable format suitable for archiving
  • Given any export is generated, when it completes, then an audit record is written capturing the coordinator, timestamp, period, format, and record count

Business Value

The ultimate deliverable of the Bufdir reporting feature is a file that can be submitted to the government. Supporting multiple formats ensures compatibility with Bufdir's evolving submission requirements, while the audit trail protects organizations in case of disputes about what was submitted and when. This directly fulfills the shared 'one-button Bufdir export' requirement identified across all organizations.