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-07-30] Submit workspace-Missing receipt modal on confirm page when submitting expense without receipt #96214
Version Number: 9.4.34-12 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:#94319 Email or phone of affected tester (no customers):applausetester+sdoisdddndos@applause.expensifail.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:
Log in with Expensifail account.
Account has no workspace.
Go to staging.new.expensify.com
Go to self DM.
Create a manual expense without receipt.
Click Submit to my employer.
Expected Result:
Confirm page should show receipt modal so user can add a receipt.
Actual Result:
Confirm page is missing receipt modal when submitting manual expense without receipt.
👋 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.
Please re-state the problem that we are trying to solve in this issue.
On the confirmation page, the receipt "empty state" (the dropzone/prompt to add a receipt) is missing when a user with no workspace creates a manual expense without a receipt from their self DM and chooses Submit to my employer. This is a regression introduced by #94319, which split "Submit it to someone" into "Submit to a friend" / "Submit to my employer" and added a brand-new SUBMIT path that lands directly on the confirmation page.
What is the root cause of that problem?
The receipt empty state is gated by shouldShowReceiptEmptyState, which for the SUBMIT action only shows when isGroupPolicy(policy) is true:
For action === SUBMIT, isMovingTransactionFromTrackExpense returns true, so the empty state hinges entirely on isGroupPolicy(policy).
For this new self-DM → "Submit to my employer" flow, policy resolves to undefined at render time. usePolicyForTransaction returns the self-DM policy (which is undefined for a user with no workspace) whenever the transaction is still unreported, and only falls back to policyDraft in the reported branch:
So isGroupPolicy(undefined) === false → shouldShowReceiptEmptyState returns false → the receipt empty state is hidden. The old "Submit to a friend" path always routed through the participant selector where a real group policy was chosen, so policy was always a group policy there — which is why this only regressed for the new employer/draft-workspace path.
What changes do you think we should make in order to solve the problem?
Stop gating the receipt empty state on policy being a fully-hydrated group policy for the new draft-submit flow. Reuse the existing isSubmittingExpenseToDraftWorkspace concept (already added in useExpenseSubmission.ts) and OR it into the empty-state condition so the receipt prompt shows for the "Submit to my employer" / draft-workspace path regardless of whether policy has resolved yet.
Concretely: pass an isSubmittingToDraftWorkspace flag into shouldShowReceiptEmptyState and change the final clause from (!isMovingTransactionFromTrackExpense(action) || isGroupPolicy(policy)) to also allow that flag, then compute it at IOURequestStepConfirmation.tsx:822.
Alternatively, adjust usePolicyForTransaction.ts:50 so the SUBMIT action falls back to policyDraft even when the transaction is still unreported, so policy resolves consistently to the draft submit workspace.
Confidence
Medium-high. The suppression point (isGroupPolicy(policy) gate with action === SUBMIT) is unambiguous, and this path is new in #94319. The one open question is render-timing: whether the draft transaction still reads UNREPORTED on first render (which makes policy undefined). Confirming with a quick repro + a log of iouType, action, policy?.type, transaction?.reportID at the gate line would pin down the exact sub-case.
Next Steps for Contributor+ team: To accept:@MelvinBot implement [this](https://github.com/Expensify/App/issues/96214) to create a draft PR. To refine:@MelvinBot <your feedback> To reject: Explain why you are rejecting Melvin's proposal.
Classification: Frontend bug (fix lives in Expensify/App) Causing PR: #94319 - "[Submit] Update "Submit to someone" to two options to allow for Submit workspace creation" by @abzokhattab (High confidence) Related Issues: StagingDeployCash #96044 (9.4.34 release)
Recommendation: ROLL FORWARD (targeted forward-fix, not revert)
#94319 is a large feature PR (27 files, +341/-73) that ships the entire "Submit to my employer" workspace-creation flow; a revert would be highly disruptive and pull a shipping feature. The bug is a single missing case in the receipt empty-state gating for the new SUBMIT path, which is a narrow, CP-able forward-fix.
Assigned: @abzokhattab (PR author), @hungvu193 and @iwiznia (approving reviewers) Labels: No change. DeployBlockerCash kept — this is a frontend bug and the App deploy is correctly blocked. No DeployBlocker present to remove.
PR introduced the failing flow: The diff of [Submit] Update "Submit to someone" to two options to allow for Submit workspace creation #94319 adds CONST.IOU.SUBMIT_DESTINATION.EMPLOYER, the "Submit to my employer" option, and the routing that lands this flow directly on the confirmation page: Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_CONFIRMATION.getRoute(actionName, CONST.IOU.TYPE.SUBMIT, ...)). Before this PR, submitting from a self DM always went through the participant-selection path, so a self-DM SUBMIT with no workspace never reached the confirmation page.
Not reproducible in production: This is a brand-new feature that does not exist in prod, consistent with the report (Reproducible in production: N/A - new feature). Staging-only regression, cause is in the current deploy set.
line 187: const {policy} = usePolicyForTransaction({...})
line 822: const showReceiptEmptyState = shouldShowReceiptEmptyState(iouType, action, policy, isPerDiemRequest)
Gate logic: src/libs/IOUUtils.ts:324-334 — for action === SUBMIT, isMovingTransactionFromTrackExpense returns true (line 317), so the empty state depends entirely on isGroupPolicy(policy).
Policy resolution: src/hooks/usePolicyForTransaction.ts:50 const policy = isUnreportedExpense || isCreatingTrackExpense ? policyForSelfDMExpense : (reportPolicy ?? policyDraft);
For an unreported self-DM expense with no workspace, policyForSelfDMExpense is undefined, and the policyDraft fallback is only reached in the reported branch. So policy = undefined → isGroupPolicy(undefined) = false → empty state hidden.
The new "Submit to my employer" flow routes an unreported self-DM expense straight to the confirmation page. At render time, for a user with no workspace, usePolicyForTransaction returns undefined (the self-DM/moving-expenses policy) because the transaction is unreported, and never falls back to the draft workspace policy. shouldShowReceiptEmptyState gates the SUBMIT empty state on isGroupPolicy(policy), which is false for undefined, so the receipt empty-state / add-receipt prompt is suppressed.
Suggested forward-fix (for the owner)
Make the empty state resolve correctly for the new SUBMIT path, e.g. one of:
Have usePolicyForTransaction fall back to policyDraft for the unreported SUBMIT-to-employer case (so policy reflects the draft/soon-to-be-created Submit workspace), or
Adjust shouldShowReceiptEmptyState so the SUBMIT action shows the empty state when a submit/draft-workspace destination is in play even if policy is not yet a group policy.
The author should confirm which is safest given the draft-workspace-creation timing.
changed the title [-]Submit workspace-Missing receipt modal on confirm page when submitting expense without receipt[/-][+][Due for payment 2026-07-30] Submit workspace-Missing receipt modal on confirm page when submitting expense without receipt[/+]on Jul 23, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.43-1 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-07-30. 🎊
The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero 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 Jul 15, 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/d14b6bd5e5f385071fddd18754319b45f7def847a380d245100e7ea763a15ab4
melvin-bot commentedon Jul 15, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #94319
melvin-bot commentedon Jul 15, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Jul 15, 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:
MelvinBot commentedon Jul 15, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
On the confirmation page, the receipt "empty state" (the dropzone/prompt to add a receipt) is missing when a user with no workspace creates a manual expense without a receipt from their self DM and chooses Submit to my employer. This is a regression introduced by #94319, which split "Submit it to someone" into "Submit to a friend" / "Submit to my employer" and added a brand-new SUBMIT path that lands directly on the confirmation page.
What is the root cause of that problem?
The receipt empty state is gated by
shouldShowReceiptEmptyState, which for theSUBMITaction only shows whenisGroupPolicy(policy)istrue:Gate logic (
IOUUtils.ts)For
action === SUBMIT,isMovingTransactionFromTrackExpensereturnstrue, so the empty state hinges entirely onisGroupPolicy(policy).For this new self-DM → "Submit to my employer" flow,
policyresolves toundefinedat render time.usePolicyForTransactionreturns the self-DM policy (which isundefinedfor a user with no workspace) whenever the transaction is still unreported, and only falls back topolicyDraftin the reported branch:So
isGroupPolicy(undefined) === false→shouldShowReceiptEmptyStatereturnsfalse→ the receipt empty state is hidden. The old "Submit to a friend" path always routed through the participant selector where a real group policy was chosen, sopolicywas always a group policy there — which is why this only regressed for the new employer/draft-workspace path.Key references (HEAD
763218c)IOURequestStepConfirmation.tsx:822IOUUtils.ts:324-334usePolicyForTransaction.ts:50useExpenseSubmission.ts:1002(isSubmittingExpenseToDraftWorkspace = action === SUBMIT && isDraftPolicy && policy?.type === SUBMIT)What changes do you think we should make in order to solve the problem?
Stop gating the receipt empty state on
policybeing a fully-hydrated group policy for the new draft-submit flow. Reuse the existingisSubmittingExpenseToDraftWorkspaceconcept (already added inuseExpenseSubmission.ts) and OR it into the empty-state condition so the receipt prompt shows for the "Submit to my employer" / draft-workspace path regardless of whetherpolicyhas resolved yet.Concretely: pass an
isSubmittingToDraftWorkspaceflag intoshouldShowReceiptEmptyStateand change the final clause from(!isMovingTransactionFromTrackExpense(action) || isGroupPolicy(policy))to also allow that flag, then compute it atIOURequestStepConfirmation.tsx:822.Alternatively, adjust
usePolicyForTransaction.ts:50so theSUBMITaction falls back topolicyDrafteven when the transaction is still unreported, sopolicyresolves consistently to the draft submit workspace.Confidence
Medium-high. The suppression point (
isGroupPolicy(policy)gate withaction === SUBMIT) is unambiguous, and this path is new in #94319. The one open question is render-timing: whether the draft transaction still readsUNREPORTEDon first render (which makespolicyundefined). Confirming with a quick repro + a log ofiouType,action,policy?.type,transaction?.reportIDat the gate line would pin down the exact sub-case.Next Steps for Contributor+ team:
To accept:
@MelvinBot implement [this](https://github.com/Expensify/App/issues/96214)to create a draft PR.To refine:
@MelvinBot <your feedback>To reject: Explain why you are rejecting Melvin's proposal.
MelvinBot commentedon Jul 15, 2026
🔍 Investigation Summary
Classification: Frontend bug (fix lives in
Expensify/App)Causing PR: #94319 - "[Submit] Update "Submit to someone" to two options to allow for Submit workspace creation" by @abzokhattab (High confidence)
Related Issues: StagingDeployCash #96044 (9.4.34 release)
Recommendation: ROLL FORWARD (targeted forward-fix, not revert)
#94319 is a large feature PR (27 files, +341/-73) that ships the entire "Submit to my employer" workspace-creation flow; a revert would be highly disruptive and pull a shipping feature. The bug is a single missing case in the receipt empty-state gating for the new SUBMIT path, which is a narrow, CP-able forward-fix.
Assigned: @abzokhattab (PR author), @hungvu193 and @iwiznia (approving reviewers)
Labels: No change.
DeployBlockerCashkept — this is a frontend bug and the App deploy is correctly blocked. NoDeployBlockerpresent to remove.📋 Detailed Analysis
Evidence
v9.4.34-12.CONST.IOU.SUBMIT_DESTINATION.EMPLOYER, the "Submit to my employer" option, and the routing that lands this flow directly on the confirmation page:Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_CONFIRMATION.getRoute(actionName, CONST.IOU.TYPE.SUBMIT, ...)). Before this PR, submitting from a self DM always went through the participant-selection path, so a self-DM SUBMIT with no workspace never reached the confirmation page.Reproducible in production: N/A - new feature). Staging-only regression, cause is in the current deploy set.Verification
src/pages/iou/request/step/IOURequestStepConfirmation.tsxconst {policy} = usePolicyForTransaction({...})const showReceiptEmptyState = shouldShowReceiptEmptyState(iouType, action, policy, isPerDiemRequest)src/libs/IOUUtils.ts:324-334— foraction === SUBMIT,isMovingTransactionFromTrackExpensereturnstrue(line 317), so the empty state depends entirely onisGroupPolicy(policy).src/hooks/usePolicyForTransaction.ts:50const policy = isUnreportedExpense || isCreatingTrackExpense ? policyForSelfDMExpense : (reportPolicy ?? policyDraft);For an unreported self-DM expense with no workspace,
policyForSelfDMExpenseisundefined, and thepolicyDraftfallback is only reached in the reported branch. Sopolicy = undefined→isGroupPolicy(undefined) = false→ empty state hidden.usePolicyForTransaction.tsitself was last modified by Part 11 - Thread delegateAccountID through split and inline edit flows #95328, so the fallback logic is pre-existing. However, [Submit] Update "Submit to someone" to two options to allow for Submit workspace creation #94319 is the PR that first drives the new SUBMIT-to-employer/draft-workspace path into this code, exposing the unhandledundefined-policy state. [Submit] Update "Submit to someone" to two options to allow for Submit workspace creation #94319 is the correct owner of the regression.Root Cause
The new "Submit to my employer" flow routes an unreported self-DM expense straight to the confirmation page. At render time, for a user with no workspace,
usePolicyForTransactionreturnsundefined(the self-DM/moving-expenses policy) because the transaction is unreported, and never falls back to the draft workspace policy.shouldShowReceiptEmptyStategates the SUBMIT empty state onisGroupPolicy(policy), which isfalseforundefined, so the receipt empty-state / add-receipt prompt is suppressed.Suggested forward-fix (for the owner)
Make the empty state resolve correctly for the new SUBMIT path, e.g. one of:
usePolicyForTransactionfall back topolicyDraftfor the unreported SUBMIT-to-employer case (sopolicyreflects the draft/soon-to-be-created Submit workspace), orshouldShowReceiptEmptyStateso the SUBMIT action shows the empty state when a submit/draft-workspace destination is in play even ifpolicyis not yet a group policy.The author should confirm which is safest given the draft-workspace-creation timing.
jasperhuangg commentedon Jul 15, 2026
This is bound to a beta, so we can demote.
9 remaining items
lanitochka17 commentedon Jul 22, 2026
Deploy Blocker #96796 was identified to be related to the PR #96136 that attempted to fix this issue.
melvin-bot commentedon Jul 22, 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.
[-]Submit workspace-Missing receipt modal on confirm page when submitting expense without receipt[/-][+][Due for payment 2026-07-30] Submit workspace-Missing receipt modal on confirm page when submitting expense without receipt[/+]melvin-bot commentedon Jul 23, 2026
@abzokhattab
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.43-1 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-07-30. 🎊
The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero 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 Jul 27, 2026
@abzokhattab Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
hungvu193 commentedon Jul 28, 2026
Closing since it was fixed and no payment due.
melvin-bot commentedon Aug 19, 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.