feat: Plan page: browse the activity map by month
Back to our planSummary
Let a visitor browse the activity map back through earlier months, so older work can be found and filtered by day.
Details
Owner direction (2026-11-14, voice):
- The map keeps its rolling four weeks ending today as the default.
- Going back shows the previous full calendar month, and going back again one more month each time; a forward control returns toward today.
- The three graphs above stay on the last four weeks; only the map moves.
- Days chosen on the map stay chosen when the month changes, and the pills keep showing them.
Design: the window logic is a pure rule in the roadmap domain/ (which days a given step shows, its title, and how far back there is data), tested first. A small shared PeriodNav in the UI kit draws the previous and next buttons around a title, so it can serve other views. HeatMap learns the two things a month needs: no ring unless today is shown, and leftover days of the last week are blank when they are not still to come.
Native first: no calendar library is needed for a month grid; the existing HeatMap already draws Monday-to-Sunday rows.
Depends on #1217 (the layout issue): both change HeatMap and DayFilterMap, so this merges after it.
Acceptance criteria
- Not done: Back and forward step the map by month, from the rolling four weeks to the previous full month and on; back stops at the earliest month with data; forward stops at the rolling view.
- Not done: The title names the month ("Last four weeks" for the default); the buttons are named for screen readers and are at least 44 px tall on phones.
- Not done: Counts, shades and the screen-reader text match the days shown; the graphs do not change.
- Not done: Chosen days survive a change of month; a chosen day outside the shown month stays in its pill.
- Not done: Tests first for the window rule and the buttons; axe check; gallery entry and component-set row for
PeriodNav; notes and generated references change in the same PR.
Files likely touched
src/modules/roadmap/domain/ (new window rule and test), src/modules/roadmap/ui/DayFilterMap.client.tsx, src/platform/ui/ (PeriodNav, HeatMap), src/platform/lib/formatDateTime.ts, docs/
Must not touch
The filter rules for missions and projects, and the plan data.
Generated by Claude Code, opens in a new tab