From 312b64a1fa4337fc1ee92970191e95c237670387 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Mon, 18 May 2026 11:53:19 +0800 Subject: [PATCH] auto-sync: 2026-05-18 11:53:19 --- src/frontend/src/components/EdictBoard.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/frontend/src/components/EdictBoard.tsx b/src/frontend/src/components/EdictBoard.tsx index e8eef5a..cb5af9b 100644 --- a/src/frontend/src/components/EdictBoard.tsx +++ b/src/frontend/src/components/EdictBoard.tsx @@ -280,10 +280,11 @@ export default function EdictBoard() { const counts: Record = { all: tasks.filter(t => !t.parent_task).length }; tasks.filter(t => !t.parent_task).forEach(t => { counts[t.status] = (counts[t.status] || 0) + 1; }); - const activeCount = tasks.filter(t => ['working', 'claimed', 'review'].includes(t.status)).length; - const doneCount = tasks.filter(t => t.status === 'done').length; - const failedCount = tasks.filter(t => ['failed', 'blocked'].includes(t.status)).length; - const reviewCount = tasks.filter(t => t.status === 'review').length; + const topLevelTasks = tasks.filter(t => !t.parent_task); + const activeCount = topLevelTasks.filter(t => ['working', 'claimed', 'review'].includes(t.status)).length; + const doneCount = topLevelTasks.filter(t => t.status === 'done').length; + const failedCount = topLevelTasks.filter(t => ['failed', 'blocked'].includes(t.status)).length; + const reviewCount = topLevelTasks.filter(t => t.status === 'review').length; if (!selectedProjectId) return ; if (v2tasksLoading && tasks.length === 0) return ;