From 3698ed1ec015bcd4310b22764b068eae0e830796 Mon Sep 17 00:00:00 2001 From: BoulderBadgeDad Date: Fri, 19 Jun 2026 18:29:02 -0700 Subject: [PATCH] video Automations: hide the music system automations (show only owned_by='video') MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per Boulder — the music system automations target music resources and don't belong on the video side. The page now filters to owned_by='video' (a tag the upcoming video automations will carry); none exist yet, so the System section is hidden and the empty state reads 'Video automations coming soon — separate from the music ones'. The hub + layout stay (video hub content + video automations come next). Balance clean. --- webui/index.html | 4 ++-- webui/static/video/video-automations.js | 15 +++++++-------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/webui/index.html b/webui/index.html index d01c10f3..50e2e1a0 100644 --- a/webui/index.html +++ b/webui/index.html @@ -1325,8 +1325,8 @@
diff --git a/webui/static/video/video-automations.js b/webui/static/video/video-automations.js index 3bef939e..8fa1b038 100644 --- a/webui/static/video/video-automations.js +++ b/webui/static/video/video-automations.js @@ -18,12 +18,11 @@ .then(function (r) { return r.ok ? r.json() : null; }).catch(function () { return null; }); } - // The system automations the video view shows (drop Beatport + user/playlist ones). - function isVideoSystem(a) { - return a && a.is_system && - a.action_type !== 'refresh_beatport_cache' && - a.action_type !== 'playlist_pipeline' && - a.owned_by !== 'playlist_pipeline'; + // ONLY video-owned automations belong here — the music system automations target + // music resources and are hidden. Video automations (tagged owned_by='video') are a + // separate set, built next; for now none exist so the list is empty by design. + function isVideoAutomation(a) { + return a && a.owned_by === 'video'; } function renderSystem(sys) { @@ -32,7 +31,7 @@ var existing = host.querySelector('#vauto-section-system'); if (!sys.length) { if (existing) existing.remove(); - if (emptyEl && !host.querySelector('#auto-section-hub')) emptyEl.style.display = ''; + if (emptyEl) emptyEl.style.display = ''; return; } if (emptyEl) emptyEl.style.display = 'none'; @@ -72,7 +71,7 @@ function load() { getJSON('/api/automations').then(function (d) { var all = Array.isArray(d) ? d : (d && d.automations) || []; - var sys = all.filter(isVideoSystem); + var sys = all.filter(isVideoAutomation); renderStats(sys); renderSystem(sys); renderHubOnce();