fix(core): resolucion de multiples bugs criticos de backend y visuales

This commit is contained in:
2026-04-01 11:20:48 -05:00
parent b11d57465e
commit 1953be2da0
7 changed files with 22 additions and 11 deletions

View File

@ -211,7 +211,7 @@
<div class="w-full bg-surface-subtle h-1.5 rounded-full overflow-hidden">
<div
class="bg-accent h-full rounded-full transition-all duration-500"
:style="{ width: ((currentStepIdx / 4) * 100) + '%' }"
:style="{ width: ((currentStepIdx / 3) * 100) + '%' }"
></div>
</div>
<p class="text-[11px] text-ink-3 text-center">Tiempo estimado: ~15 segundos · GPT-4o + Whisper</p>

View File

@ -89,7 +89,7 @@
<span class="material-symbols-outlined text-accent text-[16px]">analytics</span>
Puntaje de Viralidad
</h3>
<div class="flex justify-center mb-5">
<div class="flex justify-center mb-5 relative">
<svg class="w-40 h-40 transform -rotate-90" viewBox="0 0 100 100">
<circle cx="50" cy="50" r="42" fill="none" stroke="#e5e3de" stroke-width="7"/>
<circle

View File

@ -195,8 +195,8 @@ const filtrosEstado = [
{ valor: 'fallidos', label: 'Fallidos' },
]
const totalOk = computed(() => guiones.value.filter(g => g.procesado_ok).length)
const totalFallidos = computed(() => guiones.value.filter(g => !g.procesado_ok).length)
const totalOk = ref(0)
const totalFallidos = ref(0)
async function cargarDatos() {
cargando.value = true
@ -204,11 +204,16 @@ async function cargarDatos() {
const params = { page: filtros.value.page, limit: filtros.value.limit }
if (filtros.value.niche) params.niche = filtros.value.niche
const [dg, dn] = await Promise.all([
const [dg, dn, okReq, allReq] = await Promise.all([
api.guiones.listarTodos(params),
api.nichos(),
api.guiones.listar({ limit: 1, ...(params.niche ? { niche: params.niche } : {}) }),
api.guiones.listarTodos({ limit: 1, ...(params.niche ? { niche: params.niche } : {}) }),
])
totalOk.value = okReq.total || 0
totalFallidos.value = (allReq.total || 0) - (okReq.total || 0)
let lista = dg.guiones
if (filtroActivo.value === 'exitosos') lista = lista.filter(g => g.procesado_ok)
if (filtroActivo.value === 'fallidos') lista = lista.filter(g => !g.procesado_ok)