-
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
Hide the search router button when the report of a search result is opened in RHP #50964
Hide the search router button when the report of a search result is opened in RHP #50964
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.
LGTM and tests well
Reviewer Checklist
Screenshots/VideosScreen.Recording.2024-10-16.at.4.58.43.PM.movAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
I'm debugging the failing perf tests https://github.com/Expensify/App/actions/runs/11374795129/job/31644223838?pr=50964 |
Updated |
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.
It seems that C+ review isn't required here? So I just clicked approve. 😄
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.
I think the logic of when to display the SearchButton makes sense 👍
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.51-1 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.51-4 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.51-4 🚀
|
@@ -157,6 +158,9 @@ function MoneyReportHeader({policy, report: moneyRequestReport, transactionThrea | |||
const {isDelegateAccessRestricted, delegatorEmail} = useDelegateUserDetails(); | |||
const [isNoDelegateAccessMenuVisible, setIsNoDelegateAccessMenuVisible] = useState(false); | |||
|
|||
const isReportInRHP = isReportOpenInRHP(navigationRef?.getRootState()); | |||
const shouldDisplaySearchRouter = !isReportInRHP; |
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.
Coming from #51730 where we had the issue that whilst RHP is closing, the last route won't be report RHP anymore, so isReportInRHP
becomes false and the search icon is briefly shown (as the RHP is closing).
Details
We should remove the magnifying glass button from the report header when the report is opened in the RHP.
https://expensify.slack.com/archives/C049HHMV9SM/p1729111663012689
Fixed Issues
$ #50963
Tests
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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-10-16.at.11.37.40.PM.mov
Android: mWeb Chrome
Screen.Recording.2024-10-16.at.11.35.47.PM.mov
iOS: Native
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-10-16.at.23.35.21.mp4
iOS: mWeb Safari
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-10-16.at.23.33.04.mp4
MacOS: Chrome / Safari
Screen.Recording.2024-10-16.at.11.24.42.PM.mov
MacOS: Desktop
Screen.Recording.2024-10-16.at.11.26.38.PM.mov