fix: Plan page: align the activity map caption with the squares, larger text, more space above
Back to our planSummary
After #1233, the activity map's caption and key are still a little small, the caption starts at the far left edge instead of at the squares, and it sits too close to the last row. Line it up with the squares, make the text and swatches one step bigger, and add a few pixels of space above.
Details
Follow-up to #1233 (owner feedback, 2026-11-14, voice call, after checking the live page on a phone).
- Alignment: on the calendar map the caption starts where the first square starts (after the date column), and the key ends at the last square's right edge. It holds on phone, iPad and desktop. The date column and gap come from the map's own row definition, so the two can never drift apart.
- Size: text and swatches go one step up from today's body size. Still no wrap or overlap; where they don't fit side by side the whole key moves under the caption, as decided on #1233.
- Space: a few pixels more above the caption so it isn't tight against the last row of squares.
- The week strip has no date column, so its key keeps spanning the full width.
Native first: classes on the shared HeatMap only, reusing the calendar row definition; no new component.
Acceptance criteria
- Not done: On the calendar map the caption's left edge matches the first square's left edge and the key's right edge matches the last square's right edge, at phone, iPad and desktop widths, light and dark.
- Not done: Caption and key text, and the swatches, are one step larger than now, with no overlap or half-wrapped text.
- Not done: About 4 to 6 px more space above the caption.
- Not done: The alignment uses the calendar row's own column definition (one definition, no copied number).
- Not done: Tests first, axe check passes; the
docs/ui/component-set.mdrow and the UI kit and roadmap notes (with their generated rule copies) change in the same PR. - Not done: The owner has looked at the live page on a phone; recorded on the issue.
Files likely touched
src/platform/ui/HeatMap.tsx, src/platform/ui/HeatMapKey.test.tsx, docs/ui/component-set.md, src/platform/ui/README.md, src/modules/roadmap/README.md, .claude/rules/generated/
Must not touch
The squares, date labels, selection behavior, plan data and the cards below the map.
Area
frontend, ux, styling
Priority
medium
Generated by Claude Code, opens in a new tab