From 9762ee464419042b817ff58ea8ec4d9678dc0fb4 Mon Sep 17 00:00:00 2001 From: soryu Date: Sat, 7 Feb 2026 19:41:53 +0000 Subject: Fix directive page styling --- .../src/components/directives/DirectiveDetail.tsx | 51 +++++++------ .../src/components/directives/DirectiveList.tsx | 88 ++++++++++++---------- 2 files changed, 78 insertions(+), 61 deletions(-) (limited to 'makima/frontend/src') diff --git a/makima/frontend/src/components/directives/DirectiveDetail.tsx b/makima/frontend/src/components/directives/DirectiveDetail.tsx index 645b8d2..06d8ba2 100644 --- a/makima/frontend/src/components/directives/DirectiveDetail.tsx +++ b/makima/frontend/src/components/directives/DirectiveDetail.tsx @@ -176,6 +176,7 @@ function JsonSection({ export function DirectiveDetail({ directive, + onBack, onDelete, onStart, onRefresh, @@ -245,27 +246,18 @@ export function DirectiveDetail({
{/* Header */}
-
- + +
{onStart && directive.status === "draft" && ( @@ -273,16 +265,33 @@ export function DirectiveDetail({ {onDelete && ( )}
-

- {directive.title} -

+
+

+ {directive.title} +

+ + {directive.status} + + {isLive && ( + + polling + + )} + + v{directive.version} + +
{/* Tabs */} diff --git a/makima/frontend/src/components/directives/DirectiveList.tsx b/makima/frontend/src/components/directives/DirectiveList.tsx index a900b7b..5afa36e 100644 --- a/makima/frontend/src/components/directives/DirectiveList.tsx +++ b/makima/frontend/src/components/directives/DirectiveList.tsx @@ -25,7 +25,6 @@ export function DirectiveList({ loading, onSelect, onCreate, - onDelete, selectedId, }: DirectiveListProps) { const [filter, setFilter] = useState("all"); @@ -58,6 +57,7 @@ export function DirectiveList({ + New
+ {/* Filter tabs */}
{(["all", "draft", "planning", "active", "paused", "completed", "failed"] as const).map( @@ -65,11 +65,14 @@ export function DirectiveList({ @@ -82,52 +85,57 @@ export function DirectiveList({
{filteredDirectives.length === 0 ? (
-

- {directives.length === 0 +

+ {filter === "all" ? "No directives yet" - : "No matching directives"} + : `No ${filter} directives`}

) : ( - filteredDirectives.map((directive) => ( -
onSelect(directive.id)} - onContextMenu={(e) => { - if (onDelete) { - e.preventDefault(); - } - }} - className={`p-3 border-b border-dashed border-[rgba(117,170,252,0.15)] cursor-pointer transition-colors hover:bg-[rgba(117,170,252,0.05)] ${ - selectedId === directive.id - ? "bg-[rgba(117,170,252,0.1)]" - : "" - }`} - > -
-
-
+
+ {filteredDirectives.map((directive) => ( +
-
+ {directive.status} - - {directive.chainCount}ch / {directive.stepCount}st -
-
-
- )) + + {directive.goal && ( +

+ {directive.goal} +

+ )} + +
+ {directive.chainCount > 0 && ( + {directive.chainCount} chains + )} + {directive.stepCount > 0 && ( + {directive.stepCount} steps + )} +
+ + ))} +
)}
-- cgit v1.2.3