papertrail/components/evidence/EvidenceBadges.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

36 lines
1011 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type { EvidenceSourceType } from "@/lib/evidence/types";
import { SOURCE_TYPE_LABELS } from "@/components/evidence/labels";
// Small, reusable presentational badges for source type and tags.
export function SourceTypeBadge({ type }: { type: EvidenceSourceType }) {
return (
<span className="inline-flex items-center rounded-full border border-ink/15 bg-paper px-2 py-0.5 text-xs text-ink/60">
{SOURCE_TYPE_LABELS[type]}
</span>
);
}
interface TagBadgeProps {
tag: string;
onRemove?: (tag: string) => void;
}
export function TagBadge({ tag, onRemove }: TagBadgeProps) {
return (
<span className="inline-flex items-center gap-1 rounded-full bg-accent/10 px-2 py-0.5 text-xs text-accent">
{tag}
{onRemove ? (
<button
type="button"
onClick={() => onRemove(tag)}
className="text-accent/70 hover:text-accent"
aria-label={`Remove tag ${tag}`}
>
×
</button>
) : null}
</span>
);
}