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 { Button } from '@/components/ui/button'import { Separator } from '@/components/ui/separator'const sections = [ { label: 'Getting started', children: ['Installation', 'Quick start', 'Configuration', 'Theming'] }, { label: 'Components', children: ['Buttons', 'Typography', 'Overlays', 'Toasts'] },]export default function BranchedMenuDemo() { const [open, setOpen] = useState<number[]>([0]) const [active, setActive] = useState('Quick start') return ( <div className="flex w-full max-w-xs flex-col gap-1 border-l pl-3"> {sections.map((section, i) => { const isOpen = open.includes(i) return ( <div key={section.label} className="flex flex-col"> <Button variant="ghost" className="justify-start px-2 font-medium" aria-expanded={isOpen} onClick={() => setOpen((prev) => (prev.includes(i) ? prev.filter((n) => n !== i) : [...prev, i])) } > {section.label} </Button> {isOpen && ( <div className="flex flex-col gap-0.5 pl-4"> {section.children.map((child) => ( <Button key={child} variant={active === child ? 'secondary' : 'ghost'} size="sm" className="justify-start" aria-current={active === child ? 'true' : undefined} onClick={() => setActive(child)} > {child} </Button> ))} </div> )} {i < sections.length - 1 && <Separator className="my-1" />} </div> ) })} </div> )}