-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Store account validated state and display error early on VBA flow #5524
Conversation
cf86a26
to
6111cd9
Compare
For accessibility purposes, do we need to do more than just change the color of the label? Perhaps we need to consider the cursor, or some way to denote that this "button" is disabled in the code? |
@shawnborton Ah, great point! Looks like they added "aria-disabled" support for |
|
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 and tests well!
Store account validated state and display error early on VBA flow (cherry picked from commit 5ddc191)
🚀 Cherry-picked to staging by @luacmartins in version: 1.1.2-7 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
@robertjchen hello! We're cureently blocked from testing this PR. Our domain accounts already have the Expensify card so we're not able to access the Get Started button in workspace. |
@isagoico We were able to test this flow ourselves after it went out, so I think we can check this off the deploy checklist 👍 |
🚀 Deployed to staging by @luacmartins in version: 1.1.2-9 🚀
|
onPress={() => setBankAccountSubStep(CONST.BANK_ACCOUNT.SETUP_TYPE.MANUAL)} | ||
shouldShowRightIcon | ||
/> | ||
{!this.props.user.validated && ( |
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'm not sure if this was true at the time of creation of this PR, but this might have caused an issue in #18156
This is an edge case, which can be reproduced only if you clear cookies and site data and then sign in again
Before the API call to get user info is completed,this.props.user.validated
is undefined
, which causes validateAccountError
to display for a split second while API call is in progress
We resolved this by displaying a loading indicator while the API call is in progress, but that didn't exist when this PR was created, so {this.props.user.validated === false && (
would have avoided this
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.
wow, great catch and that makes sense 🤯
Thanks for the review! In addition to API-level preventions, we need to add a friendly message early on in the VBA flow to inform users that they must validate their account in order to proceed. Let's add the message to the
Add bank account
menu and disable the options there 👍Fixed Issues
$ https://github.com/Expensify/Expensify/issues/178698
Ref https://github.com/Expensify/Expensify/issues/177017
Tests / QA
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
Android