From dc9df32a3796f1d012c5244f1877d4ed402622bd Mon Sep 17 00:00:00 2001
From: Matthias Nott <mnott@mnsoft.org>
Date: Sun, 22 Feb 2026 00:34:47 +0100
Subject: [PATCH] feat: add version display and cache-busting to dashboard

---
 static/js/app.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/static/js/app.js b/static/js/app.js
index 69566b8..9facb3a 100644
--- a/static/js/app.js
+++ b/static/js/app.js
@@ -1,7 +1,8 @@
 'use strict';
+const APP_VERSION = 'v4-20260222';
 
 // ============================================================
-// OPS Dashboard — Vanilla JS Application (v3)
+// OPS Dashboard — Vanilla JS Application (v4)
 // ============================================================
 
 // ---------------------------------------------------------------------------
@@ -107,6 +108,7 @@
       allServices = data;
       document.getElementById('login-overlay').style.display = 'none';
       document.getElementById('app').style.display = 'flex';
+      const vEl = document.getElementById('app-version'); if (vEl && typeof APP_VERSION !== 'undefined') vEl.textContent = APP_VERSION;
       showPage('dashboard');
       startAutoRefresh();
     })
@@ -793,6 +795,7 @@
         allServices = data;
         document.getElementById('login-overlay').style.display = 'none';
         document.getElementById('app').style.display = 'flex';
+      const vEl = document.getElementById('app-version'); if (vEl && typeof APP_VERSION !== 'undefined') vEl.textContent = APP_VERSION;
         showPage('dashboard');
         startAutoRefresh();
       })

--
Gitblit v1.3.1