Skip to content

New look foundation and the Symptom Radar screen - #76

Merged
gabrielbr merged 2 commits into
mainfrom
ccr-67ccb970-dqwwqd
Nov 16, 2026
Merged

gabrielbr merged 2 commits into
mainfrom
ccr-67ccb970-dqwwqd

Conversation

@gabrielbr

Copy link
Copy Markdown
Owner

The first step of the redesign. Owner's choices: PulseLoop only, dark only, mint kept, Inter. Plan and tokens are in docs/new-look-plan.md.

What changes

  • Foundation in ui/calm/, behind Debug → New look, which is off by default and not in the backup:
    • Inter 4.1 (OFL), in four weights.
    • shadcn-style dark neutrals: page #0A0A0B, card #161618, one #27272A border.
    • 12dp radius, 20dp gutter, 40dp gaps between sections.
    • Components: CalmTopBar, CalmCard, CalmSection, ExpandableText, UnderlineTabs, LevelScale, CalmBadge, CalmMetricRow.
  • StateTimeline: the Oura-style "Recently" chart. Each level gets its own lane, runs of the same level join into bars, and a change of level is drawn as a step. Tapping a day shows its date and level. The layout logic lives in the pure StateTimelineModel, which is tested.
  • SymptomRadar.history: the radar as of each of the last 35 days. Each day is computed without reading later nights.
  • Symptom Radar screen (route radar):
    • Yesterday / Today tabs.
    • The level as the headline, with an expandable explanation and the three-level scale.
    • Rest Mode.
    • Only the biometrics under strain.
    • "Recently", the timeline above.
    • Its own state for a day with no recorded night.
    • With the new look on, My Health shows one row that opens this screen. With it off, nothing changes.
  • pt-BR strings, a section in AGENTS.md, and the four-skill audit: audits/2026-11-16-new-look-foundation-radar.md.

Design canvas

  • Added: a new SymptomRadar.dc.html board in the new look.
  • Linked: My Health's radar row now links to it.
  • Flow map: a Symptom Radar card under My Health, with its arrow.
  • Not done: the canvas.json edit that puts the board in row 2 beside What changed, and adds its "how you get here" note, needed an approval this session couldn't get. The board still appears on the canvas, just not in that slot yet.

Design system

This leaves the Gabriel Design System's pulseloop layer (Ubuntu Mono, 8dp radius, dither) on purpose. That repo isn't reachable from this session, so the divergence is recorded in docs/new-look-plan.md until it can be moved to that repo's docs/divergences.md.

Tests

  • StateTimelineModelTest (new).
  • A new radar history case in HealthInsightsTest.

Generated by Claude Code

The first step of the redesign the owner chose (PulseLoop only, dark only, mint kept, Inter):
calm tokens and components in ui/calm, behind Debug -> New look (off by default), and
Symptom Radar as the first screen to move over.

- Inter 4.1 (OFL) in four weights; shadcn-style dark neutrals, one hairline border, 12dp
  radius, 20dp gutter, 40dp section gaps. Sizes stay on PulseType.SCALE.
- StateTimeline: a state over time, one lane per level, runs joined into bars, steps between
  touching runs, tap a day for its date and level. Layout in the pure StateTimelineModel.
- SymptomRadar.history: the radar as of each of the last 35 days, never reading ahead.
- SymptomRadarScreen (route "radar"): Yesterday / Today, the level as the headline, an
  expandable explanation, the three-level scale, Rest Mode, the biometrics under strain,
  "Recently", and a clear state for a day with no night. With the new look on, My Health
  shows one row that opens it.
- docs/new-look-plan.md, an AGENTS.md section, pt-BR strings, the four-skill audit.

Claude-Session: https://claude.ai/code/session_01P1t1aUqSUPd3whKXmgVm7w
Audit (native) and critique with the skill loaded, then polish:
- Timeline: drag to scrub, TalkBack Previous day / Next day actions, a label column measured
  from the level names so a longer translation or a larger font never clips.
- "Inactivity" now reads "Fewer steps" instead of a contradictory "Lower".
- Signal details are translated (Signal.detail is English-only).
- Rest Mode uses CalmOutlinedButton: still a PulseButton, with the new look's radius and border.
- Content capped at 720dp on wide windows.
- Audit file updated with the real impeccable scores (15 -> 18/20, critique 30/40).

Claude-Session: https://claude.ai/code/session_01P1t1aUqSUPd3whKXmgVm7w
@gabrielbr
gabrielbr merged commit 27316d2 into main Nov 16, 2026
1 check passed
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