diff --git a/vibn-frontend/app/[workspace]/agency/page.tsx b/vibn-frontend/app/[workspace]/agency/page.tsx index 1f19231..d29ea85 100644 --- a/vibn-frontend/app/[workspace]/agency/page.tsx +++ b/vibn-frontend/app/[workspace]/agency/page.tsx @@ -346,11 +346,6 @@ 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 (Projects) + Clients - {/* Nested Client Hub: Apex Plumbing */} -
- - - {clientOpen === "apex" && ( -
- - - - -
- )} +
setActiveTab("client_apex")}> +
- {/* Nested Client Hub: Barton Creek */} -
- - - {clientOpen === "barton" && ( -
- - - - -
- )} +
setActiveTab("client_barton")}> +
Finance & Ops @@ -578,6 +487,183 @@ export default function AgencyDashboard() { {/* ── MAIN CONTENT AREA ── */}
{activeTab === "find_clients" && } + {activeTab === "client_apex" && } + {activeTab === "client_barton" && ( + + )} +
+
+ ); +} + +// ── CLIENT VIEW (Projects, Infra, Secrets) ── +function ClientView({ name }: { name: string }) { + return ( +
+ {/* Header */} +
+
+
+ Client +
+

+ {name} +

+

+ Manage projects, infrastructure, and secrets for this client. +

+
+ +
+ + {/* Tabs */} +
+ {["Projects", "Infrastructure", "Secrets Vault", "Contacts"].map( + (tab, i) => ( +
+ {tab} +
+ ), + )} +
+ + {/* Projects Grid */} +
+
+
+
+ {name.charAt(0)} +
+
+

+ Customer Portal +

+
+ + Live on {name.toLowerCase().replace(/[^a-z0-9]/g, "")}.vibn.app +
+
+
+ +
);