Skip to content

[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

Closed

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


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:

  1. Go to staging.new.expensify.com
  2. Log in with new Gmail account.
  3. Skip work email step.
  4. Select Track expenses for my business.
  5. Complete the onboarding.
  6. Go to workspace chat.
  7. Create an expense.
  8. Open the expense.
  9. Click Mark as done button.
  10. 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.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7163801_1779828086967.2.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Svetlana Lazutkina
Bug ID: 7163801

Activity

  1. added
    DeployBlockerCash
    on May 26, 2026
  2. added
    Bug
    on May 26, 2026
  3. applause-bot commented on May 26, 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/a7330137b72ea655b280eb67d4bc5855aaec3068be2fe5ef60a32c580cadc309

  4. melvin-bot commented on May 26, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #88455

  5. melvin-bot commented on May 26, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  6. github-actions commented on May 26, 2026

    @github-actions
    Contributor

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

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  7. MelvinBot commented on May 26, 2026

    @MelvinBot
    Contributor

    Proposal

    What is the root cause of that problem?

    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.

  8. melvin-bot commented on May 27, 2026

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    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.

  9. IuliiaHerets commented on May 27, 2026

    @IuliiaHerets

    Chrome / v9.3.83-1
    No Mark as done button

    bandicam.2026-05-27.13-44-19-818.mp4
  10. added
    Daily
    and removed
    DeployBlockerCash
    Hourly
    on May 27, 2026
  11. mountiny commented on May 27, 2026

    @mountiny
    Contributor

    PR was reverted so this is expected

  12. 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
  13. melvin-bot commented on May 27, 2026

    @melvin-bot

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

  14. melvin-bot commented on May 27, 2026

    @melvin-bot

    @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]

  15. 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
  16. melvin-bot commented on May 28, 2026

    @melvin-bot

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

  17. melvin-bot commented on May 28, 2026

    @melvin-bot

    @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]

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

Metadata

Metadata

Assignees

Labels

BugDailyEngineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions