export type TaskStatus = "backlog" | "todo" | "in_progress" | "done";
export type TaskPriority = "low" | "medium" | "high" | "urgent";

export type TaskRow = {
  id: string;
  title: string;
  description: string;
  status: TaskStatus;
  priority: TaskPriority;
  dueDate: string;
  assigneeId: string;
  assigneeName: string;
  customerId: string;
  customerName: string;
  order: number;
};

export type Customer = { id: string; name: string };
export type TeamMember = { id: string; name: string };

export type TaskFilter = "all" | "mine" | "unassigned" | "mine_or_unassigned";

export const FILTER_LABEL: Record<TaskFilter, string> = {
  all: "Hepsi",
  mine: "Bana atanmış",
  unassigned: "Atanmamış",
  mine_or_unassigned: "Bana atanmış + Atanmamış",
};

export const COLUMNS: { key: TaskStatus; title: string }[] = [
  { key: "backlog", title: "Beklemede" },
  { key: "todo", title: "Yapılacak" },
  { key: "in_progress", title: "Sürüyor" },
  { key: "done", title: "Bitti" },
];

export const PRIORITY_LABEL: Record<TaskPriority, string> = {
  low: "Düşük",
  medium: "Orta",
  high: "Yüksek",
  urgent: "Acil",
};

export const PRIORITY_COLOR: Record<TaskPriority, string> = {
  low: "bg-slate-100 text-slate-700 dark:bg-slate-800 dark:text-slate-300",
  medium: "bg-blue-100 text-blue-700 dark:bg-blue-950 dark:text-blue-300",
  high: "bg-amber-100 text-amber-800 dark:bg-amber-950 dark:text-amber-300",
  urgent: "bg-red-100 text-red-700 dark:bg-red-950 dark:text-red-300",
};
