feat: onboarding for new users (#5629)
* wip * feat: add onboarding * feat: implement onboarding * Update indicator design * Update UI for onboarding dropdown * Changes to onboarding UI --------- Co-authored-by: Kamran Ahmed <kamranahmed.se@gmail.com>
This commit is contained in:
1 parent
67fbba4708
commit
f8cdd76fa9
12 files changed
+925
-325
No files matched your search
@@ -18,6 +18,9 @@ export const allowedProfileVisibility = ['public', 'private'] as const;
|
||||
export type AllowedProfileVisibility =
|
||||
(typeof allowedProfileVisibility)[number];
|
||||
|
||||
export const allowedOnboardingStatus = ['done', 'pending', 'ignored'] as const;
|
||||
export type AllowedOnboardingStatus = (typeof allowedOnboardingStatus)[number];
|
||||
|
||||
export interface UserDocument {
|
||||
_id?: string;
|
||||
name: string;
|
||||
@@ -56,6 +59,18 @@ export interface UserDocument {
|
||||
};
|
||||
resetPasswordCodeAt: string;
|
||||
verifiedAt: string;
|
||||
|
||||
// Onboarding fields
|
||||
onboardingStatus?: AllowedOnboardingStatus;
|
||||
onboarding?: {
|
||||
updateProgress: AllowedOnboardingStatus;
|
||||
publishProfile: AllowedOnboardingStatus;
|
||||
customRoadmap: AllowedOnboardingStatus;
|
||||
addFriends: AllowedOnboardingStatus;
|
||||
roadCard: AllowedOnboardingStatus;
|
||||
inviteTeam: AllowedOnboardingStatus;
|
||||
};
|
||||
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user