feat(index): click a "Last 7 days" dot to jump to that day#34
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.setFormContenttoggles.is-selected;renderWeekStreakruns beforesetFormDateso today is marked selected on load.go build, template-parse smoke, andnode --check index.jsall pass.🤖 Generated with Claude Code