-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Update login flow error handling #17168
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
Conversation
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
|
@cristipaval 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] |
|
I have read the CLA Document and I hereby sign the CLA |
|
@suphero next time please link the issue and the comment with the proposal when you create the PR, in order to get the appropriate reviewers assigned. |
|
@cristipaval, I've already linked the issue and the comment with the proposal. Is there any other step that I missed? |
Did you link them at the PR creation or afterward? |
I've linked them at the PR creation. |
|
Hmm... @mountiny I guess Melvin failed this time, or? |
|
It is linked like this. But it should be linked like this |
|
Oh I see, I'll be careful next time |
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 password page is not handled here, check this #16874 (comment)
|
Yes this makes sense to me 👍 |
|
Cool, @suphero Can you make the change and update PR details accordingly thanks! |
I've made the change and updated the PR. |
|
I think it was not initially linked as a full link @suphero for next prs, make sure its a full link after the dollar sign Thank you 🙇 Great to see a first time contributor!! 🎉 |
|
@suphero password page is missed here |
You mean in description or changed files? I think both requirements in the issue (red underline in phone number and magic code) are met. |
|
@flodnv Can you run workflows |
|
Sure, done |
Reviewer Checklist
Screenshots/Videos |
|
Look Have a look at this sign commits |
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 tests well, to waiting to sign commits
|
@flodnv @Santhosh-Sellavel Can you please run workflows? |
Santhosh-Sellavel
left a comment
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, all you!
@flodnv Can you run the workflow again?
flodnv
left a comment
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.
Just one minor comment, looks good 👍
|
Fixed the minor comment, can you please run the workflow again? |
Santhosh-Sellavel
left a comment
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.
Minor, thing!
Fixed that too. |
|
Is there any issue with the workflow jobs? It seems that workflows were stuck at 99.7% for 30 minutes. Received 1448274937 of 1452469241 (99.7%) https://github.com/Expensify/App/actions/runs/4726168929/jobs/8385976224 |
The workflows passed after 1 hour with the following message. |
|
@flodnv if workflows pass feel free to merge this one! LGTM tests well! |
|
✋ 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 https://github.com/flodnv in version: 1.3.2-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.2-5 🚀
|



Details
This pull request updates error handling on the login flow to improve the identification of errors and their proper display.
Fixed Issues
$ #16874
PROPOSAL: #16874 (comment)
Tests
Scenario 1 - Invalid Phone number
Success scenario:
Scenario 2 - Invalid Password
Success scenario:
Scenario 3 - Invalid Two-Factor Code
Success scenario:
Scenario 4 - Invalid Magic code
Success scenario:
Offline tests
N/A, this flow requires being online
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
Scenario 1 - Invalid Phone number:
Scenario 2 - Invalid Password
Scenario 3 - Invalid Two-Factor Code
Scenario 4 - Invalid Magic code
Mobile Web - Chrome
Scenario 1 - Invalid Phone number:
Scenario 2 - Invalid Password
Scenario 3 - Invalid Two-Factor Code
Scenario 4 - Invalid Magic code
Mobile Web - Safari
Scenario 1 - Invalid Phone number:
Scenario 2 - Invalid Password
Scenario 3 - Invalid Two-Factor Code
Scenario 4 - Invalid Magic code
Desktop
Scenario 1 - Invalid Phone number:
Scenario 2 - Invalid Password
Scenario 3 - Invalid Two-Factor Code
Scenario 4 - Invalid Magic code
iOS
Scenario 1 - Invalid Phone number:
Scenario 2 - Invalid Password
Scenario 3 - Invalid Two-Factor Code
Scenario 4 - Invalid Magic code
Android
Scenario 1 - Invalid Phone number:
Scenario 2 - Invalid Password
Scenario 3 - Invalid Two-Factor Code
Scenario 4 - Invalid Magic code