"use client" import * as React from "react" import { toast } from "sonner" import { Questionnaire, QuestionnaireActions, QuestionnaireChoice, QuestionnaireChoices, QuestionnaireDescription, QuestionnaireError, QuestionnaireInput, QuestionnaireItem, QuestionnaireNext, QuestionnairePrevious, QuestionnaireProgress, QuestionnaireSkip, QuestionnaireSubmit, QuestionnaireTitle, } from "@/styles/radix-nova/ui/questionnaire" const items = [ { choices: [ { value: "tool-calls" }, { value: "approvals" }, { value: "handoffs" }, ], name: "direction", required: true, }, { choices: [ { value: "progress" }, { value: "decisions" }, { value: "risks" }, { value: "next-step" }, ], name: "signals", }, { choices: [{ value: "now" }, { value: "next-cycle" }, { value: "backlog" }], name: "timing", required: true, }, ] as const export function QuestionnaireDemo() { function handleSubmit(event: React.FormEvent) { event.preventDefault() const formData = new FormData(event.currentTarget) const answers = { direction: formData.get("direction"), signals: formData.getAll("signals"), timing: formData.get("timing"), } toast("Agent plan saved", { description: `Direction: ${answers.direction ?? "None"} · Progress signals: ${answers.signals.join(", ") || "None"} · Timing: ${answers.timing ?? "None"}`, }) } return ( What should the agent build next? Choose a direction or describe another task. Tool call timeline Show what the agent ran and what came back. Approval checkpoints Ask before sensitive or destructive actions. Sub-agent handoffs Make delegated work and results easier to follow. What should every progress update include? Select all that apply, or skip this question. Progress Decisions Risks Next step When should work begin? Choose when the agent should begin the work. Start now Next development cycle Add it to the backlog Next Save plan ) }