Skip to content

[Due for payment 2026-09-15] Expense preview- "Canceled • 1 expense" is not shown in Spend/ Chats #99091

Closed

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: 9.4.57-2
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #98758 step 8
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: MacBook Air 26.5.2, iPhone 15 iOS 26.6
App Component: Money Requests

Action Performed:

  1. Sign in to ND
  2. Create a workspace, create a manual expense in the workspace chat
  3. Submit and approve the expense
  4. Go to Spend, click Filters, set the Type to Chats
  5. Navigate back to workspace chat, open the expense
  6. Mark as paid, go offline, and cancel the payment
  7. Navigate to the workspace chat and observe the expense preview - "Canceled • 1 expense" is shown
  8. Navigate to the Spend/ Chats and observe the same expense preview

Expected Result:

"Canceled • 1 expense" is shown on the expense preview across the app

Actual Result:

"Canceled • 1 expense" is not shown on the expense previews in Spend/ Chats

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7238411_1787242778106.Canceled_1_expense.mp4

View all open jobs on GitHub

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

Issue OwnerCurrent Issue Owner: @mallenexpensify

Activity

  1. added
    DeployBlockerCash
    Bug
    on Aug 20, 2026
  2. applause-bot commented on Aug 20, 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/7fd3f4535c0526a18746e3853e36b7df304ce8bd28e80f3d23543588ed422665

  3. melvin-bot commented on Aug 20, 2026

    @melvin-bot

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

  4. melvin-bot commented on Aug 20, 2026

    @melvin-bot

    @JS00001 @situchan you have been assigned to this deploy blocker because you reviewed the offending PR: #98758

  5. melvin-bot commented on Aug 20, 2026

    @melvin-bot

    @Krishna2323 you have been assigned to this deploy blocker because you authored the offending PR: #98758

  6. melvin-bot commented on Aug 20, 2026

    @melvin-bot

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

  7. github-actions commented on Aug 20, 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.
  8. MelvinBot commented on Aug 20, 2026

    @MelvinBot
    Contributor

    🔍 Investigation Summary

    Classification: Frontend bug
    Causing PR: #98758 - "refactor: align expense preview card metadata line with mobile row styling, fix scanning and split layouts" by @Krishna2323 (High confidence)
    Related Issues: fixes #96475, #98221, #98206, #98329 (this PR)

    Recommendation: ROLL FORWARD

    This is a large refactor that fixed four separate issues and redesigned the expense-preview layout app-wide, so a clean revert would reintroduce those four bugs; the missing "Canceled" label is a narrow, cosmetic gap that is far cheaper to patch forward. The PR author is already assigned and best positioned to land the targeted fix.

    Assigned: @Krishna2323 (PR author), @situchan and @JS00001 (approving reviewers) from the causing PR
    Labels: No changes. DeployBlockerCash is kept — this is a frontend App bug (an App PR is the cause) and it is not reproducible on production, so the blocker must stay. DeployBlocker was not present.

    📋 Detailed Analysis

    Evidence

    • PR refactor: align expense preview card metadata line with mobile row styling, fix scanning and split layouts #98758 merged 2026-08-19 and is included in the current staging checklist (Deploy Checklist: New Expensify 2026-08-20 #99018); the issue is reproducible on staging (v9.4.57-2) but not production, matching a brand-new change that only exists on staging.
    • The PR is the sole candidate: it is the only PR in the release that touches expense-preview canceled-status rendering, and its own test plan explicitly covers this exact scenario — step 7 ("Canceled appears at the report level next to the expense count") and step 8 ("Open the same cancelled expense from Search → Chats … Canceled appears on the supporting line there"). Step 8 is precisely the surface that is now failing.
    • Before this PR, iou.canceled was appended by a single previewHeaderText code path that ran regardless of surface. The PR split that into two mutually-exclusive paths, which is what created the gap.

    Verification

    The PR rewrote canceled-status rendering into two paths, gated on whether the preview is inside a MoneyRequestReportPreview (report) context:

    1. Report-preview surface (workspace chat) — the canceled text is rendered by the report header:
    2. Standalone surface (Search → Chats, per the PR's intent) — the transaction preview is supposed to report it itself:

    The isCancelledIOU field itself is available on both surfaces — it is set optimistically on cancel (PayMoneyRequest.ts#L552) and is preserved by getStableReportSelector (Report.ts#L251) used by both ReportActionItem and TransactionPreview. So this is not a data-availability problem — it is a gap between the two new rendering branches.

    Root Cause

    The refactor made "Canceled" show up through exactly one of two branches depending on useContext(ReportPreviewDataContext):

    • if a report-preview provider is present → suppress it on the transaction line and rely on ReportPreviewHeader's supportingText;
    • if not → show it on the transaction supporting line.

    In the workspace chat the report-preview header path fires correctly, so "Canceled • 1 expense" appears (repro step 7). In the Search → Chats surface neither branch produces the text: the surface hits the branch that assumes the other branch will cover it, so "Canceled" is dropped (repro step 8). In other words, the two mutually-exclusive branches do not jointly cover the Search → Chats surface.

    The fix should be targeted at making the Search → Chats surface resolve to a branch that renders canceled — either by having shouldShowCanceledStatus/isInsideReportPreview correctly classify that surface, or by ensuring the header path emits the canceled text there. (High confidence on the causing PR; the exact branch taken on the Search surface should be confirmed at runtime by the author, hence a forward fix rather than a revert.)

  9. situchan commented on Aug 20, 2026

    @situchan
    Contributor

    The similar bug was already reported in previous PR review but not blocked since already existing bug.

    Now I tested again and in production, Canceled status never shows in both report preview and spend/chats

    production.mp4

    I think we can demote this as canceled status visibility is already broken in production

  10. 26 remaining items

  11. added
    Daily
    Awaiting Payment
    on Sep 14, 2026
  12. melvin-bot commented on Sep 14, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  13. melvin-bot commented on Sep 14, 2026

    @melvin-bot

    Payment Summary

    Resolving PRs:

    BugZero Checklist (@mallenexpensify)

    • I have confirmed assignees, roles, and Upwork contracts look correct
    • I have paid out Upwork contracts / manual NewDot requests
    • [BugZero Assignee] I have created a GH issue for creating/updating the regression test once above steps have been agreed upon
  14. mallenexpensify commented on Sep 16, 2026

    @mallenexpensify
    Contributor

    Claude posting on behalf of Matt:

    Needs a ruling: $0 each, $125 each, or $250 each. All amounts below are per payee. Two rules give opposite answers on whether this issue pays at all, and the same facts already got both answers. @JS00001 closed the twin issue #99093 with "this was a blocker, so payment isnt needed here". The demotion on this issue points the other way. I propose no amount.

    PR #99097 by @Krishna2323, merged 2026-09-04. 7 files, +12 / -51
    Contributor @Krishna2323 wrote the fix PR. Melvin's summary calls him a Reviewer. That is wrong
    Contributor+ @situchan reviewed and approved it
    Job price $250, standard, no price in title
    Reduction Contested. 0%, 50% or 100% of the job price, see below
    Increase None. 7 files and 63 changed lines meet no threshold
    Blockers This issue is itself a demoted blocker. @JS00001 demoted it after @situchan proved the bug reproduces on production
    Precedent Both directions hold cases. #98809 paid full after a demotion. #98833, #91136 and #98923 paid 0% on the payee's own PR
    Needs a ruling Yes. Does the demotion pay this, or does the 99093 ruling control?
    The three amounts, and what decides between them

    Both payees sit on the offending PR #98758. @Krishna2323 wrote it and @situchan reviewed it. Both get the same amount on every branch below.

    $0 each. The regression came from the payee's own PR. A regression issue pays nothing when the payee wrote or reviewed the PR that caused it. Three cases say so. @JS00001 applied exactly this to #99093 nine days ago, and 99093 is the same offending PR, the same two payees and the same fix PR.

    $250 each. The blocker was demoted. The demotion happened because the defect is older than the PR. @situchan posted a production video and @JS00001 agreed: "This is on prod, so lets demote". Melvin walked back its own first finding: "no recent PR removed 'Canceled' from production... this is a pre-existing bug". On #98809 a demoted blocker that turned out to be older behavior became a separate issue and carried its own price. $250 is the standard price and the default when the title carries no price.

    $125 each. The demotion pays it, and it is a minor edit. If the ruling says this issue pays, the reduction check still runs before the full price. The fix is 7 files, +12 and -51. The rule pays 50% for "a text or copy change, a single-character fix, a small design tweak, or a fix of comparable size". +12 added lines is inside that range on size. The fix is deletion-heavy, which the five cited cases do not clearly cover, so this rung needs a check rather than an assumption.

    Where the first two readings meet. 98758 did add one new thing. It put Canceled at the report level for the first time, so the Inbox showed it and Spend/Chats did not. @Krishna2323 says so himself in the fix PR: "Moving it to the report level made it show for the first time, and only in the Inbox, which is the inconsistency QA reported." So the reported symptom is older than the PR, and the gap between the two surfaces is not. Which of those two the payment follows decides whether this issue pays at all.

    One PR, two payment issues

    #99097 closed both this issue and #99093. Melvin posted a payment summary on each.

    99093 is settled at $0. Before paying anything here, check that 99093 stays closed with no payment, so that one PR of 7 files and 63 changed lines does not pay twice.

    Everything else
    Reviewer checklist @situchan posted the full C+ checklist with a 16-step regression test proposal
    Author checklist @Krishna2323 posted it complete on the PR
    Platform evidence 5 of 5 platform blocks empty. One video sits below them and covers the flow

    Reported as a count, not a deduction. #96239 is on record as a case where missing evidence on the PR meant the tests were done elsewhere.

    Melvin's roles are wrong. Its summary lists both payees as "Reviewer". @Krishna2323 authored the fix PR, so he is the Contributor. Fix the roles before paying, whatever the amount.

    @JS00001 merged the fix PR and takes no per-issue payment as an employee.

    Who to tag when this is live: @JS00001 for the ruling, @Krishna2323 and @situchan because the answer can be below standard.


    Claude posting on behalf of Matt. PAYRUBRICTEST v2

  15. mallenexpensify commented on Sep 16, 2026

    @mallenexpensify
    Contributor

    @JS00001 👀 above on the price increase request plz.

  16. JS00001 commented on Sep 17, 2026

    @JS00001
    Contributor

    We can probably pay separately for this since it existed on prod

  17. mallenexpensify commented on Sep 18, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor: @Krishna2323 due $250 via NewDot
    Contributor+: @situchan due $250 via NewDot

  18. laurenreidexpensify commented on Sep 24, 2026

    @laurenreidexpensify
    Contributor

    $250 Approved @Krishna2323 New Expensify

  19. laurenreidexpensify commented on Sep 28, 2026

    @laurenreidexpensify
    Contributor

    Approved $250 @situchan New Expensify

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions