Re-export a Previously Submitted Bufdir Report
From the report history screen, coordinators must be able to trigger a re-export of any past report. The system should retrieve the stored file from secure storage and present a download/share option. If the original file is no longer available in storage, the system should offer to regenerate the report using the historical snapshot data. The re-export action must be logged in the audit trail with a timestamp and the coordinator's identity.
User Story
Acceptance Criteria
- Given the coordinator taps 're-export' on a historical report, when the action completes, then the original file is retrieved from storage and offered as a download or share-sheet option on the device
- Given the original file has been purged from storage, when the coordinator requests a re-export, then the system clearly informs the coordinator that the file will be regenerated from historical data and asks for confirmation before proceeding
- Given the coordinator confirms a re-export, when the file is generated, then an audit log entry is created recording the coordinator's user ID, timestamp, and report period
- Given the re-export is in progress, when the coordinator waits, then a progress indicator is shown and the coordinator can navigate away without cancelling the process
- Given the download completes, when the coordinator checks the audit log, then the re-export event is visible alongside the original submission event
Business Value
Coordinators regularly receive ad-hoc requests from Bufdir or internal management for copies of submitted reports. Without a re-export feature they must manually recreate reports or locate archived emails, wasting hours of coordinator time. Re-export with audit logging also satisfies Bufdir's requirement that organizations demonstrate traceability of all submitted grant documentation.
Components
- Report History Screen ui
- Report Re-export Coordinator service
- Report History Service service
- Report History Repository data
- Report File Storage Client data
- Bufdir Export Orchestrator Service service
- Export Audit Log Service service
- Export Audit Log Repository data
- Excel / CSV File Generator infrastructure
- Bufdir PDF Report Generator infrastructure
- Export File Storage Adapter infrastructure
- File Download Handler infrastructure