Skip to content

Personal: illustration v2 for the muscle map (art, colour coding, motion, replay) - #49

Merged
baba-dev merged 1 commit into
mainfrom
claude/magical-gauss-tayovm
Nov 19, 2026
Merged

baba-dev merged 1 commit into
mainfrom
claude/magical-gauss-tayovm

Conversation

@baba-dev

Copy link
Copy Markdown
Owner

Summary

Makes the Personal muscle map one of the product's signature features. Builds on #44 and #47. No schema change.

Art. A shaded, outlined front and back figure with fibre lines and anatomical landmarks (collarbone, midline, patella). Five muscles added: neck, serratus, rhomboids, hip abductors, soleus (25 in all). Existing ids are never renamed or split, and no stored data refers to muscle ids, so nothing migrates.

Colour coding. Five load bands (none, light, moderate, high, peak) on a sage, amber, terracotta, deep terracotta ramp. Colour is never the only signal: every band has a text label, its own hatch pattern, and appears in the text list. A second mode colours by last worked. Both are descriptive only: nothing about recovery or readiness.

Motion, all inside prefers-reduced-motion: no-preference:

  • muscles fill in head to feet; colour glides between bands
  • the figure turns in 3D between front and back (tap or swipe)
  • the heaviest muscles breathe a slow warm glow; selecting a muscle pulses once
  • hover or focus shows a caption chip

Replay. A playable, scrubbable time-lapse of the last four weeks from the user's own workouts, on one shared scale.

Needs your eye

  • docs/DESIGN.md says motion is "subtle only". This PR records an explicit owner exception for the body map (your 19 Nov request) with the limits kept: every animation must communicate something, stay in the warm palette, and be fully off with reduced motion. Please confirm you are happy with that wording.
  • The exercise and activity to muscle mappings are still my own first pass, not validated sports science.

Coordination with Codex's work

  • No Prisma change, so it cannot collide with the P1-C Health Connect schema.
  • Imports P1-B code (getOverview, assertWellnessEnabled, assertWellnessAdult) but edits none of it; ci.yml untouched (new integration case lives in my existing test file).
  • Checked every branch ahead of main (P1-C is 14 commits now): zero overlapping files. One stale branch, claude/design-tokens-mockups-29cd6c (8 Nov, Luxe, superseded), adds its own docs/DESIGN.md and will conflict with main regardless of this PR.

Privacy

Own rows only. The Logged view and the replay sit behind P1-B's wellness gate and adult rule, and are absent when the gate is off. Nothing flows to clubs or leaderboards.

Verified locally

  • format:check, lint (0 errors), typecheck, 213 unit tests (11 new) and 9 integration tests (1 new) pass, with P1-B migrations on a disposable PostgreSQL 16.
  • Ran it in a phone-size browser with a seeded 12-workout history. Captured mid-animation frames (fill-in at 90ms, mid-flip at about 41°), tested tap and drag-to-swipe, both colour modes, replay scrubbing (28 days, 24 Oct to 19 Nov), and dark and light themes. No console errors.
  • Reduced motion: animation and transition are none, and the turn is instant.
  • Found and fixed along the way: stray holes near the lower back, an ESLint purity error (Date.now in a handler, now event.timeStamp), and a stagger that did not follow the body.

Not verified

  • Only checked in Chromium; Safari and Firefox rendering of color-mix and 3D transforms is untested.
  • Replay day labels are UTC dates, so they can differ by one day from a user's local date.
  • Saving the map as an image is not built.
  • Not tested on a physical phone for swipe feel.

Generated by Claude Code

- Shaded, outlined front/back figure with fibre lines and landmarks; five new
  muscles (neck, serratus, rhomboids, hip abductors, soleus), 25 in all.
- Five-band colour coding with text labels and hatch patterns, plus a
  last-worked colouring; descriptive only.
- Purposeful motion, all under prefers-reduced-motion: no-preference: head to
  feet fill-in, band colour glide, 3D front/back turn with swipe, peak glow,
  selection pulse, hover caption.
- Four-week replay with play/scrub, from the user's own workouts.
- No schema change; imports P1-B code but edits none of it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018caQbyr5kMzA8YcRwCNrt8
@baba-dev
baba-dev marked this pull request as ready for review November 19, 2026 07:52
@baba-dev
baba-dev merged commit 6d9df40 into main Nov 19, 2026
3 checks passed
@baba-dev
baba-dev deleted the claude/magical-gauss-tayovm branch November 19, 2026 07:52
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