feat(KB-040): add break-into-subtasks toggle for task creation

- Add breakIntoSubtasks flag to core Task model and persist to store
- Plumb subtask flag through dashboard API routes with validation
- Add subtask toggle UI to inline task creation card
- Update triage agent to handle automatic subtask breakdown when enabled
- Add comprehensive tests for store, API routes, and UI components
- Include changeset for patch release documenting the new feature
This commit is contained in:
gsxdsm
2026-03-29 22:23:47 -07:00
parent 5aa464e5fa
commit 86efb14947
11 changed files with 327 additions and 13 deletions

View File

@@ -32,9 +32,16 @@ export async function fetchTaskDetail(id: string): Promise<TaskDetail> {
}
export function createTask(input: TaskCreateInput): Promise<Task> {
const { title, description, column, dependencies, breakIntoSubtasks } = input;
return api<Task>("/tasks", {
method: "POST",
body: JSON.stringify(input),
body: JSON.stringify({
title,
description,
column,
dependencies,
breakIntoSubtasks,
}),
});
}