From 9139e334920b3f87804b34d9c2440e20772ae862 Mon Sep 17 00:00:00 2001 From: rene Date: Sun, 10 May 2026 08:57:49 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20=C3=9Cbungen=20Hilfetext=20standardm?= =?UTF-8?q?=C3=A4=C3=9Fig=20geschlossen=20(defaultClosed),=20nur=20per=20?= =?UTF-8?q?=3F=20=C3=B6ffnen=20(SW=20by-v818)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/main.py | 2 +- backend/static/index.html | 14 +++++++------- backend/static/js/app.js | 2 +- backend/static/js/pages/uebungen.js | 1 + backend/static/js/ui.js | 4 ++-- backend/static/sw.js | 2 +- 6 files changed, 13 insertions(+), 12 deletions(-) diff --git a/backend/main.py b/backend/main.py index 7cc78d6..2dc1259 100644 --- a/backend/main.py +++ b/backend/main.py @@ -341,7 +341,7 @@ MEDIA_DIR = os.getenv("MEDIA_DIR", "/data/media") os.makedirs(MEDIA_DIR, exist_ok=True) app.mount("/media", StaticFiles(directory=MEDIA_DIR), name="media") -APP_VER = "817" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "818" # muss mit APP_VER in app.js übereinstimmen @app.get("/.well-known/assetlinks.json") async def assetlinks(): diff --git a/backend/static/index.html b/backend/static/index.html index 0e1f951..1a9565b 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -101,9 +101,9 @@ - - - + + + @@ -583,10 +583,10 @@ - - - - + + + + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 40b659d..02d31ea 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '817'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '818'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.5.0'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; // Cache-Bust-Parameter nach Update-Reload sofort entfernen diff --git a/backend/static/js/pages/uebungen.js b/backend/static/js/pages/uebungen.js index 38f9f08..9e554fe 100644 --- a/backend/static/js/pages/uebungen.js +++ b/backend/static/js/pages/uebungen.js @@ -479,6 +479,7 @@ window.Page_uebungen = (() => { _render(); _helpHandle = UI.pageInfo(_container, { pageId: 'uebungen', + defaultClosed: true, title: 'Übungsbibliothek', icon: 'graduation-cap', intro: 'Hier findest du alle Übungen für deinen Hund — von Grundkommandos bis zu Tricks und Problemverhalten. Du kannst deinen Trainingsfortschritt für jede Übung festhalten.', diff --git a/backend/static/js/ui.js b/backend/static/js/ui.js index a4a550b..7ec576a 100644 --- a/backend/static/js/ui.js +++ b/backend/static/js/ui.js @@ -316,8 +316,8 @@ const UI = (() => { // Kein automatischer absolut-positionierter Trigger mehr. // Aufrufer kann openModal() nutzen und den Button selbst platzieren. - // Banner beim ersten Besuch - if (!seen) { + // Banner beim ersten Besuch (nicht wenn defaultClosed gesetzt) + if (!seen && !config.defaultClosed) { localStorage.setItem(seenKey, '1'); const banner = document.createElement('div'); banner.className = 'pinfo-banner'; diff --git a/backend/static/sw.js b/backend/static/sw.js index cf5a2cf..78b89b4 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v817'; +const CACHE_VERSION = 'by-v818'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache