From 9eb28de59b3b3815fc0eb15b37efcb07d51b8e96 Mon Sep 17 00:00:00 2001 From: soryu Date: Mon, 9 Feb 2026 01:30:15 +0000 Subject: Move directive tab in navbar and change contract creation UI --- makima/frontend/src/components/NavStrip.tsx | 2 +- makima/frontend/src/routes/contracts.tsx | 86 ++++++++++++++--------------- 2 files changed, 41 insertions(+), 47 deletions(-) (limited to 'makima/frontend') diff --git a/makima/frontend/src/components/NavStrip.tsx b/makima/frontend/src/components/NavStrip.tsx index 46fef7a..9bb7777 100644 --- a/makima/frontend/src/components/NavStrip.tsx +++ b/makima/frontend/src/components/NavStrip.tsx @@ -10,10 +10,10 @@ interface NavLink { const NAV_LINKS: NavLink[] = [ { label: "Listen", href: "/listen" }, + { label: "Directives", href: "/directives", requiresAuth: true }, { label: "Contracts", href: "/contracts", requiresAuth: true }, { label: "Board", href: "/workflow", requiresAuth: true }, { label: "Mesh", href: "/mesh", requiresAuth: true }, - { label: "Directives", href: "/directives", requiresAuth: true }, { label: "History", href: "/history", requiresAuth: true }, ]; diff --git a/makima/frontend/src/routes/contracts.tsx b/makima/frontend/src/routes/contracts.tsx index dde78b1..acb6789 100644 --- a/makima/frontend/src/routes/contracts.tsx +++ b/makima/frontend/src/routes/contracts.tsx @@ -531,11 +531,25 @@ function ContractsPageContent() { )} - {/* Create contract modal */} - {isCreating && ( -
-
-

+
+ {/* Contract list */} + + + {/* Contract detail, creation form, or empty state */} + {isCreating ? ( +
+

Create Contract

@@ -548,7 +562,7 @@ function ContractsPageContent() {
{/* Contract name */}
-
{/* Description */}
-