diff --git a/src/components/MCPServersSection.tsx b/src/components/MCPServersSection.tsx index 008dd725..4830b7d9 100644 --- a/src/components/MCPServersSection.tsx +++ b/src/components/MCPServersSection.tsx @@ -6,7 +6,6 @@ import { Input } from '@/components/ui/input'; 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 { useAISettings } from '@/hooks/useAISettings'; import { useToast } from '@/hooks/useToast'; import { useMCPServerStatus } from '@/hooks/useMCPServerStatus'; @@ -191,9 +190,6 @@ export function MCPServersSection() { return (
- {/* Divider */} - - {/* MCP Servers Header */}
diff --git a/src/components/PluginsSection.tsx b/src/components/PluginsSection.tsx index 08fb257b..5b32d6ea 100644 --- a/src/components/PluginsSection.tsx +++ b/src/components/PluginsSection.tsx @@ -5,7 +5,6 @@ import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@/components/ui/accordion'; -import { Separator } from '@/components/ui/separator'; import { usePlugins } from '@/hooks/usePlugins'; import { usePluginGitInfo } from '@/hooks/usePluginGitInfo'; import { useToast } from '@/hooks/useToast'; @@ -78,9 +77,6 @@ export function PluginsSection() { return (
- {/* Divider */} - - {/* Plugins Header */}
diff --git a/src/components/ProjectTemplatesSection.tsx b/src/components/ProjectTemplatesSection.tsx index d9e5750d..0690fb27 100644 --- a/src/components/ProjectTemplatesSection.tsx +++ b/src/components/ProjectTemplatesSection.tsx @@ -25,7 +25,6 @@ import { Input } from '@/components/ui/input'; 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 { useAppContext } from '@/hooks/useAppContext'; import { useToast } from '@/hooks/useToast'; @@ -236,9 +235,6 @@ export function ProjectTemplatesSection() { return (
- {/* Divider */} - - {/* Project Templates Header */}
diff --git a/src/pages/AISettings.tsx b/src/pages/AISettings.tsx index 6b44cb2e..575525f2 100644 --- a/src/pages/AISettings.tsx +++ b/src/pages/AISettings.tsx @@ -1,6 +1,6 @@ import { useState } from 'react'; import { useTranslation } from 'react-i18next'; -import { Check, Bot, ArrowLeft, Trash2, GripVertical } from 'lucide-react'; +import { Check, Bot, ArrowLeft, Trash2, GripVertical, ChevronDown } from 'lucide-react'; import { DndContext, closestCenter, @@ -30,6 +30,7 @@ import { Card, CardContent } from '@/components/ui/card'; import { CreditsBadge } from '@/components/CreditsBadge'; import { CreditsDialog } from '@/components/CreditsDialog'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'; +import { Separator } from '@/components/ui/separator'; import { useAISettings } from '@/hooks/useAISettings'; import { useIsMobile } from '@/hooks/useIsMobile'; import { useCurrentUser } from '@/hooks/useCurrentUser'; @@ -187,6 +188,7 @@ export function AISettings() { const [presetApiKeys, setPresetApiKeys] = useState>({}); const [presetTermsAgreements, setPresetTermsAgreements] = useState>({}); const [activeCreditsDialog, setActiveCreditsDialog] = useState(null); + const [showAdvanced, setShowAdvanced] = useState(false); const sensors = useSensors( useSensor(PointerSensor), @@ -287,7 +289,7 @@ export function AISettings() { const availablePresets = AI_PROVIDER_PRESETS.filter(preset => !configuredProviderIds.includes(preset.id)); return ( -
+
{isMobile && (
- {/* Project Templates Section */} - + {/* Advanced Settings */} +
+ + - {/* MCP Servers Section */} - + {showAdvanced && ( +
+ {/* Project Templates Section */} + + - {/* Plugins Section */} - + {/* MCP Servers Section */} + + + + {/* Plugins Section */} + +
+ )} +
{/* Render credits dialog outside of accordion structure */}