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 { useState } from 'react';import { PropertiesForm } from '@/components/properties-form/properties-form';import type { PropertiesFormField } from '@/components/properties-form/types';const schema: ReadonlyArray<PropertiesFormField> = [ { key: 'name', type: 'string', label: 'Name', required: true }, { key: 'status', type: 'select', label: 'Status', options: [ { value: 'draft', label: 'Draft' }, { value: 'published', label: 'Published' }, ], }, { key: 'featured', type: 'boolean', label: 'Featured' }, { key: 'views', type: 'number', label: 'Views', permission: 'read-only', permissionReason: 'Views are tracked automatically.', },];export default function PropertiesFormDemo() { const [values, setValues] = useState({ name: 'Spring campaign', status: 'draft', featured: false, views: 1280, }); return ( <PropertiesForm className='w-full max-w-md' schema={schema} values={values} mode='edit' onChange={setValues} onSubmit={async () => ({ ok: true })} /> );}