diff --git a/apps/x/apps/renderer/src/App.tsx b/apps/x/apps/renderer/src/App.tsx index c41833de..65087ffe 100644 --- a/apps/x/apps/renderer/src/App.tsx +++ b/apps/x/apps/renderer/src/App.tsx @@ -734,9 +734,9 @@ function App() { setExpandedPaths(newExpanded) } - // Handle sidebar section changes - switch to chat view for agents + // Handle sidebar section changes - switch to chat view for tasks const handleSectionChange = useCallback((section: ActiveSection) => { - if (section === 'agents') { + if (section === 'tasks') { setSelectedPath(null) setIsGraphOpen(false) } diff --git a/apps/x/apps/renderer/src/components/sidebar-content.tsx b/apps/x/apps/renderer/src/components/sidebar-content.tsx index aabfc407..8013b0d9 100644 --- a/apps/x/apps/renderer/src/components/sidebar-content.tsx +++ b/apps/x/apps/renderer/src/components/sidebar-content.tsx @@ -3,7 +3,6 @@ import * as React from "react" import { useState } from "react" import { - CalendarDays, ChevronRight, ChevronsDownUp, ChevronsUpDown, @@ -12,11 +11,9 @@ import { FilePlus, Folder, FolderPlus, - Mail, - Microscope, Network, Pencil, - Plus, + SquarePen, Trash2, } from "lucide-react" @@ -83,28 +80,9 @@ type SidebarContentPanelProps = { const sectionTitles = { knowledge: "Knowledge", - agents: "Agents", + tasks: "Tasks", } - -const agentPresets = [ - { - name: "Email Assistant", - description: "Draft replies, summarize threads.", - icon: Mail, - }, - { - name: "Meeting Prep", - description: "Build briefs and talking points.", - icon: CalendarDays, - }, - { - name: "Research", - description: "Gather sources, outline findings.", - icon: Microscope, - }, -] - export function SidebarContentPanel({ tree, selectedPath, @@ -132,8 +110,8 @@ export function SidebarContentPanel({ actions={knowledgeActions} /> )} - {activeSection === "agents" && ( - + {activeSection === "tasks" && ( + )} @@ -425,40 +403,19 @@ function Tree({ ) } -// Agents Section -function AgentsSection() { +// Tasks Section +function TasksSection() { return ( - <> - {/* Agent Presets */} - - - Agent Presets - - - - - - - New Agent - - - - - {agentPresets.map((agent) => ( - - - - - {agent.name} - {agent.description} - - - - ))} - - - - > + + + + + + New chat + + + + ) } diff --git a/apps/x/apps/renderer/src/components/sidebar-icon.tsx b/apps/x/apps/renderer/src/components/sidebar-icon.tsx index a0b91cbc..2d75a709 100644 --- a/apps/x/apps/renderer/src/components/sidebar-icon.tsx +++ b/apps/x/apps/renderer/src/components/sidebar-icon.tsx @@ -2,9 +2,9 @@ import * as React from "react" import { - Bot, Brain, HelpCircle, + ListTodo, Plug, Settings, } from "lucide-react" @@ -27,7 +27,7 @@ type NavItem = { const navItems: NavItem[] = [ { id: "knowledge", title: "Knowledge", icon: Brain }, - { id: "agents", title: "Agents", icon: Bot }, + { id: "tasks", title: "Tasks", icon: ListTodo }, ] export function SidebarIcon() { diff --git a/apps/x/apps/renderer/src/contexts/sidebar-context.tsx b/apps/x/apps/renderer/src/contexts/sidebar-context.tsx index 8aa528e2..438d79e3 100644 --- a/apps/x/apps/renderer/src/contexts/sidebar-context.tsx +++ b/apps/x/apps/renderer/src/contexts/sidebar-context.tsx @@ -2,7 +2,7 @@ import * as React from "react" -export type ActiveSection = "knowledge" | "agents" +export type ActiveSection = "knowledge" | "tasks" type SidebarSectionContextProps = { activeSection: ActiveSection