Skip to content

Stats category picker: context-aware labels and unified selection colour#68

Merged
mapgie merged 2 commits into
mainfrom
claude/stats-screen-polish
May 31, 2026
Merged

Stats category picker: context-aware labels and unified selection colour#68
mapgie merged 2 commits into
mainfrom
claude/stats-screen-polish

Conversation

@mapgie
Copy link
Copy Markdown
Owner

@mapgie mapgie commented May 31, 2026

What changed

Two targeted fixes to the category picker on the Stats screen, applying the "one selection language per screen" and "colour is the cheapest separator" lessons.

X/Y labels are now context-aware

Previously the summary bar always showed X: Tampons Used · Y: Sleep and each selected chip was prefixed X or Y regardless of which chart type was active. This language only makes sense for Scatter plots (where the selections literally become X and Y axes). For every other chart type — Over Time, Average, Compare, Distribution — there are no axes, so the labels were just noise and mildly confusing.

Now: X/Y labels appear only when chartType == SCATTER. For all other chart types the summary bar shows Tampons Used · Sleep and chip labels carry no prefix.

Selection colour unified

Previously the first selected category used primaryContainer (pinkish in the Coral theme) and the second used secondaryContainer (teal), creating an arbitrary hue clash that had nothing to do with the categories themselves or the chart being drawn.

Now: both selections use primaryContainer. The summary bar uses primary for both names rather than primary + secondary. Selection state now reads as a single visual language — which pick is "first" is clear from order, not from a jarring colour difference.

What was not changed

Test plan

  • Select one category → summary shows just the name, chip has no prefix, no X/Y anywhere
  • Select two categories, chart type = Over Time / Average / Compare → no X/Y labels in summary or chips
  • Switch chart type to Scatter → summary switches to X: … · Y: …, chips show X / Y prefixes
  • Switch away from Scatter → X/Y labels disappear again
  • Both selected chips use the same fill colour (primaryContainer), no teal/pink clash

https://claude.ai/code/session_01CJ4t4GhU8z6TTm3kdGgEhx


Generated by Claude Code

claude added 2 commits May 31, 2026 13:24
X/Y axis labels in the summary bar and chip prefixes are now gated on
chartType == SCATTER — the only chart where selections actually map to
named axes. For all other chart types the summary shows bare category
names and chips carry no prefix, eliminating the confusion of reading
"X: Tampons Used" when looking at an Over Time bar chart.

Both selected categories now use the same primaryContainer fill instead
of primaryContainer for the first and secondaryContainer for the second.
The hue clash (pink vs teal in the Coral theme) is gone; selection state
reads as a single language across both picks. Summary bar text colours
match: both names use primary rather than primary + secondary.

Bumps to 0.14.1-beta.1 (versionCode 46).

https://claude.ai/code/session_01CJ4t4GhU8z6TTm3kdGgEhx
Main reached 0.16.0-beta.1 while this branch was open.
Changelog entry renumbered upward per policy; StatsScreen.kt
auto-merged (no conflicts in the edited section).

https://claude.ai/code/session_01CJ4t4GhU8z6TTm3kdGgEhx
@mapgie mapgie merged commit 8fb19a3 into main May 31, 2026
3 checks passed
@mapgie mapgie deleted the claude/stats-screen-polish branch May 31, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants