Skip to content
SprecherEast
Issue 1233

feat: Plan page: larger, clearer activity map caption and key

Back to our plan
Done
enhancementfrontendstylinguxpriority: mediumshared-componentready

Summary

On a phone, the caption under the four-week activity map and its Less-to-More key are too small and too faint to read, so a visitor can't tell at a glance what the squares show. Make both a step larger and clearer.

Details

Follow-up to #1205 (owner feedback, 2026-11-14, text chat, seen on a phone).

  • The caption and the key share one small, muted text size (HeatKey in HeatMap.tsx), with swatches of the smallest size. Raise both so they read comfortably on a phone, still on one line at every width.
  • Contrast: check the muted text and the faint swatches against the background in light and dark, and fix anything under the 4.5:1 text rule in docs/guidelines/ui-ux-design.md.
  • The key stays built from the same shades as the squares, so the two can never disagree.
  • Wording: keep the caption as is. If it still doesn't say what a square is once it is bigger, shorten or reword it in the brand voice (short, no repeated words), and record why.

Native first: a change to the shared HeatMap key using existing theme tokens and the kit's Text; no new component or plugin.

Acceptance criteria

  • Not done: The caption and the Less-to-More key are larger than today, on one line at phone and desktop widths, and at 320 px the whole key moves under the caption, left-aligned and never split, in light and dark, with no overlap (amended, see the decision comment).
  • Not done: Caption text and swatches meet the contrast rules; faint swatches stay distinguishable from the background.
  • Not done: The key still uses the same shade steps as the squares (one definition, no copy).
  • Not done: Tests first for the key's size and structure, axe check passes, gallery entry and docs/ui/component-set.md row updated; the roadmap note and generated references change in the same PR.
  • Not done: The owner has seen the result on a phone-width screenshot; recorded on the issue.

Files likely touched

src/platform/ui/HeatMap.tsx, src/platform/ui/HeatMap.test.tsx, docs/ui/component-set.md, docs/reference/components/ (only if the generated page changes)

Must not touch

The heatmap grid and its squares, the date labels, the selection behavior, the plan data, and the cards below the map.

Area

frontend, ux, styling

Priority

medium


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab