diff --git a/apps/desktop/src/renderer/src/pages/onboarding/components/connect-step.tsx b/apps/desktop/src/renderer/src/pages/onboarding/components/connect-step.tsx index 1d553ee4..6a6c304e 100644 --- a/apps/desktop/src/renderer/src/pages/onboarding/components/connect-step.tsx +++ b/apps/desktop/src/renderer/src/pages/onboarding/components/connect-step.tsx @@ -2,12 +2,23 @@ import { useState } from 'react' import { Button } from '@multica/ui/components/ui/button' import { Input } from '@multica/ui/components/ui/input' import { Badge } from '@multica/ui/components/ui/badge' +import { Separator } from '@multica/ui/components/ui/separator' +import { + HoverCard, + HoverCardContent, + HoverCardTrigger, +} from '@multica/ui/components/ui/hover-card' import { HugeiconsIcon } from '@hugeicons/react' -import { ArrowLeft02Icon, Loading03Icon } from '@hugeicons/core-free-icons' +import { + ArrowLeft02Icon, + Loading03Icon, + HelpCircleIcon, + Share08Icon, + Tick02Icon, + InformationCircleIcon, +} from '@hugeicons/core-free-icons' import { useChannels } from '../../../hooks/use-channels' -import { TutorialStep } from '../../../components/onboarding/tutorial-step' import { StepDots } from './step-dots' -import { useOnboardingStore } from '../../../stores/onboarding' function statusVariant( status: string @@ -30,8 +41,7 @@ interface ConnectStepProps { } export default function ConnectStep({ onNext, onBack }: ConnectStepProps) { - const { states, config, saveToken, loading: channelLoading } = useChannels() - const { setClientConnected } = useOnboardingStore() + const { states, config, saveToken } = useChannels() const [token, setToken] = useState('') const [saving, setSaving] = useState(false) @@ -56,141 +66,161 @@ export default function ConnectStep({ onNext, onBack }: ConnectStepProps) { setLocalError(result.error ?? 'Failed to connect') } else { setToken('') - setClientConnected(true) } setSaving(false) } return ( -
- Connect a Telegram bot so you can chat with your agent from - anywhere. You can always set this up later in settings. -
+ {/* Header */} ++ Create bots on messaging platforms that talk to your local agent. +
++ Your bot connects directly to this machine — + chat from your phone, tablet, or any device. +
+
+
Telegram
++ Bot API long polling +
++ Get a bot token +
+Telegram Bot
- {state && ( -+ {isRunning + ? 'Bot is running. Send it a message to test.' + : isStarting + ? 'Starting bot...' + : 'Bot configured.'} +
{state.error}
- )} - {isRunning && ( -- Your bot is running. Send it a message on Telegram to test. -
- )} - {isStarting && ( -- Starting your bot... -
- )} -{localError}
- )} - -{localError}
+ )} + {state?.status === 'error' && state.error && ( +{state.error}
+ )}- Follow these steps to create your bot: -
-- Once connected, you can chat with your Multica agent directly - from Telegram on any device — phone, tablet, or desktop. -
+ {/* Footer */} +