From 8fd42b9a94c31a3e497c06a195ad8563f59ae9d8 Mon Sep 17 00:00:00 2001 From: Chad Curtis Date: Fri, 25 Jul 2025 17:11:06 +0000 Subject: [PATCH] more onboarding improvements --- src/components/onboarding/AISettingsStep.tsx | 52 -------------------- src/components/onboarding/ProjectStep.tsx | 30 +++++------ 2 files changed, 15 insertions(+), 67 deletions(-) diff --git a/src/components/onboarding/AISettingsStep.tsx b/src/components/onboarding/AISettingsStep.tsx index f36ab4be..c0438db3 100644 --- a/src/components/onboarding/AISettingsStep.tsx +++ b/src/components/onboarding/AISettingsStep.tsx @@ -22,32 +22,6 @@ export function AISettingsStep({ onNext, onPrevious, onSkip }: AISettingsStepPro onNext(); }; - const handleTestConnection = async () => { - setIsTesting(true); - try { - // Basic validation - in a real app, you'd test the API connection - if (!localSettings.apiKey.trim()) { - throw new Error('API key is required'); - } - if (!localSettings.baseUrl.trim()) { - throw new Error('Base URL is required'); - } - if (!localSettings.model.trim()) { - throw new Error('Model is required'); - } - - // Simulate API test - await new Promise(resolve => setTimeout(resolve, 1000)); - - // If we get here, save the settings - updateSettings(localSettings); - } catch (error) { - console.error('Failed to test connection:', error); - } finally { - setIsTesting(false); - } - }; - const isValid = localSettings.apiKey.trim() && localSettings.baseUrl.trim() && localSettings.model.trim(); return ( @@ -113,32 +87,6 @@ export function AISettingsStep({ onNext, onPrevious, onSkip }: AISettingsStepPro /> - - {isConfigured && ( -
- - Configured -
- )} - -
- -
diff --git a/src/components/onboarding/ProjectStep.tsx b/src/components/onboarding/ProjectStep.tsx index a08d1644..9de8cf22 100644 --- a/src/components/onboarding/ProjectStep.tsx +++ b/src/components/onboarding/ProjectStep.tsx @@ -70,7 +70,7 @@ export function ProjectStep({ onPrevious, onComplete, onProjectCreated }: Projec

Example prompts:

-