You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2026-12-02] [Exploratory] Spend - Not able to pay the report via balk selection offline #102507
Version Number: 9.4.95-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from BrowserStack:https://test-management.browserstack.com/projects/2219752/folder/57529651/test-cases/53628502 Email or phone of affected tester (no customers): N/A Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: MacBook Air 26.6.2 Chrome, iPhone 15 iOS 26.6.1 App Component: Search
Action Performed:
Create a workspace, create two expenses in the workspace chat
Submit and approve the report
Open Spend/ Ready to pay
Go offline
Select the checkbox on the approved report
On the bottom panel click the Pay dropdown
Click "Mark as paid"
Expected Result:
User can pay a report offline via bulk selection in Spend
Actual Result:
"You appear to be offline. You can't take this action right now" modal appears when trying to pay a report offline via bulk selection
changed the title [-][Exploratory] Spend-Not able to pay the report via balk selection offline[/-][+][Exploratory] Spend - Not able to pay the report via balk selection offline[/+]on Sep 29, 2026
Please re-state the problem that we are trying to solve in this issue.
In Spend > Ready to pay, bulk "Mark as paid" on a selected report shows "You appear to be offline" when offline — but mark-as-paid is a queueable optimistic write, same as the single-report flow which works offline.
What is the root cause of that problem?
Two unconditional offline guards: handleBulkPayItemSelected (src/libs/actions/Search.ts) early-returns on isOffline for every payment method, and onBulkPaySelected (src/hooks/useSearchBulkActions.ts) shows the offline modal with no exceptions. The guard exists to block network-dependent flows (KYC wall, bank setup), but it catches ELSEWHERE too, which skips those gates and ends in payMoneyRequest — fully offline-capable.
What changes do you think we should make in order to solve the problem?
Exempt CONST.IOU.PAYMENT_TYPE.ELSEWHERE from both guards so bulk mark-as-paid reaches payMoneyRequest while offline; keep the modal for real money movement (VBBA/wallet/bank) and for "select all matching", which isn't enumerable client-side.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
Offline bulk mark-as-paid applies optimistically and no modal; offline real-payment still shows the modal; queued write flushes on reconnect; select-all stays blocked offline.
What alternative solutions did you explore? (Optional)
Letting all payment methods through offline — rejected, KYC/bank flows genuinely need network. Scoping the exemption to ELSEWHERE is the minimal fix.
> It comes from #105752 (offline bulk Mark as paid) combined with https://github.com/Expensify/App/pull/105238, which added `isPaymentInFlight` to the Pay buttons' `isLoading`. [...] The #105752 branch didn't have the #105238 change, so it wasn't reproducible there.
Closed by arosiclair via #107803.
#107797: same root cause as #107784, per #107797 (comment): after an offline bulk Mark as paid, isActionLoading stays true until the server responds. Closed by arosiclair via the same fix, #107803.
Both blockers came from combining #105752 with #105238 rather than from a single PR.
[Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
N/A, this isn't a regression.
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal
Precondition:
A workspace with an approved expense report that's ready to pay.
Test:
Go to Spend > Ready to pay.
Go offline.
Select the report's checkbox and click Pay > Mark as paid in the bulk action bar.
Verify the "You appear to be offline" modal doesn't appear and the report is marked as paid.
Go back online and verify the payment syncs without errors.
Activity
applause-bot commentedon Sep 29, 2026
While Applause doesn't embed attachments for this bug, here are the links for quick view:
https://platform.applause.com/services/links/v1/external/f940b497ae914912895f83fa3c927398b501a805e978442bd3515028fc49e6be
[-][Exploratory] Spend-Not able to pay the report via balk selection offline[/-][+][Exploratory] Spend - Not able to pay the report via balk selection offline[/+]JoeJoeflyn commentedon Sep 29, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
In Spend > Ready to pay, bulk "Mark as paid" on a selected report shows "You appear to be offline" when offline — but mark-as-paid is a queueable optimistic write, same as the single-report flow which works offline.
What is the root cause of that problem?
Two unconditional offline guards:
handleBulkPayItemSelected(src/libs/actions/Search.ts) early-returns onisOfflinefor every payment method, andonBulkPaySelected(src/hooks/useSearchBulkActions.ts) shows the offline modal with no exceptions. The guard exists to block network-dependent flows (KYC wall, bank setup), but it catchesELSEWHEREtoo, which skips those gates and ends inpayMoneyRequest— fully offline-capable.What changes do you think we should make in order to solve the problem?
Exempt
CONST.IOU.PAYMENT_TYPE.ELSEWHEREfrom both guards so bulk mark-as-paid reachespayMoneyRequestwhile offline; keep the modal for real money movement (VBBA/wallet/bank) and for "select all matching", which isn't enumerable client-side.What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
Offline bulk mark-as-paid applies optimistically and no modal; offline real-payment still shows the modal; queued write flushes on reconnect; select-all stays blocked offline.
What alternative solutions did you explore? (Optional)
Letting all payment methods through offline — rejected, KYC/bank flows genuinely need network. Scoping the exemption to
ELSEWHEREis the minimal fix.melvin-bot commentedon Oct 2, 2026
Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
melvin-bot commentedon Oct 3, 2026
Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
melvin-bot commentedon Oct 6, 2026
6 days overdue. This is scarier than being forced to listen to Vogon poetry!
melvin-bot commentedon Oct 8, 2026
8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!
melvin-bot commentedon Oct 12, 2026
12 days overdue. Walking. Toward. The. Light...
22 remaining items
suneox commentedon Dec 1, 2026
Linked deploy blockers
2 deploy blockers are linked to this issue, and both share the same root cause:
#107784: not caused by #105752 alone, per #107784 (comment):
#107797: same root cause as #107784, per #107797 (comment): after an offline bulk Mark as paid,
isActionLoadingstaystrueuntil the server responds. Closed by arosiclair via the same fix, #107803.Both blockers came from combining #105752 with #105238 rather than from a single PR.
suneox commentedon Dec 1, 2026
Contributor+ Checklist:
[Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
N/A, this isn't a regression. Bulk Mark as paid was blocked offline by design, and fix(spend): not able to pay the report via bulk section while offline #105752 added offline support for it.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
N/A, this isn't a regression.
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
expensify-chore-bot commentedon Dec 1, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)expensify-chore-bot commentedon Dec 1, 2026
Payment Summary
Resolving PRs:
fix(spend): not able to pay the report via bulk section while offline #105752
Reviewer: @suneox owed $175 via NewDot
Contributor: @eszlamczyk does not require payment (Contractor)
BugZero Checklist (@mallenexpensify)
mallenexpensify commentedon Dec 3, 2026
Matt's AI agent:
Prep notes for the CM. This is not a payment approval. Do not request payment until the CM posts the final amount.
Your call.
Job price: $175.
Price basis: standard, no Help Wanted.
Cut: 50% if the two deploy blockers count as one regression from 105752, 100% if the 105238 overlap clears it.
suneox: both blockers came from 105752 combined with 105238: comment.
Next: pick the percentage, then pay.
Evidence
PAYPREP v1mallenexpensify commentedon Dec 3, 2026
Payment Summary
Contributor+: @suneox due $175 via NewDot
Regressions appear to be an edge case with 2 separate PRs needing to be combined, so paying 100%. cc @grgia in case you disagree