Repository navigation
[CP Staging] [Search] Fix bulk pay action with no VBBA account - #53304
Conversation
|
Reviewing |
Screen.Recording.2024-11-29.at.6.42.59.PM.mov@lakchote I am not able to see the option of Pay for some reason. Edit - Now I am able to |
@lakchote Is there a reason why the amount is 0 on request? |
Looking. |
Screen.Recording.2024-11-29.at.7.04.43.PM.mov
This did not happened 2nd time. |
|
Regarding the I've looked at the logic we've done in https://github.com/Expensify/App/blob/main/src/libs/actions/Search.ts#L78 using the snapshots Onyx key, and I get the correct However the value in cc @Kicu |
|
I'm currently trying to put up a fix to prevent reverting the underlying PR. |
|
I've put a fix in 2bb6997 @shubham1206agra to correctly compute the amount. |
|
@lakchote Fix lint please |
This reverts commit 2bb6997.
|
@shubham1206agra should be ready now |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeScreen.Recording.2024-11-29.at.7.59.23.PM.moviOS: NativeScreen.Recording.2024-11-29.at.8.32.14.PM.moviOS: mWeb SafariScreen.Recording.2024-11-29.at.7.29.23.PM.movScreen.Recording.2024-11-29.at.7.32.50.PM.movMacOS: Chrome / SafariScreen.Recording.2024-11-29.at.7.01.20.PM.movScreen.Recording.2024-11-29.at.7.04.43.PM.movMacOS: DesktopScreen.Recording.2024-11-29.at.8.11.33.PM.mov |
|
@Beamanator 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] |
|
Thanks @shubham1206agra cc @mountiny ready to merge |
…-pay (cherry picked from commit 0a51ff8) (CP triggered by mountiny)
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.0.68-7 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.68-7 🚀
|




Explanation of Change
In the report's preview, we show the
Pay with Expensify,Pay elsewhereoptions.This is mirrored in the Search's page in the table's row with the
Payaction, which on click opens the expense's detail RHP which will prompt the user to add a bank account. If a bank account is set up, it should pay directly.You can find more about the logic in https://github.com/Expensify/App/blob/main/src/libs/actions/Search.ts#L78
We should have the same
Paybutton behavior, wether it's a bulk action or a single action.cc @luacmartins
Video test (without bank account)
Screen.Recording.2024-11-29.at.10.44.03.mov
Fixed Issues
$ #53292
Tests
Networktab like in the video test with bank account200response with no{'hasError': true}field insideOffline tests
NA
QA Steps
Same as in tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.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 so 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./** comment above it */thisproperly 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)Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2024-11-29.at.10.44.03.mov
MacOS: Desktop