-
Notifications
You must be signed in to change notification settings - Fork 65
feat: Create reusable TimeRangePicker component with tabbed interface #423
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:
|
|||||||||||||||||
Remove immediate query trigger when selecting time range. Users must click Filter button to execute query.
|
/describe /compliant /improve /review |
|
PR Description updated to latest commit (f150584)
|
PR Type
Enhancement
Description
Create reusable
TimeRangePickercomponent with tabbed interfaceReplace
SpecificDayenum with custom date range supportstartDateandendDatefields instead ofspecificDateDefer query execution on time range selection
Integrate
TimeRangePickerinto conversation and instruction log pagesSelectdropdown with new componentDiagram Walkthrough
File Walkthrough
TimeRangePicker.svelte
New TimeRangePicker component with tabbed interfacesrc/lib/common/shared/TimeRangePicker.svelte
changeevent withtimeRange,startDate, andendDateclickoutsideDirectiveto close picker when clicking outside+page.svelte
Replace Select with TimeRangePicker, defer query executionsrc/routes/page/conversation/+page.svelte
TimeRangePickercomponent replacingSelectdropdown
searchOptionto usestartDateandendDateinstead ofspecificDategetTodayStr()function (moved to component)timeRangeOptionsmapping (moved to component)convertTimeRange()calls to passstartDateandendDateparameters
SpecificDaytime rangechange
+page.svelte
Replace Select with TimeRangePicker, defer query executionsrc/routes/page/instruction/log/+page.svelte
TimeRangePickercomponent replacingSelectdropdown
searchOptionto usestartDateandendDateinstead ofspecificDategetTodayStr()andtimeRangeOptions(moved to component)convertTimeRange()calls to passstartDateandendDateparameters
SpecificDaytime rangechange
common.js
Update convertTimeRange to support date rangessrc/lib/helpers/utils/common.js
CUSTOM_DATE_RANGEconstantconvertTimeRange()function signature to acceptstartDateandendDateinstead ofspecificDateTimeRange.SpecificDaycase withCUSTOM_DATE_RANGEcaseendDate(defaults tostartDateif notprovided)
constants.js
Add CUSTOM_DATE_RANGE constant, remove SpecificDaysrc/lib/helpers/constants.js
CUSTOM_DATE_RANGEconstant for custom date range identifierSpecificDayoption fromTIME_RANGE_OPTIONSarrayenums.js
Remove SpecificDay from TimeRange enumsrc/lib/helpers/enums.js
SpecificDayenum value fromTimeRangeobjectconversationTypes.js
Update ConversationSearchOption type documentationsrc/lib/helpers/types/conversationTypes.js
ConversationSearchOptionJSDoc to replacespecificDatewithstartDateandendDateendDatedefaults tostartDateif not providedCUSTOM_DATE_RANGEidentifier