Add cancelled status for tasks
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
6e872121eb
commit
bf38532f59
5 changed files with 7 additions and 6 deletions
|
|
@ -141,7 +141,7 @@ class TaskPatch(BaseModel):
|
|||
status: str
|
||||
|
||||
|
||||
VALID_STATUSES = {"pending", "in_progress", "review", "done", "blocked"}
|
||||
VALID_STATUSES = {"pending", "in_progress", "review", "done", "blocked", "cancelled"}
|
||||
|
||||
|
||||
@app.patch("/api/tasks/{task_id}")
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ const filteredDecisions = computed(() => {
|
|||
function taskStatusColor(s: string) {
|
||||
const m: Record<string, string> = {
|
||||
pending: 'gray', in_progress: 'blue', review: 'purple',
|
||||
done: 'green', blocked: 'red', decomposed: 'yellow',
|
||||
done: 'green', blocked: 'red', decomposed: 'yellow', cancelled: 'gray',
|
||||
}
|
||||
return m[s] || 'gray'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ onUnmounted(stopPolling)
|
|||
function statusColor(s: string) {
|
||||
const m: Record<string, string> = {
|
||||
pending: 'gray', in_progress: 'blue', review: 'yellow',
|
||||
done: 'green', blocked: 'red', decomposed: 'purple',
|
||||
done: 'green', blocked: 'red', decomposed: 'purple', cancelled: 'gray',
|
||||
}
|
||||
return m[s] || 'gray'
|
||||
}
|
||||
|
|
@ -228,6 +228,7 @@ async function changeStatus(newStatus: string) {
|
|||
<option value="review">review</option>
|
||||
<option value="done">done</option>
|
||||
<option value="blocked">blocked</option>
|
||||
<option value="cancelled">cancelled</option>
|
||||
</select>
|
||||
<span v-if="isRunning" class="inline-block w-2 h-2 bg-blue-500 rounded-full animate-pulse"></span>
|
||||
<span class="text-xs text-gray-600">pri {{ task.priority }}</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue