Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import type { ComponentType } from "react"import { Badge } from "@/components/ui/badge"import { Button } from "@/components/ui/button"import { Separator } from "@/components/ui/separator"import { SIDEBAR_NAV_DUMMY_CURRENT_PATH, SIDEBAR_NAV_DUMMY_ITEMS, SIDEBAR_NAV_DUMMY_SECTIONED,} from "@/components/app-sidebar/dummy-data"type LinkEntry = { id: string label: string href?: string icon?: unknown badge?: number}function NavLink({ entry }: { entry: LinkEntry }) { const active = entry.href === SIDEBAR_NAV_DUMMY_CURRENT_PATH const Icon = typeof entry.icon === "function" ? (entry.icon as ComponentType<{ className?: string }>) : null return ( <Button variant={active ? "secondary" : "ghost"} className="w-full justify-start gap-2" aria-current={active ? "page" : undefined} > {Icon ? <Icon className="size-4" /> : null} <span>{entry.label}</span> {entry.badge !== undefined ? ( <Badge variant="secondary" className="ml-auto"> {entry.badge} </Badge> ) : null} </Button> )}export default function AppSidebarFixturesDemo() { return ( <div className="flex w-full max-w-2xl flex-wrap items-start gap-8"> <div className="flex w-full max-w-xs flex-col gap-1"> {SIDEBAR_NAV_DUMMY_ITEMS.map((item) => "label" in item ? <NavLink key={item.id} entry={item} /> : null )} </div> <div className="flex w-full max-w-xs flex-col gap-1"> {SIDEBAR_NAV_DUMMY_SECTIONED.map((entry, index) => { if ("items" in entry) { return ( <div key={index} className="flex flex-col gap-1"> <p className="px-2 pt-2 text-xs font-medium text-muted-foreground"> {entry.title} </p> {entry.items.map((child) => "label" in child ? ( <NavLink key={child.id} entry={child} /> ) : null )} </div> ) } if ("label" in entry) { return <NavLink key={entry.id} entry={entry} /> } return <Separator key={index} className="my-2" /> })} </div> </div> )}