Repository navigation
Closed
Labels
Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Description
Problem
(Neil's AI agent)
After onboarding, some paths still open the side panel (RHP) next to Home or Expenses. That onboards the user in two places at once: Getting started on Home, plus a chat in the side panel. Home's Getting started already supports these intents (useGettingStartedItems.ts), so the side panel isn't needed. We agreed the panel should stay closed for every intent, including new employees joining a workspace they were invited to.
Where each path lands today:
- Track workspace / Track personal (
trackExpensesWithConcierge): Home with the side panel open to Concierge on web (RHPVariantTest/index.ts). On small screens it opens the Concierge DM instead (navigateAfterOnboarding.ts). - Get paid back by my employer (Submit workspace) and joining an existing workspace during onboarding: Expenses with the side panel open to #admins (navigateAfterOnboarding.ts). The join path is called from BaseOnboardingWorkspaces.
- Manage my team: new signups go to the onboarding experiment, whose
inboxAdminsBespokeandhomePageNoRHParms both keep the side panel closed. Accounts already assigned the retiredrhpHomePage,rhpAdminsRoomorrhpConciergeDmarms still open the panel.
Reported in Slack, and extended to all intents here.
Solution
(Neil's AI agent)
Never open the side panel automatically after onboarding:
- Track intents: land on Home with the side panel closed, on all screen sizes. Opening Concierge from Home still shows the Concierge DM.
- Employer / Submit workspace and joining a workspace: keep landing on Expenses, with the side panel closed. Which page Submit users land on is a separate A/B test (https://github.com/Expensify/Expensify/issues/671738), so don't move them to Home here.
- Manage my team: stop opening the side panel for the retired
rhpHomePage,rhpAdminsRoomandrhpConciergeDmvalues. Don't change the liveinboxAdminsBespoke/homePageNoRHPexperiment, tracked in https://github.com/Expensify/Expensify/issues/679256. - Invited employees: check every way an invited employee can join for the first time (invite link, auto-join by domain, the join-workspace step in onboarding) and confirm none of them open the side panel.
- Add unit tests covering where each intent and variant lands and that the side panel stays closed.
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~022110430927387470649
- Upwork Job ID: 2110430927387470649
- Last Price Increase: 2026-10-14
Issue Owner
Current Issue Owner: @laveshfonixIssue Owner
Current Issue Owner: @mallenexpensifyMetadata
Metadata
Labels
Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
[-]Close the side panel after onboarding for all intents[/-][+][$250] Close the side panel after onboarding for all intents[/+]melvin-bot commentedon Oct 14, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil (
External)melvin-bot commentedon Oct 14, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022110430898583764205
Dip-G-Git commentedon Oct 14, 2026
[-][$250] Close the side panel after onboarding for all intents[/-][+][$175] Close the side panel after onboarding for all intents[/+]melvin-bot commentedon Oct 14, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022110430927387470649
github-actions commentedon Oct 14, 2026
[-][$175] Close the side panel after onboarding for all intents[/-][+][$175] Close the side panel after onboarding for non-manage-team intents[/+]wildan-m commentedon Oct 14, 2026
🚨 Edited by proposal-police: This proposal was edited at 2026-10-14 18:08:29 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
After onboarding, the Track (workspace/personal) and "Get paid back by my employer" intents still open the side panel next to the landing page, so the user is onboarded in two places at once (Getting started on Home plus a chat in the side panel). These intents should land on Home with the side panel closed, on every screen size, without touching the Manage my team experiment variants.
What is the root cause of that problem?
There are two separate paths that explicitly open the side panel after onboarding.
1. Track intents (
trackExpensesWithConciergevariant).shouldOpenRHPVariant()unconditionally returnstruefor this variant, regardless of company size:App/src/components/SidePanel/RHPVariantTest/index.ts
Lines 46 to 48 in 2b01bcf
so
navigateAfterOnboarding()routes it intohandleRHPVariantNavigation(), whose track branch navigates to Home and then callsSidePanelActions.openSidePanel(true):App/src/components/SidePanel/RHPVariantTest/index.ts
Lines 70 to 77 in 2b01bcf
On small screens, before that,
navigateAfterOnboarding()has a dedicated branch that sends the user straight into the Concierge DM instead of Home:App/src/libs/navigateAfterOnboarding.ts
Lines 106 to 109 in 2b01bcf
(The variant is assigned for Track intents in
useAutoCreateTrackWorkspace:)App/src/hooks/useAutoCreateTrackWorkspace.ts
Line 107 in 2b01bcf
2. Employer / Submit workspace.
navigateToSubmitWorkspaceAfterOnboarding()sets the variant torhpAdminsRoom, navigates to Spend > Expenses, and then callsSidePanelActions.openSidePanel(!shouldUseNarrowLayout):App/src/libs/navigateAfterOnboarding.ts
Lines 163 to 174 in 2b01bcf
It is called from both
useAutoCreateSubmitWorkspaceandBaseOnboardingWorkspaces(joining an existing workspace), so both entry points open the panel.The only arm that already behaves as desired is
homePageNoRHP, which is handled first innavigateAfterOnboarding()and just navigates to Home (unless a report is already topmost) without opening the side panel:App/src/libs/navigateAfterOnboarding.ts
Lines 97 to 104 in 2b01bcf
What changes do you think we should make in order to solve the problem?
navigateAfterOnboarding(), handletrackExpensesWithConciergetogether withhomePageNoRHPin the early branch, so it lands on Home (preserving the existing "don't navigate if a report is already topmost" guard) and returns without opening the side panel, on all screen sizes. Remove the small-screen branch that navigates to the Concierge DM. Opening Concierge from Home afterwards keeps working through the normal Concierge entry points, which are untouched.trackExpensesWithConciergeearly-return inshouldOpenRHPVariant()and the corresponding branch inhandleRHPVariantNavigation(), since that variant no longer reaches them. The micro-companyrhpConciergeDm/rhpAdminsRoom/rhpHomePagelogic is left exactly as is, so the Manage my team experiment is unaffected.navigateToSubmitWorkspaceAfterOnboarding()already has a branch for a missing workspace ID that only navigates to Home, with noopenSidePanel()call and norhpAdminsRoomvariant write. So the onboarding entry points stop passing the workspace ID to it:useAutoCreateSubmitWorkspacepasses no ID when it is completing onboarding, andBaseOnboardingWorkspaces(joining an existing Submit workspace) calls it without one. Both now land on Home with the side panel closed. The helper itself is left unchanged because the same hook also serves already-onboarded callers (the Submit plan welcome modal and the submit-intent deep link), which intentionally go to their Submit workspace, and those keep their current behavior. If the outstanding decision is to keep employer users on Expenses, the change instead becomes dropping theopenSidePanel()call (and the variant write) from the helper while keeping the Expenses navigation.tests/unit/navigateAfterOnboardingTest.ts(running the web implementation of the RHP variant helpers, where the side panel exists) to assert that Track lands onROUTES.HOMEand never on the Concierge report on both small and large screens, keeps a report that is already on top, also applies when the variant comes from Onyx rather than the API response, and never callsopenSidePanel; and that the micro-companyrhpHomePage/rhpAdminsRoom/rhpConciergeDmarms still open the side panel. Updatetests/unit/hooks/useAutoCreateSubmitWorkspace.test.tsso onboarding callers navigate without a workspace ID (Home) while the welcome modal still navigates to the newly created or existing Submit workspace, and drop the Track cases fromtests/unit/components/SidePanel/RHPVariantTest.test.tssince that branch is removed. The new Track and Submit assertions fail onmainand pass with the change.Compare branch: https://github.com/Expensify/App/compare/main...wildan-m:App:wildan/104027-close-side-panel-after-onboarding?expand=1
What alternative solutions did you explore? (Optional)
Close the side panel after the fact (e.g. call
closeSidePanel()once onboarding navigation finishes). Rejected because the panel would briefly flash open, and it leaves the variant code paths that open it in place, so the intent-specific behavior stays hard to reason about.github-actions commentedon Oct 14, 2026
🤖 ProposalPolice™ is tracking duplicate proposals for this issue using an OpenAI Conversation. This comment stores that Conversation's ID and can be safely ignored.
108 remaining items
jeffrey-graham commentedon Nov 7, 2026
melvin-bot commentedon Nov 7, 2026
melvin-bot commentedon Nov 8, 2026
Current assignee @mallenexpensify is eligible for the Awaiting Payment assigner, not assigning anyone new.
melvin-bot commentedon Nov 8, 2026
Payment Summary
Resolving PRs:
Upwork Job
BugZero Checklist (@mallenexpensify)
rojiphil commentedon Nov 9, 2026
Contributor+ 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.
No Offending PR as the work done here is an improvement of an existing feature.
[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: Not Required. The existing checklist is good enough to capture such issues.
[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
Precondition:
Test:
Do we agree 👍 or 👎
rojiphil commentedon Nov 9, 2026
@mallenexpensify C+ Checklist done.
Also, I think the compensation is $250 as this was implemented by a contributor and not by Melv.
laveshfonix commentedon Nov 9, 2026
@mallenexpensify thanks! The Upwork job link shows as a private listing for me, so here's my profile for the manual offer: https://www.upwork.com/freelancers/~01acccabce3645f78f
melvin-bot commentedon Nov 10, 2026
@mallenexpensify Still overdue 6 days?! Let's take care of this!
mallenexpensify commentedon Nov 11, 2026
Claude posting on behalf of Matt:
I'll pay these tomorrow, apologies for the delay
mallenexpensify commentedon Nov 11, 2026
Payment Summary
Contributor: @laveshfonix paid $250 via Upwork
Contributor+: @rojiphil due $250 via NewDot
@laveshfonix can you please accept the job below? Please reply here and tag me once you have.
https://www.upwork.com/freelancers/~01acccabce3645f78f
laveshfonix commentedon Nov 12, 2026
@mallenexpensify accepted, thanks!
mallenexpensify commentedon Nov 12, 2026
@laveshfonix paid, summary updated above. Thx.