Feature: Übung des Tages — personalisiert aus exercise_progress, 4. Chip auf Welcome — SW by-v481, APP_VER 458

This commit is contained in:
rene 2026-04-29 09:26:41 +02:00
parent 7048499624
commit d9a0be489b
4 changed files with 36 additions and 15 deletions

View file

@ -3,7 +3,7 @@
Router, State-Management, Navigation, Initialisierung.
============================================================ */
const APP_VER = '457'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VER = '458'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const App = (() => {

View file

@ -346,6 +346,7 @@ window.Page_welcome = (() => {
const diaryText = diaryDate ? (_relDate(diaryDate) || diaryDate) : '—';
const weight = dashData?.last_weight;
const weightVal = weight ? `${weight.wert} ${weight.einheit}` : '—';
const ex = dashData?.daily_exercise;
return `
<div class="wc-chips" id="wc-chips-row">
@ -360,6 +361,12 @@ window.Page_welcome = (() => {
<span class="wc-chip-label">Gewicht</span>
<span class="wc-chip-val${weight ? '' : ' wc-chip-val--empty'}">${weightVal}</span>
</div>
${ex ? `
<div class="wc-chip" data-nav="uebungen">
<svg class="ph-icon wc-chip-icon" aria-hidden="true"><use href="/icons/phosphor.svg#target"></use></svg>
<span class="wc-chip-label">Übung des Tages</span>
<span class="wc-chip-val">${UI.escape(ex.name)}</span>
</div>` : ''}
</div>`;
}

View file

@ -3,7 +3,7 @@
Offline-Cache + Push Notifications + Tile-Cache
============================================================ */
const CACHE_VERSION = 'by-v480';
const CACHE_VERSION = 'by-v481';
const CACHE_STATIC = `${CACHE_VERSION}-static`;
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten