Skip to content

[Due for payment 2026-11-09] [$175] Close the side panel after onboarding for all intents #104027

Closed

Description

@neil-marcellini

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 inboxAdminsBespoke and homePageNoRHP arms both keep the side panel closed. Accounts already assigned the retired rhpHomePage, rhpAdminsRoom or rhpConciergeDm arms 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:

  1. Track intents: land on Home with the side panel closed, on all screen sizes. Opening Concierge from Home still shows the Concierge DM.
  2. 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.
  3. Manage my team: stop opening the side panel for the retired rhpHomePage, rhpAdminsRoom and rhpConciergeDm values. Don't change the live inboxAdminsBespoke / homePageNoRHP experiment, tracked in https://github.com/Expensify/Expensify/issues/679256.
  4. 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.
  5. Add unit tests covering where each intent and variant lands and that the side panel stays closed.
Upwork Automation - Do Not Edit
Issue OwnerCurrent Issue Owner: @laveshfonix
Issue OwnerCurrent Issue Owner: @mallenexpensify

Activity

  1. added
    External
    Daily
    Help Wanted
    on Oct 14, 2026
  2. changed the title [-]Close the side panel after onboarding for all intents[/-] [+][$250] Close the side panel after onboarding for all intents[/+] on Oct 14, 2026
  3. melvin-bot commented on Oct 14, 2026

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil (External)

  4. melvin-bot commented on Oct 14, 2026

    @melvin-bot
  5. Dip-G-Git commented on Oct 14, 2026

    @Dip-G-Git
  6. changed the title [-][$250] Close the side panel after onboarding for all intents[/-] [+][$175] Close the side panel after onboarding for all intents[/+] on Oct 14, 2026
  7. melvin-bot commented on Oct 14, 2026

    @melvin-bot
  8. github-actions commented on Oct 14, 2026

    @github-actions
    Contributor

    ⚠️ @Dip-G-Git Thanks for your interest. To be considered for this job, please post a proposal following the proposal template (note the mandatory sections). Comments claiming the job without one are not reviewed.

  9. changed the title [-][$175] Close the side panel after onboarding for all intents[/-] [+][$175] Close the side panel after onboarding for non-manage-team intents[/+] on Oct 14, 2026
  10. wildan-m commented on Oct 14, 2026

    @wildan-m
    Contributor

    🚨 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 (trackExpensesWithConcierge variant). shouldOpenRHPVariant() unconditionally returns true for this variant, regardless of company size:

    if (variant === CONST.ONBOARDING_RHP_VARIANT.TRACK_EXPENSES_WITH_CONCIERGE) {
    return true;
    }

    so navigateAfterOnboarding() routes it into handleRHPVariantNavigation(), whose track branch navigates to Home and then calls SidePanelActions.openSidePanel(true):

    if (variant === CONST.ONBOARDING_RHP_VARIANT.TRACK_EXPENSES_WITH_CONCIERGE) {
    const shouldPreserveRevealedReport = isReportTopmostSplitNavigator();
    if (!shouldPreserveRevealedReport) {
    Navigation.navigate(ROUTES.HOME, navigationOptions);
    }
    SidePanelActions.openSidePanel(true);
    return;
    }

    On small screens, before that, navigateAfterOnboarding() has a dedicated branch that sends the user straight into the Concierge DM instead of Home:

    if (isSmallScreenWidth && variant === CONST.ONBOARDING_RHP_VARIANT.TRACK_EXPENSES_WITH_CONCIERGE) {
    Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(conciergeReportID), navigationOptions);
    return;
    }

    (The variant is assigned for Track intents in useAutoCreateTrackWorkspace:)

    let rhpVariant: OnboardingRHPVariant | undefined = isSidePanelReportSupported ? undefined : CONST.ONBOARDING_RHP_VARIANT.TRACK_EXPENSES_WITH_CONCIERGE;

    2. Employer / Submit workspace. navigateToSubmitWorkspaceAfterOnboarding() sets the variant to rhpAdminsRoom, navigates to Spend > Expenses, and then calls SidePanelActions.openSidePanel(!shouldUseNarrowLayout):

    function navigateToSubmitWorkspaceAfterOnboarding(policyID?: string, shouldUseNarrowLayout = false) {
    setDisableDismissOnEscape(false);
    if (!policyID) {
    Navigation.navigate(ROUTES.HOME);
    return;
    }
    setOnboardingRHPVariant(CONST.ONBOARDING_RHP_VARIANT.RHP_ADMINS_ROOM);
    Navigation.navigate(ROUTES.SEARCH_ROOT.getRoute({query: buildCannedSearchQuery({type: CONST.SEARCH.DATA_TYPES.EXPENSE}), searchKey: CONST.SEARCH.SEARCH_KEYS.EXPENSES}));
    SidePanelActions.openSidePanel(!shouldUseNarrowLayout);
    }

    It is called from both useAutoCreateSubmitWorkspace and BaseOnboardingWorkspaces (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 in navigateAfterOnboarding() and just navigates to Home (unless a report is already topmost) without opening the side panel:

    // The homePageNoRHP arm of the onboarding experiment lands on Home without opening the side panel, at every company size,
    // so it is handled before the variants that are limited to micro companies or that open the side panel.
    if (variant === CONST.ONBOARDING_RHP_VARIANT.HOME_PAGE_NO_RHP) {
    if (!isReportTopmostSplitNavigator()) {
    Navigation.navigate(ROUTES.HOME, navigationOptions);
    }
    return;
    }

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

    1. Track intents: in navigateAfterOnboarding(), handle trackExpensesWithConcierge together with homePageNoRHP in 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.
    2. Clean up the RHP variant helpers: remove the trackExpensesWithConcierge early-return in shouldOpenRHPVariant() and the corresponding branch in handleRHPVariantNavigation(), since that variant no longer reaches them. The micro-company rhpConciergeDm / rhpAdminsRoom / rhpHomePage logic is left exactly as is, so the Manage my team experiment is unaffected.
    3. Employer / Submit workspace: navigateToSubmitWorkspaceAfterOnboarding() already has a branch for a missing workspace ID that only navigates to Home, with no openSidePanel() call and no rhpAdminsRoom variant write. So the onboarding entry points stop passing the workspace ID to it: useAutoCreateSubmitWorkspace passes no ID when it is completing onboarding, and BaseOnboardingWorkspaces (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 the openSidePanel() call (and the variant write) from the helper while keeping the Expenses navigation.
    4. Unit tests: extend tests/unit/navigateAfterOnboardingTest.ts (running the web implementation of the RHP variant helpers, where the side panel exists) to assert that Track lands on ROUTES.HOME and 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 calls openSidePanel; and that the micro-company rhpHomePage / rhpAdminsRoom / rhpConciergeDm arms still open the side panel. Update tests/unit/hooks/useAutoCreateSubmitWorkspace.test.ts so 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 from tests/unit/components/SidePanel/RHPVariantTest.test.ts since that branch is removed. The new Track and Submit assertions fail on main and 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.

  11. github-actions commented on Oct 14, 2026

    @github-actions
    Contributor

    🤖 ProposalPolice™ is tracking duplicate proposals for this issue using an OpenAI Conversation. This comment stores that Conversation's ID and can be safely ignored.

  12. 108 remaining items

  13. jeffrey-graham commented on Nov 7, 2026

    @jeffrey-graham
  14. melvin-bot commented on Nov 7, 2026

    @melvin-bot
  15. added
    Awaiting Payment
    on Nov 8, 2026
  16. melvin-bot commented on Nov 8, 2026

    @melvin-bot

    Current assignee @mallenexpensify is eligible for the Awaiting Payment assigner, not assigning anyone new.

  17. melvin-bot commented on Nov 8, 2026

    @melvin-bot

    Payment Summary

    Resolving PRs:

    Upwork Job

    • Reviewer: @rojiphil owed $175 via NewDot
    • Assignee: @laveshfonix requires payment (Needs manual offer from BZ)

    BugZero Checklist (@mallenexpensify)

    • I have confirmed assignees, roles, and Upwork contracts look correct
    • I have paid out Upwork contracts / manual NewDot requests
    • [BugZero Assignee] I have created a GH issue for creating/updating the regression test once above steps have been agreed upon
  18. rojiphil commented on Nov 9, 2026

    @rojiphil
    Contributor

    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:

    1. Sign up with a new account and skip the work email step
    2. Select "Track expenses for my business", enter a name and press Continue
    3. Verify you land on Home and the side panel doesn't open. On small screens, verify you land on Home instead of the Concierge DM
    4. Open Concierge from the top bar and verify the side panel opens with the Concierge chat. On native, verify the Concierge DM opens
    5. Sign out, sign up with a new account, select "Submit expenses to my employer", enter a name and press Continue
    6. Verify you land on Spend > Expenses and the side panel doesn't open
    7. Sign out and repeat steps 1-2 with "Organize my personal spending" (pick any goal). Verify you land on Home and the side panel doesn't open
    8. Sign out, sign up with a new account, select "Manage my team's expenses" and finish the setup questions. Verify the side panel doesn't open. The landing page comes from the onboarding experiment and is unchanged
    9. Sign out and repeat steps 1-2 with "Something else". Verify the side panel doesn't open
    10. As the account from step 5, invite a new email from Workspaces > the workspace > Members > Invite member
    11. Sign out and sign in as the invited email. Verify onboarding is skipped and the side panel doesn't open
    12. Sign in to an already-onboarded account that has no workspace and paste https://dev.new.expensify.com:8082/onboarding?intent=submit into the browser's address bar. Don't tap it inside a chat: links opened while the app is running don't apply the intent (Add a one-click deeplink that signs the user in and creates a Submit workspace #98887)
    13. Verify a Submit workspace is created, you land on Spend > Expenses and the side panel doesn't open

    Do we agree 👍 or 👎

  19. rojiphil commented on Nov 9, 2026

    @rojiphil
    Contributor

    @mallenexpensify C+ Checklist done.
    Also, I think the compensation is $250 as this was implemented by a contributor and not by Melv.

  20. laveshfonix commented on Nov 9, 2026

    @laveshfonix
    Contributor

    @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

  21. melvin-bot commented on Nov 10, 2026

    @melvin-bot

    @mallenexpensify Still overdue 6 days?! Let's take care of this!

  22. mallenexpensify commented on Nov 11, 2026

    @mallenexpensify
    Contributor

    Claude posting on behalf of Matt:

    I'll pay these tomorrow, apologies for the delay

  23. mallenexpensify commented on Nov 11, 2026

    @mallenexpensify
    Contributor

    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

  24. laveshfonix commented on Nov 12, 2026

    @laveshfonix
    Contributor

    @mallenexpensify accepted, thanks!

  25. mallenexpensify commented on Nov 12, 2026

    @mallenexpensify
    Contributor

    @laveshfonix paid, summary updated above. Thx.

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

Metadata

Metadata

Labels

Awaiting PaymentDailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions