From b67b3f8e8d63361d9ff19f87fd608c03bfa3fd43 Mon Sep 17 00:00:00 2001 From: soryu Date: Tue, 17 Feb 2026 00:40:32 +0000 Subject: soryu-co/soryu - makima (#67) * feat: soryu-co/soryu - makima: Fix contracts page scrolling overflow * WIP: heartbeat checkpoint * WIP: heartbeat checkpoint * WIP: heartbeat checkpoint * WIP: heartbeat checkpoint * feat: soryu-co/soryu - makima: Remove contract association from orders and make directive mandatory in UI * feat: soryu-co/soryu - makima: Add directive name to order metadata for searchability * feat: soryu-co/soryu - makima: Change directive link in orders to use search interface * feat: soryu-co/soryu - makima: Name directive PRs based on content not directive title * feat: soryu-co/soryu - makima: Add orderId to step creation and auto-link orders to steps * feat: soryu-co/soryu - makima: Add under_review status and auto-complete orders in plan flow --- makima/src/server/handlers/directives.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'makima/src/server') diff --git a/makima/src/server/handlers/directives.rs b/makima/src/server/handlers/directives.rs index 15df6d5..cb59581 100644 --- a/makima/src/server/handlers/directives.rs +++ b/makima/src/server/handlers/directives.rs @@ -1062,6 +1062,19 @@ pub async fn pick_up_orders( } }; + // Reconcile existing orders: mark done if step completed, under_review if step in progress + match repository::reconcile_directive_orders(pool, auth.owner_id, id).await { + Ok(count) => { + if count > 0 { + tracing::info!("Reconciled {} orders for directive {}", count, id); + } + } + Err(e) => { + tracing::warn!("Failed to reconcile directive orders: {}", e); + // Non-fatal: continue with pickup even if reconciliation fails + } + } + // Fetch available orders let orders = match repository::get_available_orders_for_pickup(pool, auth.owner_id, id).await { Ok(o) => o, -- cgit v1.2.3