auto-sync: 2026-05-18 11:53:09
This commit is contained in:
@@ -267,7 +267,7 @@ export default function EdictBoard() {
|
||||
{ key: 'blocked', label: '阻塞', icon: '🚧' },
|
||||
];
|
||||
|
||||
let filtered = tasks;
|
||||
let filtered = tasks.filter(t => !t.parent_task); // 只显示顶层 Task
|
||||
if (statusFilter !== 'all') filtered = filtered.filter(t => t.status === statusFilter);
|
||||
if (searchQuery.trim()) {
|
||||
const q = searchQuery.trim().toLowerCase();
|
||||
@@ -277,8 +277,8 @@ export default function EdictBoard() {
|
||||
const order: Record<string, number> = { working: 0, review: 1, claimed: 2, blocked: 3, pending: 4, failed: 5, done: 6, cancelled: 7 };
|
||||
filtered.sort((a, b) => (order[a.status] ?? 8) - (order[b.status] ?? 8));
|
||||
|
||||
const counts: Record<string, number> = { all: tasks.length };
|
||||
tasks.forEach(t => { counts[t.status] = (counts[t.status] || 0) + 1; });
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user