From e3bdd03428d57e0b8f0de28b3a2499f97a31024c Mon Sep 17 00:00:00 2001 From: Jan Svabenik Date: Sat, 21 Mar 2026 21:24:07 +0100 Subject: [PATCH] feat: show queue stats in health tile --- web/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/app.js b/web/app.js index 7256bd9..a8cb679 100644 --- a/web/app.js +++ b/web/app.js @@ -859,7 +859,11 @@ function updateHeroMetrics() { const reasonCounts = decisionSummary.reasons || {}; const topReason = Object.entries(reasonCounts).sort((a, b) => b[1] - a[1])[0]; const reasonText = topReason ? `· ${topReason[0]}` : ''; - healthRefinePlan.textContent = `${plan.selected?.length || 0}/${plan.budget || 0} · drop ${plan.dropped_by_snr || 0}/${plan.dropped_by_budget || 0} · rec ${recOn} dec ${decOn} ${reasonText}`; + const queueStats = refinementInfo.queue_stats || {}; + const queueText = (queueStats.record_queued || queueStats.decode_queued) + ? `· q ${queueStats.record_queued || 0}/${queueStats.decode_queued || 0}` + : ''; + healthRefinePlan.textContent = `${plan.selected?.length || 0}/${plan.budget || 0} · drop ${plan.dropped_by_snr || 0}/${plan.dropped_by_budget || 0} · rec ${recOn} dec ${decOn} ${queueText} ${reasonText}`; } if (healthRefineWindows) { const stats = refinementInfo.window_stats || null;