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 { createDataTableColumnHelper, DataTableContent, DataTablePagination, DataTableSearch, useDataTable } from '@/components/dashboardblocks/data-table'import { Badge } from '@/components/ui/badge'type Order = { id: string customer: string status: string total: number}const orders: Order[] = [ { id: 'ORD-1001', customer: 'Olivia Martin', status: 'Paid', total: 242.5 }, { id: 'ORD-1002', customer: 'Jackson Lee', status: 'Pending', total: 83.0 }, { id: 'ORD-1003', customer: 'Isabella Nguyen', status: 'Paid', total: 512.75 }, { id: 'ORD-1004', customer: 'William Kim', status: 'Refunded', total: 34.2 }, { id: 'ORD-1005', customer: 'Sofia Davis', status: 'Paid', total: 129.99 }, { id: 'ORD-1006', customer: 'Ethan Brown', status: 'Pending', total: 301.0 }, { id: 'ORD-1007', customer: 'Emma Wilson', status: 'Paid', total: 67.5 }, { id: 'ORD-1008', customer: 'Liam Garcia', status: 'Failed', total: 18.4 },]const helper = createDataTableColumnHelper<Order>()const columns = [ helper.accessor('customer', { header: 'Customer', meta: { primary: true } }), helper.accessor('status', { header: 'Status', cell: (info) => <Badge variant='outline'>{info.getValue()}</Badge>, }), helper.accessor('total', { header: 'Total', cell: (info) => `$${info.getValue().toFixed(2)}`, meta: { align: 'end' }, }),]export default function DataTableDemo() { const table = useDataTable({ data: orders, columns, pageSize: 5 }) return ( <div className='@container/data-table flex w-full max-w-2xl flex-col gap-4'> <DataTableSearch table={table} /> <DataTableContent table={table} /> <DataTablePagination table={table} pageSizeOptions={[5, 10]} /> </div> )}