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>
25 lines
717 B
TypeScript
25 lines
717 B
TypeScript
import { KIND_LABELS, type TemplateKind } from "@/app/console/templates/api";
|
|
|
|
// Small colored pill indicating a template's kind. Colors are kept subtle to fit
|
|
// the paper/ink palette — accent tints rather than saturated status colors.
|
|
const KIND_CLASSES: Record<TemplateKind, string> = {
|
|
claim: "bg-accent/10 text-accent",
|
|
report: "bg-ink/10 text-ink/70",
|
|
verification: "bg-emerald-500/10 text-emerald-700",
|
|
document: "bg-amber-500/10 text-amber-700",
|
|
};
|
|
|
|
interface KindBadgeProps {
|
|
kind: TemplateKind;
|
|
}
|
|
|
|
export function KindBadge({ kind }: KindBadgeProps) {
|
|
return (
|
|
<span
|
|
className={`text-xs rounded px-2 py-0.5 ${KIND_CLASSES[kind]}`}
|
|
>
|
|
{KIND_LABELS[kind]}
|
|
</span>
|
|
);
|
|
}
|