-
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
Fix navigating between CentralPane screens #44444
Fix navigating between CentralPane screens #44444
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! 🎸
@hoangzinh 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] |
Gonna reassign C+ since this is urgent |
Reviewing now 🔁 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-06-27.at.1.39.36.AM.movScreen.Recording.2024-06-27.at.1.36.23.AM.movAndroid: mWeb ChromeScreen.Recording.2024-06-27.at.1.43.57.AM.movScreen.Recording.2024-06-27.at.1.45.45.AM.moviOS: NativeScreen.Recording.2024-06-27.at.1.30.28.AM.movScreen.Recording.2024-06-27.at.1.32.22.AM.moviOS: mWeb SafariScreen.Recording.2024-06-27.at.1.46.44.AM.movMacOS: Chrome / SafariScreen.Recording.2024-06-27.at.1.27.15.AM.movMacOS: DesktopScreen.Recording.2024-06-27.at.1.28.41.AM.mov |
@@ -72,17 +72,21 @@ export default function linkTo(navigation: NavigationContainerRef<RootStackParam | |||
|
|||
// If action type is different than NAVIGATE we can't change it to the PUSH safely | |||
if (action?.type === CONST.NAVIGATION.ACTION_TYPE.NAVIGATE) { | |||
const actionParams: ActionPayloadParams = action.payload.params; | |||
const actionPayloadParams: ActionPayloadParams = action.payload.params; |
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.
Not a blocker but i think we should instead use action?.payload?.params
to avoid any kind of crash(IDK if ever the params would be undefined but better to have), as this is related to deploy blocker i won't focus on this much though, we can come up with a follow up PR for this @luacmartins @WojtekBoman
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.
Tests well on all platforms, other then the changes i suggested above (NAB), this LGTM!
Pr reviewer check list still checks for this [comment](https://github.com//pull/44444#issuecomment-2191910248) as @hoangzinh posted their checklist above, i think we can merge this anyway |
I deleted their checklist |
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.
Approving again for the checklist check to run again, thanks @luacmartins
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…out-central-pane Fix navigating between CentralPane screens (cherry picked from commit f757005)
🚀 Cherry-picked to staging by https://github.com/luacmartins in version: 9.0.2-1 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.3-7 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀
|
Details
This PR fixes issues with navigating to CentralPane screens, also includes one performance improvement in
NavigationUtils.ts
, nowCENTRAL_PANE_SCREEN_NAMES
is stored as a Set instead of an array.App behaviour after fixing:
iOS - Hold - Back button on transaction thread returns to Hold - Reason page after holding it
Screen.Recording.2024-06-26.at.13.04.56.mov
Search - Workspace switcher on Search is not synchronized with workspace switcher in Inbox
Screen.Recording.2024-06-26.at.13.28.14.mov
Fixed Issues
$ #44423
$ #44433
PROPOSAL:
Tests
iOS - Hold - Back button on transaction thread returns to Hold - Reason page after holding it
Search - Workspace switcher on Search is not synchronized with workspace switcher in Inbox
Offline tests
QA Steps
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop