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-04-14] [Due for payment 2026-04-14] Reports - Dropdown button shows Submit when one of the reports can only be marked as done #87001
Version Number: 9.3.52-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:#86460 Email or phone of affected tester (no customers):jsdjosidjiojisojio3@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.2 / Chrome App Component: Search
Action Performed:
Go to staging.new.expensify.com
Log in with new Gmail account.
Skip work email step.
Select Track and budget expenses.
Complete the onboarding.
Create another workspace.
Create an expense in both workspace chats.
Go to Reports > Reports.
Bulk select both reports.
Click dropdown button.
Expected Result:
Dropdown button will not show Submit since one of the reports can only be marked as done instead of submitting.
Actual Result:
Dropdown button shows Submit when one of the reports can only be marked as done instead of submitting.
👋 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.
The bulk "Submit" button label in search is determined at src/hooks/useSearchBulkActions.ts:999 using selectedReports.every((report) => isSubmitAndClose(...)). This requires all selected reports to belong to a submit-and-close policy before showing "Mark as done". When the selection is mixed (one submit-and-close workspace + one normal workspace), .every() returns false and the label defaults to "Submit" — even though one of the reports should only be "marked as done".
The issue was introduced by #86460 which added the track-intent "Mark as done" label but only for the case where every selected report is submit-and-close.
What changes do you think we should make in order to solve the problem?
The expected behavior (per the issue) is that the dropdown should not show "Submit" when one of the selected reports can only be marked as done. The simplest fix is to prevent bulk submission when the selection contains a mix of submit-and-close and normal-submit reports — i.e., disable the submit bulk action for mixed selections, similar to how other incompatible bulk actions are handled.
Alternatively, if the product intent is to still allow the action, the label at line 999 could use .some() instead of .every() to show "Mark as done" whenever any selected report is submit-and-close (since those reports will be marked as done regardless of the label). However, this may be confusing if some reports are actually being submitted. The product team should clarify the desired UX for mixed selections.
Supporting evidence
shouldShowSubmitOption (line 988-993) treats both submit-and-close and normal-submit reports identically since both have SUBMIT in allActions
The actual submission handler (lines 1018-1023) processes each report individually with its respective policy, so the underlying action already works correctly per-report — only the displayed label is wrong
Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.
For this issue, we need to confirm the expected behavior:
This user has one workspace without Workflows → Approvals enabled and one workspace with enabled. They’ve created one expense from a workspace with approvals enabled and another from a workspace without approvals.
When they select both reports from Reports tab → Reports, they can see the Submit button since both expenses are technically submittable.
In this scenario, what should be the expected behavior?
Should we hide the Submit button?
(I don’t think we should, since both are submittable.)
Or should we keep the current behavior and continue showing the Submit button?
Please let me know what the expected behavior should be here.
changed the title [-]Reports - Dropdown button shows Submit when one of the reports can only be marked as done[/-][+][Due for payment 2026-04-14] Reports - Dropdown button shows Submit when one of the reports can only be marked as done[/+]on Apr 7, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.52-9 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@jayeshmangwani The PR fixing this issue has been merged! 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]
changed the title [-][Due for payment 2026-04-14] Reports - Dropdown button shows Submit when one of the reports can only be marked as done[/-][+][Due for payment 2026-04-14] [Due for payment 2026-04-14] Reports - Dropdown button shows Submit when one of the reports can only be marked as done[/+]on Apr 7, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.53-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@jayeshmangwani@mallenexpensify The PR fixing this issue has been merged! 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]
Activity
melvin-bot commentedon Apr 2, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #86460
melvin-bot commentedon Apr 2, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Apr 2, 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 Apr 2, 2026
Proposal
What is the root cause of that problem?
The bulk "Submit" button label in search is determined at
src/hooks/useSearchBulkActions.ts:999usingselectedReports.every((report) => isSubmitAndClose(...)). This requires all selected reports to belong to a submit-and-close policy before showing "Mark as done". When the selection is mixed (one submit-and-close workspace + one normal workspace),.every()returnsfalseand the label defaults to "Submit" — even though one of the reports should only be "marked as done".The issue was introduced by #86460 which added the track-intent "Mark as done" label but only for the case where every selected report is submit-and-close.
What changes do you think we should make in order to solve the problem?
The expected behavior (per the issue) is that the dropdown should not show "Submit" when one of the selected reports can only be marked as done. The simplest fix is to prevent bulk submission when the selection contains a mix of submit-and-close and normal-submit reports — i.e., disable the submit bulk action for mixed selections, similar to how other incompatible bulk actions are handled.
Alternatively, if the product intent is to still allow the action, the label at line 999 could use
.some()instead of.every()to show "Mark as done" whenever any selected report is submit-and-close (since those reports will be marked as done regardless of the label). However, this may be confusing if some reports are actually being submitted. The product team should clarify the desired UX for mixed selections.Supporting evidence
shouldShowSubmitOption(line 988-993) treats both submit-and-close and normal-submit reports identically since both haveSUBMITinallActionsisSubmitAndClose(src/libs/PolicyUtils.ts:894) checkspolicy?.approvalMode === CONST.POLICY.APPROVAL_MODE.OPTIONALisTrackIntentUserSelector(src/selectors/Onboarding.ts:85) is a global user-level flag, not per-workspaceNext Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR,@MelvinBot <your feedback>to refine this analysis, or explain why you are rejecting Melvin's proposal.jayeshmangwani commentedon Apr 3, 2026
@Valforte @dylanexpensify
For this issue, we need to confirm the expected behavior:
This user has one workspace without Workflows → Approvals enabled and one workspace with enabled. They’ve created one expense from a workspace with approvals enabled and another from a workspace without approvals.
When they select both reports from Reports tab → Reports, they can see the Submit button since both expenses are technically submittable.
In this scenario, what should be the expected behavior?
(I don’t think we should, since both are submittable.)
Please let me know what the expected behavior should be here.
jasperhuangg commentedon Apr 3, 2026
reverting #86460 in #87106, should fix this
m-natarajan commentedon Apr 3, 2026
"Mark as done" CTA is not displayed for workspace chat for track-intent users. Windows 10/Chrome v9.3.52-3 PR:87106
bandicam.2026-04-03.21-23-01-264.mp4
[-]Reports - Dropdown button shows Submit when one of the reports can only be marked as done[/-][+][Due for payment 2026-04-14] Reports - Dropdown button shows Submit when one of the reports can only be marked as done[/+]melvin-bot commentedon Apr 7, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.52-9 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-04-14. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Apr 7, 2026
@jayeshmangwani The PR fixing this issue has been merged! 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]
melvin-bot commentedon Apr 7, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)[-][Due for payment 2026-04-14] Reports - Dropdown button shows Submit when one of the reports can only be marked as done[/-][+][Due for payment 2026-04-14] [Due for payment 2026-04-14] Reports - Dropdown button shows Submit when one of the reports can only be marked as done[/+]melvin-bot commentedon Apr 7, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.53-7 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-04-14. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Apr 7, 2026
@jayeshmangwani @mallenexpensify The PR fixing this issue has been merged! 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]