⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
feat: implement onboarding flow and update routing (#469)
Andrej6f7057b13fa8
diff --git a/apps/web/src/components/onboarding/onboarding-flow.tsx b/apps/web/src/components/onboarding/onboarding-flow.tsxnew file mode 100644index 000000000..f3cbf5b97--- /dev/null+++ b/apps/web/src/components/onboarding/onboarding-flow.tsx@@ -0,0 +1,209 @@+import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";+import { useQueryClient } from "@tanstack/react-query";+import { useNavigate } from "@tanstack/react-router";+import { AnimatePresence, motion } from "framer-motion";+import { CheckCircle2 } from "lucide-react";+import { useState } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod/v4";++import { Logo } from "@/components/common/logo";+import PageTitle from "@/components/page-title";+import { Button } from "@/components/ui/button";+import {+ Form,+ FormControl,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import useCreateWorkspace from "@/hooks/queries/workspace/use-create-workspace";+import { useUserPreferencesStore } from "@/store/user-preferences";++type OnboardingStep = "workspace" | "success";++export type WorkspaceFormValues = {+ name: string;+ description?: string;+};++const workspaceSchema = z.object({+ name: z.string().min(1, "Workspace name is required"),+ description: z.string().optional(),+});++const fadeTransition = {+ initial: { opacity: 0, y: 20 },+ animate: { opacity: 1, y: 0 },+ exit: { opacity: 0, y: -20 },+};++export function OnboardingFlow() {+ const [step, setStep] = useState<OnboardingStep>("workspace");+ const [createdWorkspaceName, setCreatedWorkspaceName] = useState("");+ const navigate = useNavigate();+ const queryClient = useQueryClient();+ const { setActiveWorkspaceId } = useUserPreferencesStore();+ const { mutateAsync: createWorkspace, isPending } = useCreateWorkspace();++ const form = useForm<WorkspaceFormValues>({+ resolver: standardSchemaResolver(workspaceSchema),+ defaultValues: {+ name: "",+ description: "",+ },+ });++ const onSubmit = async (data: WorkspaceFormValues) => {+ try {+ const workspace = await createWorkspace({+ name: data.name.trim(),+ description: data.description?.trim() || "",+ });++ await queryClient.invalidateQueries({ queryKey: ["workspaces"] });+ setActiveWorkspaceId(workspace.id);+ setCreatedWorkspaceName(data.name);+ toast.success("Workspace created successfully");++ setStep("success");++ // Navigate to workspace after showing success+ setTimeout(() => {+ navigate({+ to: "/dashboard/workspace/$workspaceId",+ params: { workspaceId: workspace.id },+ replace: true,+ });+ }, 1500);+ } catch (error) {+ toast.error(+ error instanceof Error ? error.message : "Failed to create workspace",+ );+ }+ };++ const renderWorkspaceStep = () => (+ <motion.div+ key="workspace"+ variants={fadeTransition}+ initial="initial"+ animate="animate"+ exit="exit"+ transition={{ duration: 0.3 }}+ className="w-full max-w-sm mx-auto"+ >+ <Logo className="mx-auto mb-6 w-full flex items-end justify-center" />++ <div className="bg-white/50 dark:bg-zinc-900/50 backdrop-blur-xl rounded-xl border border-zinc-200/50 dark:border-zinc-800/50 p-6 shadow-xl shadow-zinc-200/20 dark:shadow-zinc-950/20">+ <div className="text-center mb-6">+ <h1 className="text-xl font-bold text-zinc-900 dark:text-zinc-100 mb-2">+ Create workspace+ </h1>+ <p className="text-zinc-600 dark:text-zinc-400 text-sm">+ Set up your workspace to start managing projects+ </p>+ </div>++ <Form {...form}>+ <form onSubmit={form.handleSubmit(onSubmit)} className="space-y-3">+ <div className="space-y-3">+ <FormField+ control={form.control}+ name="name"+ render={({ field }) => (+ <FormItem>+ <FormLabel className="text-sm font-medium">+ Workspace name+ </FormLabel>+ <FormControl>+ <Input+ placeholder="e.g. Acme Inc, My Team"+ autoFocus+ {...field}+ />+ </FormControl>+ <FormMessage />+ </FormItem>+ )}+ />++ <FormField+ control={form.control}+ name="description"+ render={({ field }) => (+ <FormItem>+ <FormLabel className="text-sm font-medium text-zinc-600 dark:text-zinc-400">+ Description (optional)+ </FormLabel>+ <FormControl>+ <Input+ placeholder="What does your team work on?"+ {...field}+ />+ </FormControl>+ <FormMessage />+ </FormItem>+ )}+ />+ </div>++ <Button type="submit" disabled={isPending} className="w-full mt-4">+ {isPending ? "Creating..." : "Create workspace"}+ </Button>+ </form>+ </Form>+ </div>+ </motion.div>+ );++ const renderSuccessStep = () => (+ <motion.div+ key="success"+ variants={fadeTransition}+ initial="initial"+ animate="animate"+ exit="exit"+ transition={{ duration: 0.3 }}+ className="w-full max-w-sm mx-auto"+ >+ <Logo className="mx-auto mb-6 w-full flex items-end justify-center" />++ <div className="bg-white/50 dark:bg-zinc-900/50 backdrop-blur-xl rounded-xl border border-zinc-200/50 dark:border-zinc-800/50 p-6 shadow-xl shadow-zinc-200/20 dark:shadow-zinc-950/20">+ <div className="text-center space-y-4">+ <div className="w-12 h-12 bg-green-100 dark:bg-green-900/20 rounded-full flex items-center justify-center mx-auto">+ <CheckCircle2 className="h-6 w-6 text-green-600 dark:text-green-400" />+ </div>++ <div className="space-y-2">+ <h1 className="text-xl font-bold text-zinc-900 dark:text-zinc-100">+ Workspace created+ </h1>+ <p className="text-zinc-600 dark:text-zinc-400 text-sm">+ Taking you to <strong>{createdWorkspaceName}</strong>...+ </p>+ </div>++ <div className="w-6 h-6 mx-auto">+ <div className="animate-spin rounded-full h-6 w-6 border-2 border-zinc-200 dark:border-zinc-700 border-t-zinc-600 dark:border-t-zinc-300" />+ </div>+ </div>+ </div>+ </motion.div>+ );++ return (+ <>+ <PageTitle title="Create Workspace" />+ <div className="min-h-screen w-full bg-gradient-to-b from-zinc-100 to-white dark:from-zinc-900 dark:to-zinc-950 flex flex-col items-center justify-center p-4">+ <AnimatePresence mode="wait">+ {step === "workspace" && renderWorkspaceStep()}+ {step === "success" && renderSuccessStep()}+ </AnimatePresence>+ </div>+ </>+ );+}diff --git a/apps/web/src/routeTree.gen.ts b/apps/web/src/routeTree.gen.tsindex f14f57d1b..4d1fc1e17 100644--- a/apps/web/src/routeTree.gen.ts+++ b/apps/web/src/routeTree.gen.ts@@ -17,10 +17,10 @@ import { Route as PublicProjectProjectIdRouteImport } from './routes/public-projimport { Route as AuthSignUpRouteImport } from './routes/auth/sign-up'import { Route as AuthSignInRouteImport } from './routes/auth/sign-in'import { Route as LayoutAuthenticatedRouteImport } from './routes/_layout/_authenticated'+import { Route as LayoutAuthenticatedOnboardingRouteImport } from './routes/_layout/_authenticated/onboarding'import { Route as LayoutAuthenticatedDashboardRouteImport } from './routes/_layout/_authenticated/dashboard'import { Route as LayoutAuthenticatedDashboardIndexRouteImport } from './routes/_layout/_authenticated/dashboard/index'import { Route as LayoutAuthenticatedDashboardSettingsRouteImport } from './routes/_layout/_authenticated/dashboard/settings'-import { Route as LayoutAuthenticatedDashboardWorkspaceCreateRouteImport } from './routes/_layout/_authenticated/dashboard/workspace/create'import { Route as LayoutAuthenticatedDashboardWorkspaceWorkspaceIdRouteImport } from './routes/_layout/_authenticated/dashboard/workspace/$workspaceId'import { Route as LayoutAuthenticatedDashboardSettingsAppearanceRouteImport } from './routes/_layout/_authenticated/dashboard/settings/appearance'import { Route as LayoutAuthenticatedDashboardWorkspaceWorkspaceIdIndexRouteImport } from './routes/_layout/_authenticated/dashboard/workspace/$workspaceId/index'@@ -71,6 +71,12 @@ const LayoutAuthenticatedRoute = LayoutAuthenticatedRouteImport.update({id: '/_authenticated',getParentRoute: () => LayoutRoute,} as any)+const LayoutAuthenticatedOnboardingRoute =+ LayoutAuthenticatedOnboardingRouteImport.update({+ id: '/onboarding',+ path: '/onboarding',+ getParentRoute: () => LayoutAuthenticatedRoute,+ } as any)const LayoutAuthenticatedDashboardRoute =LayoutAuthenticatedDashboardRouteImport.update({id: '/dashboard',@@ -89,12 +95,6 @@ const LayoutAuthenticatedDashboardSettingsRoute =path: '/settings',getParentRoute: () => LayoutAuthenticatedDashboardRoute,} as any)-const LayoutAuthenticatedDashboardWorkspaceCreateRoute =- LayoutAuthenticatedDashboardWorkspaceCreateRouteImport.update({- id: '/workspace/create',- path: '/workspace/create',- getParentRoute: () => LayoutAuthenticatedDashboardRoute,- } as any)const LayoutAuthenticatedDashboardWorkspaceWorkspaceIdRoute =LayoutAuthenticatedDashboardWorkspaceWorkspaceIdRouteImport.update({id: '/workspace/$workspaceId',@@ -185,11 +185,11 @@ export interface FileRoutesByFullPath {'/auth/sign-up': typeof AuthSignUpRoute'/public-project/$projectId': typeof PublicProjectProjectIdRoute'/dashboard': typeof LayoutAuthenticatedDashboardRouteWithChildren+ '/onboarding': typeof LayoutAuthenticatedOnboardingRoute'/dashboard/settings': typeof LayoutAuthenticatedDashboardSettingsRouteWithChildren'/dashboard/': typeof LayoutAuthenticatedDashboardIndexRoute'/dashboard/settings/appearance': typeof LayoutAuthenticatedDashboardSettingsAppearanceRoute'/dashboard/workspace/$workspaceId': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdRouteWithChildren- '/dashboard/workspace/create': typeof LayoutAuthenticatedDashboardWorkspaceCreateRoute'/dashboard/workspace/$workspaceId/members': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdMembersRoute'/dashboard/workspace/$workspaceId/search': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdSearchRoute'/dashboard/workspace/$workspaceId/settings': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdSettingsRoute@@ -207,10 +207,10 @@ export interface FileRoutesByTo {'/auth/sign-in': typeof AuthSignInRoute'/auth/sign-up': typeof AuthSignUpRoute'/public-project/$projectId': typeof PublicProjectProjectIdRoute+ '/onboarding': typeof LayoutAuthenticatedOnboardingRoute'/dashboard/settings': typeof LayoutAuthenticatedDashboardSettingsRouteWithChildren'/dashboard': typeof LayoutAuthenticatedDashboardIndexRoute'/dashboard/settings/appearance': typeof LayoutAuthenticatedDashboardSettingsAppearanceRoute- '/dashboard/workspace/create': typeof LayoutAuthenticatedDashboardWorkspaceCreateRoute'/dashboard/workspace/$workspaceId/members': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdMembersRoute'/dashboard/workspace/$workspaceId/search': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdSearchRoute'/dashboard/workspace/$workspaceId/settings': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdSettingsRoute@@ -232,11 +232,11 @@ export interface FileRoutesById {'/auth/sign-up': typeof AuthSignUpRoute'/public-project/$projectId': typeof PublicProjectProjectIdRoute'/_layout/_authenticated/dashboard': typeof LayoutAuthenticatedDashboardRouteWithChildren+ '/_layout/_authenticated/onboarding': typeof LayoutAuthenticatedOnboardingRoute'/_layout/_authenticated/dashboard/settings': typeof LayoutAuthenticatedDashboardSettingsRouteWithChildren'/_layout/_authenticated/dashboard/': typeof LayoutAuthenticatedDashboardIndexRoute'/_layout/_authenticated/dashboard/settings/appearance': typeof LayoutAuthenticatedDashboardSettingsAppearanceRoute'/_layout/_authenticated/dashboard/workspace/$workspaceId': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdRouteWithChildren- '/_layout/_authenticated/dashboard/workspace/create': typeof LayoutAuthenticatedDashboardWorkspaceCreateRoute'/_layout/_authenticated/dashboard/workspace/$workspaceId/members': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdMembersRoute'/_layout/_authenticated/dashboard/workspace/$workspaceId/search': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdSearchRoute'/_layout/_authenticated/dashboard/workspace/$workspaceId/settings': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdSettingsRoute@@ -257,11 +257,11 @@ export interface FileRouteTypes {| '/auth/sign-up'| '/public-project/$projectId'| '/dashboard'+ | '/onboarding'| '/dashboard/settings'| '/dashboard/'| '/dashboard/settings/appearance'| '/dashboard/workspace/$workspaceId'- | '/dashboard/workspace/create'| '/dashboard/workspace/$workspaceId/members'| '/dashboard/workspace/$workspaceId/search'| '/dashboard/workspace/$workspaceId/settings'@@ -279,10 +279,10 @@ export interface FileRouteTypes {| '/auth/sign-in'| '/auth/sign-up'| '/public-project/$projectId'+ | '/onboarding'| '/dashboard/settings'| '/dashboard'| '/dashboard/settings/appearance'- | '/dashboard/workspace/create'| '/dashboard/workspace/$workspaceId/members'| '/dashboard/workspace/$workspaceId/search'| '/dashboard/workspace/$workspaceId/settings'@@ -303,11 +303,11 @@ export interface FileRouteTypes {| '/auth/sign-up'| '/public-project/$projectId'| '/_layout/_authenticated/dashboard'+ | '/_layout/_authenticated/onboarding'| '/_layout/_authenticated/dashboard/settings'| '/_layout/_authenticated/dashboard/'| '/_layout/_authenticated/dashboard/settings/appearance'| '/_layout/_authenticated/dashboard/workspace/$workspaceId'- | '/_layout/_authenticated/dashboard/workspace/create'| '/_layout/_authenticated/dashboard/workspace/$workspaceId/members'| '/_layout/_authenticated/dashboard/workspace/$workspaceId/search'| '/_layout/_authenticated/dashboard/workspace/$workspaceId/settings'@@ -385,6 +385,13 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof LayoutAuthenticatedRouteImportparentRoute: typeof LayoutRoute}+ '/_layout/_authenticated/onboarding': {+ id: '/_layout/_authenticated/onboarding'+ path: '/onboarding'+ fullPath: '/onboarding'+ preLoaderRoute: typeof LayoutAuthenticatedOnboardingRouteImport+ parentRoute: typeof LayoutAuthenticatedRoute+ }'/_layout/_authenticated/dashboard': {id: '/_layout/_authenticated/dashboard'path: '/dashboard'@@ -406,13 +413,6 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof LayoutAuthenticatedDashboardSettingsRouteImportparentRoute: typeof LayoutAuthenticatedDashboardRoute}- '/_layout/_authenticated/dashboard/workspace/create': {- id: '/_layout/_authenticated/dashboard/workspace/create'- path: '/workspace/create'- fullPath: '/dashboard/workspace/create'- preLoaderRoute: typeof LayoutAuthenticatedDashboardWorkspaceCreateRouteImport- parentRoute: typeof LayoutAuthenticatedDashboardRoute- }'/_layout/_authenticated/dashboard/workspace/$workspaceId': {id: '/_layout/_authenticated/dashboard/workspace/$workspaceId'path: '/workspace/$workspaceId'@@ -551,7 +551,6 @@ interface LayoutAuthenticatedDashboardRouteChildren {LayoutAuthenticatedDashboardSettingsRoute: typeof LayoutAuthenticatedDashboardSettingsRouteWithChildrenLayoutAuthenticatedDashboardIndexRoute: typeof LayoutAuthenticatedDashboardIndexRouteLayoutAuthenticatedDashboardWorkspaceWorkspaceIdRoute: typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdRouteWithChildren- LayoutAuthenticatedDashboardWorkspaceCreateRoute: typeof LayoutAuthenticatedDashboardWorkspaceCreateRoute}const LayoutAuthenticatedDashboardRouteChildren: LayoutAuthenticatedDashboardRouteChildren =@@ -562,8 +561,6 @@ const LayoutAuthenticatedDashboardRouteChildren: LayoutAuthenticatedDashboardRouLayoutAuthenticatedDashboardIndexRoute,LayoutAuthenticatedDashboardWorkspaceWorkspaceIdRoute:LayoutAuthenticatedDashboardWorkspaceWorkspaceIdRouteWithChildren,- LayoutAuthenticatedDashboardWorkspaceCreateRoute:- LayoutAuthenticatedDashboardWorkspaceCreateRoute,}const LayoutAuthenticatedDashboardRouteWithChildren =@@ -573,11 +570,13 @@ const LayoutAuthenticatedDashboardRouteWithChildren =interface LayoutAuthenticatedRouteChildren {LayoutAuthenticatedDashboardRoute: typeof LayoutAuthenticatedDashboardRouteWithChildren+ LayoutAuthenticatedOnboardingRoute: typeof LayoutAuthenticatedOnboardingRoute}const LayoutAuthenticatedRouteChildren: LayoutAuthenticatedRouteChildren = {LayoutAuthenticatedDashboardRoute:LayoutAuthenticatedDashboardRouteWithChildren,+ LayoutAuthenticatedOnboardingRoute: LayoutAuthenticatedOnboardingRoute,}const LayoutAuthenticatedRouteWithChildren =diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/index.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/index.tsxindex 1e91c2df9..294f07667 100644--- a/apps/web/src/routes/_layout/_authenticated/dashboard/index.tsx+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/index.tsx@@ -32,6 +32,6 @@ export const Route = createFileRoute("/_layout/_authenticated/dashboard/")({});}- throw redirect({ to: "/dashboard/workspace/create" });+ throw redirect({ to: "/onboarding" });},});diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/create.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/create.tsxdeleted file mode 100644index eb1633070..000000000--- a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/create.tsx+++ /dev/null@@ -1,140 +0,0 @@-import { useQueryClient } from "@tanstack/react-query";-import { createFileRoute, useNavigate } from "@tanstack/react-router";-import { Building2 } from "lucide-react";-import { useEffect, useRef, useState } from "react";-import { toast } from "sonner";--import PageTitle from "@/components/page-title";-import { Button } from "@/components/ui/button";-import { Card, CardContent } from "@/components/ui/card";-import { Input } from "@/components/ui/input";-import useCreateWorkspace from "@/hooks/queries/workspace/use-create-workspace";-import { useUserPreferencesStore } from "@/store/user-preferences";--export const Route = createFileRoute(- "/_layout/_authenticated/dashboard/workspace/create",-)({- component: RouteComponent,-});--function RouteComponent() {- const [name, setName] = useState("");- const [description, setDescription] = useState("");- const inputRef = useRef<HTMLInputElement>(null);- const queryClient = useQueryClient();- const navigate = useNavigate();- const { setActiveWorkspaceId } = useUserPreferencesStore();- const { mutateAsync, isPending } = useCreateWorkspace();-- useEffect(() => {- if (inputRef.current) {- setTimeout(() => {- inputRef.current?.focus();- }, 100);- }- }, []);-- const handleSubmit = async (e: React.FormEvent) => {- e.preventDefault();- if (!name.trim()) return;-- try {- const createdWorkspace = await mutateAsync({ name, description });- toast.success("Workspace created successfully");- await queryClient.invalidateQueries({ queryKey: ["workspaces"] });-- setActiveWorkspaceId(createdWorkspace.id);- navigate({- to: "/dashboard/workspace/$workspaceId",- params: {- workspaceId: createdWorkspace.id,- },- replace: true,- });- } catch (error) {- toast.error(- error instanceof Error ? error.message : "Failed to create workspace",- );- }- };-- return (- <>- <PageTitle title="Create Workspace" />- <div className="min-h-screen w-full bg-zinc-50 dark:bg-zinc-900 flex items-center justify-center p-4 overflow-y-auto">- <div className="w-full max-w-md">- <Card className="border-zinc-200 dark:border-zinc-700 bg-white dark:bg-zinc-800 shadow-sm">- <CardContent className="p-8">- <div className="text-center mb-8">- <div className="flex justify-center mb-4">- <div className="w-12 h-12 bg-zinc-100 dark:bg-zinc-700 rounded-lg flex items-center justify-center">- <Building2 className="h-6 w-6 text-zinc-600 dark:text-zinc-400" />- </div>- </div>-- <h1 className="text-2xl font-semibold text-zinc-900 dark:text-white mb-2">- Create a new workspace- </h1>- <p className="text-zinc-600 dark:text-zinc-400 text-sm">- Workspaces are shared environments where teams can work on- projects, cycles and issues.- </p>- </div>-- <form onSubmit={handleSubmit} className="space-y-6">- <div className="space-y-4">- <div>- <label- htmlFor="workspace-name"- className="block text-sm font-medium text-zinc-700 dark:text-zinc-300 mb-2"- >- Workspace Name- </label>- <Input- ref={inputRef}- id="workspace-name"- value={name}- onChange={(e) => setName(e.target.value)}- placeholder="Enter workspace name"- className="h-12 text-lg font-medium border-zinc-300 dark:border-zinc-600 focus:border-indigo-500 dark:focus:border-indigo-400 focus:ring-indigo-500 dark:focus:ring-indigo-400"- required- />- {!name.trim() && (- <p className="text-red-500 text-sm mt-1">Required</p>- )}- </div>-- <div>- <label- htmlFor="workspace-description"- className="block text-sm font-medium text-zinc-700 dark:text-zinc-300 mb-2"- >- Description (optional)- </label>- <Input- id="workspace-description"- value={description}- onChange={(e) => setDescription(e.target.value)}- placeholder="Add a description for your workspace"- className="h-10 border-zinc-300 dark:border-zinc-600 focus:border-indigo-500 dark:focus:border-indigo-400 focus:ring-indigo-500 dark:focus:ring-indigo-400"- />- </div>- </div>-- <div className="pt-4">- <Button- type="submit"- disabled={!name.trim() || isPending}- className="w-full h-12 bg-indigo-600 hover:bg-indigo-500 text-white font-medium disabled:opacity-50 disabled:cursor-not-allowed"- >- {isPending ? "Creating..." : "Create workspace"}- </Button>- </div>- </form>- </CardContent>- </Card>- </div>- </div>- </>- );-}diff --git a/apps/web/src/routes/_layout/_authenticated/onboarding.tsx b/apps/web/src/routes/_layout/_authenticated/onboarding.tsxnew file mode 100644index 000000000..b4f56759e--- /dev/null+++ b/apps/web/src/routes/_layout/_authenticated/onboarding.tsx@@ -0,0 +1,6 @@+import { OnboardingFlow } from "@/components/onboarding/onboarding-flow";+import { createFileRoute } from "@tanstack/react-router";++export const Route = createFileRoute("/_layout/_authenticated/onboarding")({+ component: OnboardingFlow,+});