Ready UI batch: dark mode, toasts, This week's bar, headers, What changed, Progress on a phone #278

Merged
chris-kreidl merged 12 commits from fix/ready-ui-batch into main 2026-11-11 06:35:29 +00:00
chris-kreidl commented 2026-11-11 06:16:18 +00:00 (Migrated from github.com)

The owner's Ready UI issues, one commit each (#92 and #76 share one, as #76 asks).

  • #277 Progress scrolled sideways on a phone. Two causes: the fitness/fatigue/form row kept its three-column min-content width as a flex item, and the power bests' screen-reader table widened the page (a table is never narrower than its content, so a 1 px box can't hold it). The row can shrink, and both hidden chart tables now sit in a hidden block. The charts flow checks 320 px.
  • #263 Free ride (and a planned ride), Add a ride and Import rides use the site's compact header with an eyebrow ("Ride", "Log").
  • #269 What changed keeps the before/after pairs and drops the bulleted summary. The summary stays stored on the version.
  • #237 Toasts lose the 4 px side stripe. Warning and success were already ink, so it only ever marked errors: an error's title is now racing red.
  • #90 This week's bar scales to the larger of done and planned: ink up to the plan, an ink tick at the plan, grey past it (stressBar, unit-tested). Not red, because being over plan isn't a change or an error.
  • #92 / #76 A real dark mode: a near-black page #191918, a black rail #0B0B0B that still reads as the cover, and off-white ink #EDEDEA. Red is #FF4F5E with ink text on the button, because no red passes as text on near-black and also carries white text. The zone ramp is themed too (dim to bright), and overlays lift by tone. The route map has a night set (mapColorsDark), picked by useResolvedTheme (a pinned theme, or the system's). theme-color, DESIGN.md → Colors → Dark, and the contrast tests now cover both palettes.

How it was checked

  • bun test: 1485 pass. Typecheck, lint and format are clean.
  • Playwright on a production build: a11y (axe in light and dark, theme-color), charts, replan, ride, route-map, readability, import, edit-session, history. 32/32 passed.
  • Checked screenshots by eye at 1200, 390, 320 and 292 px in both themes: Today, Plan, Progress, History, Settings, Free ride, a dialog, a toast, and the over-plan bar.
  • The dark route map is checked by unit tests (every role is present and only the track is red). I didn't look at it on screen, because no local ride with downloaded map tiles was at hand.

Left open

  • Dark mode needs the owner's eye on real screens. It follows the system setting, or can be pinned in Settings.
  • public/manifest.webmanifest keeps a single white theme_color/background_color, which only sets the installed app's splash screen.

Closes #277, closes #263, closes #269, closes #237, closes #90, closes #92, closes #76

🤖 Generated with Claude Code

The owner's Ready UI issues, one commit each (#92 and #76 share one, as #76 asks). - **#277** Progress scrolled sideways on a phone. Two causes: the fitness/fatigue/form row kept its three-column min-content width as a flex item, and the power bests' screen-reader table widened the page (a table is never narrower than its content, so a 1 px box can't hold it). The row can shrink, and both hidden chart tables now sit in a hidden block. The charts flow checks 320 px. - **#263** Free ride (and a planned ride), Add a ride and Import rides use the site's compact header with an eyebrow ("Ride", "Log"). - **#269** What changed keeps the before/after pairs and drops the bulleted summary. The summary stays stored on the version. - **#237** Toasts lose the 4 px side stripe. Warning and success were already ink, so it only ever marked errors: an error's title is now racing red. - **#90** This week's bar scales to the larger of done and planned: ink up to the plan, an ink tick at the plan, grey past it (`stressBar`, unit-tested). Not red, because being over plan isn't a change or an error. - **#92 / #76** A real dark mode: a near-black page `#191918`, a black rail `#0B0B0B` that still reads as the cover, and off-white ink `#EDEDEA`. Red is `#FF4F5E` with ink text on the button, because no red passes as text on near-black and also carries white text. The zone ramp is themed too (dim to bright), and overlays lift by tone. The route map has a night set (`mapColorsDark`), picked by `useResolvedTheme` (a pinned theme, or the system's). `theme-color`, DESIGN.md → Colors → Dark, and the contrast tests now cover both palettes. ## How it was checked - `bun test`: 1485 pass. Typecheck, lint and format are clean. - Playwright on a production build: a11y (axe in light **and dark**, theme-color), charts, replan, ride, route-map, readability, import, edit-session, history. 32/32 passed. - Checked screenshots by eye at 1200, 390, 320 and 292 px in both themes: Today, Plan, Progress, History, Settings, Free ride, a dialog, a toast, and the over-plan bar. - The dark route map is checked by unit tests (every role is present and only the track is red). I didn't look at it on screen, because no local ride with downloaded map tiles was at hand. ## Left open - Dark mode needs the owner's eye on real screens. It follows the system setting, or can be pinned in Settings. - `public/manifest.webmanifest` keeps a single white `theme_color`/`background_color`, which only sets the installed app's splash screen. Closes #277, closes #263, closes #269, closes #237, closes #90, closes #92, closes #76 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chris-kreidl commented 2026-11-11 06:27:49 +00:00 (Migrated from github.com)

Follow-ups after the owner's look:

  • #277: fitness, fatigue and form stay on one line. Progress now uses the same three-column row as Today's load panel, and in that row the numerals scale with its width (fontSizes.statFit, a container query) instead of wrapping. Checked at 292, 320, 390 and 1200 px.
  • Theme switch on the rail: an icon button beside Ask the coach steps through System → Light → Dark (screen, sun, moon). Settings → Display keeps the full choice and is the only switch on a phone.
  • Bug found by the new flow: in a production build the head boot script ran twice, so after switching from a pinned theme back to System the browser chrome stayed dark. The script now adds its meta tag only once.
  • Checks: 1485 unit tests; a11y (7, including the new theme-button flow), charts, nav and keyboard flows all pass.
Follow-ups after the owner's look: - **#277:** fitness, fatigue and form stay on one line. Progress now uses the same three-column row as Today's load panel, and in that row the numerals scale with its width (`fontSizes.statFit`, a container query) instead of wrapping. Checked at 292, 320, 390 and 1200 px. - **Theme switch on the rail:** an icon button beside Ask the coach steps through System → Light → Dark (screen, sun, moon). Settings → Display keeps the full choice and is the only switch on a phone. - **Bug found by the new flow:** in a production build the head boot script ran twice, so after switching from a pinned theme back to System the browser chrome stayed dark. The script now adds its meta tag only once. - Checks: 1485 unit tests; a11y (7, including the new theme-button flow), charts, nav and keyboard flows all pass.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ckreidl/trainer!278
No description provided.