From b47f7153627119fa49481691a5f28f06b5bf5721 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 1 Dec 2025 15:24:39 -0600 Subject: [PATCH] Remove unnecessary empty states from AI settings sub-sections --- src/components/MCPServersSection.tsx | 9 +-------- src/components/PluginsSection.tsx | 17 +---------------- src/components/ProjectTemplatesSection.tsx | 9 +-------- 3 files changed, 3 insertions(+), 32 deletions(-) diff --git a/src/components/MCPServersSection.tsx b/src/components/MCPServersSection.tsx index c18cc22b..008dd725 100644 --- a/src/components/MCPServersSection.tsx +++ b/src/components/MCPServersSection.tsx @@ -7,7 +7,6 @@ import { Label } from '@/components/ui/label'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'; import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@/components/ui/accordion'; import { Separator } from '@/components/ui/separator'; -import { Alert, AlertDescription } from '@/components/ui/alert'; import { useAISettings } from '@/hooks/useAISettings'; import { useToast } from '@/hooks/useToast'; import { useMCPServerStatus } from '@/hooks/useMCPServerStatus'; @@ -207,7 +206,7 @@ export function MCPServersSection() { {/* Configured MCP Servers List */} - {serverEntries.length > 0 ? ( + {serverEntries.length > 0 && (
{serverEntries.map(([name, server]) => ( @@ -259,12 +258,6 @@ export function MCPServersSection() { ))}
- ) : ( - - - {t('noMcpServersConfigured')} - - )} {/* Add New MCP Server */} diff --git a/src/components/PluginsSection.tsx b/src/components/PluginsSection.tsx index 90431010..08fb257b 100644 --- a/src/components/PluginsSection.tsx +++ b/src/components/PluginsSection.tsx @@ -9,7 +9,6 @@ import { Separator } from '@/components/ui/separator'; import { usePlugins } from '@/hooks/usePlugins'; import { usePluginGitInfo } from '@/hooks/usePluginGitInfo'; import { useToast } from '@/hooks/useToast'; -import { Alert, AlertDescription } from '@/components/ui/alert'; export function PluginsSection() { const { t } = useTranslation(); @@ -94,7 +93,7 @@ export function PluginsSection() { {/* Configured Plugins List */} - {plugins.length > 0 ? ( + {plugins.length > 0 && (
{plugins.map((pluginName) => { const pluginSkills = skillsByPlugin[pluginName] || []; @@ -112,12 +111,6 @@ export function PluginsSection() { />; })}
- ) : ( - - - {t('noPluginsConfigured')} - - )} {/* Add Plugin Section */} @@ -224,14 +217,6 @@ function PluginItem({ pluginName, pluginSkills, isSyncing, isDeleting, onSync, o )} - {pluginSkills.length === 0 && ( - - - {t('noSkillsFound')} - - - )} - {/* Plugin Actions and Git Info */}
{gitInfo && ( diff --git a/src/components/ProjectTemplatesSection.tsx b/src/components/ProjectTemplatesSection.tsx index 695a3ea0..5d73f8eb 100644 --- a/src/components/ProjectTemplatesSection.tsx +++ b/src/components/ProjectTemplatesSection.tsx @@ -7,7 +7,6 @@ import { Textarea } from '@/components/ui/textarea'; import { Label } from '@/components/ui/label'; import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@/components/ui/accordion'; import { Separator } from '@/components/ui/separator'; -import { Alert, AlertDescription } from '@/components/ui/alert'; import { useAppContext } from '@/hooks/useAppContext'; import { useToast } from '@/hooks/useToast'; @@ -95,7 +94,7 @@ export function ProjectTemplatesSection() {
{/* Configured Templates List */} - {templates.length > 0 ? ( + {templates.length > 0 && (
{templates.map((template, index) => ( @@ -153,12 +152,6 @@ export function ProjectTemplatesSection() { ))}
- ) : ( - - - {t('noTemplatesConfigured')} - - )} {/* Add New Template */}