Compare Selected Period Against Previous Report to Detect Coverage Gaps
A common mistake in manual reporting workflows is accidentally leaving an unreported gap between two consecutive submissions, or unintentionally overlapping periods which leads to double-counting. The period selection screen should optionally display a diff view showing the last reported period alongside the current selection, highlighting any uncovered gap or detected overlap. This is particularly valuable for NHF with its complex 12-landsforeninger, 9-regioner, 1400-lokallag hierarchy where reporting boundaries may differ across units.
User Story
Acceptance Criteria
- Given the coordinator has at least one previously submitted Bufdir report on record, when the period selection screen is opened, then a subtle indicator shows the end date of the last submitted period
- Given the coordinator selects a period that leaves a gap after the last submitted report, when the gap is detected, then a non-blocking informational banner explains the gap in plain language and shows the uncovered date range
- Given the coordinator selects a period that overlaps with the last submitted report, when the overlap is detected, then a warning banner explains that the overlapping window was already included in a previous submission and may result in duplicate activity counts
- Given the coordinator acknowledges the gap or overlap warning, when they confirm despite the warning, then the selection proceeds and the warning acknowledgement is logged for audit purposes
Business Value
Continuous and non-overlapping period coverage is a Bufdir grant compliance requirement. Gaps in reporting can trigger grant audits or require costly retroactive filings, while overlapping periods inflate activity counts and risk grant clawback. This story directly protects the financial standing of all four organizations by making coverage continuity visible at the earliest possible step in the reporting workflow.
Components
- Period Comparison Diff View ui
- Period Selection Screen ui
- Bufdir Aggregation Repository data
- Period Selection BLoC infrastructure
- Report History Repository data