papertrail/components/templates/TemplateBodyFields.tsx
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

34 lines
1.0 KiB
TypeScript

"use client";
import { FieldEditor } from "./FieldEditor";
import type { TemplateBody } from "@/app/console/templates/api";
interface TemplateBodyFieldsProps {
body: TemplateBody;
onChange: (body: TemplateBody) => void;
}
// The body field group: the free-form content skeleton plus the field editor.
// Immutable updates — spreads the body on every change.
export function TemplateBodyFields({ body, onChange }: TemplateBodyFieldsProps) {
return (
<div className="space-y-4">
<label className="block text-sm text-ink/70">
Content
<textarea
value={body.content}
onChange={(e) => onChange({ ...body, content: e.target.value })}
placeholder="Skeleton content, boilerplate, or prompt text..."
rows={6}
className="mt-1 w-full border border-ink/15 rounded px-2 py-2 text-sm text-ink/80 bg-white font-mono"
/>
</label>
<FieldEditor
fields={body.fields}
onChange={(fields) => onChange({ ...body, fields })}
/>
</div>
);
}