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 { FileIcon, FolderIcon } from "lucide-react"import { dummyFsNodes } from "@/components/file-manager/dummy-data"import { Card, CardContent } from "@/components/ui/card"type Node = (typeof dummyFsNodes)[number]function flatten(nodes: Node[], depth = 0): { node: Node; depth: number }[] { return nodes.flatMap((node) => [ { node, depth }, ...(node.children ? flatten(node.children, depth + 1) : []), ])}export default function FileManagerFixturesDemo() { const rows = flatten(dummyFsNodes) return ( <Card className="w-full max-w-md py-2"> <CardContent className="max-h-80 overflow-auto px-2"> <ul className="flex flex-col text-sm"> {rows.map(({ node, depth }) => ( <li key={node.id} className="flex items-center justify-between gap-4 rounded-md py-1.5 pr-2 hover:bg-accent" style={{ paddingLeft: 8 + depth * 16 }} > <span className="flex min-w-0 items-center gap-2"> {node.type === "folder" ? ( <FolderIcon className="size-4 shrink-0 text-muted-foreground" /> ) : ( <FileIcon className="size-4 shrink-0 text-muted-foreground" /> )} <span className="truncate">{node.name}</span> </span> {node.size !== undefined && ( <span className="shrink-0 text-xs tabular-nums text-muted-foreground"> {(node.size / 1024).toFixed(1)} KB </span> )} </li> ))} </ul> </CardContent> </Card> )}