Skip to content

Highlight overdue tasks in red馃搶#91

Description

@anoopcodehack

馃搶 Highlight overdue tasks in red

Labels: good first issue, enhancement

Description
Tasks with a due date in the past show no visual indication that they're overdue. Add a simple red highlight so overdue tasks stand out at a glance.

File
client/src/components/Board/TaskCard.jsx

Tasks

Compare task.dueDate with today's date

If dueDate < today AND task.status !== "Done", apply a red style (e.g. red left border, red due date text)

Make sure it doesn't apply to tasks already marked Done, even if the due date has passed
Acceptance Criteria
Tasks past their due date (and not Done) show a clear red visual cue
Tasks marked Done never show as overdue, regardless of due date
No change to tasks with no due date set
Suggested approach
const isOverdue = task.dueDate && new Date(task.dueDate) < new Date() && task.status !== "Done";

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions