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-09-15] Expense preview- "Canceled • 1 expense" is not shown in Spend/ Chats #99091
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:
Sign in to ND
Create a workspace, create a manual expense in the workspace chat
Submit and approve the expense
Go to Spend, click Filters, set the Type to Chats
Navigate back to workspace chat, open the expense
Mark as paid, go offline, and cancel the payment
Navigate to the workspace chat and observe the expense preview - "Canceled • 1 expense" is shown
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
👋 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.
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.
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:
Report-preview surface (workspace chat) — the canceled text is rendered by the report header:
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.)
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.
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 @JS00001agreed: "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
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
Activity
applause-bot commentedon Aug 20, 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/7fd3f4535c0526a18746e3853e36b7df304ce8bd28e80f3d23543588ed422665
melvin-bot commentedon Aug 20, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #98758
melvin-bot commentedon Aug 20, 2026
@JS00001 @situchan you have been assigned to this deploy blocker because you reviewed the offending PR: #98758
melvin-bot commentedon Aug 20, 2026
@Krishna2323 you have been assigned to this deploy blocker because you authored the offending PR: #98758
melvin-bot commentedon Aug 20, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Aug 20, 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 Aug 20, 2026
🔍 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.
DeployBlockerCashis 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.DeployBlockerwas not present.📋 Detailed Analysis
Evidence
iou.canceledwas appended by a singlepreviewHeaderTextcode 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:ReportPreviewHeader.tsx#L69-L70buildssupportingText = isCancelledIOU ? "Canceled • N expense" : "N expense", rendered at#L128.TransactionPreviewContent.tsx#L138-L141:isInsideReportPreview = !!useContext(ReportPreviewDataContext)andshouldShowCanceledStatus = !isInsideReportPreview.TransactionPreviewUtils.ts#L341-L342:if (shouldShowCanceledStatus && iouReport?.isCancelledIOU) previewStatusText.push({translationPath: 'iou.canceled'}), which feeds the supporting line atTransactionPreviewContent.tsx#L205-L208.The
isCancelledIOUfield itself is available on both surfaces — it is set optimistically on cancel (PayMoneyRequest.ts#L552) and is preserved bygetStableReportSelector(Report.ts#L251) used by bothReportActionItemandTransactionPreview. 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):ReportPreviewHeader'ssupportingText;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/isInsideReportPreviewcorrectly 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.)situchan commentedon Aug 20, 2026
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
26 remaining items
melvin-bot commentedon Sep 14, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)melvin-bot commentedon Sep 14, 2026
Payment Summary
Resolving PRs:
fix: stop showing the canceled status on expense previews #99097
Reviewer: @Krishna2323 owed $250 via NewDot
Reviewer: @situchan owed $250 via NewDot
BugZero Checklist (@mallenexpensify)
mallenexpensify commentedon Sep 16, 2026
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.
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
Canceledat 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
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 v2mallenexpensify commentedon Sep 16, 2026
@JS00001 👀 above on the price increase request plz.
JS00001 commentedon Sep 17, 2026
We can probably pay separately for this since it existed on prod
mallenexpensify commentedon Sep 18, 2026
Payment Summary
Contributor: @Krishna2323 due $250 via NewDot
Contributor+: @situchan due $250 via NewDot
laurenreidexpensify commentedon Sep 24, 2026
$250 Approved @Krishna2323 New Expensify
laurenreidexpensify commentedon Sep 28, 2026
Approved $250 @situchan New Expensify