diff --git a/apps/desktop/src/renderer/src/pages/onboarding/components/permissions-step.tsx b/apps/desktop/src/renderer/src/pages/onboarding/components/permissions-step.tsx index c17ee9dd..e9832b00 100644 --- a/apps/desktop/src/renderer/src/pages/onboarding/components/permissions-step.tsx +++ b/apps/desktop/src/renderer/src/pages/onboarding/components/permissions-step.tsx @@ -42,7 +42,7 @@ export default function PermissionsStep({ onNext }: PermissionsStepProps) { const [agreed, setAgreed] = useState(false) return ( -
+
{/* Header */}
diff --git a/apps/desktop/src/renderer/src/pages/onboarding/components/try-it-step.tsx b/apps/desktop/src/renderer/src/pages/onboarding/components/try-it-step.tsx index e6d43b69..4435991a 100644 --- a/apps/desktop/src/renderer/src/pages/onboarding/components/try-it-step.tsx +++ b/apps/desktop/src/renderer/src/pages/onboarding/components/try-it-step.tsx @@ -1,27 +1,34 @@ +import { useNavigate } from 'react-router-dom' import { Button } from '@multica/ui/components/ui/button' -import { Loading } from '@multica/ui/components/ui/loading' -import { ChatView } from '@multica/ui/components/chat-view' +import { Separator } from '@multica/ui/components/ui/separator' import { HugeiconsIcon } from '@hugeicons/react' -import { ArrowLeft02Icon } from '@hugeicons/core-free-icons' -import { SamplePrompt } from '../../../components/onboarding/sample-prompt' +import { + ArrowLeft02Icon, + ArrowRight01Icon, + Search01Icon, + FolderOpenIcon, + CommandLineIcon, +} from '@hugeicons/core-free-icons' import { StepDots } from './step-dots' -import { useLocalChat } from '../../../hooks/use-local-chat' -const samplePrompts = [ +const tryPrompts = [ { - title: 'Latest AI news', - prompt: - "Search the web for today's top AI news and give me a 3-bullet summary with sources.", + icon: Search01Icon, + title: 'Search the web', + description: "Get today's AI news", + prompt: "Search the web for today's top AI news and give me a 3-bullet summary with sources.", }, { - title: 'Analyze this project', - prompt: - 'Look at the files in my current directory and give me a brief summary of what this project is about.', + icon: FolderOpenIcon, + title: 'Read your files', + description: 'Summarize this directory', + prompt: 'Look at the files in my current directory and give me a brief summary of what this project is about.', }, { - title: 'Quick task', - prompt: - 'Write a one-liner shell command that shows my system info (OS, CPU cores, memory) and run it.', + icon: CommandLineIcon, + title: 'Run a command', + description: 'Show system info', + prompt: 'Write a one-liner shell command that shows my system info (OS, CPU cores, memory) and run it.', }, ] @@ -31,91 +38,81 @@ interface TryItStepProps { } export default function TryItStep({ onComplete, onBack }: TryItStepProps) { - const { - agentId, - initError, - messages, - streamingIds, - isLoading, - isLoadingHistory, - isLoadingMore, - hasMore, - error, - pendingApprovals, - sendMessage, - loadMore, - resolveApproval, - } = useLocalChat() + const navigate = useNavigate() + + const handlePromptClick = (prompt: string) => { + console.log('[TryItStep] Selected prompt:', prompt) + // TODO: Pass prompt to chat page + onComplete() + navigate('/chat') + } return ( -
- {/* Left column — prompts */} -
-
- +
+
+ {/* Back button */} + -
-

- Try it out -

-

- Your agent can search the web, read files, and run commands. - Click a prompt to see it in action. -

-
+ {/* Header */} +
+

+ You're all set 🎉 +

+

+ Your agent is ready to help. Try a sample task, or dive right in. +

+
-
- {samplePrompts.map((sp) => ( - sendMessage(sp.prompt)} - /> + {/* Try prompts */} +
+

+ ✨ Quick start +

+
+ {tryPrompts.map((item) => ( + ))}
- -
- - -
-
- {/* Right column — live chat */} -
- {initError ? ( -
- {initError} -
- ) : !agentId ? ( -
- - Initializing agent... -
- ) : ( - - )} + + + {/* Footer */} +
+ + +
) diff --git a/apps/desktop/src/renderer/src/pages/onboarding/components/welcome-step.tsx b/apps/desktop/src/renderer/src/pages/onboarding/components/welcome-step.tsx index c779cf22..2e278cf2 100644 --- a/apps/desktop/src/renderer/src/pages/onboarding/components/welcome-step.tsx +++ b/apps/desktop/src/renderer/src/pages/onboarding/components/welcome-step.tsx @@ -22,7 +22,7 @@ interface WelcomeStepProps { export default function WelcomeStep({ onStart }: WelcomeStepProps) { return ( -
+
{/* Brand Title */}
diff --git a/apps/desktop/src/renderer/src/pages/onboarding/index.tsx b/apps/desktop/src/renderer/src/pages/onboarding/index.tsx index b0c7ff4e..6dbfe723 100644 --- a/apps/desktop/src/renderer/src/pages/onboarding/index.tsx +++ b/apps/desktop/src/renderer/src/pages/onboarding/index.tsx @@ -31,7 +31,7 @@ export default function OnboardingPage() { />
@@ -73,7 +73,7 @@ export default function OnboardingPage() { {/* Step content */}
{currentStep === 1 && } {currentStep === 2 && }