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-07-13] [$250] Home - Report opens in narrow RHP, background changes to Spend after refreshing report #93499
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:
Go to staging.new.expensify.com
Go to workspace chat.
Create two expenses without category.
Go to Home.
Click Review 2 expenses.
Click on the header subtitle link.
BUG 1: Narrow RHP opens instead of super wide RHP.
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.
👋 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:
Identify the pull request that introduced this issue and revert it.
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.
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_REPORTwithout 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 otherFor 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.
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.
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.
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:
@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]
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.
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.
[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:
Open a workspace chat and create two expenses without a category.
Go to the Home tab.
Click the "Review 2 expenses" item in the Recently added / For You slot.
In the report header, click the subtitle link (the parent workspace chat link).
Verify the parent report opens in the super-wide RHP (not the narrow RHP).
Activity
applause-bot commentedon Jun 12, 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/dc4f318325f3c83076111f966e43a3399a2d9d901b48cb6b9d50170ba7024a1e
melvin-bot commentedon Jun 12, 2026
@grgia recently merged #91983, but they are OOO right now, so I'll auto-assign someone else.
melvin-bot commentedon Jun 12, 2026
Triggered auto assignment to @NicolasBonet (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Jun 12, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Jun 12, 2026
👋 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:
MelvinBot commentedon Jun 12, 2026
Proposal
What is the root cause of that problem?
The new row navigates via
useReviewFlaggedExpenses→useNavigateToTransactionThread, which opens the report throughROUTES.SEARCH_REPORT. That route is a Search-tab, wide-only modal — which causes both bugs:BUG 1 (narrow instead of super wide):
SEARCH_REPORTis registered only inWIDE_RIGHT_MODALS, never inSUPER_WIDE_RIGHT_MODALS— seeWIDE_RIGHT_MODALS.ts:8-9. So it can never render super-wide. When you then click the header subtitle link,ParentNavigationSubtitle.onPressagain routes the parent intoSEARCH_REPORTwithout callingmarkReportIDAsExpense/markReportIDAsMultiTransactionExpense, so the parent renders narrow.BUG 2 (background changes to Spend on refresh):
SCREENS.RIGHT_MODAL.SEARCH_REPORTis statically pinned to the Search fullscreen viaSEARCH_TO_RHP, whileHOME_TO_RHPis empty. On refresh, the in-memoryexpenseReportIDsset 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 passedbackTo: ROUTES.HOME.What changes do you think we should make in order to solve the problem?
Use the same route the other
For youactions already use for a Home-backed RHP.ForYouSection/index.tsx:55already navigates withROUTES.EXPENSE_REPORT_RHP.getRoute({reportID, backTo: ROUTES.HOME}).EXPENSE_REPORTis inSUPER_WIDE_RIGHT_MODALSand is not inSEARCH_TO_RHP, so it renders super-wide and keeps Home as the background on refresh.Concretely: change the
Review X expensesflow to open the flagged report viaROUTES.EXPENSE_REPORT_RHP(with the narrow-layoutREPORT_WITH_IDfallback, matching the existingnavigateToReporthelper) rather than throughuseNavigateToTransactionThread/SEARCH_REPORT. The carousel seeding (setActiveTransactionIDs) can be preserved if prev/next is still needed.Supporting evidence & alternative considered
markReportIDAsExpensewrites to an in-memory React stateSetinWideRHPContextProvider/index.tsx:110-111— not persisted, so it is empty after a hard refresh.Search/index.tsx: multi-tx →markReportIDAsMultiTransactionExpense+SEARCH_MONEY_REQUEST_REPORT(super wide); single →markReportIDAsExpense+SEARCH_REPORT(wide). The For You flow replicates neither cleanly.ParentNavigationSubtitlemark the parent and route multi-tx parents toSEARCH_MONEY_REQUEST_REPORT(fixes BUG 1), and rely onbackTosurviving the refresh (BUG 2). This is riskier — it touches a shared component used by every report header and still fights theSEARCH_TO_RHPpinning — so switching the For You flow toEXPENSE_REPORT_RHPis the lower-risk fix that addresses both at the source.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.
ZhenjaHorbach commentedon Jun 13, 2026
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 reportsflow2026-06-13.09.46.04.mov
27 remaining items
melvin-bot commentedon Jul 6, 2026
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:
melvin-bot commentedon Jul 6, 2026
@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]
melvin-bot commentedon Jul 9, 2026
@ZhenjaHorbach Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
melvin-bot commentedon Jul 12, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)melvin-bot commentedon Jul 12, 2026
Payment Summary
Upwork Job
BugZero Checklist (@mallenexpensify)
mallenexpensify commentedon Jul 14, 2026
@ZhenjaHorbach from the C+ doc
add specific case to parent subtitle, when super wide rhp is opened w…
ZhenjaHorbach commentedon Jul 14, 2026
Forgot about this issue
Sorry
But yes
We had one regression
BugZero Checklist:
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:
Do we agree 👍 or 👎
Zapier Logs
Run ID: 00040eee-1246-a4b3-9fbb-fc846e8b9524mallenexpensify commentedon Jul 15, 2026
Payment Summary
Contributor+: @ZhenjaHorbach due $125 via NewDot
^ Test case created. Thx
garrettmknight commentedon Jul 28, 2026
$125 approved for @ZhenjaHorbach