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>
36 lines
1013 B
TypeScript
36 lines
1013 B
TypeScript
"use client";
|
|
|
|
import type { ExperimentStatus } from "@/lib/flags/types";
|
|
import { EXPERIMENT_STATUSES } from "@/lib/flags/types";
|
|
|
|
// Status filter tabs for the experiment list. Controlled by the parent.
|
|
export function ExperimentFilters({
|
|
status,
|
|
onStatus,
|
|
}: {
|
|
status: ExperimentStatus | "all";
|
|
onStatus: (next: ExperimentStatus | "all") => void;
|
|
}) {
|
|
const options: (ExperimentStatus | "all")[] = ["all", ...EXPERIMENT_STATUSES];
|
|
return (
|
|
<div className="flex flex-wrap gap-1">
|
|
{options.map((option) => {
|
|
const active = status === option;
|
|
return (
|
|
<button
|
|
key={option}
|
|
onClick={() => onStatus(option)}
|
|
className={`rounded-md px-2.5 py-1 text-xs font-medium capitalize transition-colors ${
|
|
active
|
|
? "bg-accent/10 text-accent"
|
|
: "text-ink/60 hover:bg-paper hover:text-ink"
|
|
}`}
|
|
>
|
|
{option}
|
|
</button>
|
|
);
|
|
})}
|
|
</div>
|
|
);
|
|
}
|