diff --git a/frontend/src/pages/TasksPage.tsx b/frontend/src/pages/TasksPage.tsx index 2a58f1c..0995cd7 100644 --- a/frontend/src/pages/TasksPage.tsx +++ b/frontend/src/pages/TasksPage.tsx @@ -100,9 +100,9 @@ export default function TasksPage() { {/* Metrics Row */}
t.assigneeId === user?.id).length} icon={User} color="text-[var(--color-primary)]" /> - - t.status !== 'COMPLETED').length} icon={Clock} color="text-[var(--color-warning)]" /> - + t.status !== 'COMPLETED' && t.dueDate && new Date(t.dueDate) < new Date()).length} icon={AlertCircle} color="text-[var(--color-error)]" /> + t.status !== 'COMPLETED' && t.dueDate && new Date(t.dueDate).toDateString() === new Date().toDateString()).length} icon={Clock} color="text-[var(--color-warning)]" /> + t.status === 'COMPLETED' && t.completedAt && new Date(t.completedAt) > new Date(Date.now() - 24 * 60 * 60 * 1000)).length} icon={CheckCircle2} color="text-[var(--color-accent)]" />