beardofedu / beardofedu/copilot-cli-fun-times

feat: add due date support to tasks

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Summary

Tasks need a `dueDate` field (ISO 8601 string) so teams can track deadlines.

## Motivation

Right now, tasks only have a `createdAt` timestamp. Teams need to set deadlines and know which tasks are overdue.

## Proposed Behavior

- `POST /tasks` accepts an optional `dueDate` field (ISO 8601 string)
- `PUT /tasks/:id` can update `dueDate`
- `GET /tasks?overdue=true` returns tasks where `dueDate` is in the past and `completed` is `false`
- A new utility function `getOverdueTasks(tasks)` handles the filtering logic

## Acceptance Criteria

- [ ] `POST /tasks` accepts an optional `dueDate` field
- [ ] `PUT /tasks/:id` can update `dueDate`
- [ ] `GET /tasks?overdue=true` returns only incomplete, past-due tasks
- [ ] New `getOverdueTasks(tasks)` utility function with unit tests
- [ ] All existing tests continue to pass

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the task handlers for POST /tasks, PUT /tasks/:id, and GET /tasks?overdue=true, then find the existing task tests and test command. Trace how task fields are accepted and filtered before adding due-date coverage. Done means all listed acceptance criteria pass, including unit tests for getOverdueTasks and the existing test suite.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.