Skip to content

fix: exercise list missing in History when single session auto-expands#168

Merged
ChristopherRotnes merged 1 commit into
masterfrom
claude/view-exercise-history-rHpDY
May 13, 2026
Merged

fix: exercise list missing in History when single session auto-expands#168
ChristopherRotnes merged 1 commit into
masterfrom
claude/view-exercise-history-rHpDY

Conversation

@ChristopherRotnes
Copy link
Copy Markdown
Owner

$(cat <<'EOF'

Summary

  • loadSession auto-expanded single-session days by calling setExpandedIds but never called initSessionEdit, so edit.exercises stayed undefined and the exercise list rendered nothing
  • The body map showed correctly because it reads directly from raw session data — only the exercise list depends on edit state
  • Fixed by calling initSessionEdit alongside setExpandedIds in the single-session auto-expand branch

Test plan

  • Navigate to History and select a day with exactly one session — exercise list should now be visible below the muscle chips
  • Select a day with multiple sessions — manually expanding one should still show the exercise list (existing path, should be unaffected)
  • Verify the body map still renders correctly in both cases

https://claude.ai/code/session_01NwKrrVkWKrzCNzTnEdBqwK
EOF
)


Generated by Claude Code

loadSession called setExpandedIds for the single-session case but never
called initSessionEdit, so edit.exercises stayed undefined and the exercise
list rendered nothing. Body map still showed because it reads raw session
data directly. Now initSessionEdit is called alongside setExpandedIds.

https://claude.ai/code/session_01NwKrrVkWKrzCNzTnEdBqwK
@ChristopherRotnes ChristopherRotnes marked this pull request as ready for review May 13, 2026 20:34
@github-actions
Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://white-island-090dfd003-168.westeurope.7.azurestaticapps.net

@ChristopherRotnes ChristopherRotnes merged commit 47acf83 into master May 13, 2026
1 check passed
@ChristopherRotnes ChristopherRotnes deleted the claude/view-exercise-history-rHpDY branch May 13, 2026 20:37
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