Fix timer countdown display and audio tick timing#67
Conversation
- Initialize lastTickSec to 0 instead of -1 to prevent spurious first tick firing immediately at session start (~50ms) - Use ceiling rounding for timer display so remaining=10.0 shows "0:10" instead of "0:09", with edge case handling for remaining=0.0 Closes #61 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
📝 WalkthroughWalkthroughCeiling-based rounding for displayed countdown seconds was added to Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 📋 Issue PlannerBuilt with CodeRabbit's Coding Plans for faster development and fewer bugs. View plan used: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
Summary
lastTickSecto0instead of-1Int(ceil(remaining))) so remaining=10.0 shows "0:10" not "0:09"displaySecondscomputed property to DRY up minutes/seconds logicCloses #61
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit