-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOLD for payment 2024-11-21] [$250] Skip onboarding screen with company size if signupQualifier is VSB #51750
Comments
Triggered auto assignment to @greg-schroeder ( |
Job added to Upwork: https://www.upwork.com/jobs/~021851663004588841867 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani ( |
Current assignee @greg-schroeder is eligible for the Bug assigner, not assigning anyone new. |
ProposalPlease re-state the problem that we are trying to solve in this issue.if user selected company size in the OD, we are still showing the company size selecting modal in the onboarding flow What is the root cause of that problem?improvement What changes do you think we should make in order to solve the problem?change this:
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Skip onboarding screen with company size if signupQualifier is VSB What is the root cause of that problem?This is an improvement What changes do you think we should make in order to solve the problem?If it's vsb, we should return the onboarding accounting route and set the
OPTIONAL: We can move the logic creating the WS to the accounting page if What alternative solutions did you explore? (Optional) |
Edited by proposal-police: This proposal was edited at 2024-10-30 18:22:10 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Skip onboarding screen with company size if signupQualifier is VSB What is the root cause of that problem?Feature request What changes do you think we should make in order to solve the problem?We need to update the code below here to: if (isVsb) {
Onyx.set(ONYXKEYS.ONBOARDING_PURPOSE_SELECTED, CONST.ONBOARDING_CHOICES.MANAGE_TEAM);
Onyx.set(ONYXKEYS.ONBOARDING_COMPANY_SIZE, CONST.ONBOARDING_COMPANY_SIZE.MICRO);
if (!onboardingPolicyID) {
const {adminsChatReportID, policyID} = Policy.createWorkspace(undefined, true, '', Policy.generatePolicyID(), CONST.ONBOARDING_CHOICES.MANAGE_TEAM);
Welcome.setOnboardingAdminsChatReportID(adminsChatReportID);
Welcome.setOnboardingPolicyID(policyID);
}
return `/${ROUTES.ONBOARDING_ACCOUNTING.route}`;
} This will set the company size and also create the workspace. Note that this change is not enough, we should also hide the back button on the accounting page if we have already selected this as the user shouldn't be able to change the employee count if she is the VSB, so here: // we can improve this condition during PR phase as well
const isVsbOnboarding = Array.isArray(onboardingValues) ? false : onboardingValues?.signupQualifier === CONST.ONBOARDING_SIGNUP_QUALIFIERS.VSB;
<HeaderWithBackButton
shouldShowBackButton={isVsbOnboarding} What alternative solutions did you explore? (Optional)Note that we cannot use if (isVsb) {
Onyx.set(ONYXKEYS.ONBOARDING_PURPOSE_SELECTED, CONST.ONBOARDING_CHOICES.MANAGE_TEAM);
Onyx.set(ONYXKEYS.ONBOARDING_COMPANY_SIZE, CONST.ONBOARDING_COMPANY_SIZE.MICRO);
if (!onboardingPolicyID) {
const {adminsChatReportID, policyID} = Policy.createWorkspace(undefined, true, '', Policy.generatePolicyID(), CONST.ONBOARDING_CHOICES.MANAGE_TEAM);
Onyx.set(ONYXKEYS.ONBOARDING_ADMINS_CHAT_REPORT_ID, adminsChatReportID ?? null);
Onyx.set(ONYXKEYS.ONBOARDING_POLICY_ID, policyID ?? null);
}
return `/${ROUTES.ONBOARDING_ACCOUNTING.route}`;
}
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Skip onboarding screen with company size if signupQualifier is VSB What is the root cause of that problem?improvement What changes do you think we should make in order to solve the problem?we need to change the code here: App/src/libs/actions/Welcome/OnboardingFlow.ts Lines 54 to 61 in 1adb6c6
and then remove the employee selection from here: App/src/libs/Navigation/AppNavigator/Navigators/OnboardingModalNavigator.tsx Lines 55 to 58 in 47b8525
What alternative solutions did you explore? (Optional) |
📣 @mzdev0! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.The current onboarding flow for users with What is the root cause of that problem?The onboarding flow does not bypass the company size selection screen for What changes do you think we should make in order to solve the problem?If
The updated code block from lines 58 to 61 should look like this: if (isVsb) {
Onyx.set(ONYXKEYS.ONBOARDING_PURPOSE_SELECTED, CONST.ONBOARDING_CHOICES.MANAGE_TEAM);
Welcome.setOnboardingCompanySize(CONST.ONBOARDING_COMPANY_SIZE.MICRO);
if (!onboardingPolicyID) {
const {adminsChatReportID, policyID} = Policy.createWorkspace(
undefined,
true,
'',
Policy.generatePolicyID(),
CONST.ONBOARDING_CHOICES.MANAGE_TEAM
);
Welcome.setOnboardingAdminsChatReportID(adminsChatReportID);
Welcome.setOnboardingPolicyID(policyID);
}
return `/${ROUTES.ONBOARDING_ACCOUNTING.route}`;
} What alternative solutions did you explore? (Optional) |
@carlosmiceli 'Help Wanted' label was removed here—I assume this was a mistake and that we want this issue fixed by an external contributor? |
@D-01576 How does your proposal differ from the ones above #51750 (comment) and #51750 (comment)? |
@mzdev0 We cannot remove the page entirely, as we still need it for users who aren’t coming from OD |
@Shahidullah-Muffakir Thanks for the proposal! You’ve suggested to update the company size here, but you should have also included the workspace creation aspect as well. |
@twilight2294 I feel that this is a thing that can be done in the PR and would have been caught when testing, so I feel that @nkdengineer Proposal is sufficient here |
We can go with @nkdengineer’s proposal here. 🎀 👀 🎀 C+ reviewed |
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@mallenexpensify I'd like your input here, because while @twilight2294's proposal wasn't selected, he did help us realize that the Back button should be hidden (and I brought it up to the team in Slack thanks to his suggestion here). I'm thinking that there should be either some compensation for helping us pick that up, or once I create an issue for it (waiting for confirmation that I should), maybe we can give prioritize his proposal for that issue (assuming it works)? |
Ok, scratch that Matt, we've decided not to hide the back button so there won't be any extra work/value there. |
@nkdengineer @carlosmiceli - I want to confirm that we're actually auto selecting 1-10 in the |
Yup! We're setting that value as well. |
Review is ongoing for linked PR |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.61-3 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 2024-11-21. 🎊 For reference, here are some details about the assignees on this issue:
|
@jayeshmangwani @greg-schroeder @jayeshmangwani 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] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test Proposal
Do we agree 👍 or 👎 |
Payment summary: Contributor: @nkdengineer - Upwork Regression test filed: https://github.com/Expensify/Expensify/issues/446445 |
$250 approved for @jayeshmangwani |
When signing up as a company between 1-9 employees, the user is redirected to New Expensify and is welcomed by the onboarding flow. However the first thing we ask them after they open new expensify, is how big a company they want to set up. This is redundant and makes for a bad first impression.
Let's select 1-10 employees by default for signups with the 'vsb' signnpQualifier NVP and start the onboarding flow in the accounting software section. Let's also make sure that whatever logic is triggered by selecting 1-10 also occurs (before displaying the onboarding modal) for these signups.
Select this:
Skip this screen (but keep the choice logic):
This should be the first screen they see in the modal:
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @greg-schroederThe text was updated successfully, but these errors were encountered: