Skip to content

[Due for payment 2026-07-13] [$250] Home - Report opens in narrow RHP, background changes to Spend after refreshing report #93499

Closed

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.4.7-0
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: #91983
Email or phone of affected tester (no customers): sojdnoijdionsojdod@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:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Create two expenses without category.
  4. Go to Home.
  5. Click Review 2 expenses.
  6. Click on the header subtitle link.
    BUG 1: Narrow RHP opens instead of super wide RHP.
  7. Refresh the page.
    BUG 2: Spend opens in the background after refreshing the page.

Expected Result:

BUG 1: Super wide RHP will open.
BUG 2: Home will be the background after refreshing the page.

Actual Result:

BUG 1: Narrow RHP opens instead of super wide RHP.
BUG 2: Spend opens in the background after refreshing the page.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7179411_1781303155504.13.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Svetlana Lazutkina
Bug ID: 7179411

Issue OwnerCurrent Issue Owner: @mallenexpensify
Upwork Automation - Do Not Edit

Activity

  1. added
    DeployBlockerCash
    Bug
    on Jun 12, 2026
  2. applause-bot commented on Jun 12, 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/dc4f318325f3c83076111f966e43a3399a2d9d901b48cb6b9d50170ba7024a1e

  3. melvin-bot commented on Jun 12, 2026

    @melvin-bot

    @grgia recently merged #91983, but they are OOO right now, so I'll auto-assign someone else.

  4. melvin-bot commented on Jun 12, 2026

    @melvin-bot

    Triggered auto assignment to @NicolasBonet (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  5. melvin-bot commented on Jun 12, 2026

    @melvin-bot

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

  6. github-actions commented on Jun 12, 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.
  7. MelvinBot commented on Jun 12, 2026

    @MelvinBot
    Contributor

    Proposal

    Both bugs come from the new Review X expenses row (PR #91983) reusing the Search-tab navigation hook instead of the Home-tab RHP route that every other For you action already uses.

    What is the root cause of that problem?

    The new row navigates via useReviewFlaggedExpenses → useNavigateToTransactionThread, which opens the report through ROUTES.SEARCH_REPORT. That route is a Search-tab, wide-only modal — which causes both bugs:

    BUG 1 (narrow instead of super wide): SEARCH_REPORT is registered only in WIDE_RIGHT_MODALS, never in SUPER_WIDE_RIGHT_MODALS — see WIDE_RIGHT_MODALS.ts:8-9. So it can never render super-wide. When you then click the header subtitle link, ParentNavigationSubtitle.onPress again routes the parent into SEARCH_REPORT without calling markReportIDAsExpense/markReportIDAsMultiTransactionExpense, so the parent renders narrow.

    BUG 2 (background changes to Spend on refresh): SCREENS.RIGHT_MODAL.SEARCH_REPORT is statically pinned to the Search fullscreen via SEARCH_TO_RHP, while HOME_TO_RHP is empty. On refresh, the in-memory expenseReportIDs set is wiped and the path resolver falls back to that relations table, so it rebuilds the background as Search (Spend) instead of Home — even though the row passed backTo: ROUTES.HOME.

    What changes do you think we should make in order to solve the problem?

    Use the same route the other For you actions already use for a Home-backed RHP. ForYouSection/index.tsx:55 already navigates with ROUTES.EXPENSE_REPORT_RHP.getRoute({reportID, backTo: ROUTES.HOME}). EXPENSE_REPORT is in SUPER_WIDE_RIGHT_MODALS and is not in SEARCH_TO_RHP, so it renders super-wide and keeps Home as the background on refresh.

    Concretely: change the Review X expenses flow to open the flagged report via ROUTES.EXPENSE_REPORT_RHP (with the narrow-layout REPORT_WITH_ID fallback, matching the existing navigateToReport helper) rather than through useNavigateToTransactionThread/SEARCH_REPORT. The carousel seeding (setActiveTransactionIDs) can be preserved if prev/next is still needed.

    Supporting evidence & alternative considered
    • markReportIDAsExpense writes to an in-memory React state Set in WideRHPContextProvider/index.tsx:110-111 — not persisted, so it is empty after a hard refresh.
    • The Search-tab flow handles multi-transaction reports correctly in Search/index.tsx: multi-tx → markReportIDAsMultiTransactionExpense + SEARCH_MONEY_REQUEST_REPORT (super wide); single → markReportIDAsExpense + SEARCH_REPORT (wide). The For You flow replicates neither cleanly.
    • Alternative (narrower fix): make ParentNavigationSubtitle mark the parent and route multi-tx parents to SEARCH_MONEY_REQUEST_REPORT (fixes BUG 1), and rely on backTo surviving the refresh (BUG 2). This is riskier — it touches a shared component used by every report header and still fights the SEARCH_TO_RHP pinning — so switching the For You flow to EXPENSE_REPORT_RHP is the lower-risk fix that addresses both at the source.
    • Related open issue with the same "title link opens the wrong context/modal" symptom: [Due for payment 2026-06-30] [$250] Report title link from Spend > Expenses opens Inbox instead of Spend super-wide modal #91889.

    Next Steps for Contributor+ team:
    To accept: @MelvinBot implement [this](https://github.com/Expensify/App/issues/93499) to create a draft PR.
    To refine: @MelvinBot <your feedback>
    To reject: Explain why you are rejecting Melvin's proposal.

  8. ZhenjaHorbach commented on Jun 13, 2026

    @ZhenjaHorbach
    Contributor

    Minor issue
    Let's remove the deploy blocker

    And actually, I think it's a common issue for Home screen, not a regression
    Since I can also reproduce using Subimt X reports flow

    2026-06-13.09.46.04.mov
  9. removed
    DeployBlockerCash
    on Jun 15, 2026
  10. 27 remaining items

  11. melvin-bot commented on Jul 6, 2026

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.27-2 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-07-13. 🎊

    For reference, here are some details about the assignees on this issue:

  12. melvin-bot commented on Jul 6, 2026

    @melvin-bot

    @ZhenjaHorbach The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero 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]

  13. melvin-bot commented on Jul 9, 2026

    @melvin-bot

    @ZhenjaHorbach Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  14. added
    Awaiting Payment
    on Jul 12, 2026
  15. melvin-bot commented on Jul 12, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  16. melvin-bot commented on Jul 12, 2026

    @melvin-bot

    Payment Summary

    Upwork Job

    BugZero Checklist (@mallenexpensify)

    • I have verified the correct assignees and roles are listed above and updated the necessary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/2070498186883217588/hired)
    • I have verified the PR was not reverted
    • I have applied any discounts due to bugs/regressions introduced by this PR
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  17. mallenexpensify commented on Jul 14, 2026

    @mallenexpensify
    Contributor

    @ZhenjaHorbach from the C+ doc

    If there are posts on the PR or issue that reference a regression or deploy blocker, C+ posts on the issue and confirms regression (which will reduce pay by 50%) or provides reasoning why they shouldn’t be considered. If the C+ doesn’t update the issue, the contributor manager making the payment will assume any mention of a regression or deploy blockers reduces the issue amount.

  18. ZhenjaHorbach commented on Jul 14, 2026

    @ZhenjaHorbach
    Contributor

    Forgot about this issue
    Sorry
    But yes
    We had one regression

    BugZero 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.

    9c476b8#r192386400

    • [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: NA

    • [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

    Test:

    1. Open a workspace chat and create two expenses without a category.
    2. Go to the Home tab.
    3. Click the "Review 2 expenses" item in the Recently added / For You slot.
    4. In the report header, click the subtitle link (the parent workspace chat link).
    5. Verify the parent report opens in the super-wide RHP (not the narrow RHP).

    Do we agree 👍 or 👎

    Zapier Logs Run ID: 00040eee-1246-a4b3-9fbb-fc846e8b9524
  19. mallenexpensify commented on Jul 15, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor+: @ZhenjaHorbach due $125 via NewDot

    ^ Test case created. Thx

  20. garrettmknight commented on Jul 28, 2026

    @garrettmknight
    Contributor

    $125 approved for @ZhenjaHorbach

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions