-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[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 |
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.
Thanks
…-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 elsewhere
options.This is mirrored in the Search's page in the table's row with the
Pay
action, 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
Pay
button 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
Network
tab like in the video test with bank account200
response with no{'hasError': true}
field insideOffline tests
NA
QA Steps
Same as in tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps./** comment above it */
this
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
)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