caelum0x 695a365ae4 feat: PaperTrail — enterprise evidence-verification platform
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>
2026-07-08 07:21:22 +03:00

38 lines
974 B
TypeScript

import type { ReportType, RunStatus } from "@/lib/reporting/types";
// Shared presentation helpers for the reporting module.
const TYPE_LABELS: Record<ReportType, string> = {
summary: "Summary",
claims: "Claims",
reviews: "Reviews",
documents: "Documents",
};
export function typeLabel(type: ReportType): string {
return TYPE_LABELS[type] ?? type;
}
const STATUS_STYLES: Record<RunStatus, string> = {
pending: "bg-ink/10 text-ink/60",
running: "bg-amber-100 text-amber-800",
complete: "bg-emerald-100 text-emerald-800",
failed: "bg-red-100 text-red-800",
};
export function statusStyle(status: RunStatus): string {
return STATUS_STYLES[status] ?? "bg-ink/10 text-ink/60";
}
export function formatDate(iso: string): string {
const d = new Date(iso);
if (Number.isNaN(d.getTime())) return iso;
return d.toLocaleString(undefined, {
year: "numeric",
month: "short",
day: "numeric",
hour: "2-digit",
minute: "2-digit",
});
}