auto-sync: 2026-05-23 12:41:22
This commit is contained in:
@@ -417,10 +417,12 @@ export default function EdictBoard() {
|
||||
const counts: Record<string, number> = { all: topLevelTasks.length };
|
||||
topLevelTasks.forEach(t => { counts[t.status] = (counts[t.status] || 0) + 1; });
|
||||
|
||||
const activeCount = topLevelTasks.filter(t => !t.archived).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;
|
||||
// 统计始终基于未归档的非终态任务(不受 archiveFilter 影响)
|
||||
const activeTasks = topLevelTasks.filter(t => !t.archived && !['done','cancelled'].includes(t.status));
|
||||
const activeCount = activeTasks.length;
|
||||
const doneCount = topLevelTasks.filter(t => !t.archived && t.status === 'done').length;
|
||||
const failedCount = topLevelTasks.filter(t => !t.archived && ['failed', 'blocked'].includes(t.status)).length;
|
||||
const reviewCount = topLevelTasks.filter(t => !t.archived && t.status === 'review').length;
|
||||
const archivedCount = topLevelTasks.filter(t => t.archived).length;
|
||||
|
||||
if (v2tasksLoading && tasks.length === 0) return <LoadingSkeleton />;
|
||||
|
||||
Reference in New Issue
Block a user