View Export History and Re-export Previous Reports
Grant audits often require organizations to produce historical reports. Coordinators also need to compare submissions across years to identify trends and ensure consistency. The export history screen must list all past Bufdir exports with period, format, generation date, file size, and the coordinator who generated it. Each entry should provide access to the stored file for re-download. For re-export scenarios — where the coordinator wants to regenerate the report with current data for the same period — the system should detect this as a potential duplicate and require explicit confirmation. Row-level security must ensure coordinators only see exports for their authorized organizations.
User Story
Acceptance Criteria
- Given the coordinator navigates to export history, when the screen loads, then a list of all previous exports is displayed ordered by date descending, showing period, format, file size, and generating user
- Given the coordinator taps a history entry, when they open it, then they can re-download the stored file without re-running aggregation
- Given the coordinator initiates a re-export for a period that already has an export, when they confirm, then the system logs both the original and re-export with timestamps for audit purposes
- Given the coordinator belongs to multiple chapters, when they view export history, then only exports for their authorized organizations are shown — no cross-organization data leakage
- Given an export file has been deleted from storage, when the coordinator attempts to download it, then a clear error message is shown explaining the file is unavailable and offering to regenerate
- Given the coordinator views a history entry, when they check the summary metrics widget, then they see the total activity count, participant count, and total hours reported in that submission
Business Value
Public grant funding is subject to audit requirements that can surface years after the reporting period. Without a reliable export history, organizations risk being unable to produce historical evidence of their reported activities, potentially jeopardizing future grant eligibility. The re-export and audit trail capability directly reduces compliance risk and the administrative cost of responding to Bufdir audit requests.
Components
- Report History Screen ui
- Report History List Item Widget ui
- Report Summary Metrics Widget ui
- Report History Service service
- Report Re-export Coordinator service
- Report History Repository data
- Report File Storage Client data
- Report History RLS Policy Configuration infrastructure
- Export History List ui
- Export History List ui
- Export Audit Log Service service
- Export Audit Log Repository data