Skip to content

[Payment due @mkhutornyi] Show a status modal for Select all bulk actions - #102616

Merged
JS00001 merged 77 commits into
Expensify:mainfrom
allgandalf:bulk-action-status-modal
Oct 23, 2026
Merged

JS00001 merged 77 commits into
Expensify:mainfrom
allgandalf:bulk-action-status-modal

Conversation

@allgandalf

@allgandalf allgandalf commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

Adds a modal that shows the progress and the result of a Select all bulk action, or lets Concierge send the result. Pay is the first action to use it, and with Select all a report that has a deselected expense is left out of the payment.

Approve and Submit, Hold, Unhold and Reject, and Delete are in their own PRs on top of this one.

Fixed Issues

$ https://github.com/Expensify/Expensify/issues/652397
PROPOSAL:

Tests

  1. With more than a page of reports to pay, open Reports in Search, check Select all and deselect one report
  2. Choose Pay > Mark as paid and verify a modal says the reports are being marked as paid
  3. Verify it ends with how many were marked as paid, and every matching report except the deselected one is paid
  4. Run it again, tap "Message me when it's done" and verify Concierge sends the result
  5. Make one report impossible to pay, run it again and verify View reports opens that report in Search
  • Verify that no errors appear in the JS console

Offline tests

  1. Go offline with Select all checked, choose Pay > Mark as paid and verify the offline message shows

QA Steps

Same as tests

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I verified any copy / text that was added to the app is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If the PR adds or modifies the UI:
    • I asked an AI agent to review the changes for accessibility issues and addressed its findings.
    • I tested with a screen reader (VoiceOver on macOS) and verified all new/changed elements are reachable with a logical focus order.
    • I verified all new/changed elements have meaningful accessible names and roles.
    • I verified state changes are announced (e.g. checked/unchecked, expanded/collapsed, selected).
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari

@melvin-bot

melvin-bot Bot commented Sep 30, 2026

Copy link
Copy Markdown

Hey, I noticed you changed src/languages/en.ts in a PR from a fork. For security reasons, translations are not generated automatically for PRs from forks.

If you want to automatically generate translations for other locales, an Expensify employee will have to:

  1. Look at the code and make sure there are no malicious changes.
  2. Run the Generate static translations GitHub workflow. If you have write access and the K2 extension, you can simply click: [this button]

Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running:

npx bun ./scripts/generateTranslations.ts --help

Typically, you'd want to translate only what you changed by running npx bun ./scripts/generateTranslations.ts --compare-ref main

…modal

# Conflicts:
#	src/languages/de.ts
#	src/languages/el.ts
#	src/languages/es.ts
#	src/languages/fr.ts
#	src/languages/it.ts
#	src/languages/ja.ts
#	src/languages/nl.ts
#	src/languages/pl.ts
#	src/languages/pt-BR.ts
#	src/languages/zh-hans.ts
…modal

# Conflicts:
#	src/hooks/useSearchBulkActions.ts
#	src/libs/API/parameters/index.ts
#	src/libs/API/types.ts
#	src/libs/actions/Search.ts
@codecov

codecov Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.

Files with missing lines Coverage Δ
src/CONST/index.ts 95.90% <ø> (ø)
src/ONYXKEYS.ts 100.00% <ø> (ø)
src/libs/API/types.ts 100.00% <ø> (ø)
src/libs/ExportOnyxState/masking.ts 80.95% <ø> (ø)
src/libs/Navigation/AppNavigator/AuthScreens.tsx 84.00% <100.00%> (+0.16%) ⬆️
src/libs/actions/Search.ts 66.75% <100.00%> (-0.70%) ⬇️
src/components/BulkActionStatusManager.tsx 88.00% <88.00%> (ø)
src/libs/actions/BulkAction.ts 42.30% <42.30%> (ø)
src/components/BulkActionStatusModal.tsx 68.23% <68.23%> (ø)
... and 808 files with indirect coverage changes

@allgandalf
allgandalf dismissed stale reviews from JS00001 and luacmartins via 5888e8c October 23, 2026 06:41
@allgandalf

Copy link
Copy Markdown
Contributor Author

updated both, the running copy 3308839 and the failed text now says the action, like "1 report couldn't be paid." 024a5d2

@allgandalf
allgandalf requested a review from mkhutornyi October 23, 2026 07:02
@melvin-bot
melvin-bot Bot requested review from JS00001 and luacmartins October 23, 2026 08:06
@JS00001

JS00001 commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Going to merge since carlos already approved & only copy changed

@JS00001
JS00001 merged commit bb3077d into Expensify:main Oct 23, 2026
50 of 73 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🚧 JS00001 has triggered a test Expensify/App build. You can view the workflow run here.

@OSBotify

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/JS00001 in version: 9.5.20-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@MelvinBot

Copy link
Copy Markdown
Contributor

No help site update is needed: the new modal only reports progress and results for a Select all payment, and the steps and outcome in How Workspace Admins pay multiple reports in bulk are still accurate.


view run

@IuliiaHerets

Copy link
Copy Markdown

Hi @allgandalf. QA team created 28 pay reports, but no modals were triggered.
Are there any additional steps we need to follow to trigger them?

Recording.492.mp4

cc @JS00001 @trjExpensify @luacmartins

@mkhutornyi

Copy link
Copy Markdown

Hi @allgandalf. QA team created 28 pay reports, but no modals were triggered. Are there any additional steps we need to follow to trigger them?

50+ reports

@IuliiaHerets

Copy link
Copy Markdown

@allgandalf @mkhutornyi Could you please share detailed QA steps for this?
Specifically, for step 5, how should we create a report that cannot be paid? Do we need to switch the report from reimbursable to non-reimbursable, or is there a different setup required to make it impossible to pay?

сс @JS00001 @trjExpensify @luacmartins

@mkhutornyi

Copy link
Copy Markdown

for step 5, how should we create a report that cannot be paid? Do we need to switch the report from reimbursable to non-reimbursable, or is there a different setup required to make it impossible to pay?

Please try this: tap Pay and right away unapprove one of them in another tab

Screen.Recording.2026-10-20.at.2.55.57.PM.mov

@IuliiaHerets

Copy link
Copy Markdown

@mkhutornyi Still no View reports modal.
If we missed something, let us know. If not, could you help to check this internally?
Thanks

bandicam.2026-10-24.22-03-41-803.mp4

@mkhutornyi

Copy link
Copy Markdown

@mkhutornyi Still no View reports modal. If we missed something, let us know. If not, could you help to check this internally? Thanks

yes, I can test on staging

@mkhutornyi

Copy link
Copy Markdown

Verified on staging:

test.mov

@IuliiaHerets

Copy link
Copy Markdown

@mkhutornyi, thank you for your help! Can we check it off then?

@mkhutornyi

mkhutornyi commented Oct 24, 2026 •

Copy link
Copy Markdown

@mkhutornyi, thank you for your help! Can we check it off then?

yes, if other test steps already passed ✅

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.5.20-5 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 failure ❌

Bundle Size Analysis (Sentry):

@melvin-bot

melvin-bot Bot commented Oct 26, 2026

Copy link
Copy Markdown

🤖 Payment issue created: #105065

@JS00001

JS00001 commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

@allgandalf how are the follow ups going here?

@allgandalf

Copy link
Copy Markdown
Contributor Author

Opening them up now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants