From 15b6e5fba161a194fe5427d7d29b0c4286423260 Mon Sep 17 00:00:00 2001 From: soryu Date: Tue, 10 Feb 2026 14:50:07 +0000 Subject: Add auto-PR creation for remote repos in directives --- .../src/components/directives/DirectiveDetail.tsx | 34 ++++++++++++++++++++++ makima/frontend/src/lib/api.ts | 5 ++++ 2 files changed, 39 insertions(+) (limited to 'makima/frontend/src') diff --git a/makima/frontend/src/components/directives/DirectiveDetail.tsx b/makima/frontend/src/components/directives/DirectiveDetail.tsx index 1340482..616c5d2 100644 --- a/makima/frontend/src/components/directives/DirectiveDetail.tsx +++ b/makima/frontend/src/components/directives/DirectiveDetail.tsx @@ -114,6 +114,40 @@ export function DirectiveDetail({ )} + {/* PR link */} + {directive.prUrl && ( +
+ + + PR created + + + {directive.prUrl} + +
+ )} + + {/* Completion task indicator */} + {directive.completionTaskId && !directive.prUrl && ( +
+ + + Creating PR... + + + View task + +
+ )} + {/* Controls */}
{(directive.status === "draft" || directive.status === "paused") && ( diff --git a/makima/frontend/src/lib/api.ts b/makima/frontend/src/lib/api.ts index b1422df..40e160e 100644 --- a/makima/frontend/src/lib/api.ts +++ b/makima/frontend/src/lib/api.ts @@ -3020,6 +3020,9 @@ export interface Directive { localPath: string | null; baseBranch: string | null; orchestratorTaskId: string | null; + prUrl: string | null; + prBranch: string | null; + completionTaskId: string | null; goalUpdatedAt: string; startedAt: string | null; version: number; @@ -3055,6 +3058,8 @@ export interface DirectiveSummary { status: DirectiveStatus; repositoryUrl: string | null; orchestratorTaskId: string | null; + prUrl: string | null; + completionTaskId: string | null; version: number; createdAt: string; updatedAt: string; -- cgit v1.2.3