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 { StepIndicator, getChecklistProgress, getNextStep, skipStep, stepStateConfig, type StepState,} from '@/components/dashboardblocks/checklist'interface Step { id: string title: string state: StepState}const initialSteps: Step[] = [ { id: 'account', title: 'Create your account', state: 'done' }, { id: 'profile', title: 'Complete your profile', state: 'current' }, { id: 'team', title: 'Invite your team', state: 'todo' }, { id: 'billing', title: 'Add billing details', state: 'todo' },]export default function ChecklistDemo() { const [steps, setSteps] = useState<Step[]>(initialSteps) const progress = getChecklistProgress(steps) const next = getNextStep(steps) return ( <div className='flex w-full max-w-md flex-col gap-4'> <div className='flex items-center justify-between text-sm'> <span className='text-muted-foreground'> {progress.done} of {progress.total} done </span> {next && <span className='font-medium'>Next: {next.title}</span>} </div> <ol className='flex flex-col gap-3'> {steps.map((step, i) => ( <li key={step.id} className='flex items-center gap-3'> <StepIndicator state={step.state} index={i + 1} /> <span className={`flex-1 text-sm ${stepStateConfig[step.state].text}`}> {step.title} </span> {step.state !== 'done' && step.state !== 'skipped' && ( <Button variant='ghost' size='sm' onClick={() => setSteps(skipStep(steps, step.id))} > Skip </Button> )} </li> ))} </ol> </div> )}