From e2b9c465e4485c13086b82d282d9c67ae640dc77 Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Mon, 26 Jan 2026 14:46:26 -0500 Subject: [PATCH] fix(ui): update sync card for local sync design - rename Remote Sync to Profile Sync - change status from Connected/Disconnected to Ready/No Config - update icons and messaging for local config sync --- .../cliproxy/sync/sync-status-card.tsx | 50 +++++++------------ 1 file changed, 18 insertions(+), 32 deletions(-) diff --git a/ui/src/components/cliproxy/sync/sync-status-card.tsx b/ui/src/components/cliproxy/sync/sync-status-card.tsx index 028dc0ed..b80dec9f 100644 --- a/ui/src/components/cliproxy/sync/sync-status-card.tsx +++ b/ui/src/components/cliproxy/sync/sync-status-card.tsx @@ -1,13 +1,13 @@ /** * Sync Status Card Component - * Shows remote CLIProxy connection status and sync controls + * Shows local CLIProxy config sync status and controls */ import { useState } from 'react'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Button } from '@/components/ui/button'; import { Badge } from '@/components/ui/badge'; -import { Loader2, RefreshCw, Upload, Wifi, WifiOff, AlertCircle } from 'lucide-react'; +import { Loader2, RefreshCw, FileDown, Check, AlertCircle } from 'lucide-react'; import { cn } from '@/lib/utils'; import { SyncDialog } from './sync-dialog'; import { useSyncStatus, useExecuteSync } from '@/hooks/use-cliproxy-sync'; @@ -30,8 +30,8 @@ export function SyncStatusCard() { - - Remote Sync + + Profile Sync @@ -41,7 +41,6 @@ export function SyncStatusCard() { ); } - const isConnected = status?.connected ?? false; const isConfigured = status?.configured ?? false; return ( @@ -50,50 +49,38 @@ export function SyncStatusCard() {
- - Remote Sync + + Profile Sync - {isConnected ? ( - - ) : !isConfigured ? ( - - ) : ( - - )} - {isConnected ? 'Connected' : !isConfigured ? 'Not Configured' : 'Disconnected'} + {isConfigured ? : } + {isConfigured ? 'Ready' : 'No Config'}
- {isConnected && status?.remoteUrl && ( + {isConfigured && (
- Remote: {status.remoteUrl} - {status.latencyMs !== undefined && ( - ({status.latencyMs}ms) - )} + Syncs API profiles to local CLIProxy config
)} {!isConfigured && (

- Configure remote proxy in Settings to enable profile sync. + Run ccs doctor --fix to generate + config.

)} - {isConfigured && !isConnected && status?.error && ( -

{status.error}

- )} + {status?.error &&

{status.error}

}