feat: complete task board workflow gates
This commit is contained in:
@@ -29,6 +29,10 @@ export interface DashboardTaskDto {
|
||||
expectedFrom?: string | null
|
||||
lastActivityMessage?: string | null
|
||||
lastActivityAt?: string | null
|
||||
childTasks?: DashboardTaskDto[] | null
|
||||
childTaskCount?: number
|
||||
openChildTaskCount?: number
|
||||
hasVisibleDelegation?: boolean
|
||||
}
|
||||
|
||||
export interface BoardGroup {
|
||||
@@ -319,6 +323,8 @@ export const useTaskStore = defineStore('tasks', {
|
||||
assignedTo?: string
|
||||
expectedFrom?: string
|
||||
parentTaskId?: string | null
|
||||
startsInProgress?: boolean
|
||||
initialState?: string | null
|
||||
}) {
|
||||
try {
|
||||
const res = await apiFetch('/api/dashboard/tasks/agent', {
|
||||
@@ -331,6 +337,8 @@ export const useTaskStore = defineStore('tasks', {
|
||||
assignedTo: data.assignedTo ?? null,
|
||||
expectedFrom: data.expectedFrom ?? null,
|
||||
parentTaskId: data.parentTaskId ?? null,
|
||||
startsInProgress: data.startsInProgress ?? true,
|
||||
initialState: data.initialState ?? null,
|
||||
}),
|
||||
})
|
||||
if (!res.ok) throw new Error(`HTTP ${res.status}`)
|
||||
|
||||
Reference in New Issue
Block a user