From b4ed200633c75c72878eddc0d767eb92398639da Mon Sep 17 00:00:00 2001 From: Broque Thomas <26755000+Nezreka@users.noreply.github.com> Date: Wed, 1 Apr 2026 15:41:28 -0700 Subject: [PATCH] Filter sync history to only show playlist syncs, not album downloads Dashboard Recent Syncs and Sync page history were showing album downloads, wishlist processing, and redownloads alongside actual playlist syncs. Now filters to only show entries with sync_type 'playlist' (or no type for legacy entries). --- webui/static/script.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/webui/static/script.js b/webui/static/script.js index a38cec53..5c20c96a 100644 --- a/webui/static/script.js +++ b/webui/static/script.js @@ -19838,12 +19838,15 @@ async function loadSyncHistory() { tabsContainer.innerHTML = tabsHtml; } - if (!data.entries || data.entries.length === 0) { + // Filter to only show playlist syncs — not album downloads, wishlist, or redownloads + const syncEntries = (data.entries || []).filter(e => e.sync_type === 'playlist' || !e.sync_type); + + if (syncEntries.length === 0) { list.innerHTML = '
No sync history yet. Completed syncs will appear here.
'; return; } - list.innerHTML = data.entries.map(renderSyncHistoryEntry).join(''); + list.innerHTML = syncEntries.map(renderSyncHistoryEntry).join(''); renderSyncHistoryPagination(data.total, page, limit); } catch (err) { console.error('Error loading sync history:', err); @@ -66142,7 +66145,8 @@ async function loadDashboardSyncHistory() { if (!response.ok) return; const data = await response.json(); - const entries = data.entries || []; + // Filter to only show playlist syncs — not album downloads or wishlist processing + const entries = (data.entries || []).filter(e => e.sync_type === 'playlist' || !e.sync_type); if (entries.length === 0) { container.innerHTML = '
No syncs yet
';