diff --git a/frontend/src/types.ts b/frontend/src/types.ts deleted file mode 100644 index 258d662..0000000 --- a/frontend/src/types.ts +++ /dev/null @@ -1,51 +0,0 @@ -export interface User { - id: number; - username: string; - full_name: string; - avatar_url?: string; -} - -export type TaskStatus = 'open' | 'in_progress' | 'blocked'; -export type TaskPriority = 'low' | 'medium' | 'high'; -export type TaskFilter = 'my' | 'all' | 'blocked'; - -export interface Task { - id: number; - title: string; - description: string; - assigned_to?: User; - status: TaskStatus; - priority: TaskPriority; - due_date?: string; - created_by?: User; - created_at: string; - updated_at: string; -} - -/** Shape the task form submits. Mirrors the POST/PUT /api/tasks request body. */ -export interface TaskDraft { - title: string; - description: string; - assignee_id: number | null; - status: TaskStatus; - priority: TaskPriority; - due_date: string; -} - -export const TASK_STATUSES: TaskStatus[] = ['open', 'in_progress', 'blocked']; -export const TASK_PRIORITIES: TaskPriority[] = ['low', 'medium', 'high']; - -export const STATUS_LABELS: Record = { - open: 'Open', - in_progress: 'In Progress', - blocked: 'Blocked', -}; - -export const PRIORITY_LABELS: Record = { - low: 'Low', - medium: 'Medium', - high: 'High', -}; - -export const TITLE_MAX_LENGTH = 120; -export const DESCRIPTION_MAX_LENGTH = 1000;