Conversation
|
@dukenv0307 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] |
|
🚧 @luacmartins has triggered a test build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
@dukenv0307 the backend PR fixing this issue is merged, but we're still waiting on the deploy (should happen in the next 24h or so). Meanwhile, I resolved conflicts |
|
@dukenv0307 the issue is resolved. Please continue review |
| inputID={`${dateKey}${CONST.SEARCH.DATE_MODIFIERS.BEFORE}`} | ||
| label={translate('search.filters.date.before')} | ||
| defaultValue={dateBefore} | ||
| maxDate={CONST.CALENDAR_PICKER.MAX_DATE} |
There was a problem hiding this comment.
should we handle maxDate and minDate of dateBefore based on dateAfter and vice versa?
There was a problem hiding this comment.
We don't do that for the current date filter, so I'm inclined to not change the behaviour as part of this PR.
| const onPress = singleExecution(waitForNavigate(() => Navigation.navigate(baseFilterConfig[key].route))); | ||
| let filterTitle; | ||
| if ( | ||
| key === CONST.SEARCH.SYNTAX_FILTER_KEYS.DATE || |
There was a problem hiding this comment.
we can reuse DATE_KEYS here
There was a problem hiding this comment.
This one doesn't quite include the full array. We process POSTED different in a separate conditional
|
@luacmartins I left some comments, the rest looks good |
|
Updated! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-12-05.at.10.04.40.movAndroid: mWeb ChromeScreen.Recording.2024-12-05.at.10.02.40.moviOS: NativeScreen.Recording.2024-12-05.at.10.07.36.moviOS: mWeb SafariScreen.Recording.2024-12-05.at.09.56.12.movMacOS: Chrome / SafariScreen.Recording.2024-12-05.at.09.53.08.movMacOS: DesktopScreen.Recording.2024-12-05.at.10.08.57.mov |
|
@amyevans Can you take a look at the PR? Thanks |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/lakchote in version: 9.0.73-0 🚀
|
|
This PR is failing because of issue #53781 |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.0.73-8 🚀
|
| CONST.SEARCH.SYNTAX_FILTER_KEYS.EXPORTED, | ||
| ], | ||
| ], | ||
| [CONST.SEARCH.DATA_TYPES.CHAT]: [ |
There was a problem hiding this comment.
✋ Coming from #54172, this has caused a regression
DATA_TYPES.CHAT array previously contained the "in" filter, which was removed in this PR
We've added it back
Explanation of Change
Adds additional
submitted,approved,paid,exported,postedsearch date filters. Additionally, it organizes filters into "sections" separated by a horizontal ruler.Fixed Issues
$ #52262
$ #52376
Tests
Pre-condition: an account with a submitted, approved, paid and exported to integration report. Also, a posted card transaction
FiltersbuttonSubmittedfilter and verify that you can select a dateApproved,Paid,ExportedandPostedfiltersOffline tests
N/A
QA Steps
Same as tests
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))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./** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)Screenshots/Videos
Screen.Recording.2024-11-27.at.2.48.12.PM.mov
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop