Skip to content

[Due for payment 2025-07-04] [$250] Login - Incorrect ND onboarding modals when selecting Manage company expenses (10+) option #63488

Closed

Description

@lanitochka17

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.1.59-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/6206964&group_by=cases:section_id&group_order=asc&group_id=229043
Issue reported by: Applause - Internal Team

Action Performed:

  1. Open a fresh incognito window
    2.Go to OD staging.expensify.com
    3.Select "Manage my company's expenses (10+)"
    4.Sign up with a account with the following format: [anything]@tstsg.com e.g: isagoicotest@tstsg.comt
    5.Click on "Get Started"

Expected Result:

The user is navigated to ND, the "What do you want to do today?" modal is skipped
After being redirected to ND, the user should see an onboarding modal to select the company size with ranges that start at 11

Actual Result:

After selecting the "Manage my company's expenses (10+)" option, the user is redirected to ND and the first onboarding which is displayed is "What do you want to do today?" instead of the onboarding modal to select the company size with ranges that start at 11

Workaround:

Unknown

Platforms:

Select the officially supported platforms where the issue was reproduced:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop
Platforms Tested: On which of our officially supported platforms was this issue tested:
  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Bug6850874_1749065937826.Recording__121__2_.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021932249541162156105
  • Upwork Job ID: 1932249541162156105
  • Last Price Increase: 2025-06-17
  • Automatic offers:
    • thelullabyy | Contributor | 107740395
Issue OwnerCurrent Issue Owner: @alexpensify

Activity

  1. added
    Daily
    Bug
    on Jun 4, 2025
  2. melvin-bot commented on Jun 4, 2025

    @melvin-bot

    Triggered auto assignment to @alexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. thelullabyy commented on Jun 5, 2025

    @thelullabyy
    Contributor

    🚨 Edited by proposal-police: This proposal was edited at 2025-06-05 04:43:24 UTC.

    Proposal

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

    After selecting the "Manage my company's expenses (10+)" option, the user is redirected to ND and the first onboarding which is displayed is "What do you want to do today?" instead of the onboarding modal to select the company size with ranges that start at 11

    What is the root cause of that problem?

    Skipping the email step will bring us to the onboarding purpose if the user is not routed to the app via VSB

    if (isVsb) {
    Navigation.navigate(ROUTES.ONBOARDING_ACCOUNTING.getRoute(), {forceReplace: true});
    return;
    }
    Navigation.navigate(ROUTES.ONBOARDING_PURPOSE.getRoute(), {forceReplace: true});
    }}

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

    We should navigate to the employee step if the user is routed to the app via SMB

    const isSmb = onboardingValues?.signupQualifier === CONST.ONBOARDING_SIGNUP_QUALIFIERS.SMB;
    if (isVsb) {
        Navigation.navigate(ROUTES.ONBOARDING_ACCOUNTING.getRoute(), {forceReplace: true});
        return;
    }
    
    if (isSmb) {
        Navigation.navigate(ROUTES.ONBOARDING_EMPLOYEES.getRoute(), {forceReplace: true});
        return;
    }
    
    Navigation.navigate(ROUTES.ONBOARDING_PURPOSE.getRoute(), {forceReplace: true});
    

    if (isVsb) {
    Navigation.navigate(ROUTES.ONBOARDING_ACCOUNTING.getRoute(), {forceReplace: true});
    return;
    }
    Navigation.navigate(ROUTES.ONBOARDING_PURPOSE.getRoute(), {forceReplace: true});
    }}

    We also need to update the same logic in the useEffect here

    if (isSmb) {
        Navigation.navigate(ROUTES.ONBOARDING_EMPLOYEES.getRoute(), {forceReplace: true});
        return;
    }
    

    Update the same for navigation logic on BaseOnboardingWorkEmailValidation

    select the company size with ranges that start at 11

    The company size ranges will be fixed here

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    We can update WorkEmailOnboarding test to verify the user navigate to the employees step if the user is routed app via smb

    What alternative solutions did you explore? (Optional)

    NA

    Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

  4. added
    External
    on Jun 10, 2025
  5. changed the title [-]Login - Incorrect ND onboarding modals when selecting Manage company expenses (10+) option[/-] [+][$250] Login - Incorrect ND onboarding modals when selecting Manage company expenses (10+) option[/+] on Jun 10, 2025
  6. melvin-bot commented on Jun 10, 2025

    @melvin-bot
  7. added
    Help Wanted
    on Jun 10, 2025
  8. melvin-bot commented on Jun 10, 2025

    @melvin-bot

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

  9. alexpensify commented on Jun 10, 2025

    @alexpensify
    Contributor

    @rojiphil - when you get a chance, can you please review this proposal to confirm if it will fix the issue? Thanks!

  10. thelullabyy commented on Jun 12, 2025

    @thelullabyy
    Contributor

    @rojiphil Any thoughts on my proposal?

  11. 24 remaining items

  12. added
    Awaiting Payment
    on Jun 27, 2025
  13. changed the title [-][$250] Login - Incorrect ND onboarding modals when selecting Manage company expenses (10+) option[/-] [+][Due for payment 2025-07-04] [$250] Login - Incorrect ND onboarding modals when selecting Manage company expenses (10+) option[/+] on Jun 27, 2025
  14. removed
    Reviewing
    on Jun 27, 2025
  15. melvin-bot commented on Jun 27, 2025

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  16. melvin-bot commented on Jun 27, 2025

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.71-11 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 2025-07-04. 🎊

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

  17. melvin-bot commented on Jun 27, 2025

    @melvin-bot

    @rojiphil @alexpensify @rojiphil 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]

  18. added
    Daily
    and removed
    Weekly
    on Jul 4, 2025
  19. alexpensify commented on Jul 4, 2025

    @alexpensify
    Contributor

    Payment Summary

    Contributor: @thelullabyy paid $250 via Upwork
    Contributor+: @rojiphil due $250 via NewDot-- please submit a request

  20. rojiphil commented on Nov 7, 2025

    @rojiphil
    Contributor

    paid

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions