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 { Component, type ReactNode } from "react"import { DiceDiscountPopup } from "@/components/dice-discount-popup"import { Button } from "@/components/ui/button"import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"class PreviewBoundary extends Component<{ children: ReactNode; fallback: ReactNode }, { failed: boolean }> { state = { failed: false } static getDerivedStateFromError() { return { failed: true } } render() { return this.state.failed ? this.props.fallback : this.props.children }}export default function DiceDiscountPopupDemo() { return ( <PreviewBoundary fallback={ <Card className="w-full max-w-md"> <CardHeader> <CardTitle>Roll for a Discount</CardTitle> <CardDescription>3 free rolls, real savings</CardDescription> </CardHeader> <CardContent> <p className="text-sm text-muted-foreground">You have 3 free rolls</p> </CardContent> <CardFooter> <Button className="w-full">Roll Dice · 3 left</Button> </CardFooter> </Card> } > <DiceDiscountPopup theme="ecommerce" className="w-full max-w-md" /> </PreviewBoundary> )}