-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Refactor VBBA setup flow with new API ConnectBankAccountWithPlaid #11162
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
| /** | ||
| * Triggered when user selects a Plaid bank account. | ||
| * @param {String} index | ||
| * @param {String} plaidAccountID |
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 changes here will conflict with https://github.com/Expensify/App/pull/10953/files#diff-2a35d342f7be1cc5c1a8f02937f635a5c7083ec66b64b400027d65087d400e09 👀
cc: @ctkochan22
I do like the idea of using the plaidAccountID instead of the index, though.
luacmartins
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.
Left an initial review. I still need to test this.
src/libs/actions/ReimbursementAccount/setupWithdrawalAccount.js
Outdated
Show resolved
Hide resolved
- Early return - Mispelled selectedPlaidBankAccount - Remove getOnyxDataForVBBA - Use Localize.translateLocal for genericErrorMessage - Use ErrorUtils.getLatestErrorMessage - Refactor acceptTerms
|
Updated! |
luacmartins
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.
While testing, I noticed that the loading spinner in the AddPlaidBankAccount shows at the top of the form, instead of vertically centered.
Rest LGTM.
| ...withLocalizePropTypes, | ||
| }; | ||
|
|
||
| class BankAccountManualStep extends React.Component { |
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.
MariaHCD
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 some small changes from me but otherwise, my local tests worked well 🎊
|
@nkuoch looks like this was merged without passing tests. Please add a note explaining why this was done and remove the |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
^ this is a bug, all the tests were passing melvin |
|
🚀 Deployed to production by @roryabraham in version: 1.2.7-2 🚀
|

Details
Use ConnectBankAccountWithPlaid instead of BankAccount_SetupWithdrawal
And some small refactoring on all steps of vbba setup
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/226848
Tests
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */displayNamepropertythisproperly 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)PR Reviewer Checklist
The Contributor+ will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarhave been tested & I retested again)/** comment above it */displayNamepropertythisproperly 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)QA Steps
Screenshots
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android