Multi-tenant platform (182 pages, 228 API routes, ~30 modules) built on a deterministic verification core: clinical-trial claims checked against ClinicalTrials.gov registered results and raw event counts (ARR/NNT/RR+CI recomputed in code, oracle-tested), code-enforced exact-span grounding, and multi-source cross-verification. Auth/RBAC/multi-tenancy, document processing at scale (unpdf + Docling), agentic workflows, Claude Science connector, compliance/audit, billing, public API, and more. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
23 lines
691 B
TypeScript
23 lines
691 B
TypeScript
import type { JobStatus } from "@/lib/jobs/types";
|
|
|
|
// Shared status badge styling and time formatting for the jobs console.
|
|
|
|
export function statusClasses(status: JobStatus): string {
|
|
switch (status) {
|
|
case "completed":
|
|
return "bg-green-50 text-green-700 border-green-200";
|
|
case "failed":
|
|
return "bg-red-50 text-red-700 border-red-200";
|
|
case "running":
|
|
return "bg-blue-50 text-blue-700 border-blue-200";
|
|
default:
|
|
return "bg-paper text-ink/60 border-ink/15";
|
|
}
|
|
}
|
|
|
|
export function formatTime(value: string | null): string {
|
|
if (!value) return "—";
|
|
const d = new Date(value);
|
|
return Number.isNaN(d.getTime()) ? "—" : d.toLocaleString();
|
|
}
|