rebase fix

This commit is contained in:
Mike Fortman 2025-10-23 08:52:29 -05:00
parent 29398f6a1a
commit 7bd338076b

View file

@ -132,59 +132,19 @@ export function OnboardingContent({
</OnboardingStep> </OnboardingStep>
{/* Step 4 */} {/* Step 4 */}
<OnboardingStep
isVisible={currentStep >= 2}
isCompleted={currentStep > 2}
text="Step 2: Connect your model"
>
<div className="space-y-4">
<p className="text-muted-foreground">
Choose and connect your preferred AI model provider.
</p>
<button
type="button"
onClick={handleStepComplete}
className="px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90"
>
Continue
</button>
</div>
</OnboardingStep>
<OnboardingStep <OnboardingStep
isVisible={currentStep >= 3} isVisible={currentStep >= 3}
isCompleted={currentStep > 3} isCompleted={currentStep > 3}
text="Step 3: You're all set!" text="Step 3: You're all set!"
> >
<div className="space-y-4"> <div className="space-y-4">
<p className="text-muted-foreground"> <button
Upload a starter document to begin building your knowledge base type="button"
or jump straight into a conversation. onClick={handleStepComplete}
</p> className="px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90"
<div className="flex flex-col sm:flex-row gap-2"> >
<button Go to Chat
type="button" </button>
onClick={handleUploadClick}
disabled={isUploading}
className="px-4 py-2 border border-primary text-primary rounded-lg hover:bg-primary/10 disabled:cursor-not-allowed disabled:opacity-70"
>
{isUploading ? "Uploading..." : "Upload a Document"}
</button>
<button
type="button"
onClick={handleStepComplete}
className="px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90"
>
Go to Chat
</button>
</div>
<input
ref={fileInputRef}
type="file"
onChange={handleFileChange}
className="hidden"
accept=".pdf,.doc,.docx,.txt,.md,.rtf,.odt"
/>
</div> </div>
</OnboardingStep> </OnboardingStep>
</div> </div>