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-06-04] [Due for payment 2026-06-03] Expense - "Submitted" is shown in "marked as done" system message thread header #91767
Version Number: 9.3.83-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:#88455 Email or phone of affected tester (no customers):odijosijndosjdoj@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:
Go to staging.new.expensify.com
Log in with new Gmail account.
Skip work email step.
Select Track expenses for my business.
Complete the onboarding.
Go to workspace chat.
Create an expense.
Open the expense.
Click Mark as done button.
Right click on Mark as done system message > Reply in thread.
Expected Result:
Marked as done will be shown in system message thread header.
Actual Result:
"Submitted" is shown in "marked as done" system message thread header.
👋 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.
PR #88455 added shouldShowMarkAsDone checks to ApprovalFlowContent.tsx (the inline system message renderer) so it correctly displays "marked as done" for track-intent users. However, the thread header text is computed by a separate code path — computeReportNameBasedOnReportAction in ReportNameUtils.ts — which was not updated. That function groups isMarkAsClosedAction with SUBMITTED/SUBMITTED_AND_CLOSED actions and unconditionally returns translate('iou.submitted'), never checking shouldShowMarkAsDone.
What changes do you think we should make in order to solve the problem?
In ReportNameUtils.ts (line 427–437), add a shouldShowMarkAsDone check (mirroring the pattern in ApprovalFlowContent.tsx) before the generic translate('iou.submitted') return. When isMarkAsClosedAction is true and shouldShowMarkAsDone returns true, return translate('iou.markedAsDone', ...) instead.
This will require threading the necessary context (isTrackIntentUser, policy, report) into computeReportNameBasedOnReportAction — the function already receives reportPolicy (as the policy) and the parent report, so the main addition is isTrackIntentUser.
What alternative solutions did you explore?
An alternative would be to check isMarkAsClosedAction alone (without shouldShowMarkAsDone) and always return "marked as done" for those actions. However, this would diverge from the pattern established in ApprovalFlowContent.tsx and could show incorrect text for non-track-intent users. Mirroring the existing shouldShowMarkAsDone guard is more consistent and correct.
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.
changed the title [-]Expense - "Submitted" is shown in "marked as done" system message thread header[/-][+][Due for payment 2026-06-03] Expense - "Submitted" is shown in "marked as done" system message thread header[/+]on May 27, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.83-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@Valforte 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-06-03] Expense - "Submitted" is shown in "marked as done" system message thread header[/-][+][Due for payment 2026-06-04] [Due for payment 2026-06-03] Expense - "Submitted" is shown in "marked as done" system message thread header[/+]on May 28, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.88-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@Valforte 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
applause-bot commentedon May 26, 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/a7330137b72ea655b280eb67d4bc5855aaec3068be2fe5ef60a32c580cadc309
melvin-bot commentedon May 26, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #88455
melvin-bot commentedon May 26, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon May 26, 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 May 26, 2026
Proposal
What is the root cause of that problem?
PR #88455 added
shouldShowMarkAsDonechecks toApprovalFlowContent.tsx(the inline system message renderer) so it correctly displays "marked as done" for track-intent users. However, the thread header text is computed by a separate code path —computeReportNameBasedOnReportActioninReportNameUtils.ts— which was not updated. That function groupsisMarkAsClosedActionwith SUBMITTED/SUBMITTED_AND_CLOSED actions and unconditionally returnstranslate('iou.submitted'), never checkingshouldShowMarkAsDone.What changes do you think we should make in order to solve the problem?
In
ReportNameUtils.ts(line 427–437), add ashouldShowMarkAsDonecheck (mirroring the pattern inApprovalFlowContent.tsx) before the generictranslate('iou.submitted')return. WhenisMarkAsClosedActionis true andshouldShowMarkAsDonereturns true, returntranslate('iou.markedAsDone', ...)instead.This will require threading the necessary context (
isTrackIntentUser,policy,report) intocomputeReportNameBasedOnReportAction— the function already receivesreportPolicy(as the policy) and the parent report, so the main addition isisTrackIntentUser.What alternative solutions did you explore?
An alternative would be to check
isMarkAsClosedActionalone (withoutshouldShowMarkAsDone) and always return "marked as done" for those actions. However, this would diverge from the pattern established inApprovalFlowContent.tsxand could show incorrect text for non-track-intent users. Mirroring the existingshouldShowMarkAsDoneguard is more consistent and correct.Next 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.melvin-bot commentedon May 27, 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.
IuliiaHerets commentedon May 27, 2026
Chrome / v9.3.83-1
No
Mark as donebuttonbandicam.2026-05-27.13-44-19-818.mp4
mountiny commentedon May 27, 2026
PR was reverted so this is expected
[-]Expense - "Submitted" is shown in "marked as done" system message thread header[/-][+][Due for payment 2026-06-03] Expense - "Submitted" is shown in "marked as done" system message thread header[/+]melvin-bot commentedon May 27, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.83-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-06-03. 🎊
melvin-bot commentedon May 27, 2026
@Valforte 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]
[-][Due for payment 2026-06-03] Expense - "Submitted" is shown in "marked as done" system message thread header[/-][+][Due for payment 2026-06-04] [Due for payment 2026-06-03] Expense - "Submitted" is shown in "marked as done" system message thread header[/+]melvin-bot commentedon May 28, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.88-2 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-06-04. 🎊
melvin-bot commentedon May 28, 2026
@Valforte 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]