papertrail/components/help/ArticleView.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

29 lines
1.1 KiB
TypeScript

"use client";
// Renders a single help article's detail. Body is plain text (whitespace
// preserved). Presentational: the parent page handles fetch/loading/error.
import Link from "next/link";
import type { HelpArticleDto } from "@/app/console/help/api";
export function ArticleView({ article }: { article: HelpArticleDto }) {
return (
<article className="bg-white border border-ink/10 rounded-lg p-6">
<div className="flex items-center gap-2">
<Link
href={`/console/help?category=${encodeURIComponent(article.category)}`}
className="text-xs rounded px-2 py-0.5 bg-accent/10 text-accent capitalize hover:opacity-90"
>
{article.category}
</Link>
<span className="text-xs text-ink/40">
Updated {new Date(article.createdAt).toLocaleDateString()}
</span>
</div>
<h1 className="mt-3 text-2xl font-semibold text-ink/80">{article.title}</h1>
<div className="mt-4 text-sm leading-relaxed text-ink/70 whitespace-pre-wrap">
{article.body}
</div>
</article>
);
}