View Activity Record Count for Selected Period Before Confirming
Before committing to a reporting period, coordinators need confidence that the data scope is correct. The record count banner should provide an immediately visible count that updates in response to any period change, distinguishing between total registered activities and those already exported in previous reports. This prevents duplicate submissions and helps coordinators spot gaps — for example if a peer mentor forgot to log sessions during the window. The count query must respect organization-level data isolation so coordinators only see records within their own chapter or organization unit.
User Story
Acceptance Criteria
- Given any period is selected or modified on the period selection screen, when the selection changes, then the record count banner updates within 1 second to show the count of activities in that period
- Given the period includes activities already included in a previously submitted report, when the count is displayed, then previously exported records are visually distinguished or excluded with an explanatory note
- Given the coordinator's organization has a multi-chapter hierarchy, when the record count is shown, then only activities belonging to the coordinator's authorized scope are counted
- Given network connectivity is unavailable, when the period is changed, then a cached count is shown with a staleness indicator and the coordinator is informed the count may not be current
Business Value
Submitting a Bufdir report with incorrect activity counts — either missing records or duplicating previously reported data — can trigger grant clawbacks or audit queries. Real-time record count feedback is a low-cost safeguard that directly protects organization funding by ensuring submissions are complete and non-duplicated before the coordinator confirms the period.
Components
- Record Count Confirmation Banner ui
- Period Record Count Service service
- Bufdir Aggregation Repository data
- Period Selection BLoC infrastructure
- Multi-Organization Data Isolator data