-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: avoid duplicated /SearchForReport calls #60810
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
fix: avoid duplicated /SearchForReport calls #60810
Conversation
Concierge reviewer checklist:
For more detailed instructions on completing this checklist, see How do I review a HelpDot PR as a Concierge Team member? cc @OfstadC |
src/components/Search/SearchPageHeader/SearchPageHeaderInput.tsx
Outdated
Show resolved
Hide resolved
src/components/Search/SearchPageHeader/SearchPageHeaderInput.tsx
Outdated
Show resolved
Hide resolved
Bug: Screen.Recording.2025-04-25.at.6.27.48.PM.mov |
Thanks for noticing! Just pushed fix for this. |
src/components/Search/SearchPageHeader/SearchPageHeaderInput.tsx
Outdated
Show resolved
Hide resolved
@s77rt I addressed your comment, could you review again? |
Thanks, @s77rt and @martasudol, for chugging along on this one! Let me know in Slack if you have any other questions about when this is ready. Thank you! |
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.
The src/pages/Search/SearchPageNarrow.tsx
page is missing the search handle.
Bug: After typing and clicking on in item, an extra Screen.Recording.2025-05-13.at.4.40.02.PM.mov |
Bug: On mWeb I don't see any Screen.Recording.2025-05-13.at.4.34.38.PM.mov |
Bug: The reports page feels very slow. Not sure if this is coming from this PR. Can you please merge Screen.Recording.2025-05-13.at.4.30.33.PM.mov |
Fixed 🤞 |
Fixed 🤞 |
I've merged |
Reviewer Checklist
Screenshots/VideosAndroid: mWeb Chromemweb-chrome.moviOS: HybridAppJS bundle issue. NAB MacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.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.
Thank you! changes look good to me, great job iterating over the solution
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.
Overall I am not sure if this will be that useful as search changes often ad we will be updating the help site with similar data and surely we will forget to keep this up to date
✋ 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 production by https://github.com/mountiny in version: 9.1.46-12 🚀
|
Explanation of Change
This PR fixes unnecessary calls of
/SearchForReports
endpoint in search view.Fixed Issues
$#60336
Tests
/SearchForReports
endpoint is called (it should not)./SearchForReport
is called - it should be.In general:
/SearchForReports
should be called only to display suggestions in autocomplete modal after typing something in the search input. In any other case (like selecting predefined filters, selecting basic reports view from LHN - only/Search
endpoint should be called.Offline tests
Same as Tests.
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.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Nagranie.z.ekranu.2025-04-24.o.14.59.33.mov
MacOS: Desktop
Nagranie.z.ekranu.2025-04-24.o.15.06.32.mov