-
Notifications
You must be signed in to change notification settings - Fork 65
feat: add calendar grid to TimeRangePicker and fix custom date query #424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||||||
|
Reviewed |
PR Type
Enhancement
Description
Add Flatpickr calendar grid component to custom date range picker
Implement temporary date state for custom date selection workflow
Refactor custom date confirmation logic with improved state management
Fix custom date query handling in
convertTimeRangeutility functionDiagram Walkthrough
File Walkthrough
TimeRangePicker.svelte
Integrate Flatpickr calendar and refactor date selection workflowsrc/lib/common/shared/TimeRangePicker.svelte
display
tempStartDate,tempEndDate) tomanage custom date selection before confirmation
initCustomDates()function to initialize calendar withexisting or default dates
handleStartDateChange()andhandleEndDateChange()functions tosync manual input with Flatpickr
handleCustomConfirm()tohandleApply()with improved statemanagement and explicit event dispatching
fields with "to" separator
mode
common.js
Fix custom date range query handling in convertTimeRangesrc/lib/helpers/utils/common.js
CUSTOM_DATE_RANGEcase handling to the beginning ofconvertTimeRange()function before checkingTIME_RANGE_OPTIONSdate validation and UTC formatting
CUSTOM_DATE_RANGEcase from switch statement toprevent unreachable code