HIGH story-bufdir-reporting-export-coordinator-006 5 pts
5
Story Points
High
Priority
Bufdir Reporting & Export
Feature

User Story

As a Coordinator
I want to view a history of all previously generated Bufdir reports with their period, format, record count, and submission status, and to re-export any previous report if needed
So that I can maintain a clear audit trail of all Bufdir submissions and quickly regenerate a report if it needs to be resubmitted

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.