feat: Date Range filter follow up with fixes (#81501)#87055
feat: Date Range filter follow up with fixes (#81501)#87055btkcodedev wants to merge 3 commits intoExpensify:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Follow-up fixes for the new Search “Custom Range” date filter to address regressions found during QA (year picker constraints, reset behavior, and range validation/error visibility) in the Reports date filters.
Changes:
- Loosened Range calendar date constraints (notably on the “To” calendar) to avoid disabling future date selection.
- Improved Range-mode error handling/reset behavior (clear validation error when both dates are selected; clear snapshot on reset).
- Adjusted layout/scrolling so Range validation errors are brought into view (scroll to bottom on error; range summary moved outside the scroll area).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/components/Search/FilterComponents/RangeDatePicker.tsx | Adjusts min/max constraints for the dual-calendar Range picker to support selecting future “To” dates. |
| src/components/Search/FilterComponents/DatePresetFilterBase.tsx | Updates Range ephemeral state initialization/reset behavior and clears validation errors when a valid range is selected. |
| src/components/Search/FilterComponents/DateFilterBase.tsx | Adds scroll-to-end behavior when showing Range validation errors and moves the range summary outside the scroll view. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/components/Search/FilterComponents/DatePresetFilterBase.tsx
Outdated
Show resolved
Hide resolved
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a1db0b75a5
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Explanation of Change
Follow-up PR that addresses all the listed regressions and resolves the issues mentioned here: #85313 (comment)
Fixed Issues
$ #81501
PROPOSAL: #81501 (comment)
Tests
Test Steps
Regression check
Range Mode - Desktop Popup
Range Mode - Sidebar Filters
Two-Date Validation
Individual After/Before Editing
Mobile/Narrow Layout
Android & iOS - Select year when keyboard is opened
Android - Search - Change dates multiple times
Offline tests
Same as above
QA Steps
Design verification
Verify that the designs are as given in the issue section
Range Mode - Desktop Popup
Range Mode - Sidebar Filters
Two-Date Validation
Individual After/Before Editing
Mobile/Narrow Layout
Android & iOS - Select year when keyboard is opened
Android - Search - Change dates multiple times
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
SVID_20260403_122751_1.mp4
Android: mWeb Chrome
SVID_20260403_122950_1.mp4
iOS: Native
Screen.Recording.2026-04-03.at.12.43.54.PM.mov
iOS: mWeb Safari
Screen.Recording.2026-04-03.at.12.47.51.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2026-04-03.at.10.32.59.AM.mov