"use client";
import { IconPointFilled } from "@tabler/icons-react";
import { Tooltip, TooltipContent, TooltipTrigger } from "@kandev/ui/tooltip";
import { cn } from "@/lib/utils";
type ExecutionIndicatorProps = {
status: string;
className?: string;
};
/**
* Shows a live/ready indicator for tasks with an active agent execution.
* - IN_PROGRESS / SCHEDULING: pulsing green dot + "Live"
* - REVIEW / WAITING: solid amber dot + "Ready"
* - Otherwise: hidden
*/
export function ExecutionIndicator({ status, className }: ExecutionIndicatorProps) {
const normalized = status?.toLowerCase().replace(/ /g, "_");
if (normalized === "in_progress" || normalized === "scheduling") {
return (
Live
Agent is actively working on this task
);
}
if (normalized === "in_review" || normalized === "review") {
return (
Ready
Agent finished — workspace ready for review
);
}
return null;
}