Skip to content

Standardize Expense Report and Expense header with predictable button placement and carousel counter - #100331

Merged
JS00001 merged 23 commits into
Expensify:mainfrom
thelullabyy:fix-04/90366
Oct 5, 2026
Merged

JS00001 merged 23 commits into
Expensify:mainfrom
thelullabyy:fix-04/90366

Conversation

@thelullabyy

Copy link
Copy Markdown
Contributor

Explanation of Change

Fixed Issues

$ #90366
PROPOSAL: N/A

Tests

  • Setup
    Log in with a test account that has access to a paid workspace with multiple expense reports and expenses
    Have these in your test workspace:
  • At least 3 expense reports (mix of submitted/approved/paid states)
  • At least one expense report containing 3+ expenses
  1. Go to Spend --> Report/Expenses
  2. Verify that the expense/report header looks like this figure below for scenarios
  3. Verify that navigate using the carousel and ensure that all the expenses/reports from the list are available
image
  • Verify that no errors appear in the JS console

Offline tests

QA Steps

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
      • If any non-english text was added/modified, I used JaimeGPT to get English > Spanish translation. I then posted it in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • I verified that if a function's arguments changed that all usages have also been updated correctly
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
Screen.Recording.2026-05-17.at.23.29.29.mov

Bug: #96563

image
Android: mWeb Chrome
Screen.Recording.2026-05-17.at.23.25.25.mov
iOS: Native
iOS: mWeb Safari
Screen.Recording.2026-05-17.at.23.21.16.mov
MacOS: Chrome / Safari
Screen.Recording.2026-05-17.at.23.15.10.mov
Screen.Recording.2026-07-27.at.20.19.00.mov
image
Screen.Recording.2026-07-27.at.21.06.31.mov
image

@melvin-bot

melvin-bot Bot commented Sep 3, 2026

Copy link
Copy Markdown

Hey, I noticed you changed src/languages/en.ts in a PR from a fork. For security reasons, translations are not generated automatically for PRs from forks.

If you want to automatically generate translations for other locales, an Expensify employee will have to:

  1. Look at the code and make sure there are no malicious changes.
  2. Run the Generate static translations GitHub workflow. If you have write access and the K2 extension, you can simply click: [this button]

Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running:

npx bun ./scripts/generateTranslations.ts --help

Typically, you'd want to translate only what you changed by running npx bun ./scripts/generateTranslations.ts --compare-ref main

@thelullabyy
thelullabyy marked this pull request as ready for review September 3, 2026 18:16
@thelullabyy
thelullabyy requested review from a team as code owners September 3, 2026 18:16
@melvin-bot
melvin-bot Bot requested review from ZhenjaHorbach and heyjennahay and removed request for a team September 3, 2026 18:16
@melvin-bot

melvin-bot Bot commented Sep 3, 2026

Copy link
Copy Markdown

@ZhenjaHorbach Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@thelullabyy

Copy link
Copy Markdown
Contributor Author

@ShridharGoel PR is not ready yet, I'm opening to to work with Melvin & Codex

@ZhenjaHorbach Please ignore the ping, I and @ShridharGoel will work on this PR

@thelullabyy

Copy link
Copy Markdown
Contributor Author

@MelvinBot Please do deep review this PR

@codecov

codecov Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ Changes either increased or maintained existing code coverage, great job!

Files with missing lines Coverage Δ
src/ONYXKEYS.ts 100.00% <ø> (ø)
src/ROUTES.ts 31.11% <100.00%> (+0.05%) ⬆️
src/components/MoneyReportHeader.tsx 100.00% <100.00%> (ø)
...stReportView/MoneyRequestReportTransactionList.tsx 71.64% <ø> (ø)
...tView/useMoneyRequestReportActiveTransactionIDs.ts 100.00% <100.00%> (ø)
...portActionItem/MoneyRequestReportPreview/index.tsx 95.80% <100.00%> (+0.02%) ⬆️
...hooks/useMoneyReportHeaderMoreContentVisibility.ts 100.00% <100.00%> (ø)
src/hooks/useNavigateToTransactionThread.ts 80.95% <100.00%> (ø)
src/libs/ExportOnyxState/masking.ts 80.95% <ø> (ø)
.../TransactionDuplicate/DuplicateTransactionItem.tsx 0.00% <ø> (ø)
... and 17 more
... and 15 files with indirect coverage changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b3baa98c16

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/components/MoneyReportHeader.tsx Resolved
@MelvinBot

Copy link
Copy Markdown
Contributor

🤖 Deep review — 3 blockers, 11 should-fix. Static checks are green (tsc 0 errors, ESLint 0 errors, all 8 test suites / 89 tests pass), so everything below is behavioral.

The ownership model in TransactionThreadNavigation.ts is the right idea and the source stamp genuinely fixes the teardown-vs-mount race. But the migration is incomplete: 7 writers seed the carousel, only 1 releases it, and the header duplicates the carousel's visibility rule instead of sharing it.


🔴 Blockers

1. Header and carousel disagree on which list to check — both sets of arrows disappear

src/components/MoneyReportHeader.tsx:108 gates on the raw Onyx ID list, but MoneyRequestReportTransactionsNavigation.tsx:138-152 renders against a deletion-filtered list and bails at :256. Since :182-194 is a ternary, a raw-list false-positive suppresses the report carousel and the expense carousel.

Repro: report-grouped search with ≥2 reports → open a report with exactly 2 expenses (seeds [t1,t2]) → delete t1. The re-seed bails at MoneyRequestReportTransactionList.tsx:618 (< 2), so Onyx keeps [t1,t2]. Header takes the expense branch; the child filters to [t2] and returns nothing. No arrows at all. This mutual exclusion is new — at base the two navs lived in different components.

Fix: share one predicate, or render MoneyRequestReportNavigation as a fallback rather than an else.

2. The Spend page seeds the carousel on page view and never releases it

src/components/Search/index.tsx:837-846 writes the carousel with no row press required, and there is no clearActiveTransactionIDsForSource anywhere in the file. The keys are persisted, so the leak survives an app restart.

The unscoped clear at MoneyRequestReportTransactionsNavigation.tsx:250 does not save you — it lives inside the carousel component, which only mounts once a header already decided to show a carousel. And the header has no search/RHP gate: MoneyReportHeader renders in the Inbox central pane too.

Repro: open Spend (≥2 expenses), open nothing, switch to Inbox, tap a report preview for a one-transaction report whose expense is in the Spend list → header shows "k of 20" and the arrows navigate the Inbox pane to unrelated Spend expenses.

3. PopoverMenu height change shrinks 8 existing menus

src/components/PopoverMenu/index.tsx:680-684 subtracts the anchor's Y from the available height. It is ungated — every wide-screen shouldUseScrollView caller gets it, and the new value is never larger than the old one.

The premise is incorrect: PopoverWithMeasuredContentBase already clamps a TOP-aligned popover into the window (PopoverWithMeasuredContentBase.tsx:178-182, PopoverWithMeasuredContentUtils.ts:49-53), so overflow was already impossible for any window ≥ 496px. Worked example — 900px window, anchor at y=500, 700px of content: before 700px fully visible, after capped at 496px with inner scroll.

Affected (long menus anchored low): ImportColumn, WorkspaceMembersPage, SettlementButton, SearchBulkActionsButton, MoneyRequestHeaderSecondaryActions, MoneyReportHeaderKYCDropdown, MoneyReportHeaderSelectionDropdown, SelectionToolbar/SelectionDropdown.

The other half of the change — minHeight = Math.min(496, windowHeight - margin) — is a real fix for windows under 496px tall. Keep it, drop getAvailableHeightForAnchor, and the whole block reduces to maxHeight: windowHeight - variables.compactPopoverMenuVerticalMargin. Note PopoverMenu/v2/content/ScrollableContent.tsx:46 still carries the old formula, so v1 and v2 now disagree either way.


🟡 Should-fix

# Where Problem
4 DynamicReviewPage.tsx:193 The restore path re-stamps the previous screen's list with duplicate-review's own source, and drops snapshotHash/descriptors. getActiveTransactionIDs() returns source for exactly this and is unused here — and it never returns snapshotHash, so no caller can round-trip it.
5 Search/index.tsx:629 search:<hash> is not a stable owner identity. Sorting, filtering, or typing changes the hash on the same mounted screen, so shouldRefreshActiveTransactionIDs returns false permanently — the old source no longer exists on any screen. Masked only because row press writes unconditionally.
6 TransactionThreadNavigation.ts:144 if (ids.length < 2) return false means an owner can grow its carousel but never shrink or release it. Narrow a filter from 20 results to 1 and the RHP keeps paging the other 19. Also the root cause of blocker 1.
7 useNavigateToTransactionThread.ts:96 Row press omits descriptors and snapshotHash, which Onyx.sets them to null — defeating the guard at MoneyRequestReportTransactionList.tsx:610 that exists to protect snapshot-backed carousels. Snapshot-only siblings become unresolvable.
8 Search/index.tsx:642-648 The carousel is rewritten before the isModifiedMousePress early returns. Cmd+clicking a row to open it in a background tab silently replaces the current tab's carousel.
9 useNavigateToTransactionThread.ts:60 Left on getIOUActionForTransactionID while the carousel it seeds uses the new getExpenseCreationIOUActionForTransactionID. In an approved report the row press can land on the approval whisper while the carousel lands on the expense — the exact drift the new helper's docblock warns about.
10 MoneyRequestReportTransactionsNavigation.tsx:145-147 Not-yet-loaded siblings are kept (correct), but isNextButtonDisabled={!nextTransactionID} is then false while resolveSiblingReportID returns undefined → the arrow looks enabled and does nothing, with no spinner.
11 MoneyRequestReportNavigation.tsx:165-196 The new !isFocused early return is the only re-sync for allReportsCount, so pushing an RHP while the list shrinks leaves a stale total ("3 of 60"). On first mount with no persisted count it renders "1 of 0". Untested.
12 RecentlyAddedSection/index.tsx:60 Not updated for the two new ResolveReportContext fields (isSelfTourViewed, hasCompletedGuidedSetupFlow), so this entry point builds a different optimistic thread than the carousel does for the same expense.
13 RecentlyAddedSection/index.tsx:80, DynamicReviewPage.tsx:187, TransactionGroupListExpanded.tsx:243 Three carousel-seeding navigations omit the new anchorTransactionID. Recently-added is the worst omission — it's the snapshot-backed flow whose siblings are by construction absent from the live collections, i.e. the cold-open case the param was added for.
14 TransactionThreadNavigation.ts:53-56 The module mirror has no Onyx.clear() invalidation and the keys aren't in KEYS_TO_PRESERVE, so "Clear cache and restart" (no JS reload on any platform) leaves the mirror claiming a carousel Onyx no longer has — and both gates then suppress the repair write. The memo is pre-existing, but this PR widens the window a lot by adding a writer that never clears.

Test-quality notes — the suites are green but several don't pin what they claim
  • MoneyRequestReportTransactionListActiveTransactionIDsTest.tsx:44-73 and MoneyRequestReportNavigation.test.tsx:66-80 test hand-copied duplicates of the hooks, not the components. Both pass while the real component regresses. The PR's headline claim (source-scoped clear fixes teardown ordering) is only ever exercised against a jest.fn().
  • TransactionThreadNavigationTest.ts asserts only via getActiveTransactionIDs() — the module mirror the code under test just wrote. Stub out all three Onyx.set calls and the file still passes. That is exactly finding 14. snapshotHash is passed in four tests and asserted in none.
  • MoneyRequestReportTransactionsNavigation.test.tsx: the mocked Pressable receives disabled, so RNTL won't dispatch — expect(setParams).not.toHaveBeenCalled() passes trivially and can't distinguish "correctly disabled" from "handler bailed". useOnyx is fully mocked with populated state, so the undefined-first path (finding 10) is never exercised.
  • useReviewFlaggedExpenses.test.ts:134-143: the primary path uses objectContaining without carouselSource; deleting the source from the hook leaves the file green. The :194-216 case is good — keep that shape.
  • Deleting MoneyReportHeaderMoreContentTest.tsx lost the render-level assertion that MoneyReportHeaderNextStep actually mounts; MoneyReportHeaderMoreContent is jest.mocked to null in the placement test, so a shouldShowNextStep prop typo would ship green.
Nits
  • DRY: the five-element IOU denylist is defined twice within this PR — ReportActionsUtils.ts:2704-2711 and MoneyRequestReportTransactionsNavigation.tsx:56-62 — and both are the complement of the existing iouRequestTypes. Export one.
  • getExpenseCreationIOUActionForTransactionID returns the first match; collectParentReportActions keeps the last. Same conceptual lookup, opposite tiebreak.
  • CAROUSEL_SOURCE.*(undefined) collapses to report:undefined / search:undefined. Reachable at TransactionGroupListExpanded.tsx:262. Consider requiring a defined id in the type.
  • setActiveTransactionIDs stores the caller's array by reference into both the mirror and Onyx; DynamicReviewPage hands the same object back in. A defensive [...ids] removes the class.
  • a11y: PrevNextButtons sets accessibilityLabel={CONST.ROLE.BUTTON} on both arrows (pre-existing), so they announce as "button, button" with no link to the new counter — and the counter is hidden entirely on narrow layouts.
  • Perf: snapshotParentReportActions re-scans the whole snapshot on every prev/next press (prevTransactionID/nextTransactionID are in its deps); Search/index.tsx:823 adds carouselSiblingTransactionIDs to onSelectRow's deps, which churns with search data — carouselSiblingsKey is already computed and stable.
  • MoneyReportHeaderMoreContent.tsx:106: styles.pt0 is dead — the row has no default padding.
  • report_{reportID} is now subscribed three times in one tree; pass the loaded report into useMoneyReportHeaderMoreContentVisibility instead of the ID.
Checked and clean
  • tsc 0 errors repo-wide (both tsconfig.json and tsconfig.jest.json); ESLint 0 errors on all 23 changed files (206 warnings, all pre-existing eslint-seatbelt entries); all 8 PR test suites pass, 89 tests. Formatting was not verified — App uses oxfmt, and I couldn't run it here; the Oxfmt check workflow will cover it.
  • i18n: common.currentOfTotal is present in all 11 locales with genuine translations (not English copies), used only via translate(), and it removes a hardcoded English ${currentIndex + 1} of ${allReportsCount} that existed at base. Locale quote typography untouched.
  • ROUTES.ts: anchorTransactionID is an optional query param; the route string is unchanged, so no path position shifted, linkingConfig needs no update, all 27 existing callers compile, and deeplinks are safe.
  • Navigation/types.ts addition is live — it's what makes the narrowed route.params.anchorTransactionID access at MoneyReportHeader.tsx:99 legal.
  • ONYXKEYS / ExportOnyxState: the new snapshot-hash key is typed correctly and correctly bucketed as safe (a bare hash), while THREAD_REPORT_IDS correctly stays masked.
  • Real fix over base: the old code computed at(currentTransactionIndex + 1) with currentTransactionIndex === -1, i.e. at(0) — "next" jumped to an unrelated first expense. The === -1 early-out fixes that.
  • Header action reachability: MoneyReportHeaderActions renders exactly once across all three placement branches; no action becomes unreachable in any paid/approved/settled/exported or offline state.
  • useMoneyReportHeaderMoreContentVisibility is behaviour-identical to the inline logic it replaced.
  • sizing.ts: mnw8: {minWidth: 32} matches the existing 4px-scale convention; no DRY violation. (It only stabilizes ~3 characters, so "9 of 50" → "10 of 50" still shifts the arrows.)
  • shouldDisplaySearchRouter losing the search button on narrow Search-opened reports looked like a regression but matches what MoneyRequestHeader already did at all widths — deliberate standardization. Worth a line in the PR body.

I also tried a live web smoke test of the carousel on this branch, but the app never rendered past a blank screen in the test harness, so I couldn't attribute that to the PR either way. Everything above is from code, not runtime.

Reply with @MelvinBot <feedback> if you want me to dig into any of these further.


view run

@JmillsExpensify

Copy link
Copy Markdown
Contributor

Let's try to hustle on this PR. It's been a long project and we're getting customer complaints about not having a count for expenses within the carousel for a batched report (which this PR delivers on).

@JmillsExpensify
JmillsExpensify requested review from JmillsExpensify and removed request for heyjennahay September 4, 2026 10:17
@thelullabyy

Copy link
Copy Markdown
Contributor Author

@ShridharGoel I think you can start review now

@ShridharGoel
ShridharGoel self-requested a review September 6, 2026 20:05
@mitarachim

Copy link
Copy Markdown

Deploy Blocker #103112 was identified to be related to this PR.

@mitarachim

mitarachim commented Oct 6, 2026 •

Copy link
Copy Markdown

Deploy Blocker #103113 was identified to be related to this PR.

@mitarachim

Copy link
Copy Markdown

Deploy Blocker #103114 was identified to be related to this PR.

@mitarachim

Copy link
Copy Markdown

Deploy Blocker #103120 was identified to be related to this PR.

@mitarachim

Copy link
Copy Markdown

Deploy Blocker #103122 was identified to be related to this PR.

@jponikarchuk

Copy link
Copy Markdown

Deploy Blocker #103138 was identified to be related to this PR.

@jponikarchuk

Copy link
Copy Markdown

Deploy Blocker #103184 was identified to be related to this PR.

@OSBotify

OSBotify commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/puneetlath in version: 9.5.3-4 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

Copy link
Copy Markdown
Contributor

Thank you everyone for pushing on this PR.

@shawnborton

Copy link
Copy Markdown
Contributor

@thelullabyy why is "font-variant: tabular-nums" on by default? It's causing our 1's to have a serif, which we don't want. Can you follow up and fix please?

CleanShot 2026-10-07 at 4 47 36 PM@2x

@thelullabyy

Copy link
Copy Markdown
Contributor Author

@shawnborton noted, I will fix it along with other follow-up PRs

setActiveTransactionIDs(visualOrderTransactionIDs, {source: carouselSource});
hasSeededCarouselRef.current = true;
// eslint-disable-next-line react-hooks/exhaustive-deps -- visualOrderTransactionIDsKey is an order-sensitive proxy for the array
}, [visualOrderTransactionIDsKey, carouselSource]);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR moved the carousel cleanup in useMoneyRequestReportActiveTransactionIDs.ts out of the effect that re-runs on visualOrderTransactionIDsKey, and added an early return for lists with fewer than two rows. After an expense is removed from a two-expense report, the stale carousel list is no longer cleared, so the arrows and the "1 of 2" counter stay visible and lead to the self DM.

This was fixed here: #103998

More information is available here: #103944

@shawnborton

Copy link
Copy Markdown
Contributor

@thelullabyy did we ever fix the tabular numbers? I still see it in the product:
CleanShot 2026-11-02 at 3 43 17 PM@2x

@thelullabyy

Copy link
Copy Markdown
Contributor Author

@shawnborton I will manage it today

// Nothing to inspect, so keep the ID only while a descriptor still vouches for the sibling.
return !!siblingDescriptors?.[transactionID];
}
return !isTransactionPendingDelete(transaction) && !isDeletedTransaction(transaction);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coming from #104307.

This PR added the carousel arrows to MoneyReportHeader. This filter only drops deleted and pending-delete expenses. Splitting an expense moves the original to SPLIT_REPORT_ID (-2) without deleting it, so it stays in the list. After both splits are deleted, the report with one expense left shows "1 of 2", and the arrow opens /e/-2 ("It's not here").

Fixed in #105671: the split action now removes the original from the carousel, and this filter also skips split originals (isSplitContainerTransaction).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.