Skip to content

fix: start rest timer on checkbox click in checklist mode#80

Merged
hyldmo merged 1 commit intomainfrom
hyldmo/checklist-start-timer
Apr 5, 2026
Merged

fix: start rest timer on checkbox click in checklist mode#80
hyldmo merged 1 commit intomainfrom
hyldmo/checklist-start-timer

Conversation

@hyldmo
Copy link
Copy Markdown
Owner

@hyldmo hyldmo commented Apr 5, 2026

Summary

  • Move rest timer start from onSuccess (after network round trip) to onMutate (synchronous, instant on click)
  • Rest countdown now appears immediately in the nav when confirming a set in checklist mode
  • On mutation failure, dismissRest() clears the optimistic timer

Test plan

  • In checklist mode: click confirm checkbox → rest countdown appears immediately in nav
  • Superset transitions still work (recordTransition called for mid-round sets)
  • Timer mode still works independently (doesn't double-start rest)
  • If API errors, rest timer is cleared

🤖 Generated with Claude Code

Move rest timer start from onSuccess (async, after network) to
onMutate (synchronous, instant). This ensures the nav rest countdown
appears immediately when confirming a set in checklist mode.
On mutation failure, dismissRest clears the optimistic timer.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 5, 2026

Preview deployment

URL https://hyldmo-checklist-start-timer.macromaxxing.pages.dev
Branch hyldmo/checklist-start-timer
Commit 24e9ec6

@hyldmo hyldmo merged commit 2a37e10 into main Apr 5, 2026
3 checks passed
@hyldmo hyldmo deleted the hyldmo/checklist-start-timer branch April 5, 2026 19:48
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