Export Bufdir Report in PDF and Structured Data Formats
The Report Export Service renders the finalized report snapshot into the selected export format. PDF export produces a formatted document suitable for official submission. CSV and Excel exports produce structured data files for any direct submission or archiving needs. When Bufdir exposes a direct submission API, the Bufdir API Integration component will handle automated submission. Until then, files are delivered to the user's device for manual upload. The export action is available from both the report list and the preview screen.
User Story
Acceptance Criteria
- Given a generated report is available, when the user selects PDF export, then a properly formatted PDF document matching Bufdir's required layout is generated and downloaded to the device
- Given a generated report is available, when the user selects CSV or Excel export, then a structured data file containing all required reporting fields is generated and downloaded
- Given the export completes, when the user opens the exported file, then all data values match exactly what was shown in the report preview
- Given the Bufdir API Integration is unavailable or not yet configured, when the user exports, then the system falls back to local file delivery without error
- Given the export file is large due to a long reporting period, when generation takes more than a few seconds, then the user sees a progress indicator and is not left with a non-responsive UI
Business Value
Export is the final step that converts automated data aggregation into a submittable grant report. Without this step the reporting automation provides no value. Supporting multiple formats ensures compatibility with Bufdir's current submission process while enabling seamless transition to direct API submission once available.
Components
- Report Export Service service
- Bufdir API Integration infrastructure
- Report Preview Screen ui
- Bufdir Report Screen ui