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 { useRef } from "react"import { PullToRefresh, type Post } from "@/components/pull-to-refresh"import { avatarImage } from "@/preview/images"const initialPosts: Post[] = [ { id: "seed-0", name: "Ava Chen", handle: "@ava", avatar: avatarImage("Ava Chen"), time: "7m", text: "Shipped the new onboarding today." }, { id: "seed-1", name: "Ben Ortiz", handle: "@ben", avatar: avatarImage("Ben Ortiz"), time: "14m", text: "Tabular numbers in every table, please." }, { id: "seed-2", name: "Cara Nwosu", handle: "@cara", avatar: avatarImage("Cara Nwosu"), time: "21m", text: "Friday demo went well." },]const incoming: { name: string; handle: string; text: string }[] = [ { name: "Dev Patel", handle: "@dev", text: "Pairing on the new command palette this afternoon." }, { name: "Fay Laurent", handle: "@fay", text: "New icons landed. One stroke weight across the whole set." },]export default function PullToRefreshDemo() { const next = useRef(0) return ( <PullToRefresh initialPosts={initialPosts} loadPosts={() => Array.from({ length: 2 }, () => { const n = next.current++ const person = incoming[n % incoming.length] return { id: `new-${n}`, name: person.name, handle: person.handle, avatar: avatarImage(person.name), time: "now", text: person.text, } }) } /> )}