fix(webui): Modify DatePicker callback to update time range on any change to prevent query submission with previous time range. #1171
Conversation
WalkthroughThe changes update the event handler for the date range picker component from Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5–10 minutes Possibly related PRs
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (1)**/*.{cpp,hpp,java,js,jsx,tpp,ts,tsx}⚙️ CodeRabbit Configuration File
Files:
🧠 Learnings (2)📓 Common learnings📚 Learning: in components/log-viewer-webui react codebase: return type annotations (like `: jsx.element`) are un...Applied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (2)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
DatePicker onChange callback; Increase minimum width.DatePicker's onChange callback; Increase minimum width.
DatePicker's onChange callback; Increase minimum width.DatePicker's onChange callback.
davemarco
left a comment
There was a problem hiding this comment.
title
fix(webui): Modify DatePicker callback to update time range on any change to prevent query submission with previous time range.
DatePicker's onChange callback.DatePicker callback to update time range on any change to prevent query submission with previous time range.
…change to prevent query submission with previous time range. (y-scope#1171)
Description
As the title suggests, this PR replaces the
onChangecallback withonCalendarChange.DM: there was a bug where sometimes the time range does not update immediately, PR fixes that
Checklist
breaking change.
Validation performed
Summary by CodeRabbit
Style
Bug Fixes