Skip to content

feat(index): click a "Last 7 days" dot to jump to that day#34

Merged
rwlove merged 1 commit into
mainfrom
feat/week-streak-day-click
Jun 7, 2026
Merged

feat(index): click a "Last 7 days" dot to jump to that day#34
rwlove merged 1 commit into
mainfrom
feat/week-streak-day-click

Conversation

@rwlove

@rwlove rwlove commented Jun 7, 2026

Copy link
Copy Markdown
Owner

On the main page, the Last 7 days dots were display-only. Now each dot is clickable (and Enter/Space-activatable) and switches the workout view to that day — same setFormContent() path as the prev/next arrows.

  • The selected day's dot shows a primary ring that follows all navigation (prev/next/today/picker/dot-click); dots scale slightly on hover.
  • setFormContent toggles .is-selected; renderWeekStreak runs before setFormDate so today is marked selected on load.

go build, template-parse smoke, and node --check index.js all pass.

🤖 Generated with Claude Code

The week-streak dots were display-only. Make each clickable (and
keyboard-activatable) to switch the workout view to that day via the
same setFormContent() path as the prev/next nav. The selected day's dot
now shows a primary ring that follows all navigation, and dots have a
hover affordance.

- index.js: renderWeekStreak adds data-date + onclick/onkeydown per dot;
  setFormContent toggles .is-selected on the matching dot.
- index.css: hover scale + .week-dot-item.is-selected styling.
- index.html: render the streak before setFormDate so today's dot is
  marked selected on load.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@rwlove rwlove merged commit 941cbbc into main Jun 7, 2026
3 checks passed
@rwlove rwlove deleted the feat/week-streak-day-click branch June 7, 2026 15:38
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.

1 participant