"use client"; import { GitBranch, GitPullRequest, FileCheck } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { Task, TaskStatus } from "@/types"; interface GitStatusBadgeProps { task: Task; compact?: boolean; } export function GitStatusBadge({ task, compact = true }: GitStatusBadgeProps) { // All tasks follow git workflow - show relevant status // Show PR badge with status (highest priority) if (task.pr_number) { return ( PR #{task.pr_number} ); } // Parallel phase indicators (for AWAITING_DOCUMENTATION) if (task.status === TaskStatus.AWAITING_DOCUMENTATION) { return (
{compact ? "" : "Docs"} {compact ? "" : "PR"}
); } // Show branch badge (when branch exists but no PR yet) if (task.branch_name) { return ( {compact ? "Branch" : task.branch_name} ); } // Git task without branch yet return ( {compact ? "Git" : "No branch"} ); }