feat: more accurate industry tracking

This commit is contained in:
Shivam Mishra
2024-02-29 16:58:50 +05:30
parent 4f43446237
commit 17a111f324
3 changed files with 71 additions and 12 deletions
@@ -94,7 +94,10 @@ import { ONBOARDING_STEP_NAMES } from 'dashboard/constants/globals';
import SubmitButton from 'dashboard/components/buttons/FormSubmitButton.vue';
import { timeZoneOptions } from 'dashboard/routes/dashboard/settings/inbox/helpers/businessHour.js';
import { getBrowserTimezone, getBrowserLocale } from 'v3/helpers/BrowserHelper';
import { findMatchingOption } from 'v3/helpers/OnboardingHelper';
import {
findMatchingOption,
findIndustryOptions,
} from 'v3/helpers/OnboardingHelper';
import alertMixin from 'shared/mixins/alertMixin';
import configMixin from 'shared/mixins/configMixin';
export default {
@@ -120,11 +123,12 @@ export default {
{ value: '1001+', label: 'Over 1000' },
],
industryOptions: [
{ value: 'information_technology', label: 'Information technology' },
{ value: 'finance', label: 'Finance' },
{ value: 'health_medicine', label: 'Health & Medicine' },
{ value: 'education', label: 'Education' },
{ value: 'other', label: 'Other' },
{ value: 'Information Technology', label: 'Information technology' },
{ value: 'Finance', label: 'Finance' },
{ value: 'Health & Medicine', label: 'Health & Medicine' },
{ value: 'Education', label: 'Education' },
{ value: 'E Commerce', label: 'E Commerce' },
{ value: 'Other', label: 'Other' },
],
};
},
@@ -227,11 +231,7 @@ export default {
this.accountAttributes;
this.companyName = companyName;
this.industry = findMatchingOption(
industry,
this.industryOptions,
'other'
);
this.industry = findIndustryOptions(industry);
this.companySize = companySize;
this.timezone = findMatchingOption(
timezone,