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>
41 lines
974 B
TypeScript
41 lines
974 B
TypeScript
// Display-label helpers for publication enums, shared across the list, detail,
|
|
// and overview sub-pages so the wording stays consistent.
|
|
|
|
export function typeLabel(type: string): string {
|
|
switch (type) {
|
|
case "manuscript":
|
|
return "Manuscript";
|
|
case "abstract":
|
|
return "Abstract";
|
|
case "poster":
|
|
return "Poster";
|
|
case "slide_deck":
|
|
return "Slide deck";
|
|
default:
|
|
return "Other";
|
|
}
|
|
}
|
|
|
|
export function statusLabel(status: string): string {
|
|
switch (status) {
|
|
case "planning":
|
|
return "Planning";
|
|
case "in_review":
|
|
return "In review";
|
|
case "approved":
|
|
return "Approved";
|
|
case "published":
|
|
return "Published";
|
|
case "archived":
|
|
return "Archived";
|
|
default:
|
|
return status;
|
|
}
|
|
}
|
|
|
|
export function formatDate(value: string | null): string {
|
|
if (!value) return "—";
|
|
const d = new Date(value);
|
|
return Number.isNaN(d.getTime()) ? "—" : d.toLocaleDateString();
|
|
}
|