[CP Stag] Fix date filter is cut off#88704
Conversation
|
@aimane-chnaif Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
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: 7c323d8019
ℹ️ 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".
|
Good catch! |
|
|
||
| return ( | ||
| <View style={[styles.pv4, styles.gap2, styles.getPopoverMaxHeight(windowHeight, isInLandscapeMode)]}> | ||
| <View style={[styles.pv4, styles.gap2]}> |
There was a problem hiding this comment.
Please also add test case for this
| closeOverlay={closeOverlay} | ||
| setPopoverWidth={setPopoverWidth} | ||
| presets={getDatePresets(filterKey, true)} | ||
| style={[styles.getPopoverMaxHeight(windowHeight, isInLandscapeMode)]} |
There was a problem hiding this comment.
I added back the max height style that was removed in https://github.com/Expensify/App/pull/88191/changes#diff-83cb90c4b04d8b728f53bc1ee7a2400a965b1148a1f4645cec08033cee26d83f, but instead of only applying it when date range modifier is selected, we now apply it to all cases, and also change the View to ScrollView in large screen to make it scrollable.
Note: DateSelectPopup is also used for date-type report field and the max height doesn't work fine
But I think it's fine, no real user will resize their window to be that small. In #88428, the report field date will follow the same max-height as the report field list and other popups.
|
Ok, I think I need to fix the report field date max height then. Fixde. For the second issue, it's unrelated, and happens on the normal date filter too. |
|
Yes (the 2nd issue I mean is the extra row of the date picker) |
|
Please merge main |
|
Done |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppios.movios-landscape.moviOS: mWeb SafariMacOS: Chrome / Safariweb.mov |
| closeOverlay(); | ||
| }, [clearSelection, closeOverlay, onChange, selectedDateModifier]); | ||
|
|
||
| const maxPopupHeight = Math.round(windowHeight * 0.875); |
There was a problem hiding this comment.
As a follow-up or any other next PR, define this value in CONST
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
Should we CP this? It seems like the issue is on staging |
yes CP please |
Fix date filter is cut off (cherry picked from commit 32475e8) (cherry-picked to staging by arosiclair)
|
🚀 Cherry-picked to staging by https://github.com/arosiclair in version: 9.3.62-13 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes required. This PR is a UI bug fix that prevents date filter popups from being cut off in the Search screen. The changes are limited to internal component layout (adding |
|
🚀 Cherry-picked to staging by https://github.com/arosiclair in version: 9.3.63-1 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Cherry-picked to staging by https://github.com/arosiclair in version: 9.3.64-0 🚀
Bundle Size Analysis (Sentry): |




Explanation of Change
Fixed Issues
$ #88051
PROPOSAL:
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
A.
B.
Prerequisite: have a workspace with a date type report field
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
ewb.mp4