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-11-18] [$175] Report - Arrow navigation is displayed with only one expense after two splits are deleted. #104307
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: 9.5.13-3 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from BrowserStack:https://test-management.browserstack.com/projects/2219752/test-runs/79083052/folder/57605193/41237115/1869288711 Email or phone of affected tester (no customers):ibellicotest+3215@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Motorola MotoG60 / Android 12 (Hybrid app) - Windows 11 / Chrome App Component: Money Requests
Action Performed:
Prerequisite: Account has a workspace.
Open the staging.new.expensify.com website.
Navigate to workspace chat.
Create two manual expenses.
Open report and navigate to the last created expense.
Click on "More" > "Split" > "Save"
Select both created splits and delete them.
Note that after splits are deleted, arrow navigation can be visible on top of report showing "1 of 2"
Click on an arrow.
Note that you are navigated to "It´s not here" page.
Expected Result:
Arrow navigation shouldn´t be visible on report with only one expense available.
Actual Result:
Arrow navigation is displayed on report with only one expense after deleting two splits. Arrows navigate to "It´s not here" page.
useCarouselTransactionIDs.ts:43 only drops expenses that are deleted or pending delete. B is neither, so it stays in the list.
The splits were never in the list, so deleting them changes nothing. The list stays [A, B], which shows "1 of 2". The arrow then opens B on report -2. In my repro the arrow went to /e/-2, which doesn't exist.
What changes do you think we should make in order to solve the problem?
In useCarouselTransactionIDs, also filter out split originals. Use the existing helper isSplitContainerTransaction, which checks for reportID === SPLIT_REPORT_ID. The original should never be a navigation target, even while its splits still exist. Both MoneyReportHeader and MoneyRequestHeader use this hook, so both hide the arrows.
Add a unit test. Seed [A, B], set B's reportID to -2, and check that the hook returns [A].
What alternative solutions did you explore? (Optional)
In the split flow, also remove the original's ID from the saved list using removeActiveTransactionIDsForReport. Remove moved expenses from their old report's prev/next carousel does the same thing for moved expenses. This works alongside the filter fix but doesn't replace it, because other flows could restore a stale list.
Web repro: the report showed 3 rows after the split and 1 row after deleting both splits. The counter read "1 of 2", and the arrow opened the not-found page:
Next Steps for Contributor+ team: To accept:@MelvinBot implement [this](https://github.com/Expensify/App/issues/104307) to create a draft PR. To refine:@MelvinBot <your feedback> To reject: Explain why you are rejecting Melvin's proposal.
changed the title [-]Report - Arrow navigation is displayed with only one expense after two splits are deleted.[/-][+][$175] Report - Arrow navigation is displayed with only one expense after two splits are deleted.[/+]on Oct 18, 2026
Please re-state the problem that we are trying to solve in this issue.
Arrow navigation ("1 of 2") remains visible in a report header and navigates to an "It's not here" screen even when only one valid expense remains after deleting split expenses.
What is the root cause of that problem?
When an expense is split into child expenses, its original container transaction is moved to CONST.REPORT.SPLIT_REPORT_ID (-2) in src/libs/actions/IOU/SplitTransactionUpdate.ts (lines 1706-1715).
In src/hooks/useCarouselTransactionIDs.ts (line 43), validTransactionIDsSelector only filters out expenses that are pending delete or deleted: return !isTransactionPendingDelete(transaction) && !isDeletedTransaction(transaction);
Because the original container transaction is neither marked deleted nor pending delete, it remains in validTransactionIDs. The container transaction never leaves.
When both created split expenses are deleted, only the single remaining non-split expense exists on the report. However, useCarouselTransactionIDs continues returning both the remaining expense and the container transaction (length of 2). Because of this, MoneyReportHeader.tsx (line 108) evaluates activeTransactionIDs.length > 1 as true, showing the "1 of 2" arrow navigation.
Clicking the navigation arrow invokes navigateToSibling in MoneyRequestReportTransactionsNavigation.tsx. In canResolveSibling (lines 322-344) and resolveSiblingReportID (lines 258-312), the logic only guards against CONST.REPORT.UNREPORTED_REPORT_ID (0), not CONST.REPORT.SPLIT_REPORT_ID (-2). The app attempts to navigate to target report ID -2. Because report -2 does not exist, the user lands on the "It's not here" page.
What changes do you think we should make in order to solve the problem?
In src/hooks/useCarouselTransactionIDs.ts, update validTransactionIDsSelector to filter out split container transactions: return !isTransactionPendingDelete(transaction) && !isDeletedTransaction(transaction) && !isSplitContainerTransaction(transaction);
Import isSplitContainerTransaction from @libs/TransactionUtils. This reactively drops the split container from the carousel as soon as reportID updates to -2.
In src/components/MoneyRequestReportView/MoneyRequestReportTransactionsNavigation.tsx:
In canResolveSibling (line 327), add an early return of false if siblingTransaction?.reportID === CONST.REPORT.SPLIT_REPORT_ID. This check must sit right at the start of the function, before checking descriptors or siblingParentReportAction?.childReportID, ensuring a split container never resolves as an openable sibling.
In resolveSiblingReportID (line 265), add an early return of undefined if siblingTransaction?.reportID === CONST.REPORT.SPLIT_REPORT_ID.
Add unit test coverage in tests/unit/hooks/useCarouselTransactionIDsTest.ts verifying that useCarouselTransactionIDs excludes transactions assigned to SPLIT_REPORT_ID. In tests/unit/components/MoneyRequestReportTransactionsNavigationTest.tsx, verify that canResolveSibling and resolveSiblingReportID reject siblings with reportID === SPLIT_REPORT_ID even when a descriptor or report action exists.
What alternative solutions did you explore? (Optional)
Earlier proposals by @MelvinBot and @camesenin only proposed adding !isSplitContainerTransaction(transaction) to useCarouselTransactionIDs.ts and placing a guard at the end of canResolveSibling.
Their fatal flaw is that adding the check only at line 343 in canResolveSibling misses the earlier returns for descriptors and child report actions on lines 330-333. If an action or descriptor exists for the sibling, canResolveSibling returns true before line 343, keeping the arrow clickable. Placing the guard at the top of both canResolveSibling and resolveSiblingReportID guarantees that report -2 is rejected before any descriptor or action resolution runs.
[Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal
Precondition:
Account has a workspace.
Test:
Go to the workspace chat and create two manual expenses.
Open the report and open the last created expense.
Click More > Split > Save.
Select both split expenses and delete them.
Verify the report with one expense left does not show the prev/next arrows or a "1 of 2" counter.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
applause-bot commentedon Oct 18, 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/5f8493c35e9ff3863aee5a9f3127c8471271bf144874b68c407bab4560d81bec
MelvinBot commentedon Oct 18, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
After you split an expense and delete both splits, the remaining expense still shows "1 of 2" arrows. The arrow opens a "Hmm... it's not here" page.
I reproduced this on web:
What is the root cause of that problem?
The arrow list still holds the original expense from before the split.
[A, B]as the list the arrows use.-2(SplitTransactionUpdate.ts:1706-1715).useCarouselTransactionIDs.ts:43only drops expenses that are deleted or pending delete. B is neither, so it stays in the list.[A, B], which shows "1 of 2". The arrow then opens B on report-2. In my repro the arrow went to/e/-2, which doesn't exist.What changes do you think we should make in order to solve the problem?
useCarouselTransactionIDs, also filter out split originals. Use the existing helperisSplitContainerTransaction, which checks forreportID === SPLIT_REPORT_ID. The original should never be a navigation target, even while its splits still exist. BothMoneyReportHeaderandMoneyRequestHeaderuse this hook, so both hide the arrows.[A, B], set B'sreportIDto-2, and check that the hook returns[A].What alternative solutions did you explore? (Optional)
In the split flow, also remove the original's ID from the saved list using
removeActiveTransactionIDsForReport. Remove moved expenses from their old report's prev/next carousel does the same thing for moved expenses. This works alongside the filter fix but doesn't replace it, because other flows could restore a stale list.Investigation details
MoneyReportHeader.tsx:104-108andMoneyRequestHeader.tsx:197-203. The counter is inMoneyRequestReportTransactionsNavigation.tsx:435-451.MoneyRequestReportTransactionList.tsx:264-274.useMoneyRequestReportActiveTransactionIDs.ts:20-23), so the list stays stale when you open the report from the workspace chat.canResolveSiblingonly rejects expenses on report0, not-2(MoneyRequestReportTransactionsNavigation.tsx:322-344).Possibly related: Expense - Split can be opened after deleting offline and it opens not here page
Next Steps for Contributor+ team:
To accept:
@MelvinBot implement [this](https://github.com/Expensify/App/issues/104307)to create a draft PR.To refine:
@MelvinBot <your feedback>To reject: Explain why you are rejecting Melvin's proposal.
view run · view recording
j3ffffff commentedon Oct 18, 2026
melvin-bot commentedon Oct 18, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Krishna2323 (
External)[-]Report - Arrow navigation is displayed with only one expense after two splits are deleted.[/-][+][$175] Report - Arrow navigation is displayed with only one expense after two splits are deleted.[/+]melvin-bot commentedon Oct 18, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022111648967118290361
camesenin commentedon Oct 18, 2026
melvin-bot commentedon Oct 18, 2026
✅ Contributor details stored successfully. Thank you for contributing to Expensify!
taieddie commentedon Oct 18, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
Arrow navigation ("1 of 2") remains visible in a report header and navigates to an "It's not here" screen even when only one valid expense remains after deleting split expenses.
What is the root cause of that problem?
When an expense is split into child expenses, its original container transaction is moved to
CONST.REPORT.SPLIT_REPORT_ID(-2) insrc/libs/actions/IOU/SplitTransactionUpdate.ts(lines 1706-1715).In
src/hooks/useCarouselTransactionIDs.ts(line 43),validTransactionIDsSelectoronly filters out expenses that are pending delete or deleted:return !isTransactionPendingDelete(transaction) && !isDeletedTransaction(transaction);Because the original container transaction is neither marked deleted nor pending delete, it remains in
validTransactionIDs. The container transaction never leaves.When both created split expenses are deleted, only the single remaining non-split expense exists on the report. However,
useCarouselTransactionIDscontinues returning both the remaining expense and the container transaction (length of 2). Because of this,MoneyReportHeader.tsx(line 108) evaluatesactiveTransactionIDs.length > 1as true, showing the "1 of 2" arrow navigation.Clicking the navigation arrow invokes
navigateToSiblinginMoneyRequestReportTransactionsNavigation.tsx. IncanResolveSibling(lines 322-344) andresolveSiblingReportID(lines 258-312), the logic only guards againstCONST.REPORT.UNREPORTED_REPORT_ID(0), notCONST.REPORT.SPLIT_REPORT_ID(-2). The app attempts to navigate to target report ID-2. Because report-2does not exist, the user lands on the "It's not here" page.What changes do you think we should make in order to solve the problem?
In
src/hooks/useCarouselTransactionIDs.ts, updatevalidTransactionIDsSelectorto filter out split container transactions:return !isTransactionPendingDelete(transaction) && !isDeletedTransaction(transaction) && !isSplitContainerTransaction(transaction);Import
isSplitContainerTransactionfrom@libs/TransactionUtils. This reactively drops the split container from the carousel as soon asreportIDupdates to-2.In
src/components/MoneyRequestReportView/MoneyRequestReportTransactionsNavigation.tsx:canResolveSibling(line 327), add an early return offalseifsiblingTransaction?.reportID === CONST.REPORT.SPLIT_REPORT_ID. This check must sit right at the start of the function, before checking descriptors orsiblingParentReportAction?.childReportID, ensuring a split container never resolves as an openable sibling.resolveSiblingReportID(line 265), add an early return ofundefinedifsiblingTransaction?.reportID === CONST.REPORT.SPLIT_REPORT_ID.Add unit test coverage in
tests/unit/hooks/useCarouselTransactionIDsTest.tsverifying thatuseCarouselTransactionIDsexcludes transactions assigned toSPLIT_REPORT_ID. Intests/unit/components/MoneyRequestReportTransactionsNavigationTest.tsx, verify thatcanResolveSiblingandresolveSiblingReportIDreject siblings withreportID === SPLIT_REPORT_IDeven when a descriptor or report action exists.What alternative solutions did you explore? (Optional)
Earlier proposals by @MelvinBot and @camesenin only proposed adding
!isSplitContainerTransaction(transaction)touseCarouselTransactionIDs.tsand placing a guard at the end ofcanResolveSibling.Their fatal flaw is that adding the check only at line 343 in
canResolveSiblingmisses the earlier returns for descriptors and child report actions on lines 330-333. If an action or descriptor exists for the sibling,canResolveSiblingreturns true before line 343, keeping the arrow clickable. Placing the guard at the top of bothcanResolveSiblingandresolveSiblingReportIDguarantees that report-2is rejected before any descriptor or action resolution runs.Contributor details
Your Expensify account email: taieddie8@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~01e51b3f9ff738cf94
melvin-bot commentedon Oct 18, 2026
✅ Contributor details stored successfully. Thank you for contributing to Expensify!
55 remaining items
expensify-chore-bot commentedon Nov 17, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)expensify-chore-bot commentedon Nov 17, 2026
Payment Summary
Resolving PRs:
Remove the original expense from the prev/next carousel when it is split #105671
Reviewer: @Krishna2323 owed $175 via NewDot
BugZero Checklist (@mallenexpensify)
mallenexpensify commentedon Nov 19, 2026
Claude posting on behalf of Matt:
Waiting on C+ checklist from @Krishna2323.
Job price: $175 (standard, no Help Wanted, assigned 2026-10-18). Krishna2323 (C+): 100% once the checklist is in, via NewDot.
No deploy blockers or regressions on the issue or the PR.
Evidence
PAYPREP v1mallenexpensify commentedon Nov 20, 2026
@Krishna2323 plz complete the Contributor+ checklist and tag me in a post once you have. Thx
Krishna2323 commentedon Nov 23, 2026
Contributor+ Checklist:
[Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to the comment on the PR: Standardize Expense Report and Expense header with predictable button placement and carousel counter #100331 (comment)
Link to the comment on the Issue: [Due for payment 2026-11-19] Standardize Expense Report and Expense header with predictable button placement and carousel counter #90366 (comment)
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal
Precondition:
Test:
More>Split>Save.Do we agree 👍 or 👎
Krishna2323 commentedon Nov 23, 2026
@mallenexpensify, checklist completed ^. There's no payment summary, so I reopened this one.
mallenexpensify commentedon Nov 24, 2026
Payment Summary
Contributor+: @Krishna2323 due $175 via NewDot
Thx for reopening, I closed it by mistake.