Merge branch 'KIN-UI-024-frontend_dev'

This commit is contained in:
Gros Frumos 2026-03-18 21:47:29 +02:00
commit d374604741

View file

@ -769,6 +769,11 @@ function taskStatusColor(s: string) {
return m[s] || 'gray'
}
function taskStatusLabel(s: string) {
if (s === 'revising') return t('projectView.status_revising')
return s
}
function decTypeColor(t: string) {
const m: Record<string, string> = {
decision: 'blue', gotcha: 'red', workaround: 'yellow',
@ -1183,7 +1188,7 @@ async function addDecision() {
class="flex items-center justify-between px-3 py-2 border border-orange-800/60 bg-orange-950/20 rounded text-sm hover:border-orange-600 no-underline block transition-colors">
<div class="flex items-center gap-2 min-w-0">
<span class="text-gray-500 shrink-0 w-24">{{ t.id }}</span>
<Badge :text="t.status" :color="taskStatusColor(t.status)" />
<Badge :text="taskStatusLabel(t.status)" :color="taskStatusColor(t.status)" />
<Badge v-if="t.category" :text="t.category" :color="CATEGORY_COLORS[t.category] || 'gray'" />
<span class="text-orange-300 truncate">{{ t.title }}</span>
<span v-if="t.parent_task_id" class="text-[10px] text-gray-600 shrink-0">escalated from {{ t.parent_task_id }}</span>
@ -1211,7 +1216,7 @@ async function addDecision() {
</button>
<span v-else class="w-4 shrink-0"></span>
<span class="text-gray-500 shrink-0 w-24">{{ t.id }}</span>
<Badge :text="t.status" :color="taskStatusColor(t.status)" />
<Badge :text="taskStatusLabel(t.status)" :color="taskStatusColor(t.status)" />
<Badge v-if="t.category" :text="t.category" :color="CATEGORY_COLORS[t.category] || 'gray'" />
<span class="text-gray-300 truncate">{{ t.title }}</span>
<span v-if="t.execution_mode === 'auto_complete'"