Preview Bufdir Report Structure Before Export
After aggregation completes, the coordinator should be able to view the report in Bufdir's expected structure — section by section — before committing to export. The preview screen renders each Bufdir field row with its computed value, highlights any fields that fail validation, shows a period comparison view indicating how figures differ from the previous reporting period, and provides an overall validation summary banner so the coordinator can act on any issues.
User Story
Acceptance Criteria
- Given aggregation completes, when the coordinator navigates to the preview screen, then all Bufdir report sections are rendered with their computed field values
- Given a field value fails Bufdir's validation rules, when the preview renders, then that field row is highlighted and the validation summary banner shows the total number of errors
- Given the coordinator taps a validation error, when the detail expands, then the error description explains what is wrong and what value is expected
- Given a previous report exists for comparison, when the period diff view is shown, then each field displays both the current value and the prior-period value with the delta
- Given all fields pass validation, when the preview is shown, then the validation summary banner shows a green all-clear and the Export button is enabled
- Given the coordinator finds an error, when they navigate back to correct source data and return to preview, then the preview refreshes with the updated values
Business Value
Bufdir submission errors require manual correction requests that delay grant processing by weeks. A pre-export preview with field-level validation shifts error detection from Bufdir's systems to the coordinator's workflow, dramatically reducing rejection rates and the administrative overhead of resubmission. The period comparison view also enables coordinators to explain year-over-year changes proactively in their narrative.
Components
- Bufdir Report Preview Screen ui
- Bufdir Report Section Widget ui
- Bufdir Field Row Widget ui
- Validation Summary Banner ui
- Period Comparison Diff View ui
- Bufdir Preview Service service
- Bufdir Report Structure Mapper service
- Bufdir Field Validation Service service
- Bufdir Preview Repository data
- Bufdir Preview Accessibility Utilities infrastructure