diff --git a/app/[workspace]/agency/page.tsx b/app/[workspace]/agency/page.tsx index 1ad75279..1f192318 100644 --- a/app/[workspace]/agency/page.tsx +++ b/app/[workspace]/agency/page.tsx @@ -36,6 +36,20 @@ const Icons = { ), + MessageCircle: () => ( + + + + ), Kanban: () => ( ), + FileText: () => ( + + + + + + + + ), Users: () => ( ), + Folder: () => ( + + + + ), Box: () => ( ), + Server: () => ( + + + + + + + ), Repeat: () => ( ), + TrendingDown: () => ( + + + + + ), Key: () => ( ), - CheckSquare: () => ( - - - - - ), Settings: () => ( - + + + ), + ChevronDown: () => ( + + + + ), + ChevronRight: () => ( + + ), }; @@ -169,11 +260,13 @@ function NavItem({ label, active, badge, + inset = false, }: { - icon: React.ElementType; + icon?: React.ElementType; label: string; active?: boolean; badge?: string; + inset?: boolean; }) { return ( - - - + {Icon && ( + + + + )} {label} {badge && ( @@ -250,6 +346,11 @@ function SectionHeader({ children }: { children: React.ReactNode }) { export default function AgencyDashboard() { const { workspace } = useParams(); const [activeTab, setActiveTab] = useState("find_clients"); + const [clientOpen, setClientOpen] = useState("apex"); + + const toggleClient = (id: string) => { + setClientOpen(clientOpen === id ? null : id); + }; return ( - - + + + + - Delivery - - + Delivery (Projects) - Operations - - - + {/* Nested Client Hub: Apex Plumbing */} + + toggleClient("apex")} + style={{ + display: "flex", + alignItems: "center", + justifyContent: "space-between", + width: "100%", + padding: "7px 10px", + borderRadius: 6, + background: "transparent", + color: "#1a1a1a", + fontWeight: 600, + fontSize: "13px", + border: "none", + cursor: "pointer", + }} + > + + + Apex Plumbing + + + + + + + {clientOpen === "apex" && ( + + + + + + + )} + + + {/* Nested Client Hub: Barton Creek */} + + toggleClient("barton")} + style={{ + display: "flex", + alignItems: "center", + justifyContent: "space-between", + width: "100%", + padding: "7px 10px", + borderRadius: 6, + background: "transparent", + color: "#1a1a1a", + fontWeight: 600, + fontSize: "13px", + border: "none", + cursor: "pointer", + }} + > + + + Barton Creek HVAC + + + + + + + {clientOpen === "barton" && ( + + + + + + + )} + + + Finance & Ops + + +