auto-sync: 2026-05-18 11:53:19

This commit is contained in:
cfdaily
2026-05-18 11:53:19 +08:00
parent f951e9215e
commit 312b64a1fa
+5 -4
View File
@@ -280,10 +280,11 @@ export default function EdictBoard() {
const counts: Record<string, number> = { 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 <EmptyState hasProject={false} />;
if (v2tasksLoading && tasks.length === 0) return <LoadingSkeleton />;