Skip to content

[Due for payment 2026-09-03] Spend - Navigation arrows disappear after opening invoice sent from OD #99636

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?: N/A - new feature, doesn't exist in prod
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): sjdonijsdoisdjnio@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.5 / Chrome
App Component: Search

Action Performed:

Precondition:

  • Enable Invoices.
  1. Go to staging.new.expensify.com
  2. Send two invoices to any user.
  3. Log in to same account on OD.
  4. Send an invoice with two expenses to any user on OD.
  5. On ND, go to Spend.
  6. Open filters, apply Type > Invoices.
  7. Open one of the invoices sent from ND in Step 2.
  8. Click left or right arrow to navigate to the invoice sent from OD in Step 4.

Expected Result:

Navigation arrows will not disappear after opening invoice sent from OD.

Actual Result:

Navigation arrows disappear after opening invoice sent from OD.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7243927_1787810216041.11.mp4

View all open jobs on GitHub

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

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/f4f79b3656d4e21efeee24fbc54c43e7df3cc512306a7762573f4a379929198d

  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 (fix belongs in Expensify/App)
    Causing PR: #98611 - "Standardize Expense Report and Expense header with predictable button placement and carousel counter" by @thelullabyy (High confidence PR / Medium-High confidence on exact branch)
    Related Issues: Original feature issue #90366 (linked in the PR)

    Recommendation: ROLL FORWARD (targeted fix)

    #98611 is a large, foundational header-standardization PR that also introduced the entire Search → RHP prev/next carousel ("Search invoice/report navigation"). The break only affects multi-expense invoices originating from OldDot, a narrow edge case, so a targeted fix is safer than reverting the whole standardization + carousel + test suite. Revert is the fallback if a fix can't land quickly.

    Assigned: @thelullabyy (PR author), @ShridharGoel and @JS00001 (approving reviewers) — already auto-assigned by melvin-bot, no change needed.
    Labels: No change. DeployBlockerCash is correct and kept (App-side fix required; feature is staging-only / not in production). DeployBlocker (web) is not present and none was removed.

    📋 Detailed Analysis

    Evidence

    Verification

    Affected files (all touched by #98611):

    Root Cause

    When Search Type = Invoices, invoices get prev/next arrows from one of two mutually exclusive paths in MoneyReportHeader:

    1. Transaction carousel (L178-L189) — shown only when shouldShowTransactionNavigation is true, i.e. a carouselAnchorTransactionID resolves and is present in the seeded activeTransactionIDs. The anchor is resolved as:
      carouselAnchorTransactionID = singleTransactionID ?? threadTransactionID ?? multiTxAnchorTransactionID (L104-L107).
    2. Report carousel — the fallback, but MoneyRequestReportNavigation only ever mounts for type === EXPENSE_REPORT, so for an INVOICE-type search it returns null and shows nothing.

    For a single-expense ND invoice, the landed report has exactly one transaction, so singleTransactionID resolves and is in activeTransactionIDs → transaction carousel shows the arrows. ✅

    For a multi-expense OD invoice, the landed report has two transactions, so:

    • singleTransactionID is undefined (2 transactions),
    • threadTransactionID is undefined (the invoice report's parent action is not a money-request action),
    • multiTxAnchorTransactionID fails to resolve because the route/anchorTransactionID for the multi-transaction invoice report is not a valid entry in the seeded activeTransactionIDs (L104-L105).

    With no anchor, shouldShowTransactionNavigation is false, and the fallback report navigation is disabled for INVOICE searches → all arrows disappear. OD-origination matters because OD invoices are the ones carrying multiple expenses (and whose IOU report-actions/threads aren't reliably hydrated in ND for anchor resolution).

    Suggested fix direction

    Either (a) extend the report-navigation guard to also handle type === INVOICE so multi-expense invoices fall back to report-level arrows, or (b) resolve a valid carouselAnchorTransactionID for multi-transaction invoice reports opened from Search (e.g. derive the anchor from the report's own transactions when the route anchor is absent, and ensure invoice siblings are seeded into activeTransactionIDs).

  9. m-natarajan commented on Aug 27, 2026

    @m-natarajan

    Chrome / v9.4.62-4
    No arrows on invoice RHP

    bandicam.2026-08-27.21-06-37-427.mp4
  10. added and removed
    ReviewingHas a PR in review
    on Aug 27, 2026
  11. changed the title [-]Spend - Navigation arrows disappear after opening invoice sent from OD[/-] [+][Due for payment 2026-09-03] Spend - Navigation arrows disappear after opening invoice sent from OD[/+] on Aug 27, 2026
  12. 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