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

67 lines
1.8 KiB
TypeScript

import type { ReactNode } from "react";
import Link from "next/link";
interface ModuleHeaderProps {
title: string;
description?: string;
actions?: ReactNode;
}
// Page-level header used across the API-usage module (mirrors the reports module's
// header so the console feels consistent).
export function ModuleHeader({ title, description, actions }: ModuleHeaderProps) {
return (
<div className="flex items-start justify-between gap-4">
<div>
<h1 className="text-2xl font-semibold text-ink/80">{title}</h1>
{description ? (
<p className="mt-1 text-sm text-ink/40">{description}</p>
) : null}
</div>
{actions ? <div className="flex items-center gap-2">{actions}</div> : null}
</div>
);
}
interface TabDef {
href: string;
label: string;
}
// Secondary nav shared by the module's sub-pages. `active` is matched by href.
export function ModuleTabs({
tabs,
active,
}: {
tabs: TabDef[];
active: string;
}) {
return (
<nav className="mt-4 flex gap-1 border-b border-ink/10">
{tabs.map((t) => {
const isActive = t.href === active;
return (
<Link
key={t.href}
href={t.href}
className={
isActive
? "border-b-2 border-accent px-3 py-2 text-sm font-medium text-ink/80"
: "border-b-2 border-transparent px-3 py-2 text-sm text-ink/50 hover:text-ink/80"
}
>
{t.label}
</Link>
);
})}
</nav>
);
}
export const API_USAGE_TABS: TabDef[] = [
{ href: "/console/api-usage", label: "Summary" },
{ href: "/console/api-usage/timeseries", label: "Timeseries" },
{ href: "/console/api-usage/requests", label: "Request log" },
{ href: "/console/api-usage/rate-limits", label: "Rate limits" },
];