ericchang00's picture
add screenshot42-taskmanager-projectdetail task (build 2ecba08)
160f5ce verified
|
Raw History Blame Contribute Delete
2.65 kB
# TaskFlow — Golden (Reference)
The ground-truth task management application. All clones are evaluated against this.
## Features
- **Users**: Create and list users with name/email
- **Projects**: Create projects with members, descriptions, and admin/member roles
- **Project Archiving**: Soft-delete projects with `archived` flag
- **Tasks**: Full CRUD with title, description, status, priority, assignee, due date
- **Kanban Board**: Tasks displayed in todo/in_progress/done columns
- **Tags**: Many-to-many tag system with color support and full CRUD
- **Comments**: Threaded comments on tasks
- **Activity Log**: Automatic audit trail tracking all task changes (status, priority, assignment, tags)
- **Project Statistics**: Aggregated completion rates, overdue counts, per-member breakdowns
- **Task Filtering**: Filter by status, priority, assignee, and tag with sort options
- **Search**: Full-text search across task titles and descriptions
## Data Model
| Model | Fields |
|---|---|
| User | id, name, email |
| Project | id, name, description, archived, created_at |
| ProjectMember | id, project_id, user_id, role (admin/member) |
| Tag | id, name, color |
| task_tags | task_id, tag_id (M2M join) |
| Task | id, project_id, title, description, status, priority, assigned_to, created_by, due_date, created_at |
| Comment | id, task_id, user_id, text, created_at |
| Activity | id, task_id, user_id, action, field, old_value, new_value, created_at |
## API Endpoints
| Method | Path | Description |
|---|---|---|
| POST/GET | `/api/users` | Create/list users |
| POST/GET | `/api/tags` | Create/list tags |
| PUT/DELETE | `/api/tags/:id` | Update/delete tag |
| POST/GET | `/api/projects` | Create/list projects |
| GET/PUT | `/api/projects/:id` | Get/update project |
| GET | `/api/projects/:id/stats` | Project statistics |
| GET | `/api/projects/:id/activities` | Project activity feed |
| POST/DELETE | `/api/projects/:id/members` | Add/remove members |
| POST/GET | `/api/projects/:id/tasks` | Create/list tasks (with filters) |
| GET/PUT/DELETE | `/api/tasks/:id` | Get/update/delete task |
| POST/DELETE | `/api/tasks/:id/tags` | Add/remove task tags |
| POST/GET | `/api/tasks/:id/comments` | Create/list comments |
| GET | `/api/tasks/:id/activities` | Task activity log |
| GET | `/api/search?q=` | Search tasks |
| POST | `/api/reset` | Reset database |
## Setup
```bash
cd apps/task-manager/golden
uv venv .venv
source .venv/bin/activate
uv pip install -r backend/requirements.txt
cd frontend && npm install && cd ..
```
## Run
```bash
./run.sh
```
- Backend: http://localhost:5101
- Frontend: http://localhost:5273