[HOLD BE] add optimistic data for addPersonalBankAccount#58973
[HOLD BE] add optimistic data for addPersonalBankAccount#58973mkzie2 wants to merge 3 commits intoExpensify:mainfrom
Conversation
|
@allgandalf 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] |
| API.write(WRITE_COMMANDS.VALIDATE_BANK_ACCOUNT_WITH_TRANSACTIONS, parameters, onyxData); | ||
| } | ||
|
|
||
| function convertReimbursementAccountDataToAchAccountData(reimbursementAccount: OnyxEntry<ReimbursementAccount>) { |
There was a problem hiding this comment.
@allgandalf Instead of adding optimistic data we need to convert the achData from reimbursementAccount to the policy data after the bank account is verified completely.
There was a problem hiding this comment.
why so? whats the problem with adding optimistic data?
There was a problem hiding this comment.
@allgandalf addPersonalBankAccount API is only the first step in the bankAccount flow. We should only add the policy.achAccount after the bank account flow is complete.
There was a problem hiding this comment.
@mkzie2 please use the format:
- My original solution was:
- But we couldn't implement it due to reason(s):
- Now the new solution used is better that the previous one because:
Please try to be detailed!
There was a problem hiding this comment.
@stitesExpensify It's the Onyx update. Currently it only returns bankAccountList and reimbursementAccount.
We need to return the policy.achAccount too.
There was a problem hiding this comment.
Okay I will update the backend but it's going to be a while FYI. I've been dealing with fires for the last few weeks and am about to go OOO
There was a problem hiding this comment.
no worries, @mkzie2 please put this PR on hold/ close it if we no longer need this
|
@mkzie2 Please close this PR. |
Explanation of Change
Fixed Issues
$ #57742
PROPOSAL: #57742 (comment)
Tests
Offline tests
None
QA Steps
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
Screen.Recording.2025-03-24.at.14.59.45.mov
Android: mWeb Chrome
Screen.Recording.2025-03-24.at.14.56.24.mov
iOS: Native
Screen.Recording.2025-03-24.at.15.02.34.mov
iOS: mWeb Safari
Screen.Recording.2025-03-24.at.14.57.40.mov
MacOS: Chrome / Safari
Screen.Recording.2025-03-24.at.14.47.49.mov
MacOS: Desktop
Screen.Recording.2025-03-24.at.15.06.00.mov