fix: validate date value in FilterChip to prevent RangeError#656
Conversation
…id input Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR enhances date filtering validation by checking date validity before converting to ISO string format, and adds CSS error state styling to date filter chips for improved user feedback on invalid input. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
fix: validate date value in FilterChip to prevent RangeError on invalid input Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Summary
dayjs.isValid()check before callingtoISOString()inhandleStringBasedTypesto preventRangeError: Invalid time valuewhen an invalid date is enteredBefore
After
Test plan
04/02/2026)RangeErroris thrown🤖 Generated with Claude Code
Summary by CodeRabbit