"use client" import * as React from "react" import type { QuestionnaireItemStatus } from "@shadcn/react/questionnaire" import { toast } from "sonner" import { Questionnaire, QuestionnaireActions, QuestionnaireChoice, QuestionnaireChoices, QuestionnaireDescription, QuestionnaireError, QuestionnaireInput, QuestionnaireItem, QuestionnaireNext, QuestionnairePrevious, QuestionnaireProgress, QuestionnaireSkip, QuestionnaireSubmit, QuestionnaireTitle, } from "@/styles/base-nova/ui/questionnaire" const items = [ { name: "task", required: true }, { name: "constraints" }, { name: "review", required: true }, ] as const export function QuestionnaireSkipExample() { const [constraintStatus, setConstraintStatus] = React.useState("unanswered") function handleSubmit(event: React.FormEvent) { event.preventDefault() const formData = new FormData(event.currentTarget) const answers = { task: formData.get("task"), constraints: formData.get("constraints"), constraintStatus, review: formData.get("review"), } toast("Agent brief submitted", { description: `Task: ${answers.task ?? "None"} · Constraints: ${ answers.constraintStatus === "skipped" ? "Skipped" : (answers.constraints ?? "None") } · Review: ${answers.review ?? "None"}`, }) } return ( What kind of change is this? Choose the category that best describes the work. New feature Bug fix Refactor Are there any implementation constraints? Answer if needed, or intentionally skip this question. Do not add dependencies Do not change the database Preserve the public API How should the work be reviewed? Choose the checks the agent should complete before handoff. Run the test suite Review the final diff Tests and diff review Next Submit brief ) }