import type React from "react"; import type { VectorCortexRolloutView } from "../api/vector-cortex"; import { Card, CardContent, CardHeader, CardTitle } from "../components/ui/card"; import { Metric } from "./VectorCortexMetric"; import { VcStatusBadge } from "./VcStatusBadge"; export function VectorCortexRolloutCard({ view }: { view: VectorCortexRolloutView | null }): React.ReactElement { return (
Live Graduated Rollout (VC5C)
{!view?.enabled ? (
Rollout disabled (VC5C off).
) : ( <>
Reader-only rollout route — no session payloads or bucket→session mappings exposed.
{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, " ")}
)} )}
); }