feat(onboarding): allow public domain users to create Submit workspace#92255
feat(onboarding): allow public domain users to create Submit workspace#92255abzokhattab wants to merge 9 commits into
Conversation
d6fae94 to
28c20b5
Compare
When the SUBMIT_2026 beta is enabled, skip the Work Email step for public domain users so they start at the Purpose screen and can select the EMPLOYER intent to create a Submit workspace. Without the beta the existing flow is unchanged: public domain users are still routed to Work Email first.
ecce447 to
f098cb3
Compare
|
@hungvu193 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f098cb3d48
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
f098cb3 to
2e49852
Compare
2e49852 to
da73261
Compare
- Fix import order in useOnboardingFlow.ts (usePermissions after @src/ aliases) - Default canUseSubmit2026 = false in OnboardingFlow.ts destructuring to make intent explicit - Add comment in OnboardingModalNavigator explaining betas loading dependency - Add test for primary scenario: public domain INDIVIDUAL + canUseSubmit2026 bypasses work-email - Add getOnboardingStepCounter tests for Submit 2026 beta with/without Work Email prefix - Fix null → undefined in test params (OnyxEntry is T | undefined, not T | null | undefined)
|
@hungvu193 ready for review .. the failing error is unrelated |
…boarding-public-domain
5dadc48 to
2a54c88
Compare
|
Currently, the 3 step is:
However, while testing I can see the Screen.Recording.2026-06-02.at.21.33.35.mov |
OnboardingModalNavigator committed initialRouteName at mount before the betas Onyx key finished loading, so canUseSubmit2026 read false and public domain users were locked into the Work Email screen even with SUBMIT_2026 enabled. Gate rendering on betas loading alongside account.
|
looks like a race condition for the beta onyx .. i just fixed it ... please have alook @hungvu193 |
|
hmm still the same Screen.Recording.2026-06-03.at.11.18.28.mov |
|
@abzokhattab Can you prioritize this one? 😄 |
|
back on it |
Resolve getOnboardingStepCounterTest conflict by keeping Submit 2026 beta flow tests and main's updated public VSB flow expectations.
|
I have a product question: Currently, when a user signs up with a public email, the "add work email" modal appears first. and If they provide and validate a work email, onboarding completes immediately, which means the "join employer" step is never reached. Should we skip the "add work email" step if the submit beta is enabled, or keep it as is? @garrettmknight Screen.Recording.2026-06-08.at.13.30.54.mov |
|
PR is ready @hungvu193 given the discussion on slack we decided to keep the work email step as is and work on it on another ticket. |
The PR scope is only enabling Submit workspace creation when selecting EMPLOYER on the Purpose screen. Revert all changes that skipped or gated the Work Email step for public domain users with SUBMIT_2026 beta.
|
Well, after retesting, it looks like the issue got fixed on main in another PR ... rn i can create a submit workspace with the Gmail account Screen.Recording.2026-06-08.at.14.05.52.mov |
Explanation of Change
When the
SUBMIT_2026beta is enabled, public domain users can create a Submit workspace during onboarding by selecting "Submit expenses to my employer" on the Purpose screen.Fixed Issues
$ #87261
PROPOSAL:
Tests
SUBMIT_2026beta@gmail.comaddress and skip the Work Email stepOffline tests
QA Steps
SUBMIT_2026beta@gmail.com)SUBMIT_2026beta, repeat steps 2–5 — verify the Submit workspace is not auto-createdPR 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
Android: Native
Android: mWeb Chrome
iOS: Native
Screen.Recording.2026-06-01.at.20.37.49.mov
iOS: mWeb Safari
Screen.Recording.2026-06-01.at.20.39.21.mov
MacOS: Chrome / Safari
Screen.Recording.2026-06-01.at.19.17.47.mov