From e97d00e36220b8e71ea6013b6f17a01d7bd95c8c Mon Sep 17 00:00:00 2001 From: David Kaya Date: Sun, 22 Mar 2026 14:00:46 +0100 Subject: [PATCH] refactor: group settings nav into AI Provider and Orchestration sections Adds section headers to the left sidebar navigation so future settings items slot naturally under the right category. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/renderer/components/SettingsPanel.tsx | 70 +++++++++++++++-------- 1 file changed, 47 insertions(+), 23 deletions(-) diff --git a/src/renderer/components/SettingsPanel.tsx b/src/renderer/components/SettingsPanel.tsx index 225ceb6..c2e6f8a 100644 --- a/src/renderer/components/SettingsPanel.tsx +++ b/src/renderer/components/SettingsPanel.tsx @@ -1,5 +1,5 @@ import { useState } from 'react'; -import { ChevronLeft, ChevronRight, Cpu, Layers, Plus } from 'lucide-react'; +import { ChevronLeft, ChevronRight, Cpu, Layers, Plus, Workflow } from 'lucide-react'; import type { ModelDefinition } from '@shared/domain/models'; import type { PatternDefinition } from '@shared/domain/pattern'; @@ -27,9 +27,24 @@ interface NavItem { icon: React.ReactNode; } -const navItems: NavItem[] = [ - { id: 'connection', label: 'Connection', icon: }, - { id: 'patterns', label: 'Patterns', icon: }, +interface NavGroup { + label: string; + items: NavItem[]; +} + +const navGroups: NavGroup[] = [ + { + label: 'AI Provider', + items: [ + { id: 'connection', label: 'Connection', icon: }, + ], + }, + { + label: 'Orchestration', + items: [ + { id: 'patterns', label: 'Patterns', icon: }, + ], + }, ]; function modeBadgeClasses(pattern: PatternDefinition) { @@ -97,25 +112,34 @@ export function SettingsPanel({
{/* Left navigation */}