⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.
TypeScript agenticagileai-agentsbug-reportingbug-trackerganttissue-trackerjirajira-alternativekanbanlinearlinear-alternativeopen-sourceproduct-managementproject-managementroadmapself-hostedsprint-planningteam-collaborationtrello-alternative
import { Check, Clock, LoaderCircle, Minus, Send, X } from 'lucide-react';
import type { RunnerQueueRun } from '@/lib/api/endpoints/runnerQueue';
import { cn } from '@/lib/utils';
const STATE_ICON = {
running: [LoaderCircle, 'animate-spin'],
queued: [Clock, 'text-warning'],
success: [Check, 'text-green-500'],
failed: [X, 'text-destructive'],
canceled: [Minus, 'text-muted-foreground'],
} as const;
export default function RunnerQueueStateIcon({
run,
className,
}: {
run: RunnerQueueRun;
className?: string;
}) {
const [StateIcon, tone] = STATE_ICON[run.executionState];
const Icon = run.executionState === 'queued' && run.runnerState === 'push' ? Send : StateIcon;
return <Icon aria-hidden className={cn('shrink-0', tone, className)} />;
}