-
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
[NoQA] [navigation-refactor] Remove withNavigationFocus from the report screen #23024
[NoQA] [navigation-refactor] Remove withNavigationFocus from the report screen #23024
Conversation
@francoisl 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] |
What issue should be logged with it, gonna ask in Slack |
@adamgrzybowski and lint is failing |
@mollfpr Would you be able to give this one a test and complete a checklist? thanks! |
@mountiny Sure! |
Reviewer Checklist
Screenshots/VideosWeb23024.Web.mp4Mobile Web - Chrome23024.mWeb-Chrome.mp4Mobile Web - Safari23024.mWeb-Safari.mp4Desktop23024.Desktop.mp4iOS23024.iOS.mp4Android23024.Android.mp4 |
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, just a minor prop-types.
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 👍
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!
All yours @francoisl!
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/francoisl in version: 1.3.42-20 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.42-26 🚀
|
🚀 Deployed to staging by https://github.com/francoisl in version: 1.3.44-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.44-2 🚀
|
@@ -273,6 +270,8 @@ class ReportScreen extends React.Component { | |||
|
|||
const policy = this.props.policies[`${ONYXKEYS.COLLECTION.POLICY}${this.props.report.policyID}`]; | |||
|
|||
const isTopMostReportId = Navigation.getTopmostReportId() === getReportID(this.props.route); |
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.
Details
Using
withNavigationFocus
andwithNavigation
on theReportScreen
caused unnecessary rerenders. We found an alternative way to get the values that are required. Now theReportScreen
shouldn't rerender when we open and close the RHP.NOTE:
This PR is important for the PR with style based three pane view approach.
It should reduce the performance issues for animations of the RHP.
Fixed Issues
$ #23065
Tests
Nothing in particular, verify that switching chats, opening a new chat works as expected
Offline tests
QA Steps
Nothing particular to test but the report screen shouldn't rerender after opening and closing RHP.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** 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
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
Screen.Recording.2023-07-17.at.19.47.38.mov
Mobile Web - Chrome
androidWeb.mov
Mobile Web - Safari
iosWeb.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov