Repository navigation
Show employee size sub-selection (1-4, 5-10) for VSB qualifier users - #91748
Conversation
When users select the 1-9 employee bracket on the Web-Expensify landing page (VSB signup qualifier), instead of skipping the employee count step, route them to a filtered employees page showing only 1-4 and 5-10 options. Changes: - Stop auto-setting companySize to MICRO for VSB users - Route VSB users to EMPLOYEES page instead of ACCOUNTING - Filter company size options to only 1-4 and 5-10 for VSB - Add EMPLOYEES to VSB step counter sequence - Show back button on accounting page for VSB users - Hide back button on employees page for VSB users (first step) Co-authored-by: Neil Marcellini <neil-marcellini@users.noreply.github.com>
Co-authored-by: Neil Marcellini <neil-marcellini@users.noreply.github.com>
|
Fixed the failing checks. The tests in Both test files now pass locally (71 tests total). |
Co-authored-by: Neil Marcellini <neil-marcellini@users.noreply.github.com>
|
Fixed the failing ESLint check: removed the unused |
|
The two failing checks (ESLint + Jest) were already fixed in the latest commits:
ESLint is already passing on the latest run. Jest tests are still in progress and should pass with the updated expectations. |
Force VSB/SMB users back to the employees step when they resume without a valid company size, and surface an error on More Features instead of silently ignoring Continue. Co-authored-by: Cursor <cursoragent@cursor.com>
Private domain and workspaces flows still sent VSB users directly to accounting after the name step, skipping the new 1-4 / 5-10 selection. Co-authored-by: Cursor <cursoragent@cursor.com>
Navigation fixes in upstream onboarding pages already route VSB/SMB users through the employees step, so page-level redirects and error UI are unnecessary. Co-authored-by: Cursor <cursoragent@cursor.com>
Only redirect to the employees step when resuming at accounting or interested-features without a valid company size, or on a fresh start without accessible domain policies. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Neil Marcellini <neil-marcellini@users.noreply.github.com>
|
The TypeScript and ESLint failures were already fixed by commits after The iOS build failure was unrelated (CocoaPods CDN rate limiting — |
Replace nested redirect helpers with small named checks for company size need, fresh start, and steps past employees. Co-authored-by: Cursor <cursoragent@cursor.com>
Revert to main's simple initial path logic; VSB now routes to employees instead of accounting since company size is no longer auto-assigned. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Neil Marcellini <neil-marcellini@users.noreply.github.com>
Use the onboarding step counter instead of the VSB signup qualifier so users with a domain prefix still see the back button. Co-authored-by: Cursor <cursoragent@cursor.com>
…B users The test expected VSB skip to navigate to onboarding/accounting, but the PR intentionally changed this flow to navigate to onboarding/employees (matching the SMB behavior) for employee size sub-selection. Co-authored-by: Neil Marcellini <neil-marcellini@users.noreply.github.com>
…om/Expensify/App into claude-vsbEmployeeSizeSubselection Co-authored-by: Neil Marcellini <neil-marcellini@users.noreply.github.com>
|
⏱️ Ran out of time before I could finish. This usually means the task was too complex or I got stuck exploring. Please try again with a more specific request or post in #melvinbot-ai. |
Cover the VSB-only company size options and back button visibility when employees is or is not the first step in the onboarding flow. Co-authored-by: Cursor <cursoragent@cursor.com>
…DING directly Import OnboardingScreen from getOnboardingStepCounter instead of duplicating it, and remove the ONBOARDING alias from tests in favor of SCREENS.ONBOARDING. Co-authored-by: Cursor <cursoragent@cursor.com>
|
I analyzed the failing checks. Neither requires a code change — this PR's diff is correct as-is.
|
|
I analyzed the two failing checks. Neither requires a code change to this PR.
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
No action needed — this PR was already merged (2026-06-03 14:31 UTC) and all checks are currently passing. There are no failing or pending checks on the branch, so there's nothing to fix or push. If a check was red earlier, it has since gone green. Let me know if you intended a different PR. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.3.99-0 🚀
Bundle Size Analysis (Sentry): |
Help site review: no docs changes requiredI reviewed the changes in this PR against the help site files under Why: This PR changes the New Expensify onboarding/signup flow internals — it routes "1-9 employees" (VSB) signups through the company-size step with a filtered 1-4 / 5-10 sub-selection, adjusts the step counter and back-button behavior, and uses that selection for guide-assignment granularity. The help site does not document any of the surfaces this PR touches:
Since nothing in the published docs becomes inaccurate as a result of these changes, there is nothing to update. @neil-marcellini, please confirm you agree that no help site changes are required for this PR. If you think a specific article should be updated, let me know which one and I'll draft the changes. |
|
Deploy Blocker #92644 was identified to be related to this PR. |
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.3.99-9 🚀
|
| ); | ||
|
|
||
| const handleBackButtonPress = useCallback(() => { | ||
| const previousRoute = getPreviousOnboardingRoute(SCREENS.ONBOARDING.EMPLOYEES, onboardingFlowContext, route.params?.backTo); |
There was a problem hiding this comment.
handleBackButtonPress change caused this issue #93660.
For a private-domain user with accessible policies, getDomainPrefix() always returns [PERSONAL_DETAILS, PRIVATE_DOMAIN, WORKSPACES], so the VSB flow becomes six steps, with Employees at index 3.
Because of that, when navigating back from the Employees step, the flow incorrectly goes to WORKSPACES, which results in a blank page. The expected behavior is to navigate back to PRIVATE_DOMAIN when there are no joinable workspaces.
We fix that here #95001
Explanation of Change
When users select the "1-9 employees" option on the Web-Expensify landing page (which sets the
vsbsignup qualifier), the onboarding flow previously skipped the employee count step entirely and auto-assignedMICRO(1-10) as their company size. This meant we couldn't distinguish between 1-4 and 5-10 employee teams for guide assignment purposes.This PR changes the VSB flow so that instead of skipping the employee count step, users are shown a filtered employee size selection page with only two options: 1-4 and 5-10. This gives us the granularity needed for proper guide assignment (1-4 → Concierge, 5-10 → human Guide) without requiring any changes to the Web-Expensify landing page.
Changes:
companySizetoMICROfor VSB users; route them to the EMPLOYEES page instead of ACCOUNTINGisVsbvariableFixed Issues
$ https://github.com/Expensify/Expensify/issues/613539
Tests
2026-05-27_07-23-06.mp4
Offline tests
No offline-specific behavior changes — signup qualifiers are written during online signup and read from the locally-cached onboarding NVP afterwards.
QA Steps
Same as tests but on staging
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
The changes are platform independent. Please see the testing video above.
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari