-
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
Refactor VBBA setup flow with new API ConnectBankAccountWithPlaid #11162
Conversation
@@ -119,30 +115,30 @@ class AddPlaidBankAccount extends React.Component { | |||
|
|||
/** | |||
* 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.
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! |
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.
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 Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is 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 Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
have been tested & I retested again)/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)QA Steps
Screenshots
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android