Navigate to export from preview without re-entering period
The preview screen acts as a confirmation step in the Bufdir export workflow. Upon completing their review, coordinators tap an 'Export' button that passes the already-configured period, scope, and format preferences directly to the bufdir-export-screen without requiring re-entry. The bufdir-preview-service holds the session state containing the period selection and aggregation results, which is passed as navigation arguments to the next screen. If validation errors are present, the export button shows a warning but remains tappable with a confirmation dialog explaining the risks of submitting with outstanding issues.
User Story
Acceptance Criteria
- Given I have reviewed the Bufdir preview with no validation errors, When I tap 'Export Report', Then I navigate directly to the export screen with the same period and scope already populated
- Given I have reviewed the preview and there are validation warnings (non-blocking), When I tap 'Export Report', Then a confirmation dialog explains the warnings and asks me to confirm before proceeding
- Given I have reviewed the preview and there are blocking validation errors, When I tap 'Export Report', Then the button is labeled 'Export with Errors' and a dialog clearly explains that submission may be rejected by Bufdir
- Given I am on the export screen reached from preview, When I tap back, Then I return to the preview screen with all data still loaded (no re-fetch required)
- Given the session containing preview data expires (e.g., app backgrounded for 30+ minutes), When I return to the preview, Then the app automatically refreshes the aggregated data and informs me with a brief toast
- Given I tap export and the navigation succeeds, When I arrive at the export screen, Then the period, scope, and format fields are pre-filled and the coordinator does not need to interact with them unless they want to change something
Business Value
Reducing friction in the report submission workflow directly increases the rate of timely, accurate submissions. Each additional configuration step a coordinator must repeat is an opportunity for error or abandonment. A seamless preview-to-export transition embodies the core design principle of minimal cognitive load identified across all three organization workshops.
Components
- Bufdir Report Preview Screen ui
- Bufdir Preview Service service
- Bufdir Export Screen ui
- Export Confirmation Dialog ui
- Period Selection BLoC infrastructure