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 { RiskLevelLabel, describeCorrelation, fitLine, getRiskLevel } from '@/components/dashboardblocks/scatter'import { Card, CardContent } from '@/components/ui/card'import { Separator } from '@/components/ui/separator'const risks = [ { name: 'Supplier outage', likelihood: 4, impact: 5 }, { name: 'Data breach', likelihood: 2, impact: 5 }, { name: 'Staff turnover', likelihood: 3, impact: 2 }, { name: 'Currency swings', likelihood: 2, impact: 2 },]const fit = fitLine(risks.map((risk) => ({ x: risk.likelihood, y: risk.impact })))export default function ScatterDemo() { return ( <Card className='w-full max-w-md'> <CardContent className='grid gap-3'> {risks.map((risk, index) => ( <div key={risk.name} className='grid gap-3'> {index > 0 && <Separator />} <div className='flex items-center justify-between gap-4 text-sm'> <span className='font-medium'>{risk.name}</span> <RiskLevelLabel level={getRiskLevel(risk.likelihood, risk.impact)} /> </div> </div> ))} <p className='text-muted-foreground text-xs'> Likelihood and impact show {describeCorrelation(fit.r)}. </p> </CardContent> </Card> )}