kin: KIN-UI-025-frontend_dev

This commit is contained in:
Gros Frumos 2026-03-21 09:13:49 +02:00
parent d5125793d0
commit cacd8ef1d7
4 changed files with 11 additions and 2 deletions

View file

@ -655,7 +655,10 @@ const taskStats = computed(() => {
const review = tasks.filter(t => t.status === 'review').length
const blocked = tasks.filter(t => t.status === 'blocked').length
const pending = tasks.filter(t => t.status === 'pending').length
return { total, done, running, review, blocked, pending, pct: Math.round(done / total * 100) }
const revising = tasks.filter(t => t.status === 'revising').length
const cancelled = tasks.filter(t => t.status === 'cancelled').length
const decomposed = tasks.filter(t => t.status === 'decomposed').length
return { total, done, running, review, blocked, pending, revising, cancelled, decomposed, pct: Math.round(done / total * 100) }
})
const searchFilteredTasks = computed(() => {
@ -1107,6 +1110,9 @@ async function addDecision() {
<span v-if="taskStats.review" class="text-yellow-400"> {{ taskStats.review }} review</span>
<span v-if="taskStats.blocked" class="text-red-400"> {{ taskStats.blocked }} blocked</span>
<span v-if="taskStats.pending" class="text-gray-500"> {{ taskStats.pending }} pending</span>
<span v-if="taskStats.revising" class="text-orange-400"> {{ taskStats.revising }} revising</span>
<span v-if="taskStats.cancelled" class="text-gray-500"> {{ taskStats.cancelled }} cancelled</span>
<span v-if="taskStats.decomposed" class="text-gray-500"> {{ taskStats.decomposed }} decomposed</span>
</div>
</div>
<div class="flex flex-col gap-2 mb-3">