papertrail/app/dashboard/_components/dashboardShared.ts
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

22 lines
634 B
TypeScript

export interface StatsData {
total_verifications: number;
total_sources: number;
avg_trust_score: number | null;
by_discrepancy_type: Record<string, number>;
flagged_rate: number;
}
export const LABELS: Record<string, string> = {
accurate: "Accurate",
magnitude_overstated: "Magnitude overstated",
population_overgeneralized: "Population overgeneralized",
caveat_dropped: "Caveat dropped",
no_support_found: "No support found",
};
export function barClasses(type: string): string {
if (type === "accurate") return "bg-green-500";
if (type === "no_support_found") return "bg-ink/30";
return "bg-red-500";
}