From 7c0a3efea6bc87a17708652ccbd0262d2a0e8b59 Mon Sep 17 00:00:00 2001 From: Dotta Date: Sat, 7 Mar 2026 10:19:51 -0600 Subject: [PATCH] feat(ui): add plus button to sidebar AGENTS header Add a "+" button next to "AGENTS" in the sidebar, matching the existing pattern used by Projects. Clicking it opens the agent creation choice modal. Co-Authored-By: Claude Opus 4.6 --- ui/src/components/SidebarAgents.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ui/src/components/SidebarAgents.tsx b/ui/src/components/SidebarAgents.tsx index 25b59814..9d36377f 100644 --- a/ui/src/components/SidebarAgents.tsx +++ b/ui/src/components/SidebarAgents.tsx @@ -1,8 +1,9 @@ import { useMemo, useState } from "react"; import { NavLink, useLocation } from "@/lib/router"; import { useQuery } from "@tanstack/react-query"; -import { ChevronRight } from "lucide-react"; +import { ChevronRight, Plus } from "lucide-react"; import { useCompany } from "../context/CompanyContext"; +import { useDialog } from "../context/DialogContext"; import { useSidebar } from "../context/SidebarContext"; import { agentsApi } from "../api/agents"; import { heartbeatsApi } from "../api/heartbeats"; @@ -40,6 +41,7 @@ function sortByHierarchy(agents: Agent[]): Agent[] { export function SidebarAgents() { const [open, setOpen] = useState(true); const { selectedCompanyId } = useCompany(); + const { openNewAgent } = useDialog(); const { isMobile, setSidebarOpen } = useSidebar(); const location = useLocation(); @@ -89,6 +91,16 @@ export function SidebarAgents() { Agents +