-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Start Using BeginSignIn command and remove obsolete API command calls #10222
Conversation
Looks like you modified Instead, all new API commands should use API.js, and follow our guidelines for writing new API commands. Unsure if your change is okay? Drop a note in #expensify-open-source! |
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.
Left a few comments. In addition, we have a few places in actions/User.js that still set loading
in ONYXKEYS.ACCOUNT
. We should update those.
src/pages/SetPasswordPage.js
Outdated
@@ -133,7 +120,7 @@ class SetPasswordPage extends Component { | |||
<View> | |||
<FormAlertWithSubmitButton | |||
buttonText={buttonText} | |||
isLoading={this.props.account.loading || this.props.userSignUp.isValidatingEmail} | |||
isLoading={this.props.account.loading} |
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.
Should this be isLoading
since we are using that now?
isLoading={this.props.account.loading} | |
isLoading={this.props.account.isLoading} |
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.
Do we need to update this one to this.props.account.isLoading
?
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.
Yes good catch!
Trying to figure out how the hell I broke 2 unit tests that don't seem related at all 🤔 |
Okay updated! |
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.
Thanks for addressing the comments! Tests are still failing though!
They are not! 😄 |
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.
Awesome, thanks!!
src/pages/SetPasswordPage.js
Outdated
@@ -133,7 +120,7 @@ class SetPasswordPage extends Component { | |||
<View> | |||
<FormAlertWithSubmitButton | |||
buttonText={buttonText} | |||
isLoading={this.props.account.loading || this.props.userSignUp.isValidatingEmail} | |||
isLoading={this.props.account.loading} |
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.
Do we need to update this one to this.props.account.isLoading
?
Updated again! |
✋ 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 @luacmartins in version: 1.1.88-0 🚀
|
@robertjchen please review
Details
Start using the
BeginSignIn
command added in https://github.com/Expensify/Web-Expensify/pull/34408Fixed Issues
$ https://github.com/Expensify/Expensify/issues/218743
Tests
https://user-images.githubusercontent.com/4741899/182488142-8044224b-396a-46b2-97a2-69599c0ee76d.mp4
With the same account do the same sign in. Click "Forgot?" on the password form.
Make sure you see the following:
And that you get send a password reset link email.
Click the "Resend link" button.
Make sure you get another email
Sign in with an email that DOES NOT already have an account
Make sure that right away you see:
...And that you get an email with a sign-in link:
Sign-in with a phone number that does not have an account yet, make sure you see the following:
And that you get a text message with your magic sign-in link: