feat: add task_category field to tasks with validation and update related forms

This commit is contained in:
2025-10-07 22:22:10 +02:00
parent 952caf10d1
commit a6ef325813
6 changed files with 72 additions and 13 deletions

View File

@@ -16,7 +16,7 @@ export default function NewTaskSetPage() {
const [formData, setFormData] = useState({
name: "",
description: "",
project_type: "design",
task_category: "design",
selectedTemplates: []
});
const [isSubmitting, setIsSubmitting] = useState(false);
@@ -61,7 +61,7 @@ export default function NewTaskSetPage() {
body: JSON.stringify({
name: formData.name.trim(),
description: formData.description.trim(),
project_type: formData.project_type
task_category: formData.task_category
})
});