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 { FileText, User } from "lucide-react"import { SearchDialog, type SearchResult } from "@/components/ui/search-dialog"const results: SearchResult[] = [ { id: "d1", title: "Billing overview", kind: "docs", subtitle: "Docs › Billing", icon: <FileText />, excerpt: "Invoices are issued on the first of each month. Update your billing address anytime from settings.", meta: [["Updated", "March 3"], ["Read time", "4 min"]], href: "/docs/billing" }, { id: "d2", title: "Update payment method", kind: "docs", subtitle: "Docs › Billing", icon: <FileText />, excerpt: "Add a new card or bank account. Your previous payment method stays active until the change is saved.", href: "/docs/payment-method" }, { id: "p1", title: "Olivia Martin", kind: "people", subtitle: "olivia@acme.com", icon: <User />, excerpt: "Billing admin for the Acme team.", meta: [["Role", "Admin"]] }, { id: "p2", title: "Jackson Lee", kind: "people", subtitle: "jackson@acme.com", icon: <User />, excerpt: "Owns invoices for the design team.", meta: [["Role", "Member"]] },]const filters = [ { value: "docs", label: "Docs" }, { value: "people", label: "People" },]export default function SearchDialogDemo() { const [box, setBox] = useState<HTMLDivElement | null>(null) return ( <div ref={setBox} className="relative h-[450px] w-full overflow-hidden"> {box && ( <SearchDialog defaultOpen container={box} filters={filters} defaultRecent={["billing"]} search={async (query) => { const q = query.toLowerCase() return results.filter((r) => `${r.title} ${r.excerpt ?? ""}`.toLowerCase().includes(q)) }} /> )} </div> )}