Skip to content

Re-land Stats chart-first redesign (dropped from #118)#123

Merged
mapgie merged 1 commit into
mainfrom
claude/stats-chart-first-redesign
Jun 6, 2026
Merged

Re-land Stats chart-first redesign (dropped from #118)#123
mapgie merged 1 commit into
mainfrom
claude/stats-chart-first-redesign

Conversation

@mapgie

@mapgie mapgie commented Jun 6, 2026

Copy link
Copy Markdown
Owner

Re-lands the Stats chart-first redesign

The redesign was originally dropped from #118 (its first commit, the "View" switcher overlap fix, merged before the redesign commit reached the branch). This PR brings it onto current main, rebased past #119/#120/#121/#125 and the day-sheet grouping (#124).

What changes

  • Chart is the headline at the top of the page (with its time range controls), instead of being the last thing on screen.
  • Dashboard toggle moved off the page into the top app bar as an icon button. State is shown by a filled (on) vs outlined (off) icon plus an accessible contentDescription, satisfying the "state via shape/label, not colour alone" rule.
  • Categories panel is now collapsible. Tapping the "Categories" header folds it away; collapsed, it shows a one-line summary of the selected categories ("Symptoms + Mood"). Starts expanded. Chart-type and view controls sit below it, so collapsing the panel pulls them up toward the chart.

New layout order: chart card → Categories (collapsible) → chart type → view switcher.

Design choices (confirmed earlier): dashboard control as a top-bar icon toggle; categories panel manual-collapse, default expanded.

Versioning

MINOR bump → 0.45.0-beta.1 (versionCode 97), rebased on top of 0.44.1. CHANGELOG entry added on top; all existing entries preserved.

a11y_check.py passes (the new collapsible header carries role = Role.Button + stateDescription).

https://claude.ai/code/session_01NYSd5Yw37hbzYkFFJb3HjH

mapgie pushed a commit that referenced this pull request Jun 6, 2026
…collapsible categories

- Move the chart (with its time range controls) to the top of the page so
  the data is the headline, not the last thing on screen.
- Replace the large Dashboard enable/disable card with an icon toggle in
  the top app bar. State is shown via a filled vs outlined icon and an
  accessible contentDescription, freeing vertical space on the page.
- Make the Categories panel collapsible: tap the header to fold it away;
  collapsed it shows a one-line summary of the selected categories. Starts
  expanded. The chart-type and view controls now sit below it so collapsing
  the panel brings them up toward the chart.
- Update the empty-state copy ("below" instead of "above") to match the new
  ordering.

Bump to 0.42.0-beta.1.
@mapgie mapgie force-pushed the claude/stats-chart-first-redesign branch from 31b8f81 to 8b819b1 Compare June 6, 2026 12:02
@mapgie mapgie merged commit 418003e into main Jun 6, 2026
4 checks passed
@mapgie mapgie deleted the claude/stats-chart-first-redesign branch June 6, 2026 12:10
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