@@ -10,12 +10,10 @@ import { AnimatePresence, LayoutGroup, motion } from "framer-motion";
1010import { useHotkeys } from "react-hotkeys-hook" ;
1111
1212import { useOnboardingFlow } from "../hooks/useOnboardingFlow" ;
13- import { usePrefetchSignalData } from "../hooks/usePrefetchSignalData" ;
1413import { CliInstallStep } from "./CliInstallStep" ;
1514import { GitIntegrationStep } from "./GitIntegrationStep" ;
1615import { InviteCodeStep } from "./InviteCodeStep" ;
1716import { ProjectSelectStep } from "./ProjectSelectStep" ;
18- import { SignalsStep } from "./SignalsStep" ;
1917import { StepIndicator } from "./StepIndicator" ;
2018import { WelcomeScreen } from "./WelcomeScreen" ;
2119
@@ -40,34 +38,20 @@ export function OnboardingFlow() {
4038 const completeOnboarding = useOnboardingStore (
4139 ( state ) => state . completeOnboarding ,
4240 ) ;
43- const completeSetup = useOnboardingStore ( ( state ) => state . completeSetup ) ;
44- const hasCompletedSetup = useOnboardingStore (
45- ( state ) => state . hasCompletedSetup ,
46- ) ;
4741 const resetOnboarding = useOnboardingStore ( ( state ) => state . resetOnboarding ) ;
48- const navigateToSetup = useNavigationStore ( ( state ) => state . navigateToSetup ) ;
4942 const navigateToTaskInput = useNavigationStore (
5043 ( state ) => state . navigateToTaskInput ,
5144 ) ;
5245 const logoutMutation = useLogoutMutation ( ) ;
5346 const isAuthenticated = useAuthStateValue (
5447 ( state ) => state . status === "authenticated" ,
5548 ) ;
56- usePrefetchSignalData ( ) ;
5749
5850 useHotkeys ( "right" , next , { enableOnFormTags : false } , [ next ] ) ;
5951 useHotkeys ( "left" , back , { enableOnFormTags : false } , [ back ] ) ;
6052
6153 const handleComplete = ( ) => {
6254 completeOnboarding ( ) ;
63- if ( ! hasCompletedSetup ) {
64- navigateToSetup ( ) ;
65- }
66- } ;
67-
68- const handleSkip = ( ) => {
69- completeOnboarding ( ) ;
70- completeSetup ( ) ;
7155 navigateToTaskInput ( ) ;
7256 } ;
7357
@@ -93,7 +77,7 @@ export function OnboardingFlow() {
9377 size = "1"
9478 variant = "ghost"
9579 color = "gray"
96- onClick = { handleSkip }
80+ onClick = { handleComplete }
9781 className = "opacity-50"
9882 >
9983 < ArrowRight size = { 14 } weight = "bold" />
@@ -185,22 +169,7 @@ export function OnboardingFlow() {
185169 transition = { { duration : 0.3 } }
186170 className = "min-h-0 w-full flex-1"
187171 >
188- < CliInstallStep onNext = { next } onBack = { back } />
189- </ motion . div >
190- ) }
191-
192- { currentStep === "signals" && (
193- < motion . div
194- key = "signals"
195- custom = { direction }
196- initial = "enter"
197- animate = "center"
198- exit = "exit"
199- variants = { stepVariants }
200- transition = { { duration : 0.3 } }
201- className = "min-h-0 w-full flex-1"
202- >
203- < SignalsStep onNext = { handleComplete } onBack = { back } />
172+ < CliInstallStep onNext = { handleComplete } onBack = { back } />
204173 </ motion . div >
205174 ) }
206175 </ AnimatePresence >
0 commit comments