From 7411bd1eab8c629c4094989d486e0b898f2dd5e4 Mon Sep 17 00:00:00 2001 From: Broque Thomas <26755000+Nezreka@users.noreply.github.com> Date: Mon, 9 Mar 2026 13:15:03 -0700 Subject: [PATCH] Clarify update notification for Docker users that image will follow --- web_server.py | 1 + webui/static/script.js | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/web_server.py b/web_server.py index 1cb9c840..49a421c4 100644 --- a/web_server.py +++ b/web_server.py @@ -14516,6 +14516,7 @@ def check_for_update(): 'update_available': update_available, 'current_sha': current[:8] if current else None, 'latest_sha': latest[:8] if latest else None, + 'is_docker': os.path.exists('/.dockerenv'), }) @app.route('/api/version-info', methods=['GET']) diff --git a/webui/static/script.js b/webui/static/script.js index 54e15f4e..4db8bb5f 100644 --- a/webui/static/script.js +++ b/webui/static/script.js @@ -13216,7 +13216,9 @@ async function checkForUpdates() { const notified = sessionStorage.getItem('soulsync-update-notified'); if (notified !== data.latest_sha) { sessionStorage.setItem('soulsync-update-notified', data.latest_sha); - showToast('A new SoulSync update is available!', 'info'); + showToast(data.is_docker + ? 'A new SoulSync update has been pushed to the repo — Docker image will be updated soon!' + : 'A new SoulSync update is available!', 'info'); } } } else { @@ -13305,11 +13307,14 @@ function populateVersionModal(versionData, updateInfo) { if (updateInfo && updateInfo.update_available) { const banner = document.createElement('div'); banner.className = 'version-update-banner'; + const isDocker = updateInfo.is_docker; banner.innerHTML = `
- New update available - Your version: ${updateInfo.current_sha || 'unknown'} → Latest: ${updateInfo.latest_sha || 'unknown'} + ${isDocker ? 'Repo update detected' : 'New update available'} + ${isDocker + ? 'A new update has been pushed to the repo. The Docker image will be updated soon — no action needed yet.' + : `Your version: ${updateInfo.current_sha || 'unknown'} → Latest: ${updateInfo.latest_sha || 'unknown'}`}
`; container.appendChild(banner);