-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Improve Search in suggestion in Search Router #52100
Improve Search in suggestion in Search Router #52100
Conversation
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.
Looks good 👍
@youssef-lr 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 ready for review! |
I'll hold on reviewing this until we merge the holding PR |
@289Adam289 PR is merged, please merge main so we can resume review |
Update: Currently, the code works correctly, even though it uses ugly TypeScript workaround. I believe it would be beneficial to discuss with the team tomorrow about the best approach to address this issue. |
No rush, let's clean it up |
After closer examination, I see two potential approaches:
What do you think @luacmartins? |
I added some changes to make assertion work and allow for testing the pr, in case you decide to go with the first approach. |
Thanks @289Adam289. I took a look at the code and I think that we can go with option 1. I agree that refactoring the logic in |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-11-13.at.4.19.02.PM.movAndroid: mWeb ChromeScreen.Recording.2024-11-13.at.4.22.57.PM.moviOS: NativeSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-11-13.at.16.14.32.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-11-13.at.16.17.44.mp4MacOS: Chrome / SafariScreen.Recording.2024-11-13.at.3.47.23.PM.movMacOS: DesktopScreen.Recording.2024-11-13.at.3.53.09.PM.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 and tests well 👍
I have a suggestion (I'm not sure if it was previously discussed, as I don't have access to the thread mentioned here): For items/reports where Screen.Recording.2024-11-13.at.4.26.10.PM.mov |
App/.github/PULL_REQUEST_TEMPLATE.md Lines 55 to 58 in b2d6a0e
@289Adam289 Could you please write "Same as tests" in QA tests section? 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/luacmartins in version: 9.0.62-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.62-4 🚀
|
Explanation of Change
This pr changes how
Search in
suggestion work depending on room type search router is opened in.Fixed Issues
$ #51964
PROPOSAL:
Tests
Open
Inbox
on the appChoose different types of rooms (Workspace, Invoices, chats)
Open Search Router
Verify that after clicking
Search in
suggestion expected query type appears:Workspace
->expense
Invoice
->invoice
other ->
chat
Verify that no errors appear in the JS console
Offline tests
QA Steps
Same steps 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.Screenshots/Videos
Android: Native
Screen.Recording.2024-11-06.at.12.44.28.mp4
Android: mWeb Chrome
iOS: Native
Screen.Recording.2024-11-06.at.12.38.58.mp4
iOS: mWeb Safari
Screen.Recording.2024-11-06.at.12.41.09.mp4
MacOS: Chrome / Safari
Screen.Recording.2024-11-06.at.12.23.46.mp4
MacOS: Desktop