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-08-28] Expense - "Unable to submit report" is shown when action button is Mark as done #99029
Version Number: 9.4.57-0 Reproducible in staging?: Yes Reproducible in production?: N/A - new feature, doesn't exist in prod If this was caught during regression testing, add the test name, ID and link from BrowserStack:#96922 Email or phone of affected tester (no customers):jsdoinsjdonjsiodjsioj@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.5 / Chrome App Component: Money Requests
Action Performed:
Precondition:
Complete onboarding with Track expenses for my business intent.
Go to staging.new.expensify.com
Go to workspace chat.
Create an expense and hold it.
Click Mark as done.
Expected Result:
"Unable to mark as done" should be shown because action button is Mark as done.
Actual Result:
"Unable to submit report" is shown when action button is Mark as done.
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Classification: Frontend bug Causing PR: #96922 - "Split held expenses onto a new Draft report when submitting offline" by @c3024 (High confidence) Related Issues: Fixes #91080 (the feature this PR shipped)
Recommendation: ROLL FORWARD (targeted fix)
The bug is a mismatched confirm-modal title/copy introduced by this PR: the new showHeldExpensesBlockModal helper is hardcoded to the "Unable to submit report" copy, but it also fires from the "Mark as done" CTA. A full revert would reintroduce the offline held-expense split bug this PR fixed (and it has already-deployed Auth/Web backend dependencies), so a small targeted copy fix is the better path.
Assigned: @c3024 (PR author), @NikkiWines and @huult (approving reviewers) from the causing PR. Labels: No changes. DeployBlockerCash is correctly kept (App PR caused it; App deploy is blocked). No DeployBlocker label present.
The PR added a brand-new helper showHeldExpensesBlockModal and wired it into every submit entry point (SubmitActionButton, useLifecycleActions, the Search list items, and useSearchBulkActions) to block submitting a report whose expenses are all on hold.
The helper's title is hardcoded to iou.error.unableToSubmitReport ("Unable to submit report"), with no branch for the "Mark as done" CTA.
Verification
Affected UI: the report-preview action button in the workspace chat. Its label toggles between "Mark as done" and "Submit" via shouldShowMarkAsDone (true for "Track expenses for my business" intent users), but both share one handleSubmit handler.
git log/gh pr diff confirm the helper and every call site were introduced by Split held expenses onto a new Draft report when submitting offline #96922 (all + lines in the diff); the strings unableToSubmitReport (existing) and allExpensesOnHoldDescription (new) live in src/languages/en.ts. There is no unableToMarkAsDone string.
Key locations (permalinks at current HEAD c156d5f):
When a report's expenses are all on hold, pressing the primary CTA calls handleSubmit, which hits the hasOnlyHeldExpenses(transactions) branch and calls showHeldExpensesBlockModal(showConfirmModal, translate). That helper unconditionally sets:
title → iou.error.unableToSubmitReport ("Unable to submit report")
prompt → iou.error.allExpensesOnHoldDescription ("You can't submit this report because all expenses are on hold. Remove the hold to submit.")
But the same button renders as "Mark as done" for Track-expenses-for-my-business intent users (shouldShowMarkAsDone). So a user who taps "Mark as done" is shown submit-worded error copy — the exact mismatch reported. The block itself is functionally correct (the action can't proceed); only the copy is wrong.
Suggested targeted fix: give showHeldExpensesBlockModal a flag (e.g. isMarkAsDone, derived from shouldShowMarkAsDone at the call site) and select a "Mark as done"-appropriate title/prompt when set. This requires adding new iou.error strings across src/languages/*.ts. Only the SubmitActionButton / useLifecycleActions call sites (the ones that render the "Mark as done" CTA) need to pass the flag.
changed the title [-]Expense - "Unable to submit report" is shown when action button is Mark as done[/-][+][Due for payment 2026-08-28] Expense - "Unable to submit report" is shown when action button is Mark as done[/+]on Aug 21, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.57-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2026-08-28. 🎊
The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]
Activity
applause-bot commentedon Aug 20, 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/4358f4dd976de3a0762198c26d799c490c468c2a30e2d63283d6424152038f2a
melvin-bot commentedon Aug 20, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #96922
melvin-bot commentedon Aug 20, 2026
@NikkiWines @huult you have been assigned to this deploy blocker because you reviewed the offending PR: #96922
melvin-bot commentedon Aug 20, 2026
@c3024 you have been assigned to this deploy blocker because you authored the offending PR: #96922
github-actions commentedon Aug 20, 2026
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
melvin-bot commentedon Aug 20, 2026
💬 A slack conversation has been started in #expensify-open-source
MelvinBot commentedon Aug 20, 2026
🔍 Investigation Summary
Classification: Frontend bug
Causing PR: #96922 - "Split held expenses onto a new Draft report when submitting offline" by @c3024 (High confidence)
Related Issues: Fixes #91080 (the feature this PR shipped)
Recommendation: ROLL FORWARD (targeted fix)
The bug is a mismatched confirm-modal title/copy introduced by this PR: the new
showHeldExpensesBlockModalhelper is hardcoded to the "Unable to submit report" copy, but it also fires from the "Mark as done" CTA. A full revert would reintroduce the offline held-expense split bug this PR fixed (and it has already-deployed Auth/Web backend dependencies), so a small targeted copy fix is the better path.Assigned: @c3024 (PR author), @NikkiWines and @huult (approving reviewers) from the causing PR.
Labels: No changes.
DeployBlockerCashis correctly kept (App PR caused it; App deploy is blocked). NoDeployBlockerlabel present.📋 Detailed Analysis
Evidence
9.4.57-0(the currentStagingDeployCash#99018, which lists this PR). Staging-only, N/A on production — consistent with a brand-new feature.showHeldExpensesBlockModaland wired it into every submit entry point (SubmitActionButton,useLifecycleActions, the Search list items, anduseSearchBulkActions) to block submitting a report whose expenses are all on hold.iou.error.unableToSubmitReport("Unable to submit report"), with no branch for the "Mark as done" CTA.Verification
shouldShowMarkAsDone(true for "Track expenses for my business" intent users), but both share onehandleSubmithandler.git log/gh pr diffconfirm the helper and every call site were introduced by Split held expenses onto a new Draft report when submitting offline #96922 (all+lines in the diff); the stringsunableToSubmitReport(existing) andallExpensesOnHoldDescription(new) live insrc/languages/en.ts. There is nounableToMarkAsDonestring.Key locations (permalinks at current HEAD
c156d5f):src/libs/TransactionUtils/index.ts#L1730-L1743SubmitActionButton.tsx#L101-L149— seehandleSubmit(L107-110) vs. the buttontext(L148).src/languages/en.ts#L1587-L1589Root Cause
When a report's expenses are all on hold, pressing the primary CTA calls
handleSubmit, which hits thehasOnlyHeldExpenses(transactions)branch and callsshowHeldExpensesBlockModal(showConfirmModal, translate). That helper unconditionally sets:iou.error.unableToSubmitReport("Unable to submit report")iou.error.allExpensesOnHoldDescription("You can't submit this report because all expenses are on hold. Remove the hold to submit.")But the same button renders as "Mark as done" for Track-expenses-for-my-business intent users (
shouldShowMarkAsDone). So a user who taps "Mark as done" is shown submit-worded error copy — the exact mismatch reported. The block itself is functionally correct (the action can't proceed); only the copy is wrong.Suggested targeted fix: give
showHeldExpensesBlockModala flag (e.g.isMarkAsDone, derived fromshouldShowMarkAsDoneat the call site) and select a "Mark as done"-appropriate title/prompt when set. This requires adding newiou.errorstrings acrosssrc/languages/*.ts. Only theSubmitActionButton/useLifecycleActionscall sites (the ones that render the "Mark as done" CTA) need to pass the flag.view run
c3024 commentedon Aug 20, 2026
This is a specific case for track intent and submit and close workspace. I don't think this should be a deploy blocker.
Opened a PR with the fix.
huult commentedon Aug 20, 2026
Tag me when it's ready
IuliiaHerets commentedon Aug 20, 2026
Issue was fixed, checked on Web and Android, comment here
Beamanator commentedon Aug 20, 2026
Sweet! Closing!
[-]Expense - "Unable to submit report" is shown when action button is Mark as done[/-][+][Due for payment 2026-08-28] Expense - "Unable to submit report" is shown when action button is Mark as done[/+]melvin-bot commentedon Aug 21, 2026
@huult
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.57-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2026-08-28. 🎊
The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]
melvin-bot commentedon Aug 21, 2026
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.