"use client" import * as React from "react" import { toast } from "sonner" import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "@/styles/base-nova/ui/card" import { Questionnaire, QuestionnaireActions, QuestionnaireChoice, QuestionnaireChoices, QuestionnaireDescription, QuestionnaireError, QuestionnaireItem, QuestionnaireNext, QuestionnairePrevious, QuestionnaireProgress, QuestionnaireSubmit, QuestionnaireTitle, } from "@/styles/base-nova/ui/questionnaire" const items = [ { choices: [{ value: "fix" }, { value: "refactor" }, { value: "docs" }], name: "task", required: true, }, { choices: [{ value: "summary" }, { value: "files" }, { value: "review" }], name: "output", required: true, }, ] as const export function QuestionnaireCard() { const taskTitleId = React.useId() const outputTitleId = React.useId() function handleSubmit(event: React.FormEvent) { event.preventDefault() const formData = new FormData(event.currentTarget) toast("Agent task created", { description: `Task: ${formData.get("task") ?? "None"} ยท Handoff: ${formData.get("output") ?? "None"}`, }) } return ( }> What should the agent work on? }> Choose the task that should be handled next. Fix the failing tests Refactor the data layer Update the integration guide }> What should the final handoff include? }> Pick the level of detail needed for review. Summary only Summary and changed files Full review handoff Next Create task ) }