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 { Draggable, DropTarget, DropTargetProvider } from "@/components/ui/drop-target";const messages: Record<string, string> = { "msg-1": "Invoice #204", "msg-2": "Team lunch", "msg-3": "Welcome aboard",};export default function DropTargetDemo() { const [columns, setColumns] = useState<Record<string, string[]>>({ inbox: ["msg-1", "msg-2"], archive: ["msg-3"], }); const handleDrop = (item: string, target: string) => { setColumns((prev) => { const next: Record<string, string[]> = {}; for (const key of Object.keys(prev)) { next[key] = prev[key].filter((id) => id !== item); } next[target] = [...next[target], item]; return next; }); }; return ( <DropTargetProvider onDrop={handleDrop}> <div className="grid w-full max-w-md gap-4"> <DropTarget id="inbox" label="Inbox" className="flex min-h-32 flex-col gap-2 p-3"> <span className="text-xs font-medium text-muted-foreground">Inbox</span> {columns.inbox.map((id) => ( <Draggable key={id} id={id} label={messages[id]} className="w-full rounded-md border bg-background px-3 py-2 text-left text-sm" > {messages[id]} </Draggable> ))} </DropTarget> <DropTarget id="archive" label="Archive" className="flex min-h-32 flex-col gap-2 p-3"> <span className="text-xs font-medium text-muted-foreground">Archive</span> {columns.archive.map((id) => ( <Draggable key={id} id={id} label={messages[id]} className="w-full rounded-md border bg-background px-3 py-2 text-left text-sm" > {messages[id]} </Draggable> ))} </DropTarget> </div> </DropTargetProvider> );}