From aee6cda5fc8c44ebc45b274d07a1ed64052e3699 Mon Sep 17 00:00:00 2001 From: soryu Date: Tue, 17 Feb 2026 16:48:39 +0000 Subject: feat: smart cleanup, order linking, and improved PR titles (#69) * feat: soryu-co/soryu: Reorder navigation: move Orders before Contracts * feat: soryu-co/soryu: Generate PR titles from step content instead of directive title * feat: soryu-co/soryu: Add orderId field to step creation and link orders to steps * feat: soryu-co/soryu: Handle completed orders during plan-orders flow * WIP: heartbeat checkpoint * Merge origin/makima/soryu-co-soryu--handle-completed-orders-during-pla-5aa9a15b (resolved conflicts) --- makima/frontend/src/hooks/useDirectives.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'makima/frontend/src/hooks/useDirectives.ts') diff --git a/makima/frontend/src/hooks/useDirectives.ts b/makima/frontend/src/hooks/useDirectives.ts index 18544da..898f671 100644 --- a/makima/frontend/src/hooks/useDirectives.ts +++ b/makima/frontend/src/hooks/useDirectives.ts @@ -19,7 +19,7 @@ import { failDirectiveStep, skipDirectiveStep, updateDirectiveGoal, - cleanupDirectiveTasks, + cleanupDirective, pickUpOrders as pickUpOrdersApi, createDirectivePR, } from "../lib/api"; @@ -173,9 +173,9 @@ export function useDirective(id: string | undefined) { await refresh(); }, [id, refresh]); - const cleanupTasks = useCallback(async () => { + const cleanup = useCallback(async () => { if (!id) return; - await cleanupDirectiveTasks(id); + await cleanupDirective(id); await refresh(); }, [id, refresh]); @@ -197,7 +197,7 @@ export function useDirective(id: string | undefined) { update, addStep, removeStep, start, pause, advance, completeStep, failStep, skipStep, - updateGoal, cleanupTasks, + updateGoal, cleanup, pickUpOrders: pickUpOrdersFn, createPR, }; -- cgit v1.2.3