From 8f33add87497c431f42d185ba64dbc6ba3cef103 Mon Sep 17 00:00:00 2001 From: Nurfog Date: Wed, 14 Oct 2026 13:40:04 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20triage=20y=20estimaci=C3=B3n=20(Fase=20?= =?UTF-8?q?4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/cycles/page.tsx | 7 ++ src/app/issues/[id]/page.tsx | 22 ++++ src/app/triage/page.tsx | 126 +++++++++++++++++++++++ src/components/issues/IssueRow.tsx | 8 ++ src/components/layout/AppShell.tsx | 1 + src/components/layout/CommandPalette.tsx | 1 + src/components/layout/Sidebar.tsx | 2 + src/lib/api/http.ts | 6 ++ src/lib/api/mock.ts | 11 ++ src/lib/seed.ts | 16 +++ src/lib/types.ts | 8 ++ 11 files changed, 208 insertions(+) create mode 100644 src/app/triage/page.tsx diff --git a/src/app/cycles/page.tsx b/src/app/cycles/page.tsx index ac1813c..39ec8a4 100644 --- a/src/app/cycles/page.tsx +++ b/src/app/cycles/page.tsx @@ -93,6 +93,13 @@ export default function CyclesPage() { {doneCount}/{cycleIssues.length} issues + {(() => { + const total = cycleIssues.reduce((sum, i) => sum + (i.estimate ?? 0), 0); + const done = cycleIssues + .filter((i) => doneKeys.has(i.status)) + .reduce((sum, i) => sum + (i.estimate ?? 0), 0); + return total > 0 ? ` · ${done}/${total} pts` : ""; + })()} diff --git a/src/app/issues/[id]/page.tsx b/src/app/issues/[id]/page.tsx index 7a57372..b341ec3 100644 --- a/src/app/issues/[id]/page.tsx +++ b/src/app/issues/[id]/page.tsx @@ -240,6 +240,28 @@ function IssueDetail({ issueId }: { issueId: string }) { +
+ Estimación + +
+
Asignado