fix(translation): show correct error message for bank account flow#58764
Conversation
|
@jaydamani The warning in Spanish is fine: However, the validation error does not remain. I believe it should be returned by the backend, does that make sense? Screen.Recording.2025-03-19.at.19.57.41.movThanks. |
looking into this, also just noticed that the cross for dismissing the error is not working so checking that as well. If we want to always show the error then I think the cross should be hidden for our particular error |
I believe so, but we need confirmation from the @Expensify/design team. |
If the error is dismissable then we should show the If we don't allow the user to dismiss it, will the error go away on its own once they can try to validate again? |
|
Agree with what Danny is saying and asking. Would also be good to add some top padding to the error as it's a bit cramped at the moment |
|
Agree with all of those comments from the design team. |
Thank you very much design team. @justinpersaud can you confirm the expected behavior here? Thanks |
Do you mean the bank account validation error does not persist after you refreshed the page, and you were able to try adding it in manually again? If so, I agree, that is an issue. I believe in this case we expect the user to contact us to resolve the problem and they shouldn't be able to get around that. |
Exactly @justinpersaud. And that should come from the backend, right? Or do you think there is something we can do on the front end? Thanks. |
|
So the error is going to persist even if you try and refresh the page and try again. You'll get the same error. The error message we're showing right now is actually what the backend is returning I asked internally and it seems like we're fine with this behaviour since you'll still be blocked. |
|
Great! Let us know when is confirmed. Thank you very much 🚀 |
|
Was that to me? What I posted above is already confirmed. |
Then I think we should also have some message asking user to contact us. |
|
It's already there in the violation notice. |
Sorry, I misunderstood hehehe great than |
|
Hi @jaydamani, could you merge main here? So I can test it, the Android build is falling here. Thanks. |
…-bank-account-flow--57423
|
@brunovjk Merged with main, let me know if any updates are required |
Reviewer Checklist
Screenshots/VideosAndroid: Native58764_ios_native.movAndroid: mWeb Chrome58764_android_web.moviOS: Native58764_ios_native.moviOS: mWeb Safari58764_ios_web.movMacOS: Chrome / SafariScreen.Recording.2025-03-31.at.09.16.20.movMacOS: Desktop58764_web_desktop.mov |
brunovjk
left a comment
There was a problem hiding this comment.
LGTM. I believe we need to confirm from the @Expensify/design team. Thanks.
| reimbursementAccount?.maxAttemptsReached ? getMicroSecondOnyxErrorWithTranslationKey('connectBankAccountStep.maxAttemptsReached') : getLatestError(errors) | ||
| } | ||
| shouldShowErrorMessages | ||
| canDismissError={!reimbursementAccount?.maxAttemptsReached} |
There was a problem hiding this comment.
@Expensify/design what do you think about this change? This is making the error persistent and not allowing you to dismiss it. I'd argue that you can dismiss the error after you've seen it, then that is on you because you saw it and dismissed it. The error will still be presented when they try to setup the bank account again on a different screen.
There was a problem hiding this comment.
Hmm I don't feel too strongly. Normally we allow users to dismiss the error, although in this case, if you dismiss the error, the buttons would still be disabled which might feel weird right?
There was a problem hiding this comment.
So I think I would keep it there as not dismissable. What makes it so that you can log in again though?
There was a problem hiding this comment.
This is for adding a bank account. So in this case, we're showing an error because they've already failed too many times to add a bank account, and their next step is to reach out to Concierge.
If they dismiss the error, they can go through the flow again but then they'll hit the same error page. I think in that case, making it non dismissable is fine since the outcome is the same, right?
|
Nice, that feels better - curious if @Expensify/design agrees (though I think they will!) |
|
(Also noting that we're updating the option rows shown here but in a different PR) |
Agree 👍 |
|
Great! I think is all yours @justinpersaud. Thank you. |
|
✋ 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/justinpersaud in version: 9.1.22-0 🚀
|
|
🚀 Deployed to production by https://github.com/grgia in version: 9.1.22-10 🚀
|




Explanation of Change
Update bank account form to show too many attempts reached error when
reimbursementAccount?.maxAttemptsReachedis trueFixed Issues
$ #57423
PROPOSAL: #57423 (comment)
Tests
Offline tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop