diff --git a/src/components/onboarding/AISettingsStep.tsx b/src/components/onboarding/AISettingsStep.tsx index e4e3521d..52330efc 100644 --- a/src/components/onboarding/AISettingsStep.tsx +++ b/src/components/onboarding/AISettingsStep.tsx @@ -24,72 +24,72 @@ export function AISettingsStep({ onNext, onPrevious, onSkip }: AISettingsStepPro const isValid = localSettings.apiKey.trim() && localSettings.baseUrl.trim() && localSettings.model.trim(); return ( -
-
-
- +
+
+
+
-

+

Configure AI Settings

-

+

Set up your AI provider to start building with AI assistance.

- - -
- - AI Provider + + +
+ + AI Provider
- + We recommend OpenRouter for easy setup
- -
+ +
- + setLocalSettings({ ...localSettings, apiKey: e.target.value })} - className="font-mono text-sm h-9" + className="font-mono text-xs sm:text-sm h-8 sm:h-9" /> -

+

Stored locally, never shared

- + setLocalSettings({ ...localSettings, baseUrl: e.target.value })} - className="text-sm h-9" + className="text-xs sm:text-sm h-8 sm:h-9" />
- + setLocalSettings({ ...localSettings, model: e.target.value })} - className="text-sm h-9" + className="text-xs sm:text-sm h-8 sm:h-9" />
-
+
diff --git a/src/components/onboarding/OnboardingDialog.tsx b/src/components/onboarding/OnboardingDialog.tsx index 997620b9..4f14f0ec 100644 --- a/src/components/onboarding/OnboardingDialog.tsx +++ b/src/components/onboarding/OnboardingDialog.tsx @@ -13,6 +13,7 @@ interface OnboardingDialogProps { currentStep: number; onNextStep: () => void; onPreviousStep: () => void; + initialPrompt?: string; } const STEPS = [ @@ -28,7 +29,8 @@ export function OnboardingDialog({ onComplete, currentStep: propCurrentStep, onNextStep, - onPreviousStep + onPreviousStep, + initialPrompt = '' }: OnboardingDialogProps) { const [localStep, setLocalStep] = useState(propCurrentStep); @@ -88,6 +90,7 @@ export function OnboardingDialog({ onPrevious={handlePrevious} onComplete={handleComplete} onProjectCreated={onProjectCreated} + initialPrompt={initialPrompt} /> ); default: @@ -97,25 +100,25 @@ export function OnboardingDialog({ return ( - -
+ +
Getting Started Onboarding Complete the onboarding process to get started with Shakespeare -
+
-

Getting Started

- - Step {currentStep + 1} of {STEPS.length} +

Getting Started

+ + {currentStep + 1} / {STEPS.length}
- +
-
+
{STEPS.map((step, index) => ( {step.title} @@ -124,7 +127,7 @@ export function OnboardingDialog({
-
+
{renderStep()}
diff --git a/src/components/onboarding/ProjectStep.tsx b/src/components/onboarding/ProjectStep.tsx index 9de8cf22..ae0d1f90 100644 --- a/src/components/onboarding/ProjectStep.tsx +++ b/src/components/onboarding/ProjectStep.tsx @@ -11,10 +11,11 @@ interface ProjectStepProps { onPrevious: () => void; onComplete: () => void; onProjectCreated?: (projectId: string) => void; + initialPrompt?: string; } -export function ProjectStep({ onPrevious, onComplete, onProjectCreated }: ProjectStepProps) { - const [prompt, setPrompt] = useState(''); +export function ProjectStep({ onPrevious, onComplete, onProjectCreated, initialPrompt = '' }: ProjectStepProps) { + const [prompt, setPrompt] = useState(initialPrompt); const [isCreating, setIsCreating] = useState(false); const projectsManager = useProjectsManager(); const navigate = useNavigate(); @@ -36,50 +37,50 @@ export function ProjectStep({ onPrevious, onComplete, onProjectCreated }: Projec }; return ( -
-
-
- +
+
+
+
-

+

Create Your First Project

-

+

Our AI will help you create it step by step.

- - -
- - Project Description + + +
+ + Project Description
- + Be as detailed as possible about what you want to build
- +