From 6c6cd5052a157b658f50e04ca7c350a00c2dbd60 Mon Sep 17 00:00:00 2001
From: HsiangNianian <i@jyunko.cn>
Date: Fri, 16 Jan 2026 14:17:17 +0800
Subject: feat: add assistant view and configuration editor components

Introduced a new AssistantView component for enhanced interaction with the AI assistant, allowing users to send messages and receive responses. Implemented a ConfigEditorModal for editing configuration files with JSON validation and history management. Updated the App component to integrate these new features, improving user experience and functionality in managing AI settings.
---
 ui/src/components/Sidebar.svelte | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'ui/src/components/Sidebar.svelte')

diff --git a/ui/src/components/Sidebar.svelte b/ui/src/components/Sidebar.svelte
index 1d7cc16..3d36f89 100644
--- a/ui/src/components/Sidebar.svelte
+++ b/ui/src/components/Sidebar.svelte
@@ -1,6 +1,6 @@
 <script lang="ts">
   import { uiState } from '../stores/ui.svelte';
-  import { Home, Package, Settings } from 'lucide-svelte';
+  import { Home, Package, Settings, Bot } from 'lucide-svelte';
 </script>
 
 <aside
@@ -57,7 +57,7 @@
   <!-- Navigation -->
   <nav class="flex-1 w-full flex flex-col gap-1 px-3">
     <!-- Nav Item Helper -->
-    {#snippet navItem(view, Icon, label)}
+    {#snippet navItem(view: any, Icon: any, label: string)}
       <button
         class="group flex items-center lg:gap-3 justify-center lg:justify-start w-full px-0 lg:px-4 py-2.5 rounded-sm transition-all duration-200 relative
         {uiState.currentView === view
@@ -77,6 +77,7 @@
 
     {@render navItem('home', Home, 'Overview')}
     {@render navItem('versions', Package, 'Versions')}
+    {@render navItem('guide', Bot, 'Assistant')}
     {@render navItem('settings', Settings, 'Settings')}
   </nav>
 
-- 
cgit v1.2.3-70-g09d2

