Skip to content

Commit 061d724

Browse files
committed
Remove signals step to improve conversion
1 parent 6551355 commit 061d724

5 files changed

Lines changed: 5 additions & 251 deletions

File tree

apps/code/src/renderer/features/onboarding/components/CliInstallStep.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,12 +338,12 @@ export function CliInstallStep({ onNext, onBack }: CliInstallStepProps) {
338338
</Button>
339339
{allReady ? (
340340
<Button size="3" onClick={onNext}>
341-
Continue
341+
Get started
342342
<ArrowRight size={16} weight="bold" />
343343
</Button>
344344
) : (
345345
<Button size="3" variant="outline" color="gray" onClick={onNext}>
346-
Skip for now
346+
Skip & get started
347347
<ArrowRight size={16} weight="bold" />
348348
</Button>
349349
)}

apps/code/src/renderer/features/onboarding/components/OnboardingFlow.tsx

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ import { AnimatePresence, LayoutGroup, motion } from "framer-motion";
1010
import { useHotkeys } from "react-hotkeys-hook";
1111

1212
import { useOnboardingFlow } from "../hooks/useOnboardingFlow";
13-
import { usePrefetchSignalData } from "../hooks/usePrefetchSignalData";
1413
import { CliInstallStep } from "./CliInstallStep";
1514
import { GitIntegrationStep } from "./GitIntegrationStep";
1615
import { InviteCodeStep } from "./InviteCodeStep";
1716
import { ProjectSelectStep } from "./ProjectSelectStep";
18-
import { SignalsStep } from "./SignalsStep";
1917
import { StepIndicator } from "./StepIndicator";
2018
import { 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>

apps/code/src/renderer/features/onboarding/components/SignalsStep.tsx

Lines changed: 0 additions & 158 deletions
This file was deleted.

apps/code/src/renderer/features/onboarding/hooks/usePrefetchSignalData.ts

Lines changed: 0 additions & 55 deletions
This file was deleted.

apps/code/src/renderer/features/onboarding/types.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ export type OnboardingStep =
33
| "project-select"
44
| "invite-code"
55
| "github"
6-
| "install-cli"
7-
| "signals";
6+
| "install-cli";
87

98
export const ONBOARDING_STEPS: OnboardingStep[] = [
109
"welcome",
1110
"project-select",
1211
"invite-code",
1312
"github",
1413
"install-cli",
15-
"signals",
1614
];

0 commit comments

Comments
 (0)