UX: Hinweis 'Welten bearbeiten' im Ausgeblendete-Funktionen-Sheet (SW by-v929)

This commit is contained in:
rene 2026-05-14 11:41:46 +02:00
parent 00457f52f9
commit 3585958c47
4 changed files with 23 additions and 3 deletions

View file

@ -406,7 +406,7 @@ async def serve_media(path: str, request: _Request):
raise _HE(404, "Nicht gefunden.")
return _media_response(filepath)
APP_VER = "928" # muss mit APP_VER in app.js übereinstimmen
APP_VER = "929" # muss mit APP_VER in app.js übereinstimmen
@app.get("/.well-known/assetlinks.json")
async def assetlinks():

View file

@ -3,7 +3,7 @@
Router, State-Management, Navigation, Initialisierung.
============================================================ */
const APP_VER = '928'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VER = '929'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt
const IS_STAGING = location.hostname === 'staging.banyaro.app';
// Cache-Bust-Parameter nach Update-Reload sofort entfernen

View file

@ -373,6 +373,22 @@ window.Worlds = (() => {
${sections || `<div style="text-align:center;padding:24px 0;color:var(--c-text-secondary);font-size:var(--text-sm)">
Alle Funktionen sind bereits in deinen Welten sichtbar.
</div>`}
<div style="margin-top:16px;padding:12px 14px;border-radius:12px;
background:var(--c-surface-raised,rgba(0,0,0,.04));
font-size:var(--text-xs);color:var(--c-text-secondary);line-height:1.6;
display:flex;align-items:flex-start;gap:10px">
<svg class="ph-icon" style="width:1rem;height:1rem;flex-shrink:0;margin-top:1px;color:var(--c-primary)">
<use href="/icons/phosphor.svg#info"></use>
</svg>
<span>Einzelne Funktionen ausblenden oder zwischen den Welten verschieben:
<button id="fab-all-goto-worlds" style="background:none;border:none;padding:0;cursor:pointer;
color:var(--c-primary);font-size:inherit;font-family:inherit;font-weight:600;
text-decoration:underline;text-underline-offset:2px">
Welten bearbeiten
</button>
in deinem Profil.
</span>
</div>
</div>
`;
@ -387,6 +403,10 @@ window.Worlds = (() => {
navigateTo(btn.dataset.page);
});
});
ov.querySelector('#fab-all-goto-worlds')?.addEventListener('click', () => {
_close();
_openConfigModal();
});
}
// ── SCHNELL-GASSI ─────────────────────────────────────────────

View file

@ -3,7 +3,7 @@
Offline-Cache + Push Notifications + Tile-Cache
============================================================ */
const CACHE_VERSION = 'by-v928';
const CACHE_VERSION = 'by-v929';
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