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>
55 lines
1.5 KiB
TypeScript
55 lines
1.5 KiB
TypeScript
import { CheckRow } from "./CheckRow";
|
|
|
|
type HealthStatus = "ok" | "degraded";
|
|
|
|
export interface HealthResponse {
|
|
status: HealthStatus;
|
|
checks: {
|
|
database: boolean;
|
|
anthropic_key_present: boolean;
|
|
voyage_key_present: boolean;
|
|
};
|
|
timestamp: string;
|
|
}
|
|
|
|
interface HealthCardProps {
|
|
health: HealthResponse;
|
|
}
|
|
|
|
export function HealthCard({ health }: HealthCardProps) {
|
|
return (
|
|
<div className="mt-8 rounded-lg border border-ink/10 bg-white p-6">
|
|
<div className="flex items-center justify-between">
|
|
<span className="text-sm uppercase tracking-wide text-ink/60">
|
|
Overall
|
|
</span>
|
|
{health.status === "ok" ? (
|
|
<span className="rounded-full bg-green-600/10 px-3 py-1 text-sm font-semibold text-green-600">
|
|
✓ Operational
|
|
</span>
|
|
) : (
|
|
<span className="rounded-full bg-red-600/10 px-3 py-1 text-sm font-semibold text-red-600">
|
|
✗ Degraded
|
|
</span>
|
|
)}
|
|
</div>
|
|
|
|
<div className="mt-6">
|
|
<CheckRow label="Database connection" passed={health.checks.database} />
|
|
<CheckRow
|
|
label="Anthropic API key present"
|
|
passed={health.checks.anthropic_key_present}
|
|
/>
|
|
<CheckRow
|
|
label="Voyage API key present"
|
|
passed={health.checks.voyage_key_present}
|
|
/>
|
|
</div>
|
|
|
|
<p className="mt-6 text-xs text-ink/60">
|
|
Last checked: {new Date(health.timestamp).toLocaleString()}
|
|
</p>
|
|
</div>
|
|
);
|
|
}
|