From a05cd88a5378e3894c42c2fb6c4e36ac860df573 Mon Sep 17 00:00:00 2001 From: Prateek Shourya Date: Mon, 1 Dec 2025 17:14:28 +0530 Subject: [PATCH] [WEB-5491] refactor: onboarding tour components (#8167) --- .../components/onboarding/tour/root.tsx | 16 ++++++++-------- .../components/onboarding/tour/sidebar.tsx | 5 +++-- apps/web/core/components/home/root.tsx | 7 +++---- .../web/core/components/onboarding/tour/index.ts | 1 - 4 files changed, 14 insertions(+), 15 deletions(-) rename apps/web/{core => ce}/components/onboarding/tour/root.tsx (93%) rename apps/web/{core => ce}/components/onboarding/tour/sidebar.tsx (94%) delete mode 100644 apps/web/core/components/onboarding/tour/index.ts diff --git a/apps/web/core/components/onboarding/tour/root.tsx b/apps/web/ce/components/onboarding/tour/root.tsx similarity index 93% rename from apps/web/core/components/onboarding/tour/root.tsx rename to apps/web/ce/components/onboarding/tour/root.tsx index 07db1afb5..f44cd5a91 100644 --- a/apps/web/core/components/onboarding/tour/root.tsx +++ b/apps/web/ce/components/onboarding/tour/root.tsx @@ -18,7 +18,7 @@ import { useUser } from "@/hooks/store/user"; // local imports import { TourSidebar } from "./sidebar"; -type Props = { +export type TOnboardingTourProps = { onComplete: () => void; }; @@ -28,7 +28,7 @@ const TOUR_STEPS: { key: TTourSteps; title: string; description: string; - image: any; + image: string; prevStep?: TTourSteps; nextStep?: TTourSteps; }[] = [ @@ -75,7 +75,7 @@ const TOUR_STEPS: { }, ]; -export const TourRoot = observer(function TourRoot(props: Props) { +export const TourRoot = observer(function TourRoot(props: TOnboardingTourProps) { const { onComplete } = props; // states const [step, setStep] = useState("welcome"); @@ -89,12 +89,12 @@ export const TourRoot = observer(function TourRoot(props: Props) { return ( <> {step === "welcome" ? ( -
+
-
- +
+
-
+

Welcome to Plane, {currentUser?.first_name} {currentUser?.last_name}

@@ -103,7 +103,7 @@ export const TourRoot = observer(function TourRoot(props: Props) { started by creating a project.

-
+