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 { Badge } from '@/components/ui/badge'import { DivergingBar, Dumbbell, DumbbellLegend, IntervalBar, compareProportions, getDelta } from '@/components/dashboardblocks/comparison'export default function ComparisonDemo() { const test = compareProportions( { conversions: 120, visitors: 2400 }, { conversions: 168, visitors: 2380 }, ) const revenue = getDelta(18400, 15200) return ( <div className='w-full max-w-md space-y-6'> <div className='space-y-2'> <div className='flex items-center justify-between text-sm'> <span className='text-muted-foreground'>Revenue</span> <span className='font-medium'> {revenue.percent > 0 ? '+' : ''} {revenue.percent}% </span> </div> <DivergingBar max={5000} value={revenue.difference} /> </div> <div className='space-y-2'> <div className='flex items-center justify-between text-sm'> <span className='text-muted-foreground'>Conversion rate</span> <span className='font-medium'> {(test.rateA * 100).toFixed(1)}% → {(test.rateB * 100).toFixed(1)}% </span> </div> <Dumbbell before={test.rateA * 100} after={test.rateB * 100} max={10} /> <DumbbellLegend beforeLabel='Control' afterLabel='Variant' /> </div> <div className='space-y-2'> <div className='flex items-center justify-between text-sm'> <span className='text-muted-foreground'>Lift</span> <Badge variant={test.significant ? 'default' : 'secondary'}> {test.significant ? 'Significant' : 'Not significant'} </Badge> </div> <IntervalBar estimate={test.lift * 100} low={test.liftLow * 100} high={test.liftHigh * 100} extent={100} /> </div> </div> )}