-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Suggested Search #62851
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
base: main
Are you sure you want to change the base?
Suggested Search #62851
Conversation
…ions Suggested Search & Filter Revamp
…ions Suggested Search & Filter Revamp
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
@ZhenjaHorbach 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] |
🚧 @JS00001 has triggered a test app build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
Reports - Search panel automatically closes on tapping Reset buttonIf you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel! Version Number: 9.1.51-9 Adhoc Action Performed:
Expected Result:Tapping on Reset button should clear the search field (or should uncheck the selected users) & the search panel should remain opened so user can continue perform searching other users. Actual Result:Search panel automatically closes on tapping Reset button Workaround:Unknown Platforms:
Screenshots/Videos1.mp4 |
Reports - Search field gets hidden at top, not easily accessibleIf you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel! Version Number: 9.1.51-9 Adhoc Action Performed:
Expected Result:Search field in From modal should be easily accessible so user can easily perform search function Actual Result:Search field get hidden at top, not easily accessible On iOS - Search field is somewhat visible when scrolling the search panel Workaround:Unknown Platforms:
Screenshots/Videos1.mp42.mp4 |
Newly created saved search isn't highlighted. Screen.Recording.2025-05-29.at.12.08.48.in.the.afternoon.mov |
Lets create empty state for reports page https://docs.google.com/document/d/1LL4nk5iVvFy9yNThXYcYUy9N3PQvkYqp8IOINsHBWSM/edit?tab=t.0#bookmark=id.m9n81wfqrcva |
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.
Can we reuse the same components as SearchDateFilterBase for consistency?
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.
For this one. I don't think it's an issue, it's where we landed based on internal discussion. Do you agree @shawnborton? |
#62851 (comment) This should be fixed, its just not on the adhoc build yet |
Yup, agree! This is the conclusion that the design team came to, cc @Expensify/design |
🚧 @JS00001 has triggered a test app build. You can view the workflow run here. |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
Same thing here - I can't save a search for Drafts for instance: Have we considered putting all of the exposed filters into the advanced filters section too? That would make the most sense to me, personally... I vaguely remember chatting about this at one point with @JmillsExpensify I think. |
I thought we had discussed this, and I thought an external contributor had already done this, was this not implemented @JmillsExpensify ? |
Yeah I also thought this was the plan? |
I had this adhoc PR in one of my browser tabs and when I went back to it, I saw this 😱 The URL I was on was https://62851.pr-testing.expensify.com/search?q=type%3Aexpense%20status%3Aall%20sortBy%3Adate%20sortOrder%3Adesc |
Explanation of Change
Implemented suggested search! See below for the expected behavior.
Fixed Issues
$ #61112
$ #61114
$ #61116
$ #61117
$ #61189
Tests
Test all variations of search. The following are supposed to be in the LHN:
Expenses, Reports, Chats: Always in LHN
'Submit' - Only in LHN when user is in a workspace
'Approve' - Only when a user is the policys 'approver', OR the user is the 'submitsTo' value for another user
'Pay' - Only when the user is a workspace admin
'Export' - Only when the user is an exporter for one of the accounting integrations
Ensure that all expected results show up, ensure that all new 'filter dropdowns' show the expected behavior and behave as expected, ensure that the new 'Filters' button works & has the expected behavior
Similarly, the following should be tested and verified to be working/not broken or buggy:
ajnsdjkaskj
and then clicking the 'clear' button actually clears the inputQA 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
Android: Native
Screen.Recording.2025-05-09.at.11.59.29.AM.mov
Screen.Recording.2025-05-09.at.11.42.49.AM.mov
Screen.Recording.2025-05-09.at.11.35.58.AM.mov