View Bufdir field validation errors before submission
The bufdir-validation-summary-banner aggregates all field-level validation results produced by the bufdir-field-validation-service and presents them as a scannable list at the top of the preview screen. Errors (blocking issues) and warnings (non-blocking but noteworthy) are visually distinguished. Tapping a validation issue scrolls the preview to the relevant field row, allowing coordinators to understand exactly which data point is problematic. The validation runs against Bufdir's known schema rules including required fields, value ranges, and category constraints.
User Story
Acceptance Criteria
- Given the preview screen has loaded, When there are validation errors, Then the bufdir-validation-summary-banner displays at the top of the screen with a count of errors and warnings
- Given the validation summary banner is visible, When I tap a specific error item, Then the preview scrolls to and highlights the corresponding field row
- Given all validation issues are resolved, When I view the preview, Then the validation banner shows a green 'All checks passed' state and the export action is fully enabled
- Given there are only warnings (no errors), When I view the preview, Then the export action is enabled but the warnings banner is still visible so I can make an informed decision
- Given a field fails Bufdir category mapping validation, When that field is shown in the preview, Then the field row displays an inline error icon with a short explanation of the constraint
- Given validation runs on load, When the preview screen first opens, Then validation completes within 2 seconds for reports covering up to 12 months of data
Business Value
Validation errors caught before submission save coordinators from submitting incorrect reports, which would require correction cycles with Bufdir, delay funding disbursement, and increase administrative burden. A proactive validation display directly reduces the time coordinators spend on reporting compliance and improves submission quality.