@motiq/approval-workflowloading the log…
NO RECENT BUILD
Pipeline
  1. Docsusage, props, keywords
  2. Demosrc/demo.tsx
  3. Buildshadcn add → vite
  4. Capturelight, dark, motion
  5. 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 { ApprovalWorkflow, type ApprovalWorkflowData } from "@/components/motiq/approval-workflow"const workflow: ApprovalWorkflowData = {  id: "req_204",  title: "Vendor contract renewal",  description: "Renew the analytics vendor agreement for another 12 months.",  requester: { id: "u_2", name: "Olivia Martin", role: "Procurement" },  status: "in_review",  risk: "medium",  priority: "high",  createdAt: "2025-03-04T09:30:00Z",  currentStageId: "finance",  stages: [    {      id: "manager",      name: "Manager",      status: "approved",      reviewers: [        { id: "u_3", name: "Daniel Lee", role: "Engineering manager", decision: "approved", decidedAt: "2025-03-04T11:00:00Z" },      ],    },    {      id: "finance",      name: "Finance",      status: "in_review",      reviewers: [        { id: "u_1", name: "Ava Chen", role: "Finance lead", decision: "pending" },        { id: "u_4", name: "Marcus Reed", role: "Budget analyst", decision: "pending", optional: true },      ],    },    {      id: "legal",      name: "Legal",      status: "pending",      reviewers: [{ id: "u_5", name: "Priya Shah", role: "Counsel", decision: "pending" }],    },  ],  history: [    {      id: "h1",      action: "add_comment",      actorId: "u_2",      actorName: "Olivia Martin",      comment: "Updated pricing per the new quote.",      timestamp: "2025-03-04T09:30:00Z",    },    {      id: "h2",      action: "approve",      actorId: "u_3",      actorName: "Daniel Lee",      stageId: "manager",      stageName: "Manager",      timestamp: "2025-03-04T11:00:00Z",    },  ],}export default function ApprovalWorkflowDemo() {  return (    <ApprovalWorkflow      workflow={workflow}      currentUserId="u_1"      className="max-w-xl"      canAct={(action) =>        action === "cancel"          ? { allowed: false, reason: "Only the requester can cancel." }          : { allowed: true }      }      onApprove={({ workflow }) => console.log("approve", workflow.id)}      onReject={({ comment }) => console.log("reject", comment)}    />  )}