From 103c593ec069eb772bc3742187bd93228a81552b Mon Sep 17 00:00:00 2001 From: Arun Rajkumar Date: Tue, 2 Jun 2026 21:10:26 +0530 Subject: [PATCH] fix(bud): show "Run estimation" button in empty-state for MCP-created BUDs When a BUD is created via the remote MCP `create_bud` tool, the caller supplies `requirements_md` directly, so the PRD agent never runs. The PRD agent's completion handler is the only place that triggers the first `estimate_bud_dates` snapshot, so MCP-created BUDs land on the "No estimates yet" empty state with no way to populate it from the UI. Surface a manual "Run estimation" button in the empty-state branch of `BUDEstimateTimeline.vue` that emits the same `recalculate` event the populated header already uses. The existing `POST /v1/buds/{id}/estimates/recalculate` endpoint is first-run safe; no backend change required. Signed-off-by: Arun Rajkumar --- .../src/components/buds/BUDEstimateTimeline.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/buds/BUDEstimateTimeline.vue b/frontend/src/components/buds/BUDEstimateTimeline.vue index ec7f8f78..4c311ea4 100644 --- a/frontend/src/components/buds/BUDEstimateTimeline.vue +++ b/frontend/src/components/buds/BUDEstimateTimeline.vue @@ -125,8 +125,18 @@ -
- No estimates yet +
+
No estimates yet
+ + Run estimation +