import type { StatusVariant } from "@/components/StatusDot";

interface CategoryConfig {
  label: string;
  variant: StatusVariant;
}

const categoryMap: Record<string, CategoryConfig> = {
  execute:  { label: "Execute",  variant: "active" },
  research: { label: "Research", variant: "neutral" },
  discuss:  { label: "Discuss",  variant: "warning" },
  plan:     { label: "Plan",     variant: "urgent" },
  detail:   { label: "Detail",   variant: "urgent" },
  refine:   { label: "Refine",   variant: "warning" },
  verify:   { label: "Verify",   variant: "success" },
  merge:    { label: "Merge",    variant: "success" },
  review:   { label: "Review",   variant: "error" },
};

const fallback: CategoryConfig = { label: "Unknown", variant: "neutral" };

export function getCategoryConfig(category: string): CategoryConfig {
  return categoryMap[category] ?? fallback;
}
