[CP Staging] fix: wait for navigation ready state before signing in#35827
Conversation
|
The code change affects only native platforms so I think it's fine to test only android and iOS deeplinks. |
|
Please add Tests step iOS deeplink test: android deeplink test: |
Updated test cases. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-02-05.at.10.28.38.PM.movAndroid: mWeb ChromeiOS: NativeScreen.Recording.2024-02-05.at.10.23.53.PM.moviOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
@aswin-s I am still getting infinite loading when invalid link is entered Screen.Recording.2024-02-05.at.10.32.29.PM.mov |
|
Checking |
|
@situchan Looks like this situation was never handled on native platform? I could see the same scenario handled for web though. |
|
Can you check playstore/appstore apps? If it's not reproducible on production, I think it should be fixed |
| Navigation.isNavigationReady().then(() => { | ||
| Navigation.goBack(); | ||
| }); | ||
| }, [session?.autoAuthState]); |
There was a problem hiding this comment.
Were you able to find the root cause? How come it used to work before?
There was a problem hiding this comment.
I think it is because of navigation refactor. User should be redirected back to sign-in page if code validation fails.
There was a problem hiding this comment.
I know it's from navigation refactor. But wanted to know exactly which code caused this.
This file was not changed recently
|
@situchan Fixed the issue. I've made it just like how it used to be on production. fix_out.mp4 |
|
Failure case also works well with the latest change Screen.Recording.2024-02-06.at.12.15.51.AM.mov |
situchan
left a comment
There was a problem hiding this comment.
The root cause of failure case is still not clear yet but the fix looks good to me and tests well.
Given this is urgent as deploy blocker, approving
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
[CP Staging] fix: wait for navigation ready state before signing in (cherry picked from commit e9f7b81)
|
🚀 Cherry-picked to staging by https://github.com/marcaaron in version: 1.4.36-3 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.36-5 🚀
|
Details
This PR fixes an issue were user gets stuck on an infinite loop while trying to sign in using deep link on native devices.
Fixed Issues
$ #35745
PROPOSAL: #35745 (comment)
Tests
For Developer testing, follow below steps.
iOS
xcrun simctl openurl booted 'new-expensify://v/xxx/yyy'Android
adb shell am start -a android.intent.action.VIEW -d "new-expensify://v/xxx/yyy"Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android_out.mp4
Android: mWeb Chrome
android-web_out.mp4
iOS: Native
ios_out.mp4
iOS: mWeb Safari
ios-mweb_out.mp4
MacOS: Chrome / Safari
web_out.mp4
MacOS: Desktop
desktop_out.mp4