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 { useState } from "react"import { DashboardGrid, DashboardGridItem } from "@/components/ui/dashboard-grid"import type { GridItem } from "@/components/ui/grid-layout"import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"const widgets: Record<string, { title: string; value: string }> = { revenue: { title: "Revenue", value: "$24,310" }, traffic: { title: "Traffic", value: "18,402 visits" }, orders: { title: "Orders", value: "142 open" }, signups: { title: "Signups", value: "86 this week" },}export default function DashboardGridDemo() { const [layout, setLayout] = useState<GridItem[]>([ { id: "revenue", x: 0, y: 0, w: 4, h: 2 }, { id: "traffic", x: 4, y: 0, w: 6, h: 2 }, { id: "orders", x: 0, y: 2, w: 5, h: 3 }, { id: "signups", x: 5, y: 2, w: 5, h: 3 }, ]) return ( <DashboardGrid layout={layout} onLayoutChange={setLayout} editing rows={5} rowHeight={64} className="w-full max-w-xl" > {layout.map((item) => { const widget = widgets[item.id] return ( <DashboardGridItem key={item.id} id={item.id} label={widget.title}> <Card className="h-full"> <CardHeader> <CardTitle>{widget.title}</CardTitle> </CardHeader> <CardContent> <p className="text-xl font-semibold">{widget.value}</p> </CardContent> </Card> </DashboardGridItem> ) })} </DashboardGrid> )}