From 27a91409a623347d148bc8d0f0fa81a955a038bd Mon Sep 17 00:00:00 2001 From: soryu Date: Sat, 7 Feb 2026 19:02:40 +0000 Subject: Change directive page --- .../src/components/directives/DirectiveDetail.tsx | 7 - makima/frontend/src/routes/directives.tsx | 218 ++++++++++++--------- 2 files changed, 123 insertions(+), 102 deletions(-) diff --git a/makima/frontend/src/components/directives/DirectiveDetail.tsx b/makima/frontend/src/components/directives/DirectiveDetail.tsx index 95dc7cc..645b8d2 100644 --- a/makima/frontend/src/components/directives/DirectiveDetail.tsx +++ b/makima/frontend/src/components/directives/DirectiveDetail.tsx @@ -176,7 +176,6 @@ function JsonSection({ export function DirectiveDetail({ directive, - onBack, onDelete, onStart, onRefresh, @@ -247,12 +246,6 @@ export function DirectiveDetail({ {/* Header */}
- - - -
- ); + if (isAuthConfigured && !isAuthenticated) { + return null; + } + + return ; } function DirectivesContent() { @@ -136,98 +135,127 @@ function DirectivesContent() { [] ); - // Detail view - if (id) { - if (detailLoading) { - return ( -
-

Loading directive...

-
- ); - } - if (!selectedDirective) { - return ( -
-

Directive not found

-
- ); - } - return ( -
- -
- ); - } - - // List view return ( -
- {error && ( -
- {error} -
- )} - - {showCreateForm && ( -
-

- New Directive -

-
- setCreateTitle(e.target.value)} - className="w-full px-2 py-1.5 font-mono text-xs text-[#dbe7ff] bg-[#0a1628] border border-[rgba(117,170,252,0.3)] focus:border-[#75aafc] outline-none" - /> -