import type React from "react"; import type { VectorCortexRestoreView } from "../api/vector-cortex"; import { Card, CardContent, CardHeader, CardTitle } from "../components/ui/card"; import { Metric } from "./VectorCortexMetric"; import { VcStatusBadge } from "./VcStatusBadge"; export function VectorCortexRestoreCard({ view }: { view: VectorCortexRestoreView | null }): React.ReactElement { return (
Exact Source Restoration (VC6B)
{!view?.enabled ? (
Exact source restoration disabled (VC6B off) — no exact source is restored; omitted context is disclosed as loss (mode C).
) : ( <>
Reader-only restore diagnostics — counts and HEAL_RESTORE_* codes only. There is no payload endpoint: restored bytes, span ids, node ids, and ledger text are never exposed (SECURITY_PRIVACY).
{view?.status === "awaiting_data" && (
Awaiting first event. Data will appear after the next pipeline run.
)} {view?.status === "deferred" && view?.deferredReason && (
Deferred: {view.deferredReason.replace(/_/g, " ")}
)} )}
); }