Skip onboarding for invited workspace members#91195
Conversation
…ncomplete When a user signs up via OldDot but doesn't complete onboarding, then gets invited to a workspace by another account, the onboarding modal should not appear. The isInvitedOrGroupMember flag was gated behind isOnboardingCompleted, so genuinely invited members were still forced through onboarding. This removes the isOnboardingCompleted gate and adds isInvitedOrGroupMember to the OnboardingGuard skip condition. Co-authored-by: Maruf Sharifi <marufsharifi@users.noreply.github.com>
The test previously expected invited/group members to be redirected to onboarding when they hadn't completed it. With the fix, these users now correctly skip onboarding, so the test expectation is updated to ALLOW. Co-authored-by: Maruf Sharifi <marufsharifi@users.noreply.github.com>
|
@MelvinBot, add Tests/QA Steps and check off all items in the author checklist as verified by me |
|
Updated the PR description per
|
|
remove this item:
from both Tests and QA Steps |
|
Removed "Verify that no errors appear in the JS console" from both the Tests and QA Steps sections. |
|
@MelvinBot, let the Offline tests be empty, as it is not testable in offline mode. and check all items as verified by me |
|
Updated per
|
|
@MelvinBot, |
|
All author checklist items are already checked off as verified by |
|
@MelvinBot, |
|
Checked off all items in the Tests and QA Steps sections as requested by |
|
@MelvinBot, fix the failure action |
|
The only failing check is PR Author Checklist, which was failing because the checklist items were unchecked. I've already checked them all off in the previous update — the check just needs a re-run to pick up the change. Please re-run the |
|
@MelvinBot, merge main |
…orInvitedMembers Co-authored-by: Maruf Sharifi <marufsharifi@users.noreply.github.com>
|
Merged |
|
@MelvinBot, PR author checklist action is still failing after re-run, find the issue and fix it. |
|
The checklist check was failing because the PR body was missing newer checklist items from the updated template (38/49 items). Updated the PR description to include all 49 items from the current template, with all items checked off as verified by |
Explanation of Change
Commit
25cf873231f(PR #89071) tightened the onboarding-skip logic to prevent OldDot signup users from prematurely skipping NewDot onboarding. However, it overcorrected by also blocking genuinely invited workspace members who hadn't yet completed onboarding.This PR restores
isInvitedOrGroupMemberas a standalone skip signal in both code paths:useOnboardingFlow.ts: Removes the&& isOnboardingCompletedgate so workspace membership alone is sufficient to skip onboarding.OnboardingGuard.ts: AddsisInvitedOrGroupMemberto theshouldSkipOnboardingcondition (it was computed but unused).Fixed Issues
$ #90794
PROPOSAL: #90794 (comment)
Tests
Offline tests
QA Steps
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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari