From 9b3e65c3d8ca8c0472117ba2a0e854d0112bf4d8 Mon Sep 17 00:00:00 2001 From: JohnBaumb <80135794+JohnBaumb@users.noreply.github.com> Date: Thu, 23 Apr 2026 00:44:59 -0700 Subject: [PATCH] Two-line batch history layout with descriptive stats --- webui/static/pages-extra.js | 23 +++++++++++++++-------- webui/static/style.css | 28 +++++++++++++++++++++------- 2 files changed, 36 insertions(+), 15 deletions(-) diff --git a/webui/static/pages-extra.js b/webui/static/pages-extra.js index 9ea3fc26..73a212b1 100644 --- a/webui/static/pages-extra.js +++ b/webui/static/pages-extra.js @@ -2832,15 +2832,17 @@ function _adlRenderBatchHistory() { const failed = h.tracks_failed || 0; const total = h.total_tracks || 0; - // Build stats: "found/total Xnew Xfailed" + // Build stats line: "X in library · X downloaded · X failed (of N)" const statsParts = []; if (found > 0 || downloaded > 0) { const owned = found - downloaded; // already in library before this sync - if (owned > 0) statsParts.push(`${owned}`); - if (downloaded > 0) statsParts.push(`${downloaded} new`); + if (owned > 0) statsParts.push(`${owned} in library`); + if (downloaded > 0) statsParts.push(`${downloaded} downloaded`); } if (failed > 0) statsParts.push(`${failed} failed`); - if (statsParts.length === 0) statsParts.push(`0/${total}`); + const notFound = total - found - failed; + if (notFound > 0) statsParts.push(`${notFound} not found`); + if (statsParts.length === 0) statsParts.push(`${total} tracks`); let dateText = ''; if (h.completed_at) { @@ -2877,11 +2879,16 @@ function _adlRenderBatchHistory() { : ''; return `