diff --git a/auto-claude-ui/src/renderer/components/onboarding/CompletionStep.tsx b/auto-claude-ui/src/renderer/components/onboarding/CompletionStep.tsx new file mode 100644 index 00000000..b288ea70 --- /dev/null +++ b/auto-claude-ui/src/renderer/components/onboarding/CompletionStep.tsx @@ -0,0 +1,165 @@ +import { + CheckCircle2, + Rocket, + FileText, + Settings, + BookOpen, + ArrowRight +} from 'lucide-react'; +import { Button } from '../ui/button'; +import { Card, CardContent } from '../ui/card'; + +interface CompletionStepProps { + onFinish: () => void; + onOpenTaskCreator?: () => void; + onOpenSettings?: () => void; +} + +interface NextStepCardProps { + icon: React.ReactNode; + title: string; + description: string; + action?: () => void; + actionLabel?: string; +} + +function NextStepCard({ icon, title, description, action, actionLabel }: NextStepCardProps) { + return ( + + +
+
+ {icon} +
+
+

{title}

+

{description}

+ {action && actionLabel && ( + + )} +
+
+
+
+ ); +} + +/** + * Completion step component for the onboarding wizard. + * Displays a success message with suggestions for next steps + * and a prominent "Finish" button to complete the wizard. + */ +export function CompletionStep({ + onFinish, + onOpenTaskCreator, + onOpenSettings +}: CompletionStepProps) { + const nextSteps = [ + { + icon: , + title: 'Create a Task', + description: 'Start by creating your first task to see Auto Claude in action.', + action: onOpenTaskCreator, + actionLabel: 'Open Task Creator' + }, + { + icon: , + title: 'Customize Settings', + description: 'Fine-tune your preferences, configure integrations, or re-run this wizard.', + action: onOpenSettings, + actionLabel: 'Open Settings' + }, + { + icon: , + title: 'Explore Documentation', + description: 'Learn more about advanced features, best practices, and troubleshooting.' + } + ]; + + return ( +
+
+ {/* Success Hero */} +
+
+
+
+ +
+
+ +
+
+
+

+ You're All Set! +

+

+ Auto Claude is ready to help you build amazing software +

+
+ + {/* Completion message */} + + +
+ +
+

+ Setup Complete +

+

+ Your environment is configured and ready. You can start creating tasks + immediately or explore the application at your own pace. +

+
+
+
+
+ + {/* Next Steps Section */} +
+
+ + What's Next? +
+
+ {nextSteps.map((step, index) => ( + + ))} +
+
+ + {/* Finish Button */} +
+ +

+ You can always re-run this wizard from Settings → Application +

+
+
+
+ ); +}