Skip to content

⭐️⭐️⭐️ 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.

778 B
Raw Blame
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';

// One lifecycle figure beside the compact bar: its name, the duration, and what it
// measures behind a tooltip on the dotted underline.

export default function IssueTimelineMetric({
  label,
  value,
  description,
}: {
  label: string;
  value: string;
  description: string;
}) {
  return (
    <Tooltip>
      <TooltipTrigger asChild>
        <span className="flex cursor-default items-center gap-1.5 underline decoration-dotted underline-offset-4">
          {label}
          <span className="font-medium text-foreground tabular-nums">{value}</span>
        </span>
      </TooltipTrigger>
      <TooltipContent className="max-w-64">{description}</TooltipContent>
    </Tooltip>
  );
}