App icon indicating copy to clipboard operation
App copied to clipboard

[$175] Web - Onboarding - Concierge RHP doesn't open after landing on the Home page

Open applause-bot[bot] opened this issue 3 weeks ago • 9 comments

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: v9.5.35-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://test-management.browserstack.com/projects/2219752/folder/13176677/test-cases/41236545 or https://test-management.browserstack.com/projects/2219752/folder/13176677/test-cases/41237663 Email or phone of affected tester (no customers): N/A Issue reported by: Applause Internal Team Bug source: Regression TC Execution Device used: Windows 11 / Chrome App Component: Other

Action Performed:

Precondition:

  • Enter cookie setup lc-debug: 1, lc-qa:1 or lc-qa:2, and refresh the page
  1. Create a new user (Without +)
  2. Select the purpose "Track expenses for my business." or "Organize my personal spending"
  3. Enter a valid name and click "Continue."

Expected Result:

The Home page loads with the Concierge RHP open, displaying the Welcome to Expensify message and the three onboarding tasks, Close the RHP

Actual Result:

Concierge RHP doesn't open after landing on the Home page

Workaround:

Unknown

Platforms:

  • [ ] Android: App
  • [ ] Android: mWeb Chrome
  • [ ] iOS: App
  • [ ] iOS: mWeb Safari
  • [ ] iOS: mWeb Chrome
  • [x] Windows: Chrome
  • [x] MacOS: Chrome Safari

Screenshots/Videos

https://github.com/user-attachments/assets/feff9873-e8b2-45b9-8c55-930488d05ddf

View all open jobs on GitHub

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

Upwork Automation - Do Not Edit

applause-bot[bot] avatar Nov 10 '26 07:11 applause-bot[bot]

While Applause doesn't embed attachments for this bug, here are the links for quick view: https://platform.applause.com/services/links/v1/external/d2c8bedee26d43c989f60cbc112535c42bb01c4b0d565b6d1d25b2b2bf65d03a

applause-bot[bot] avatar Nov 10 '26 07:11 applause-bot[bot]

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

melvin-bot[bot] avatar Nov 10 '26 07:11 melvin-bot[bot]

Job added to Upwork: https://www.upwork.com/jobs/~022120053123829689477

melvin-bot[bot] avatar Nov 10 '26 07:11 melvin-bot[bot]

Proposal

What is the root cause of that problem?

The reported expected result is outdated. Both “Track expenses for my business” and “Organize my personal spending” should now land on Home without automatically opening Concierge.

This was intentional in Close the side panel after onboarding for all intents, implemented by the onboarding side-panel change, and deployed to production in v9.5.27-2, before the reported v9.5.35-0.

Supporting evidence and verification limits

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

No App code change is warranted for the reported behavior.

Update BrowserStack cases 41236545 and 41237663 to expect Home with Concierge closed. Separately verify that opening Concierge manually works. Recommend closing this report as expected behavior.

What alternative solutions did you explore? (Optional)

Restoring automatic Concierge opening would contradict the approved onboarding behavior.


Next Steps for Contributor+ team: To accept: Update the test expectations and close this report as expected behavior; no implementation PR is needed. To refine: @MelvinBot <your feedback> To reject: Explain why the closed-panel requirement does not apply here.


view run

MelvinBot avatar Nov 10 '26 07:11 MelvinBot

Proposal

Please re-state the problem that we are trying to solve in this issue.

When a new user completes onboarding on Web by choosing "Track expenses for my business." or "Organize my personal spending", entering their name, and clicking Continue, they land on Home with the Concierge RHP closed instead of automatically popping open.

What is the root cause of that problem?

This reported behavior is not a bug; it is the deliberate and approved product specification implemented in PR #104916 ("fix: keep the side panel closed after onboarding for every intent", merged October 30, 2026, closing issue #104027).

Prior to PR #104916, completing onboarding automatically opened the Concierge RHP, causing a conflicting onboarding experience where users saw both the "Getting started" section on Home and an onboarding chat in the side panel simultaneously.

PR #104916 deliberately suppressed side panel opening across onboarding intents:

  1. In src/hooks/useAutoCreateTrackWorkspace.ts, selecting "Track expenses for my business" or "Organize my personal spending" sets rhpVariant = CONST.ONBOARDING_RHP_VARIANT.TRACK_EXPENSES_WITH_CONCIERGE and passes {variantOverride: rhpVariant} to navigateAfterOnboardingWithMicrotaskQueue.
  2. In src/libs/navigateAfterOnboarding.ts (lines 132–149):
    // Track users and the homePageNoRHP arm of the onboarding experiment land on Home without the side panel, at every company size
    // and screen size, because Home's Getting started section is their onboarding. This runs before shouldOpenRHPVariant, which
    // returns false on native even though native Track users also have the Track variant.
    if (variant === CONST.ONBOARDING_RHP_VARIANT.HOME_PAGE_NO_RHP || variant === CONST.ONBOARDING_RHP_VARIANT.TRACK_EXPENSES_WITH_CONCIERGE) {
        if (!isReportTopmostSplitNavigator()) {
            Navigation.navigate(ROUTES.HOME, navigationOptions);
        }
        return;
    }
    
    The code explicitly navigates to ROUTES.HOME and exits early, intentionally avoiding opening the side panel.
  3. In tests/unit/navigateAfterOnboardingTest.ts (lines 365–380), dedicated unit tests explicitly enforce this behavior:
    it.each([false, true])('should land Track users on Home without opening the side panel (small screen: %s)', async (isSmallScreenWidth) => {
        expect(navigate).toHaveBeenCalledWith(ROUTES.HOME, undefined);
        expect(openSidePanel).not.toHaveBeenCalled();
        expect((await getOnyxValue(ONYXKEYS.NVP_SIDE_PANEL))?.open).toBeFalsy();
    });
    
  4. The Applause QA regression test cases (41236545 & 41237663) were written prior to PR #104916 and have not yet been updated in BrowserStack Test Management to reflect the updated product requirement.

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

Recommended Solution (Expected Behavior): No application code changes are required. This issue should be closed as Expected Behavior / Not a Bug (NAB), and BrowserStack test cases 41236545 and 41237663 should be updated to state that landing on Home with the side panel closed is the expected result.

Alternative (If Product explicitly desires to reopen the Concierge RHP on Web for Track users): In src/libs/navigateAfterOnboarding.ts, remove the early return for CONST.ONBOARDING_RHP_VARIANT.TRACK_EXPENSES_WITH_CONCIERGE and update shouldOpenRHPVariant to allow opening the side panel on Web for Track intent users.

What alternative solutions did you explore? (Optional)

  • Checked the lc-debug / lc-qa cookies: These are strictly Applause / LiveChat environment routing cookies and do not affect client navigation.
  • Checked asynchronous state in BaseOnboardingPersonalDetails.tsx: autoCreateTrackWorkspace resolves cleanly and passes the Track variant deterministically.

Tests

  1. Clear browser cookies and storage.
  2. Sign up with a new account.
  3. Select "Track expenses for my business." or "Organize my personal spending".
  4. Enter a name and click Continue.
  5. Verify that the user lands on the Home page with the Getting Started checklist, and the Concierge RHP remains closed (as intended per PR #104916).

Contributor details

Your Expensify account email: [email protected] Upwork Profile Link: https://www.upwork.com/freelancers/~0131dae36abcf59374

kevinjosh10 avatar Nov 10 '26 07:11 kevinjosh10

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

melvin-bot[bot] avatar Nov 10 '26 07:11 melvin-bot[bot]

Contributor details Your Expensify account email: [email protected] Upwork Profile Link: https://www.upwork.com/freelancers/~013d295f05a578824b

Proposal

Please re-state the problem that we are trying to solve in this issue.

When a new user completes onboarding on Web by selecting the purpose "Track expenses for my business." or "Organize my personal spending", entering their name, and clicking "Continue", they land on the Home page with the Concierge RHP closed, rather than having the Concierge RHP automatically open with the "Welcome to Expensify" message.

What is the root cause of that problem?

The behavior reported as a bug is the intended, verified, and approved product behavior intentionally introduced in PR #104916 ("fix: keep the side panel closed after onboarding for every intent", merged October 30, 2026, closing issue #104027).

Prior to PR #104916, onboarding routes automatically popped open the side panel / Concierge RHP, which resulted in users being onboarded in two conflicting locations simultaneously: the "Getting started" section on Home and a chat in the side panel.

PR #104916 deliberately suppressed automatic side-panel opening across all onboarding flows:

  1. In src/hooks/useAutoCreateTrackWorkspace.ts, selecting "Track expenses for my business" or "Organize my personal spending" invokes autoCreateTrackWorkspace(...), which sets rhpVariant = CONST.ONBOARDING_RHP_VARIANT.TRACK_EXPENSES_WITH_CONCIERGE and passes {variantOverride: rhpVariant} to navigateAfterOnboardingWithMicrotaskQueue(...).
  2. In src/libs/navigateAfterOnboarding.ts (lines 132–149):
    // Track users and the homePageNoRHP arm of the onboarding experiment land on Home without the side panel, at every company size
    // and screen size, because Home's Getting started section is their onboarding. This runs before shouldOpenRHPVariant, which
    // returns false on native even though native Track users also have the Track variant.
    if (variant === CONST.ONBOARDING_RHP_VARIANT.HOME_PAGE_NO_RHP || variant === CONST.ONBOARDING_RHP_VARIANT.TRACK_EXPENSES_WITH_CONCIERGE) {
        if (!isReportTopmostSplitNavigator()) {
            Navigation.navigate(ROUTES.HOME, navigationOptions);
        }
        return;
    }
    
    The function navigates directly to ROUTES.HOME and returns immediately without invoking shouldOpenRHPVariant or handleRHPVariantNavigation.
  3. In tests/unit/navigateAfterOnboardingTest.ts (lines 365–380), dedicated unit tests explicitly assert that Track users land on Home with the side panel closed on both small and wide screens:
    it.each([false, true])('should land Track users on Home without opening the side panel (small screen: %s)', async (isSmallScreenWidth) => {
        // Then they land on Home on every screen size, and neither the Concierge DM nor the side panel shows a second onboarding chat
        expect(navigate).toHaveBeenCalledWith(ROUTES.HOME, undefined);
        expect(navigate).not.toHaveBeenCalledWith(ROUTES.REPORT_WITH_ID.getRoute(REPORT_ID), undefined);
        expect(openSidePanel).not.toHaveBeenCalled();
        expect((await getOnyxValue(ONYXKEYS.NVP_SIDE_PANEL))?.open).toBeFalsy();
    });
    
  4. The Applause QA tester filed this issue against BrowserStack regression test cases 41236545 and 41237663. Those test case descriptions were created before PR #104916 was merged and have not yet been updated to reflect the new approved product specification.

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

Primary Solution (Recommended): No application code changes should be made. Close this issue as Expected Behavior / Not a Bug and update BrowserStack regression test cases 41236545 and 41237663 so that their expected result matches the approved specification:

  • Expected Result: After completing onboarding, the user lands on the Home page with the side panel / Concierge RHP closed, displaying the Home screen and the Getting Started onboarding tasks.

Alternative Solution (Only if product deliberately desires to revert PR #104916 and re-open the Concierge RHP on Web for Track users): In src/libs/navigateAfterOnboarding.ts: Remove the early return for CONST.ONBOARDING_RHP_VARIANT.TRACK_EXPENSES_WITH_CONCIERGE so that navigation reaches shouldOpenRHPVariant(variantOverride). In src/components/SidePanel/RHPVariantTest/index.ts, update handleRHPVariantNavigation to call SidePanel.openSidePanel(conciergeReportID) when the variant is TRACK_EXPENSES_WITH_CONCIERGE.


What alternative solutions did you explore? (Optional)

  • Investigated lc-debug: 1, lc-qa: 1/2 cookie precondition: Checked if the cookie introduced an unintended branch in onboarding. The cookie is strictly an Applause / LiveChat routing cookie used for QA environment assignment and has no effect on frontend navigation branching.
  • Investigated asynchronous Onyx hydration in BaseOnboardingPersonalDetails.tsx: Verified that autoCreateTrackWorkspace correctly executes through finally, passes variantOverride: CONST.ONBOARDING_RHP_VARIANT.TRACK_EXPENSES_WITH_CONCIERGE, and deterministically navigates to Home with the side panel closed.

What automated tests can you add to prevent this from re-occurring?

Existing unit tests in tests/unit/navigateAfterOnboardingTest.ts already comprehensively enforce this behavior:

  • should land Track users on Home without opening the side panel (small screen: false)
  • should land Track users on Home without opening the side panel (small screen: true) Updating the external BrowserStack test case definitions (41236545 & 41237663) is the preventative action needed to stop QA testers from repeatedly reporting this intentional behavior.

— submitted with Antigravity on the contributor's behalf

HindsightWise avatar Nov 10 '26 07:11 HindsightWise

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

melvin-bot[bot] avatar Nov 10 '26 07:11 melvin-bot[bot]

Proposal

Please re-state the problem that we are trying to solve in this issue.

On Web, during onboarding, the Concierge RHP (Right Hand Panel) does not automatically open after landing on the Home page.

What is the root cause of that problem?

In src/libs/Navigation/AppNavigator/index.tsx and onboarding navigation handlers: When the user finishes the onboarding flow and navigates to the Home route (ROUTES.HOME), the route transition dismisses the modal stack. The hook or action triggering Concierge opening relies on Navigation.isNavigationReady() which fires before the home layout is fully mounted, causing the navigation action to open Concierge to be dropped or treated as a duplicate navigation event.

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

  1. In src/libs/actions/Onboarding.ts / onboarding completion effect:
    • Use InteractionManager.runAfterInteractions or ensure Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(conciergeReportID)) is executed after the home layout transition completes.
  2. In src/libs/Navigation/Navigation.ts:
    • Ensure queued route navigation during post-onboarding redirect correctly pushes the Concierge report into the central navigator state.

What alternative solutions did you explore? (Optional)

Using a hardcoded setTimeout(500), which is flaky on slower devices.

TassioSales avatar Nov 11 '26 13:11 TassioSales