-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Were you able to find the root cause? How come it used to work before?
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 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
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 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 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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label 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_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