From a131f3b7f50f5f5415e9a2cff3deaf12cac1f29c Mon Sep 17 00:00:00 2001 From: Jiayuan Zhang Date: Sun, 15 Feb 2026 03:04:53 +0800 Subject: [PATCH] Remove Multica App tab from Clients page (#190) * feat(desktop): remove Multica App tab from Clients page Only Telegram is currently available as a connection method. Remove the unused "Multica App" tab, tabs UI, and related components (QRCodeCard, DevicesCard, MulticaAppTab) to simplify the page. MUL-252 Co-Authored-By: Claude Opus 4.6 * fix(desktop): restore authorized devices list on Clients page The devices list was accidentally removed along with the Multica App tab. Add it back below the Telegram card. MUL-252 Co-Authored-By: Claude Opus 4.6 --------- Co-authored-by: Claude Opus 4.6 --- .../src/renderer/src/pages/clients.tsx | 121 ++---------------- 1 file changed, 12 insertions(+), 109 deletions(-) diff --git a/apps/desktop/src/renderer/src/pages/clients.tsx b/apps/desktop/src/renderer/src/pages/clients.tsx index 924f6e9b..309968ed 100644 --- a/apps/desktop/src/renderer/src/pages/clients.tsx +++ b/apps/desktop/src/renderer/src/pages/clients.tsx @@ -1,4 +1,3 @@ -import { useState } from 'react' import { Card, CardContent, @@ -6,20 +5,12 @@ import { CardHeader, CardTitle, } from '@multica/ui/components/ui/card' -import { Button } from '@multica/ui/components/ui/button' -import { - Tabs, - TabsContent, - TabsList, - TabsTrigger, -} from '@multica/ui/components/ui/tabs' -import { QrCode, Radio, Smartphone, WifiOff, Loader2 } from 'lucide-react' +import { WifiOff, Loader2 } from 'lucide-react' import { useHubStore, selectPrimaryAgent } from '../stores/hub' -import { ConnectionQRCode } from '../components/qr-code' import { TelegramConnectQR } from '../components/telegram-qr' import { DeviceList } from '../components/device-list' -function ChannelsTab() { +function ChannelsContent() { const { hubInfo, agents } = useHubStore() const primaryAgent = selectPrimaryAgent(agents) @@ -52,84 +43,16 @@ function ChannelsTab() {

Discord and Slack coming soon.

- - ) -} -/** QR Code card with show/hide toggle */ -function QRCodeCard({ - gateway, - hubId, - agentId, -}: { - gateway: string - hubId: string - agentId: string -}) { - const [expanded, setExpanded] = useState(true) - - return ( - - -
-
- Scan to Connect - Open Multica on your phone and scan. -
- -
-
- {expanded && ( - - + + + Authorized Devices + Devices you've approved to access your agent. + + + - )} - - ) -} - -/** Authorized devices card */ -function DevicesCard() { - return ( - - - Authorized Devices - Devices you've approved to access your agent. - - - - - - ) -} - -function MulticaAppTab() { - const { hubInfo, agents } = useHubStore() - const primaryAgent = selectPrimaryAgent(agents) - - return ( -
-

- Scan to connect from your phone. Manage authorized devices. -

- -
- - -
+
) } @@ -173,34 +96,14 @@ export default function ClientsPage() {

Clients

- Access your agent from anywhere. Connect via third-party platforms or the Multica mobile app. + Access your agent from anywhere. Connect via third-party platforms.

- {/* Tabs */} - - - - - Channels - - - - Multica App - - - - - - - - - - - + )