View Export History and Re-export Previous Reports
The report history screen lists all Bufdir exports generated by coordinators within the organization, ordered by date. Each list item shows the reporting period, export format, record count, generation timestamp, and submission status. A summary metrics widget at the top shows totals across all historical reports. Coordinators can tap any history item to view its details and download the stored file from the file storage client. A re-export coordinator service allows regenerating a report for any historical period without re-entering all parameters, which is critical when Bufdir requests corrections or re-submissions. Row-level security ensures coordinators only see exports within their authorized scope.
User Story
Acceptance Criteria
- Given I navigate to the report history screen, when it loads, then I see a chronological list of all Bufdir exports with period, format, record count, and status
- Given I view the history screen, when summary metrics are loaded, then a metrics widget shows total reports generated, total activities reported, and total unique participants
- Given I tap a history list item, when the detail view opens, then I can see full export metadata and a download button to retrieve the stored file
- Given a file is available in storage, when I tap download, then the file is retrieved from the storage client and downloaded to my device
- Given I need to re-export a previous report, when I use the re-export action, then the re-export coordinator pre-fills the period and settings from the original export
- Given I am a coordinator in one chapter, when I view history, then I only see exports generated within my authorized organizational scope (RLS enforced)
Business Value
Bufdir and organizational auditors occasionally request documentation of historical submissions. Without a history view, coordinators must search through email archives or shared drives. A built-in history with downloadable files eliminates this risk, supports compliance audits, and makes it trivial to fulfill requests for historical data — protecting the organization's funding relationship with Bufdir.
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
- Generated Reports Repository data