papertrail/components/search/SearchTypeBadge.tsx
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

32 lines
928 B
TypeScript

import type { SearchType } from "@/components/search/types";
// Small colored pill labelling a result's entity type. Colors are subtle,
// consistent with the ink/accent palette used across the console.
const BADGE_STYLES: Record<SearchType, string> = {
claim: "bg-accent/10 text-accent",
document: "bg-ink/10 text-ink/60",
evidence: "bg-emerald-100 text-emerald-700",
verification: "bg-amber-100 text-amber-700",
};
const BADGE_LABELS: Record<SearchType, string> = {
claim: "Claim",
document: "Document",
evidence: "Evidence",
verification: "Verification",
};
export interface SearchTypeBadgeProps {
type: SearchType;
}
export function SearchTypeBadge({ type }: SearchTypeBadgeProps) {
return (
<span
className={`inline-flex shrink-0 items-center rounded px-1.5 py-0.5 text-[10px] font-medium uppercase tracking-wide ${BADGE_STYLES[type]}`}
>
{BADGE_LABELS[type]}
</span>
);
}