Skip to content

[Due for payment 2026-09-03] Report changes from expense details thread to expense report after navigating via arrows #99621

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.62-1
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #98611
Email or phone of affected tester (no customers): sdsiodjnosdjiodsj@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. Go to workspace chat.
  3. Create two reports with one expense each without category.
  4. Go to Home
  5. Click Review 2 expenses in For You section.
  6. Click Next arrow button.
  7. Click Previous arrow button.

Expected Result:

After navigating to another expense via arrow button, report will not change.

Actual Result:

After navigating to another expense via arrow button, report changes from expense details thread to expense report.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7243792_1787791856719.10.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Mita Rachim
Bug ID: 7243792

Issue OwnerCurrent Issue Owner: @thelullabyy

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    on Aug 27, 2026
  2. applause-bot commented on Aug 27, 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/32b154b535b2e7d6fde931b28d0cf98db8be10ae30f4647f9ed062ef5f6ee423

  3. melvin-bot commented on Aug 27, 2026

    @melvin-bot

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

  4. melvin-bot commented on Aug 27, 2026

    @melvin-bot

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

  5. melvin-bot commented on Aug 27, 2026

    @melvin-bot

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

  6. melvin-bot commented on Aug 27, 2026

    @melvin-bot

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

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

    @MelvinBot
    Contributor

    🔍 Investigation Summary

    Classification: Frontend bug
    Causing PR: #98611 - "Standardize Expense Report and Expense header with predictable button placement and carousel counter" by @thelullabyy (High confidence)
    Related Issues: N/A

    Recommendation: ROLL FORWARD

    A newly added "one-transaction report" branch in the prev/next carousel handlers pre-empts the descriptor-based branch used by the Home "For You / Recently added" flow, so arrow navigation lands on the parent expense report instead of the expense details thread. Reverting is problematic (this is a 33-file PR that also ships the header standardization and carousel counter); a small, localized reorder is safer and simpler than a full revert.

    Assigned: @thelullabyy (PR author), @ShridharGoel and @JS00001 (approving reviewers)
    Labels: No changes. DeployBlockerCash retained (App-side fix required); no DeployBlocker present to remove.

    📋 Detailed Analysis

    Evidence

    Verification

    Root Cause

    The Home "For You / Recently added" carousel is seeded with a descriptor per sibling via setActiveTransactionIDs(siblingTransactionIDs, undefined, siblingDescriptorsByTransactionID) in src/pages/home/RecentlyAddedSection/index.tsx, and it opens each expense on its transaction thread (expense details thread).

    In this repro each of the two reports contains a single expense, so every sibling's parent is a one-transaction report. PR #98611 inserted this branch at the very top of onNext/onPrevious:

    if (isOneTransactionReport(nextTransactionParentReport) && nextTransaction?.reportID && nextTransaction.reportID !== CONST.REPORT.UNREPORTED_REPORT_ID) {
        const targetReportID = nextTransaction.reportID; // <- parent EXPENSE REPORT, not the thread
        markReportRHPWidth(targetReportID, 'wide');
        requestAnimationFrame(() => startTransition(() => Navigation.setParams({reportID: targetReportID, ...})));
        return;
    }

    Because this runs before the nextDescriptor branch, it short-circuits the descriptor-driven resolution. Instead of resolving the sibling's transaction thread via getReportIDToOpenForExpense (which returns the childReportID / expense details thread), it navigates straight to nextTransaction.reportID — the parent expense report. The RHP therefore switches from the expense details thread to the expense report view, exactly as reported.

    Suggested targeted fix

    Move the descriptor branch (nextDescriptor / prevDescriptor) above the one-transaction-report branch in both onNext and onPrevious. When a sibling descriptor exists (the Home/"For You" seeded-carousel case), it should take priority and resolve the transaction thread, preserving the expense details view. The one-transaction-report optimization then remains for the search/report flows that don't seed descriptors. This is a minimal reorder confined to the two handlers, avoiding a large multi-file revert.

  9. MelvinBot commented on Aug 27, 2026

    @MelvinBot
    Contributor

    ✅ Deploy blocker confirmed & reproduced

    Building on the investigation above, I reproduced the bug end-to-end on a fresh web build following the exact repro steps.

    Cause: #98611 (High confidence) — a newly added "one-transaction report" branch at the top of the prev/next carousel handlers pre-empts the descriptor-based branch that the Home "For You / Recently added" flow relies on, so arrow navigation lands on the parent expense report instead of the expense details thread.

    Recommendation: ROLL FORWARD with a targeted fix (a full revert is disproportionate for a 33-file PR). Move the descriptor branch (nextDescriptor / prevDescriptor) above the one-transaction-report branch in both onNext and onPrevious in MoneyRequestReportTransactionsNavigation.tsx so a seeded sibling descriptor takes priority and resolves the transaction thread, preserving the expense details view.

    Reproduction result: FAIL (bug confirmed)

    Setup: workspace chat → created two reports, each with one uncategorized expense → Home.

    Step Status Observation
    Home "For You" shows "Review 2 expenses" entry ✅ Pass Entry shown; clicking it opens the expense details thread
    Review entry opens expense details thread with arrows ✅ Pass Header "€12.34 for Test Merchant One", breadcrumb "From Expense Report… in …Workspace", pagination "1 of 2", ‹ / › arrows
    Click Next → shows a view for expense 2 ✅ Pass Navigates to expense 2 but renders the expense report view (header "Expense Report 2026-08-27", Draft badge, Submit/More), pagination "2 of 2"
    Click Previous → stays on / returns to expense details thread ❌ Fail Returns to expense 1 ("1 of 2") but incorrectly shows the expense report view instead of the original "€12.34 for Test Merchant One" details thread
    📷 Screenshots

    Home For You section showing Review 2 expenses

    Home For You section showing Review 2 expenses

    Expense details thread view for expense 1, 1 of 2

    Expense details thread view for expense 1, 1 of 2

    After clicking Next: expense report view shown for expense 2, 2 of 2

    After clicking Next: expense report view shown for expense 2, 2 of 2

    After clicking Previous: expense report view incorrectly shown for expense 1 instead of expense details thread, 1 of 2

    After clicking Previous: expense report view incorrectly shown for expense 1 instead of expense details thread, 1 of 2

    view run

  10. m-natarajan commented on Aug 27, 2026

    @m-natarajan

    Not repro in Win 11/Chrome, v9.4.62-4

    Recording.3439.mp4
  11. added and removed
    ReviewingHas a PR in review
    on Aug 27, 2026
  12. changed the title [-]Report changes from expense details thread to expense report after navigating via arrows[/-] [+][Due for payment 2026-09-03] Report changes from expense details thread to expense report after navigating via arrows[/+] on Aug 27, 2026
  13. melvin-bot commented on Aug 27, 2026

    @melvin-bot

    @thelullabyy

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.62-4 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-09-03. 🎊

    The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ 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]. If no checklist is needed for this issue, you can click: [no checklist button]

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

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2Engineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions