91cb011ded
* CodeInput. verify-email page * middleware * Loading toast * Countdown only for registration * Improve middleware * Fix middleware breaking auth flow * Remove old notifications * Remove old onboarding. New segmentation * Remove skip button * Block verify email when verified * useUserEmails composable. Cancel addition * Move user emails queries * Fix fragments etc * redirect updates * HeaderWithEmptyPage * Check env before enforcing * Join workspace * Updates * Fix console warnings on login * Fix register console warnings * Working cache updates * Verify secondary email * Force onboarding off * EMAIL WIP * useIsJustRegistered state * Improve isRequired * Uneeded change * Improved slots * Updates from CR * CR comments * Only show message if forced * Update onboarding middleware * Update loading bar * ref > computed to fix onboarding * Resend tooltip. Better errors * Add other to form. * Email changes * Updates to emails * Remove force email FF * Remove FF's * Hide header on embed * Update graphql.ts * Re-add FF * Update graphql.ts * GQL Fragments * Fix build
67 lines
2.3 KiB
TypeScript
67 lines
2.3 KiB
TypeScript
export enum OnboardingRole {
|
|
ComputationalDesign = 'computational-design',
|
|
BIM = 'bim',
|
|
ArchitecturePlanning = 'architecture-planning',
|
|
EngineeringAEC = 'engineering-aec',
|
|
EngineeringSoftware = 'engineering-software',
|
|
Education = 'education',
|
|
Management = 'management',
|
|
Other = 'other'
|
|
}
|
|
|
|
export enum OnboardingPlan {
|
|
Exploring = 'exploring',
|
|
DataExchange = 'data-exchange',
|
|
Analytics = 'analytics',
|
|
Collaboration = 'collaboration',
|
|
DataWarehouse = 'data-warehouse',
|
|
Development = 'development',
|
|
Other = 'other'
|
|
}
|
|
|
|
export enum OnboardingSource {
|
|
SocialMedia = 'social-media',
|
|
Search = 'internet-search',
|
|
Referral = 'friend-or-colleague',
|
|
Event = 'event-conference',
|
|
Education = 'university-course',
|
|
Other = 'other'
|
|
}
|
|
|
|
export const RoleTitleMap: Record<OnboardingRole, string> = {
|
|
[OnboardingRole.ComputationalDesign]: 'Computational Design',
|
|
[OnboardingRole.BIM]: 'Building Information Modelling (BIM)',
|
|
[OnboardingRole.ArchitecturePlanning]: 'Architecture & Planning',
|
|
[OnboardingRole.EngineeringAEC]: 'Engineering (Structural, MEP, Civil, etc)',
|
|
[OnboardingRole.EngineeringSoftware]: 'Engineering (Software)',
|
|
[OnboardingRole.Education]: 'Education',
|
|
[OnboardingRole.Management]: 'Management & Leadership',
|
|
[OnboardingRole.Other]: 'Other'
|
|
}
|
|
|
|
export const PlanTitleMap: Record<OnboardingPlan, string> = {
|
|
[OnboardingPlan.Exploring]: 'Just checking things out',
|
|
[OnboardingPlan.DataExchange]: 'Exchange data between applications',
|
|
[OnboardingPlan.Analytics]:
|
|
'Data analytics, visualisation and reporting (eg PowerBI)',
|
|
[OnboardingPlan.Collaboration]: 'Collaborate with my team and share 3D models online',
|
|
[OnboardingPlan.DataWarehouse]: 'Data warehouse and common data environment (CDE)',
|
|
[OnboardingPlan.Development]: 'Develop custom functionalities and apps',
|
|
[OnboardingPlan.Other]: 'Other'
|
|
}
|
|
|
|
export const SourceTitleMap: Record<OnboardingSource, string> = {
|
|
[OnboardingSource.SocialMedia]: 'Social Media',
|
|
[OnboardingSource.Search]: 'Internet search',
|
|
[OnboardingSource.Referral]: 'Friend or colleague',
|
|
[OnboardingSource.Event]: 'Event or conference',
|
|
[OnboardingSource.Education]: 'University or course',
|
|
[OnboardingSource.Other]: 'Other'
|
|
}
|
|
|
|
export type OnboardingState = {
|
|
role?: OnboardingRole
|
|
plans?: OnboardingPlan[]
|
|
source?: OnboardingSource
|
|
}
|