import { Sparkles } from "lucide-react"; import { Link } from "@/lib/router"; import { cn, relativeTime } from "@/lib/utils"; import { type SourceResolvedWatchdogFold, formatCleanupOutcome, formatSilenceAgeMs, shortenEvidenceId, } from "@/lib/source-resolved-watchdog-fold"; export interface SourceResolvedFoldCalloutProps { fold: SourceResolvedWatchdogFold; /** Time the run was finalized — used for the "system audit · {when}" header chip. */ finalizedAt?: string | Date | null; className?: string; } function isoOrLocaleString(value: string | null | undefined): string | null { if (!value) return null; const date = new Date(value); if (Number.isNaN(date.getTime())) return value; return date.toLocaleString(); } function issueLink(id: string, identifier: string | null) { return `/issues/${identifier ?? id}`; } function MetaRow({ label, children, }: { label: string; children: React.ReactNode; }) { return (
This run was folded as a source-resolved false positive.
{evidenceShort}
{evidenceAt ? (
at {evidenceAt}
) : null}