From f240589d33fd891efd99558c412d927aa9323908 Mon Sep 17 00:00:00 2001 From: Gustavo Madeira Santana Date: Mon, 23 Feb 2026 12:24:25 -0500 Subject: [PATCH] UI: gate update status pill on real version mismatch --- ui/src/ui/app-render.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ui/src/ui/app-render.ts b/ui/src/ui/app-render.ts index 185a07dbd02..487ba0bbc53 100644 --- a/ui/src/ui/app-render.ts +++ b/ui/src/ui/app-render.ts @@ -140,7 +140,12 @@ export function renderApp(state: AppViewState) { (typeof state.hello?.server?.version === "string" && state.hello.server.version.trim()) || state.updateAvailable?.currentVersion || t("common.na"); - const versionStatusClass = state.updateAvailable ? "warn" : "ok"; + const availableUpdate = + state.updateAvailable && + state.updateAvailable.latestVersion !== state.updateAvailable.currentVersion + ? state.updateAvailable + : null; + const versionStatusClass = availableUpdate ? "warn" : "ok"; const presenceCount = state.presenceEntries.length; const sessionsCount = state.sessionsResult?.count ?? null; const cronNext = state.cronStatus?.nextWakeAtMs ?? null; @@ -296,10 +301,10 @@ export function renderApp(state: AppViewState) {
${ - state.updateAvailable + availableUpdate ? html`