Skip to content

Commit e3be8d4

Browse files
committed
Remove redundant org selection onboarding step
1 parent afae9c5 commit e3be8d4

5 files changed

Lines changed: 0 additions & 332 deletions

File tree

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import { useOnboardingFlow } from "../hooks/useOnboardingFlow";
1818
import { usePrefetchSignalData } from "../hooks/usePrefetchSignalData";
1919
import { CliInstallStep } from "./CliInstallStep";
2020
import { GitIntegrationStep } from "./GitIntegrationStep";
21-
import { OrgStep } from "./OrgStep";
2221
import { ProjectSelectStep } from "./ProjectSelectStep";
2322
import { SignalsStep } from "./SignalsStep";
2423
import { StepIndicator } from "./StepIndicator";
@@ -144,21 +143,6 @@ export function OnboardingFlow() {
144143
</motion.div>
145144
)}
146145

147-
{currentStep === "org" && (
148-
<motion.div
149-
key="org"
150-
custom={direction}
151-
initial="enter"
152-
animate="center"
153-
exit="exit"
154-
variants={stepVariants}
155-
transition={{ duration: 0.3 }}
156-
style={{ width: "100%", flex: 1, minHeight: 0 }}
157-
>
158-
<OrgStep onNext={next} onBack={back} />
159-
</motion.div>
160-
)}
161-
162146
{currentStep === "github" && (
163147
<motion.div
164148
key="github"

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

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

apps/code/src/renderer/features/onboarding/stores/onboardingStore.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ interface OnboardingStoreState {
1010
hasCompletedOnboarding: boolean;
1111
hasCompletedSetup: boolean;
1212
isConnectingGithub: boolean;
13-
selectedOrgId: string | null;
1413
selectedProjectId: number | null;
1514
}
1615

@@ -21,7 +20,6 @@ interface OnboardingStoreActions {
2120
resetOnboarding: () => void;
2221
resetSelections: () => void;
2322
setConnectingGithub: (isConnecting: boolean) => void;
24-
selectOrg: (orgId: string) => void;
2523
selectProjectId: (projectId: number | null) => void;
2624
}
2725

@@ -32,7 +30,6 @@ const initialState: OnboardingStoreState = {
3230
hasCompletedOnboarding: false,
3331
hasCompletedSetup: false,
3432
isConnectingGithub: false,
35-
selectedOrgId: null,
3633
selectedProjectId: null,
3734
};
3835

@@ -52,11 +49,9 @@ export const useOnboardingStore = create<OnboardingStore>()(
5249
set({
5350
currentStep: "welcome",
5451
isConnectingGithub: false,
55-
selectedOrgId: null,
5652
selectedProjectId: null,
5753
}),
5854
setConnectingGithub: (isConnectingGithub) => set({ isConnectingGithub }),
59-
selectOrg: (orgId) => set({ selectedOrgId: orgId }),
6055
selectProjectId: (selectedProjectId) => set({ selectedProjectId }),
6156
}),
6257
{
@@ -65,7 +60,6 @@ export const useOnboardingStore = create<OnboardingStore>()(
6560
currentStep: state.currentStep,
6661
hasCompletedOnboarding: state.hasCompletedOnboarding,
6762
hasCompletedSetup: state.hasCompletedSetup,
68-
selectedOrgId: state.selectedOrgId,
6963
selectedProjectId: state.selectedProjectId,
7064
}),
7165
},
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export type OnboardingStep =
22
| "welcome"
33
| "project-select"
4-
| "org"
54
| "github"
65
| "install-cli"
76
| "signals";
@@ -10,7 +9,6 @@ export const ONBOARDING_STEPS: OnboardingStep[] = [
109
"welcome",
1110
"project-select",
1211
"github",
13-
"org",
1412
"install-cli",
1513
"signals",
1614
];

apps/code/src/renderer/hooks/useOrganizations.ts

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

0 commit comments

Comments
 (0)