From 80c987f3836f26c8affaf48e8bd94941e8b0de1e Mon Sep 17 00:00:00 2001 From: Aarnav Tale Date: Wed, 2 Apr 2025 13:26:58 -0400 Subject: [PATCH] feat: implement onboarding for non-registered users --- app/components/Header.tsx | 3 +- app/components/Options.tsx | 78 ++++++++ app/layouts/dashboard.tsx | 1 + app/layouts/shell.tsx | 74 ++++++- app/root.tsx | 8 +- app/routes.ts | 1 + app/routes/users/onboarding.tsx | 341 ++++++++++++++++++++++++++++++++ app/server/web/sessions.ts | 17 +- package.json | 1 + pnpm-lock.yaml | 12 ++ 10 files changed, 522 insertions(+), 14 deletions(-) create mode 100644 app/components/Options.tsx create mode 100644 app/routes/users/onboarding.tsx diff --git a/app/components/Header.tsx b/app/components/Header.tsx index 1288e9a..79b1f7c 100644 --- a/app/components/Header.tsx +++ b/app/components/Header.tsx @@ -16,6 +16,7 @@ import cn from '~/utils/cn'; interface Props { configAvailable: boolean; uiAccess: boolean; + onboarding: boolean; user?: AuthSession['user']; } @@ -136,7 +137,7 @@ export default function Header(data: Props) { ) : undefined} - {data.uiAccess ? ( + {data.uiAccess && !data.onboarding ? (