-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Add Pattern B to creating Personal Bank Account #10953
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
Closed
Closed
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
d683905
Add offlinefeedback
a96a4d9
Add pending and error handling
1481056
add onclose
c3ac6be
pass plaid index
a500ed6
fix up onyxdata
c440439
fix persisting plaid data
b4c8291
dry up PM navigation
6456f3b
fix dependency cycle
31f5848
Fix lint issues
9a72191
if bank account is pending, naviagte to add-bank-account
7a4eccc
Add pending key
4208af0
dry up format numebr method
819aee1
add errors
b1f3c6a
add brick indicator
5c2be25
Add pending style
30b498b
Fix opacity
c4d7c30
move button to bottom
ec40de5
wrap button
1adc86f
merge main
39bd57a
style
f012515
merge main
4649fbc
fix merge misses
febddd9
dry up a bit
9706818
fix kyc navigation
b1e3837
Add personalBankAccount proptypes
7b61241
use new proptypes
bc2b1a6
change loading
5699964
fix last feedback
eccb515
add changes
783395e
Switch to handle general errors
b38afef
merge main
e906075
merge main
0b5ae00
remove index
5ea7e83
fix main merge
c6ba483
fix other merge issues
3c90f54
pass selectedPlaidAccount
b49d2fd
fix proptype
0f51bc7
fix lint
d26d1de
fix error handling
93e39d8
merge main and fix conflicts
b4f80b2
Add method to collect selected bank object"
4cb1d6b
update to handle pendingBankAccount
8704adb
update proptypes
caf1f08
clean up
147e723
don't show button spinner if action is offline
0ea6bc6
fix comment
cfcdf71
Alternate proposal for pattern B of AddPersonalBankAccount
nkuoch 11da5c2
Apply Pattern B only when offline
nkuoch bc1ce2a
Merge pull request #11630 from Expensify/nat-ckt
MariaHCD File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| import PropTypes from 'prop-types'; | ||
|
|
||
| export default PropTypes.shape({ | ||
| /** General errors */ | ||
| errors: PropTypes.shape({ | ||
| /** Key: timestamp - Value: Error message */ | ||
| }), | ||
|
|
||
| /** Field specific errors */ | ||
| errorFields: PropTypes.shape({ | ||
| /** Key: fieldID - bool */ | ||
| }), | ||
|
|
||
| /** Is this pending to be added? */ | ||
| pendingAction: PropTypes.string, | ||
|
|
||
| /** Plaid account ID of the pending bank account */ | ||
| selectedPlaidAccountID: PropTypes.string, | ||
|
|
||
| /** Personal Bank Account successfully added. Show user success modal */ | ||
| shouldShowSuccess: PropTypes.bool, | ||
|
|
||
| /** Show loader if still awaiting response */ | ||
| isLoading: PropTypes.bool, | ||
| }); | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -412,7 +412,7 @@ export default { | |
| notOwnerOfFund: 'There was an error setting this card as your default payment method.', | ||
| setDefaultFailure: 'Something went wrong. Please chat with Concierge for further assistance.', | ||
| }, | ||
| addBankAccountFailure: 'And unexpected error occurred while trying to add your bank account. Please try again.', | ||
| addBankAccountFailure: 'An unexpected error occurred while trying to add your bank account. Please try again.', | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typo |
||
| }, | ||
| transferAmountPage: { | ||
| transfer: ({amount}) => `Transfer${amount ? ` ${amount}` : ''}`, | ||
|
|
@@ -588,6 +588,8 @@ export default { | |
| chooseAccountLabel: 'Account', | ||
| successTitle: 'Personal bank account added!', | ||
| successMessage: 'Congrats, your bank account is set up and ready to receive reimbursements.', | ||
| passwordRequired: 'Please enter a password', | ||
| plaidBankAccountRequired: 'Please select a bank account', | ||
| }, | ||
| attachmentView: { | ||
| unknownFilename: 'Unknown filename', | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.