fix(timer): restart completed timer from typed duration#26
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughExtracts ChangesTimer restart-from-typed-duration
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
timeRemaining: 0Root cause
After a timer completed,
timeRemainingbecame0whileinitialTimestill held the typed duration shown in the Minutes/Seconds inputs.start()used onlytimeRemaining, so Start briefly entered running state with a 0-second target and immediately completed again.Tests
pnpm lintpnpm typecheckpnpm exec playwright test e2e/timer-behavior.spec.ts -g "completed timer restarts" --project="Desktop Chrome"pnpm exec playwright test e2e/timer-behavior.spec.ts --project="Desktop Chrome"pnpm e2e:desktoppnpm buildSummary by CodeRabbit
New Features
Bug Fixes