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 { FeatureSpotlight, type Feature } from '@/components/feature-spotlight';const features: Feature[] = [ { title: 'Real-time metrics', body: 'Numbers update as charges settle.', spot: 'metrics', }, { title: 'Trends you can read', body: 'Ninety days of revenue on one line.', spot: 'revenue', }, { title: 'Every payout, itemized', body: 'Each transfer lists its fees and when it lands.', spot: 'payouts', },];function Dashboard() { return ( <div className='flex h-full w-full flex-col gap-4 bg-background p-6 text-foreground'> <p className='text-[16px] font-semibold'>Overview</p> <div data-spot='metrics' className='grid grid-cols-3 gap-3'> {['MRR', 'Churn', 'Payouts'].map((label) => ( <div key={label} className='h-20 rounded-lg bg-muted p-3 text-[12px] text-muted-foreground'> {label} </div> ))} </div> <div data-spot='revenue' className='h-32 rounded-lg border border-border p-3 text-[12px] text-muted-foreground'> Revenue </div> <div data-spot='payouts' className='flex h-28 flex-col gap-2 rounded-lg border border-border p-3 text-[12px] text-muted-foreground'> Upcoming payouts </div> </div> );}export default function FeatureSpotlightDemo() { const scrollRef = useRef<HTMLDivElement>(null); return ( <div ref={scrollRef} className='h-[420px] w-full max-w-xl overflow-y-auto rounded-xl border border-border p-4'> <FeatureSpotlight features={features} scrollRoot={scrollRef} screenshotSize={{ width: 640, height: 440 }} screenshot={<Dashboard />} /> </div> );}