UMBRA/backend/app/schemas/task_comment.py
Kyle Pope 6e50089201 ProjectDetail overhaul: master-detail layout, comments, sorting, kanban
- 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>
2026-02-22 03:22:44 +08:00

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)