{selected.label}
{selected.description}
// token-extraction: allowlisted — intentional one-off decoration (DECISION-SHEET.md B1 // user ruling). The bg-[...gradient...] / shadow-[...] literals in this demo/UX-lab page // are deliberate one-off decoration, reverted from --gradient-extract-*/--shadow-extract-* // tokens; the file is on the check-token-gates allowlist in ui/src/index.css. import { useState } from "react"; import { Button } from "@/components/ui/button"; import { Badge } from "@/components/ui/badge"; import { cn, formatDateTime } from "../lib/utils"; import { Identity } from "../components/Identity"; import { StatusBadge } from "../components/StatusBadge"; import { RunTranscriptView, type TranscriptDensity, type TranscriptMode } from "../components/transcript/RunTranscriptView"; import { runTranscriptFixtureEntries, runTranscriptFixtureMeta } from "../fixtures/runTranscriptFixtures"; import { ExternalLink, FlaskConical, LayoutPanelLeft, MonitorCog, PanelsTopLeft, RadioTower } from "lucide-react"; type SurfaceId = "detail" | "live" | "dashboard"; const surfaceOptions: Array<{ id: SurfaceId; label: string; eyebrow: string; description: string; icon: typeof LayoutPanelLeft; }> = [ { id: "detail", label: "Run Detail", eyebrow: "Full transcript", description: "The long-form run page with the `Nice | Raw` toggle and the most inspectable transcript view.", icon: MonitorCog, }, { id: "live", label: "Issue Widget", eyebrow: "Live stream", description: "The issue-detail live run widget, optimized for following an active run without leaving the task page.", icon: RadioTower, }, { id: "dashboard", label: "Dashboard Card", eyebrow: "Dense card", description: "The active-agents dashboard card, tuned for compact scanning while keeping the same transcript language.", icon: PanelsTopLeft, }, ]; function previewEntries(surface: SurfaceId) { if (surface === "dashboard") { return runTranscriptFixtureEntries.slice(-9); } if (surface === "live") { return runTranscriptFixtureEntries.slice(-14); } return runTranscriptFixtureEntries; } function RunDetailPreview({ mode, streaming, density, }: { mode: TranscriptMode; streaming: boolean; density: TranscriptDensity; }) { return (
{selected.description}