-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Show Submit/Approve/Pay actions for selected transactions when all expenses are selected #78426
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
Show Submit/Approve/Pay actions for selected transactions when all expenses are selected #78426
Conversation
…ons to selected transactions
- Fix type import in useSelectedTransactionsActions.ts (use 'import type') - Remove unused KYCPaymentMethod import in PaymentUtils.ts - Add ValueOf import and type assertion in ActionCell.tsx for PaymentData compatibility - Update SettlementButton to use object params for all onPress calls
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
Please fix conflict |
|
@situchan Resolved the conflicts, please take a look. Thanks! |
|
@situchan This is the first PR that needs to be merged to enable the Submit / Approve / Pay buttons on the web and desktop apps. In the second PR, we’ll merge the refactored code to enable the same functionality for mobile selection mode as well. I’m done with my part for this first PR. |
|
Friendly bump @situchan. Please review the changes once. I'll resolve the conflicts once you are done as there are frequent changes in files changed. |
|
Please fix conflict. Started reviewing |
|
Lint still failing |
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.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a9458c868f
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
…ect-actions-money-report-header
|
@situchan I was some intermittent issues with CI. All good now. |
…ect-actions-money-report-header
|
gentle bump @situchan |
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.
💡 Codex Review
App/src/components/MoneyReportHeader.tsx
Lines 523 to 526 in f464316
| } else if (isAnyTransactionOnHold) { | |
| if (getPlatform() === CONST.PLATFORM.IOS) { | |
| // eslint-disable-next-line @typescript-eslint/no-deprecated | |
| InteractionManager.runAfterInteractions(() => setIsHoldMenuVisible(true)); |
When all transactions are selected and the report has any held expenses, the payment flow goes through the hold menu path here. In that path you only open the hold menu, and the actual payment is executed later by ProcessMoneyReportHoldMenu, which does not clear selected transactions. As a result, bulk Pay from the selection dropdown leaves the selections active even after the user confirms the hold-menu action, unlike the non-hold branches where clearSelectedTransactions(true) runs. This is user-visible in reports with held expenses: the selection UI persists after paying/approving, and repeated actions can be triggered unintentionally.
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
Please update Tests so that QA team knows this is web only. not mobile |
|
@puneetlath can we merge this? |
|
🚧 @puneetlath has triggered a test Expensify/App build. You can view the workflow run here. |
|
Let me give it a quick spin on ad-hoc and if all good I'll merge. Thanks! |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
Let's add the |
yes, this PR is only supporting Submit/Approve/Pay. Should we support unapprove/cancel payment as well? |
|
Ah yes, I think we should. Basically all the report-level actions should work when selecting all. @cosmicvulpes you down to raise a follow-up PR for those? |
|
🚀 Deployed to staging by https://github.com/puneetlath in version: 9.3.11-0 🚀
|
Explanation of Change
This PR adds support for displaying report-level actions (Submit, Approve, Pay) in the selected transactions dropdown when all expenses in a report are selected. This allows users to perform bulk report actions directly from the expense selection UI.
Key Changes
Fixed Issues
$ #72502
PROPOSAL: #72502 (comment)
Tests
Note: This change is not applicable to mobile views.
Offline tests
QA Steps
Same as tests
Note: This change is not applicable to mobile views.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)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
(No changes)
untitled.mp4
Android: mWeb Chrome
(No changes)untitled1.mp4
iOS: Native
(No changes)
Simulator.Screen.Recording.-.iPhone.16.Pro.Max.-.2025-12-31.at.16.42.36.mp4
iOS: mWeb Safari
(No changes)
Simulator.Screen.Recording.-.iPhone.16.Pro.Max.-.2025-12-31.at.16.58.23.mp4
MacOS: Chrome / Safari
Screen.Recording.2026-01-17.at.10.22.03.PM.mp4