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>
52 lines
1.5 KiB
TypeScript
52 lines
1.5 KiB
TypeScript
"use client";
|
|
|
|
interface LibraryFormFieldsProps {
|
|
name: string;
|
|
projectId: string;
|
|
onNameChange: (value: string) => void;
|
|
onProjectIdChange: (value: string) => void;
|
|
}
|
|
|
|
// Field group for the create-library form: name (required) + optional project id.
|
|
export function LibraryFormFields({
|
|
name,
|
|
projectId,
|
|
onNameChange,
|
|
onProjectIdChange,
|
|
}: LibraryFormFieldsProps) {
|
|
return (
|
|
<>
|
|
<div>
|
|
<label htmlFor="lib-name" className="block text-sm font-medium text-ink/70">
|
|
Name <span className="text-accent">*</span>
|
|
</label>
|
|
<input
|
|
id="lib-name"
|
|
type="text"
|
|
value={name}
|
|
onChange={(e) => onNameChange(e.target.value)}
|
|
maxLength={200}
|
|
required
|
|
autoFocus
|
|
placeholder="e.g. Cardiovascular Efficacy Sources"
|
|
className="mt-1 w-full rounded-md border border-ink/15 bg-white px-3 py-2 text-sm text-ink/80 focus:border-accent focus:outline-none"
|
|
/>
|
|
</div>
|
|
|
|
<div>
|
|
<label htmlFor="project-id" className="block text-sm font-medium text-ink/70">
|
|
Project ID <span className="text-ink/40">(optional)</span>
|
|
</label>
|
|
<input
|
|
id="project-id"
|
|
type="text"
|
|
value={projectId}
|
|
onChange={(e) => onProjectIdChange(e.target.value)}
|
|
placeholder="Associate with a project (UUID)"
|
|
className="mt-1 w-full rounded-md border border-ink/15 bg-white px-3 py-2 text-sm text-ink/80 focus:border-accent focus:outline-none"
|
|
/>
|
|
</div>
|
|
</>
|
|
);
|
|
}
|