From cb44377b096d1f339532f5dc1dacb23776ff1f08 Mon Sep 17 00:00:00 2001 From: Jamie Pine Date: Tue, 27 Jan 2026 17:14:17 -0800 Subject: [PATCH] Remove CheckCircle2 icon from various components for a cleaner UI - Eliminated CheckCircle2 icon from ModelManagement, ModelProgress, ServerStatus, and UpdateStatus components to streamline the visual presentation. - Updated import statements accordingly to reflect the removal of unused icons. --- .../ServerSettings/ConnectionForm.tsx | 54 ++++++++++--------- .../ServerSettings/ModelManagement.tsx | 3 +- .../ServerSettings/ModelProgress.tsx | 4 +- .../ServerSettings/ServerStatus.tsx | 3 +- .../ServerSettings/UpdateStatus.tsx | 4 +- 5 files changed, 34 insertions(+), 34 deletions(-) diff --git a/app/src/components/ServerSettings/ConnectionForm.tsx b/app/src/components/ServerSettings/ConnectionForm.tsx index fe1d7137..cc1e2d1d 100644 --- a/app/src/components/ServerSettings/ConnectionForm.tsx +++ b/app/src/components/ServerSettings/ConnectionForm.tsx @@ -14,10 +14,11 @@ import { FormMessage, } from '@/components/ui/form'; import { Input } from '@/components/ui/input'; -import { Checkbox } from '@/components/ui/checkbox'; import { useToast } from '@/components/ui/use-toast'; import { useServerStore } from '@/stores/serverStore'; import { setKeepServerRunning } from '@/lib/tauri'; +import { Check } from 'lucide-react'; +import { cn } from '@/lib/utils/cn'; const connectionSchema = z.object({ serverUrl: z.string().url('Please enter a valid URL'), @@ -83,36 +84,41 @@ export function ConnectionForm() {
-
- { - setKeepServerRunningOnClose(checked); - setKeepServerRunning(checked).catch((error) => { - console.error('Failed to sync setting to Rust:', error); - }); - toast({ - title: 'Setting updated', - description: checked - ? 'Server will continue running when app closes' - : 'Server will stop when app closes', - }); - }} - /> +
+
diff --git a/app/src/components/ServerSettings/ModelManagement.tsx b/app/src/components/ServerSettings/ModelManagement.tsx index 2b6f4e67..776d5077 100644 --- a/app/src/components/ServerSettings/ModelManagement.tsx +++ b/app/src/components/ServerSettings/ModelManagement.tsx @@ -1,5 +1,5 @@ import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query'; -import { CheckCircle2, Download, Loader2, Trash2 } from 'lucide-react'; +import { Download, Loader2, Trash2 } from 'lucide-react'; import { useState } from 'react'; import { AlertDialog, @@ -271,7 +271,6 @@ function ModelItem({ model, onDownload, onDelete, isDownloading, formatSize }: M {model.downloaded ? (
- Ready