From 0958d52fa92f0db1e0d30df9d3ee9e92dfdc9b7a Mon Sep 17 00:00:00 2001 From: Ricardo Gonzalez Date: Fri, 29 May 2026 22:55:57 -0500 Subject: [PATCH] Fix: status 6 es QA-Client no bloqueado + isDone() ampliado - isBlocked(): removido '6' (QA-Client) de la lista de bloqueados - isDone(): nuevo helper que incluye 6, 7, qa-client, ready to deploy como completados - doneHUs y epicProgress ahora usan isDone() consistente --- src/components/PrioritizerCard.vue | 12 +++++++----- src/views/DashboardView.vue | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/components/PrioritizerCard.vue b/src/components/PrioritizerCard.vue index 20999d9..ac3383e 100644 --- a/src/components/PrioritizerCard.vue +++ b/src/components/PrioritizerCard.vue @@ -41,7 +41,7 @@ function isNextWeek(dateStr: string | undefined): boolean { function isBlocked(hu: EnrichedUserStory): boolean { const s = String(hu.status ?? '').toLowerCase() - return ['blocked', 'bloqueado', '6'].includes(s) + return ['blocked', 'bloqueado'].includes(s) } function isInProgress(hu: EnrichedUserStory): boolean { @@ -49,6 +49,11 @@ function isInProgress(hu: EnrichedUserStory): boolean { return ['in_progress', 'doing', 'wip', 'active', 'in progress', 'en progreso', 'true', '2'].includes(s) } +function isDone(hu: EnrichedUserStory): boolean { + const s = String(hu.status ?? '').toLowerCase() + return ['done', 'completed', 'closed', 'finalizado', '5', '6', '7', 'qa-client', 'ready to deploy'].includes(s) +} + // Agrupar HUs const overdueHUs = computed(() => workItems.userStories.filter(hu => hu.end_date && isOverdue(hu.end_date)) @@ -90,10 +95,7 @@ function priorityVariant(p: unknown) { const totalHUs = computed(() => workItems.userStories.length) const doneHUs = computed(() => - workItems.userStories.filter(hu => { - const s = String(hu.status ?? '').toLowerCase() - return ['done', 'completed', 'closed', 'finalizado', '5', 'true'].includes(s) - }).length + workItems.userStories.filter(hu => isDone(hu)).length ) diff --git a/src/views/DashboardView.vue b/src/views/DashboardView.vue index 6da83a2..ceec157 100644 --- a/src/views/DashboardView.vue +++ b/src/views/DashboardView.vue @@ -550,7 +550,7 @@ const epicProgress = computed(() => { const entry = map.get(epicCode)! entry.total++ const s = String(hu.status ?? '').toLowerCase() - if (['done', 'completed', 'closed', 'finalizado', '5', 'true'].includes(s)) { + if (['done', 'completed', 'closed', 'finalizado', '5', '6', '7', 'qa-client', 'ready to deploy'].includes(s)) { entry.done++ } }