- Backend: TaskComment model + migration, comment CRUD endpoints, task reorder endpoint, updated selectinload for comments - Frontend: Two-panel master-detail layout with TaskRow (compact) and TaskDetailPanel (full details + comments section) - Sort toolbar: manual (drag-and-drop via @dnd-kit), priority, due date - Kanban board view with drag-and-drop between status columns - Responsive: mobile falls back to overlay panel on task select Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
292 B
Python
16 lines
292 B
Python
from pydantic import BaseModel, ConfigDict
|
|
from datetime import datetime
|
|
|
|
|
|
class TaskCommentCreate(BaseModel):
|
|
content: str
|
|
|
|
|
|
class TaskCommentResponse(BaseModel):
|
|
id: int
|
|
task_id: int
|
|
content: str
|
|
created_at: datetime
|
|
|
|
model_config = ConfigDict(from_attributes=True)
|