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 { CommentThread, type Comment, type CommentAuthor } from "@/components/motiq/comment-thread"const ada: CommentAuthor = { id: "u1", name: "Ada Lovelace", role: "Engineer" }const grace: CommentAuthor = { id: "u2", name: "Grace Hopper", role: "Reviewer" }const alan: CommentAuthor = { id: "u3", name: "Alan Turing", role: "Designer" }const comments: Comment[] = [ { id: "c1", author: grace, body: "The new onboarding flow reads much clearer. Nice work!", createdAt: "2025-01-10T09:00:00Z", reactions: [ { emoji: "👍", count: 2, reactedByMe: true }, { emoji: "🎉", count: 1 }, ], replies: [ { id: "c2", author: ada, body: "Thanks! @GraceHopper could you check the empty state too?", createdAt: "2025-01-10T09:20:00Z", mentions: ["u2"], }, ], }, { id: "c3", author: alan, body: "Should the copy on the pricing page match this tone?", createdAt: "2025-01-10T10:05:00Z", },]export default function CommentThreadDemo() { return ( <CommentThread label="Comments" className="w-full max-w-lg" comments={comments} currentUser={ada} mentionable={[ada, grace, alan]} sort="oldest" unreadAfter="2025-01-10T09:10:00Z" maxHeight={220} onAddComment={async () => { await new Promise((resolve) => setTimeout(resolve, 600)) return undefined }} onReply={async () => { await new Promise((resolve) => setTimeout(resolve, 600)) return undefined }} /> )}