Date Picker — Dayjs Migration Test
Verifies all date-fns → dayjs replacements. Every function that was migrated is exercised below.
Dayjs Replacement Verification
Automated checks for every date-fns function we replaced. All should show PASS.
PTDatePicker — Input Parsing
Tests dayjs parse (customParseFormat), isValid, and format for typed date input. Type a date or use the calendar icon.
Calendar Modal Components
Calendar Variant
Features:
- Traditional calendar grid view
- Month navigation with arrows
- Date selection with visual feedback
- Effective date display
- Auto-set to tomorrow by default
Scroller Variant
Features:
- iOS-style scroll wheel interface
- Touch-friendly month/day/year selection
- Smooth animations and transitions
- Mouse wheel support for desktop
- Momentum scrolling on mobile
Range (PTDateRange)
Features:
- One modal, range mode
- Tap start, tap end, confirm with footer
- Hover preview while assembling the range
- Clear / Cancel from footer
Additional Test Cases
Testing Instructions
Calendar Modal: Click dates to select, use arrow buttons to navigate months. Notice the auto-set to tomorrow feature.
Scroller Modal: Use mouse wheel or touch gestures to scroll through months, days, and years. Test momentum scrolling on mobile.
Range: Tap a start date, tap an end date, then confirm via the footer. Hover preview highlights the in-between cells while you assemble it.
Interactions: Test backdrop clicks, escape key, and various selection modes.
