-
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
[CP Stag] Fix forced log out in enable wallet flow #52489
Conversation
@ZhenjaHorbach 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] |
Reviewer Checklist
Screenshots/VideosAndroid: Native2024-11-13.19.48.11.mov2024-11-13.19.43.25.movAndroid: mWeb Chromeandroid-web.moviOS: Nativeios.moviOS: mWeb Safariios-web-2.movios-web-1.movMacOS: Chrome / Safariweb-2.movweb-1.movMacOS: Desktopdesktop-2.movdesktop-1.mov |
@@ -31,9 +30,9 @@ function VerifyAccountPage({route}: VerifyAccountPageProps) { | |||
|
|||
const handleSubmitForm = useCallback( | |||
(validateCode: string) => { | |||
User.validateLogin(accountID ?? 0, validateCode); |
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.
This is a minor comment
But we don't use validateLogin anywhere else
So in theory we could remove validateLogin
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.
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.
But we don't use validateLogin anywhere else
So in theory we could remove validateLogin
I'm planning on reintroducing it later so we can just leave it for now.
That in the background we navigate to the wallet screen when we press Pay with Expensify and Enter magic code
But I think we can fix all this in a separate PR
We'll address that in this issue.
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.
In this case no more questions
Thanks !
I'll finish the review soon
LGTM ! |
@marcochavezf 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] |
[CP Stag] Fix forced log out in enable wallet flow (cherry picked from commit 9b86b7d) (CP triggered by francoisl)
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Cherry-picked to staging by https://github.com/francoisl in version: 9.0.61-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/francoisl in version: 9.0.61-3 🚀
|
Explanation of Change
Uses
ValidateSecondaryLogin
to fix issues with the app getting logged out in the enable wallet flowFixed Issues
$ #52453
Tests
Enable wallet flow
Pay someone flow
Offline tests
None
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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-20241113-124445.mp4
screen-20241113-124640.mp4
Android: mWeb Chrome
iOS: Native
RPReplay_Final1731519050.MP4
iOS: mWeb Safari
RPReplay_Final1731518166.MP4
MacOS: Chrome / Safari
Screen.Recording.2024-11-13.at.12.03.22.PM.mov
Screen.Recording.2024-11-13.at.12.04.47.PM.mov
MacOS: Desktop
Screen.Recording.2024-11-13.at.12.09.06.PM.mov