Clean up: Remove src files

This commit is contained in:
Samuel James 2026-09-05 15:28:21 +00:00
parent 9c6dc0e787
commit 13c867a41b

View File

@ -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<TaskStatus, string> = {
open: 'Open',
in_progress: 'In Progress',
blocked: 'Blocked',
};
export const PRIORITY_LABELS: Record<TaskPriority, string> = {
low: 'Low',
medium: 'Medium',
high: 'High',
};
export const TITLE_MAX_LENGTH = 120;
export const DESCRIPTION_MAX_LENGTH = 1000;