From 688d31e6b4ca6aeafd3cd3fe72180cfc0405cb93 Mon Sep 17 00:00:00 2001 From: Mike Fortman Date: Mon, 27 Oct 2025 16:02:53 -0500 Subject: [PATCH] Allow skip onboarding --- .../components/progress-bar.tsx | 26 ++++++++++++++++--- frontend/src/components/chat-renderer.tsx | 9 +++++++ 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/new-onboarding/components/progress-bar.tsx b/frontend/src/app/new-onboarding/components/progress-bar.tsx index 419a2ae4..ef16dc54 100644 --- a/frontend/src/app/new-onboarding/components/progress-bar.tsx +++ b/frontend/src/app/new-onboarding/components/progress-bar.tsx @@ -1,15 +1,20 @@ +import { ArrowRight } from 'lucide-react'; +import { Button } from '@/components/ui/button'; + interface ProgressBarProps { currentStep: number; totalSteps: number; + onSkip?: () => void; } -export function ProgressBar({ currentStep, totalSteps }: ProgressBarProps) { +export function ProgressBar({ currentStep, totalSteps, onSkip }: ProgressBarProps) { const progressPercentage = ((currentStep + 1) / totalSteps) * 100; return ( -
-
-
+
+
+
+
+
+ {currentStep > 0 && onSkip && ( + + )} +
); } diff --git a/frontend/src/components/chat-renderer.tsx b/frontend/src/components/chat-renderer.tsx index 9d6402e6..d20864a8 100644 --- a/frontend/src/components/chat-renderer.tsx +++ b/frontend/src/components/chat-renderer.tsx @@ -86,6 +86,14 @@ export function ChatRenderer({ } }; + const handleSkipOnboarding = () => { + // Skip onboarding by marking it as complete + if (typeof window !== "undefined") { + localStorage.removeItem(ONBOARDING_STEP_KEY); + } + setShowLayout(true); + }; + // List of paths with smaller max-width const smallWidthPaths = ["/settings/connector/new"]; const isSmallWidthPath = smallWidthPaths.includes(pathname); @@ -196,6 +204,7 @@ export function ChatRenderer({