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>
40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
import type { ApiRequestLogItem } from "@/lib/apiusage/types";
|
|
import {
|
|
formatDateTime,
|
|
formatMs,
|
|
keyLabel,
|
|
statusColorClass,
|
|
} from "./shared";
|
|
|
|
// One row of the request log table.
|
|
export function RequestRow({ item }: { item: ApiRequestLogItem }) {
|
|
return (
|
|
<tr className="hover:bg-paper/60">
|
|
<td className="px-4 py-2 text-ink/40">{formatDateTime(item.createdAt)}</td>
|
|
<td className="px-4 py-2">
|
|
<span className="rounded bg-ink/5 px-1.5 py-0.5 text-xs font-medium text-ink/60">
|
|
{item.method}
|
|
</span>
|
|
</td>
|
|
<td className="px-4 py-2">
|
|
<code className="text-ink/80">{item.route}</code>
|
|
</td>
|
|
<td className="px-4 py-2">
|
|
<span
|
|
className={`inline-block rounded border px-1.5 py-0.5 text-xs font-medium ${statusColorClass(
|
|
item.statusCode
|
|
)}`}
|
|
>
|
|
{item.statusCode}
|
|
</span>
|
|
</td>
|
|
<td className="px-4 py-2 text-right text-ink/60">
|
|
{formatMs(item.durationMs)}
|
|
</td>
|
|
<td className="px-4 py-2 text-ink/60">
|
|
{keyLabel(item.keyName, item.apiKeyId)}
|
|
</td>
|
|
</tr>
|
|
);
|
|
}
|