// Single source of truth for stage-status coloring (docs/21-FRONTEND-PHASE2.md §3):
// "These colors are the single source for status coloring everywhere (board, run graph,
// drawers, legend)." Every screen that renders a stage status imports from here.

export type StageStatus = "Waiting" | "Ready" | "InProgress" | "Done" | "Approved"

export const STAGE_STATUS_ORDER: StageStatus[] = ["Waiting", "Ready", "InProgress", "Done", "Approved"]

export const STAGE_STATUS_COLOR: Record<StageStatus, string> = {
  Waiting: "#9CA3AF",
  Ready: "#3B82F6",
  InProgress: "#F59E0B",
  Done: "#22C55E",
  Approved: "#14B8A6",
}

export const STAGE_STATUS_LABEL: Record<StageStatus, string> = {
  Waiting: "Waiting",
  Ready: "Ready",
  InProgress: "In Progress",
  Done: "Done",
  Approved: "Approved",
}

/** Run-level (not stage-level) colors, per the same table. */
export const RUN_CANCELLED_COLOR = "#EF4444"
export const RUN_COMPLETED_COLOR = "#14B8A6"
