-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add more search filters #52938
Add more search filters #52938
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we handle maxDate and minDate of dateBefore based on dateAfter and vice versa?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can reuse DATE_KEYS here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@amyevans Can you take a look at the PR? Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
✋ 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 🚀
|
Explanation of Change
Adds additional
submitted
,approved
,paid
,exported
,posted
search 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
Filters
buttonSubmitted
filter and verify that you can select a dateApproved
,Paid
,Exported
andPosted
filtersOffline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps./** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is 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