DashboardView: columna SP + fix priority/story_points perdidos en enrichHU

- enrichHU ahora incluye status, priority y story_points en el return
- Nueva columna SP (story points) entre Título y Estado en tabla HUs
- Filtro prioridad acepta valores numéricos (1/2/3)
This commit is contained in:
2026-05-29 08:41:37 -05:00
parent c8228b315d
commit 19c6fb3153
3 changed files with 42 additions and 1 deletions
+5
View File
@@ -695,6 +695,9 @@ const statusLabel = (status: unknown) => {
<SelectItem value="baja" class="text-xs">Baja</SelectItem>
<SelectItem value="critical" class="text-xs">Crítica</SelectItem>
<SelectItem value="urgente" class="text-xs">Urgente</SelectItem>
<SelectItem value="1" class="text-xs">Alta (1)</SelectItem>
<SelectItem value="2" class="text-xs">Media (2)</SelectItem>
<SelectItem value="3" class="text-xs">Baja (3)</SelectItem>
</SelectContent>
</Select>
<Select v-model="filterAssigned">
@@ -713,6 +716,7 @@ const statusLabel = (status: unknown) => {
<TableHead class="w-[80px]">{{ t('dashboard.code') }}</TableHead>
<TableHead class="w-[60px]">{{ t('users.role') }}</TableHead>
<TableHead>{{ t('dashboard.title') }}</TableHead>
<TableHead class="w-[50px] text-center">SP</TableHead>
<TableHead class="w-[110px]">{{ t('dashboard.status') }}</TableHead>
<TableHead class="w-[90px]">{{ t('dashboard.priority') }}</TableHead>
<TableHead class="w-[140px]">{{ t('dashboard.assignedTo') }}</TableHead>
@@ -735,6 +739,7 @@ const statusLabel = (status: unknown) => {
</div>
</span>
</TableCell>
<TableCell class="text-center text-xs font-mono text-muted-foreground">{{ hu.story_points ?? '—' }}</TableCell>
<TableCell><Badge :variant="statusVariant(hu.status || '')" class="text-xs capitalize">{{ hu._statusName || statusLabel(hu.status || '') }}</Badge></TableCell>
<TableCell><Badge :variant="priorityVariant(hu.priority)" class="text-xs">{{ priorityLabel(hu.priority) }}</Badge></TableCell>
<TableCell>