Skip to content

fix #90: standardise hover to below-card pattern across body maps#91

Merged
ChristopherRotnes merged 1 commit into
masterfrom
fix/90-consistent-hover-below-card
May 3, 2026
Merged

fix #90: standardise hover to below-card pattern across body maps#91
ChristopherRotnes merged 1 commit into
masterfrom
fix/90-consistent-hover-below-card

Conversation

@ChristopherRotnes
Copy link
Copy Markdown
Owner

Summary

  • BodySVG gains onHover/hovered props — same API as HeatmapBodySVG, internal tooltip suppressed when caller manages state
  • BodyPanel threads the new props through to both BodySVG instances
  • History: cursor tooltip replaced with a fixed-slot below-card (height: 68, overflow: hidden) — shows muscle label + exercise count + names truncated to one line; placeholder text when nothing is hovered
  • Home body map: hover removed (body figures are decorative at 72px, exercise list is right beside them)
  • Home weekly strip: cursor-tracking tooltip from As a user I want the weekly strip tooltip to follow my cursor so I can see session details without looking away from the cell I'm hovering #87 intentionally preserved
  • Report: raw hex #0f62fevar(--cds-interactive); minHeight → exact height for parity

Test plan

  • Period report: hover muscles on body map — below-card appears at fixed height, no layout shift
  • History: expand a session, hover muscles — below-card appears with exercise count + names, no wobble
  • History: hover a muscle with many exercises — names truncate with ellipsis, card stays 68px
  • Home: weekly strip cursor tooltip still works; body map has no hover
  • Light and dark theme — var(--cds-interactive) border renders correctly in both

Closes #90

🤖 Generated with Claude Code

- BodySVG gains onHover/hovered props (same API as HeatmapBodySVG);
  internal tooltip suppressed when caller manages state
- BodyPanel threads onHover/hovered through to both BodySVG instances
- History: replace cursor tooltip with fixed-slot below-card (height 68,
  overflow hidden) showing muscle label + exercise count + names on one
  truncated line; placeholder text when nothing hovered
- Home body map: hover removed (decorative at 72px)
- Home weekly strip: cursor-tracking tooltip from #87 preserved
- Report: raw hex #0f62fe → var(--cds-interactive); minHeight → height

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ChristopherRotnes ChristopherRotnes merged commit 73fa5af into master May 3, 2026
2 checks passed
@ChristopherRotnes ChristopherRotnes deleted the fix/90-consistent-hover-below-card branch May 3, 2026 16:31
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.

As a user I want consistent muscle hover behaviour across Report and History so the app feels coherent

1 participant