As a User, I want the dashboard to display real-time census KPIs — total members, weekly additions, Gen Z statistics, and an age group chart — refreshing automatically every 60 seconds.
Story Points
5
KPIs + chart + auto-refresh
Acceptance Criteria
- Dashboard displays: total survey members and count added in the current week.
- Gen Z count (DOB within last 25 years) and percentage of total are shown.
- Members-by-age-group column chart renders correctly on page load.
- Dashboard data refreshes every 60 seconds and the Last Refreshed timestamp updates each cycle.
Validation Scenarios
- Add a new record — total member count updates on the next auto-refresh cycle.
- Verify Gen Z percentage matches a manual calculation against the database.
- Last Refreshed timestamp changes visibly after each 60-second interval.
Done Done Checklist
- Aggregate GetDashboardKPIs returns correct member counts.
- Gen Z filter applied as: DOB > (CurrDate minus 25 years).
- Column chart grouped by age category renders without errors.
- setInterval + Ajax Refresh runs every 60 seconds — no full page reload.
- Last Refreshed timestamp updates on every refresh cycle.
AggregateSQL QueryChartsetIntervalAjax Refresh