Skip to content

[Due for payment 2026-12-02] [Exploratory] Spend - Not able to pay the report via balk selection offline #102507

Done

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


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:

  1. Create a workspace, create two expenses in the workspace chat
  2. Submit and approve the report
  3. Open Spend/ Ready to pay
  4. Go offline
  5. Select the checkbox on the approved report
  6. On the bottom panel click the Pay dropdown
  7. 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

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome Safari

Screenshots/Videos

Bug7272115_1790648266858.Pay_offline.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Julia Ponikarchuk
Bug ID: 7272115

Issue OwnerCurrent Issue Owner: @mallenexpensify

Activity

  1. applause-bot commented on Sep 29, 2026

    @applause-bot
    Author

    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

  2. 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
  3. JoeJoeflyn commented on Sep 29, 2026

    @JoeJoeflyn

    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 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.

  4. added
    Daily
    and removed on Sep 29, 2026
  5. melvin-bot commented on Oct 2, 2026

    @melvin-bot

    Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  6. melvin-bot commented on Oct 3, 2026

    @melvin-bot

    Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  7. melvin-bot commented on Oct 6, 2026

    @melvin-bot

    6 days overdue. This is scarier than being forced to listen to Vogon poetry!

  8. melvin-bot commented on Oct 8, 2026

    @melvin-bot

    8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

  9. melvin-bot commented on Oct 12, 2026

    @melvin-bot

    12 days overdue. Walking. Toward. The. Light...

  10. 22 remaining items

  11. suneox commented on Dec 1, 2026

    @suneox
    Contributor

    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):

    > 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.

  12. suneox commented on Dec 1, 2026

    @suneox
    Contributor

    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:

    • A workspace with an approved expense report that's ready to pay.

    Test:

    1. Go to Spend > Ready to pay.
    2. Go offline.
    3. Select the report's checkbox and click Pay > Mark as paid in the bulk action bar.
    4. Verify the "You appear to be offline" modal doesn't appear and the report is marked as paid.
    5. Go back online and verify the payment syncs without errors.

    Do we agree 👍 or 👎

  13. added
    Weekly
    and removed
    Daily
    Weekly
    on Dec 1, 2026
  14. added
    Daily
    Awaiting Payment
    on Dec 1, 2026
  15. expensify-chore-bot commented on Dec 1, 2026

    @expensify-chore-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  16. expensify-chore-bot commented on Dec 1, 2026

    @expensify-chore-bot

    Payment Summary

    Resolving PRs:

    BugZero Checklist (@mallenexpensify)

    • I have confirmed assignees, roles, and Upwork contracts look correct
    • I have paid out Upwork contracts / manual NewDot requests
    • [BugZero Assignee] I have created a GH issue for creating/updating the regression test once above steps have been agreed upon
  17. mallenexpensify commented on Dec 3, 2026

    @mallenexpensify
    Contributor

    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.

    • suneox (C+): 50% or 100%, via NewDot

    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
    • C+ checklist, 6 steps: comment. No TestRail case.
    • Resolving PR 105752: eszlamczyk (agency, no payment), merged 2026-11-23, approved by suneox and grgia. Production 2026-11-25.
    • Deploy blockers 107784 and 107797, one root cause. arosiclair fixed both in 107803.
    • A flagged regression counts until something rebuts it. A second PR in the cause is a partial rebuttal at most.

    PAYPREP v1

  18. mallenexpensify commented on Dec 3, 2026

    @mallenexpensify
    Contributor

    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

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

Metadata

Metadata

Labels

Awaiting PaymentDailyNot a priority

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions