Skip to content

feat(tasks): add due dates with date picker and visual indicators#26

Open
decuyperanthony wants to merge 1 commit intomainfrom
feat/due-dates
Open

feat(tasks): add due dates with date picker and visual indicators#26
decuyperanthony wants to merge 1 commit intomainfrom
feat/due-dates

Conversation

@decuyperanthony
Copy link
Copy Markdown
Owner

Summary

  • Add dueDate field to tasks with DB migration
  • Create DatePicker component with quick picks (Aujourd'hui, Demain, Semaine prochaine)
  • Add visual indicators: red border for overdue tasks, colored date labels
  • Smart sorting: overdue first → pinned → by dueDate asc → nulls last
  • Hide due date display when task is completed

Files changed

File Change
src/lib/date.ts New dayjs utilities with French locale
src/components/ui/calendar.tsx react-day-picker wrapper with glassmorphism
src/components/ui/date-picker.tsx Input + dropdown + quick picks
src/db/schema.ts Add dueDate field
src/actions/tasks.ts Zod schemas + smart ordering
src/components/tasks/*.tsx DatePicker in forms + visual indicators
src/app/api/tasks/route.ts API support for dueDate
messages/fr.json French translations

Test plan

  • Create task with due date → appears with label
  • Create task for yesterday → red border + "En retard"
  • Create task for today → orange "Aujourd'hui"
  • Complete overdue task → date hidden, border gone
  • Edit task → can change/clear due date
  • Quick picks work correctly
  • API: POST /api/tasks with "dueDate": "2025-02-01" works

- Add dueDate field to tasks table with migration
- Create date utilities (dayjs with French locale)
- Create Calendar component (react-day-picker wrapper)
- Create DatePicker with quick picks (Today, Tomorrow, Next week)
- Update task forms to include date picker
- Add visual indicators: red border for overdue, colored labels
- Smart sorting: overdue first, then by dueDate asc, nulls last
- Hide due date on completed tasks
- Add dueDate support to API endpoint
@vercel
Copy link
Copy Markdown

vercel bot commented Jan 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
clear Ready Ready Preview, Comment Jan 29, 2026 4:47pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant