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 SortableList, { SortableListItem, type Item } from '@/components/ui/sortable-list'export default function SortableListDemo() { const [items, setItems] = useState<Item[]>([ { id: 1, text: 'Buy groceries', checked: false, description: '' }, { id: 2, text: 'Finish quarterly report', checked: false, description: '' }, { id: 3, text: 'Call the dentist', checked: false, description: '' }, ]) const toggle = (id: number) => setItems((prev) => prev.map((i) => (i.id === id ? { ...i, checked: !i.checked } : i))) return ( <div className='w-full max-w-sm'> <SortableList items={items} setItems={setItems} onCompleteItem={toggle} renderItem={(item, order, onCompleteItem, onRemoveItem) => ( <SortableListItem key={item.id} item={item} order={order} onCompleteItem={onCompleteItem} onRemoveItem={onRemoveItem} handleDrag={() => {}} /> )} /> </div> )}