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 { Avatar, AvatarFallback } from "@/components/ui/avatar"import { Badge } from "@/components/ui/badge"import { Card, CardContent } from "@/components/ui/card"import { TASK_TREE_DEMO_ITEMS, TASK_TREE_DEMO_STATUS_OPTIONS,} from "@/components/task-tree/dummy-data"type Task = (typeof TASK_TREE_DEMO_ITEMS)[number]function TaskRow({ task, depth = 0 }: { task: Task; depth?: number }) { const status = TASK_TREE_DEMO_STATUS_OPTIONS.find((s) => s.value === task.status) const initial = task.targetPerson?.name?.[0] ?? "?" return ( <> <div className="flex items-start justify-between gap-3 py-2" style={{ paddingLeft: depth * 20 }} > <div className="flex min-w-0 items-start gap-3"> <Avatar className="size-7"> <AvatarFallback className="text-xs">{initial}</AvatarFallback> </Avatar> <div className="min-w-0"> <p className="text-sm font-medium leading-none">{task.name}</p> <p className="mt-1 truncate text-xs text-muted-foreground">{task.description}</p> </div> </div> {status && <Badge variant={status.variant}>{status.label}</Badge>} </div> {task.children?.map((child) => ( <TaskRow key={child.id} task={child} depth={depth + 1} /> ))} </> )}export default function TaskTreeDemo() { return ( <Card className="w-full max-w-lg"> <CardContent className="divide-y"> {TASK_TREE_DEMO_ITEMS.map((task) => ( <TaskRow key={task.id} task={task} /> ))} </CardContent> </Card> )}