[Payment due @gijoe0295] Add Onyx failure data for handling errors during VBBA setup#88735
[Payment due @gijoe0295] Add Onyx failure data for handling errors during VBBA setup#88735madmax330 merged 6 commits intoExpensify:mainfrom
Conversation
|
@gijoe0295 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 68d08a1c65
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| if (currentStep != CONST.BANK_ACCOUNT.STEP.REQUESTOR) { | ||
| failureData.push({ | ||
| onyxMethod: Onyx.METHOD.SET, | ||
| key: ONYXKEYS.ONFIDO_TOKEN, | ||
| value: null |
There was a problem hiding this comment.
Avoid clearing Onfido state when step is omitted
This condition resets ONFIDO_TOKEN whenever currentStep is anything other than REQUESTOR, but several VBBA writes (notably verifyIdentityForBankAccount()) call getVBBADataForOnyx() without passing a step, so transient API failures during identity verification now clear the token/applicant ID and force users to restart Onfido instead of retrying in place. Restrict this reset to explicit steps that require it (or pass REQUESTOR from requestor-flow callers).
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
When verifyIdentityForBankAccount fails, user is redirected back to personal information step and must go through Onfido verification again. This is not a bug
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-04-30.at.21.45.02.mov |
|
PR doesn’t need product input as a refactor PR. Unassigning and unsubscribing myself. |
|
The function is reused in pretty many places. I'm still testing other scenarios. Should complete tomorrow |
| value: null, | ||
| }, | ||
| ]; | ||
| if ((currentStep ?? null) !== CONST.BANK_ACCOUNT.STEP.REQUESTOR) { |
There was a problem hiding this comment.
Removed this. I was checking if it fixed a particular codex review.
This comment was marked as outdated.
This comment was marked as outdated.
|
When connecting using Plaid and This PR (2:25): Screen.Recording.2026-04-28.at.23.48.21.movStaging (0:14): Screen.Recording.2026-04-28.at.23.13.52.mov |
|
🎯 @gijoe0295, thanks for reviewing and testing this PR! 🎉 A payment issue will be created for your review once this PR is deployed to production. If payment is not needed (e.g., regression PR review fix etc), react with 👎 to this comment to prevent the payment issue from being created. |
|
@parasharrajat 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] |
|
@jayeshmangwani 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] |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @madmax330 has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/madmax330 in version: 9.3.68-0 🚀
Bundle Size Analysis (Sentry): |
|
I reviewed the changes in this PR. The modifications are limited to No user-facing features, flows, UI labels, or settings were added or changed. The existing bank account setup flow and its steps remain the same; this PR only improves how errors are handled internally when a request fails mid-flow. No help site changes are required. |
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.3.68-3 🚀
|
|
🤖 Payment issue created: #90008 |
Explanation of Change
Adds Onyx failure data for handling errors that may occur during VBBA setup.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/609462
PROPOSAL:
Tests
Offline tests
N/A
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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))npm run compress-svg)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
Screen.Recording.2026-04-29.at.06.49.40.mp4