A fitness balance app with calories calculator (consumed+burnt), extensive mapping/routing capabilities route for your walks and bike rides
Root causes fixed: 1. closeModal had replaceState AFTER async history.back() — replaceState overwrote the current entry before back() fired, causing skip-to-today 2. Chart fullscreen in modals used pushState — each open/close cycle added extra history entries, exhausting the stack 3. Map collapse in popHandler didn't call invalidateSize/fitBounds Changes: - closeModal() simplified: just remove overlay + history.back() No more replaceState race condition - Chart/map fullscreen inside modals: NO pushState, CSS-only popHandler detects .chart-full/.sd-map-full and collapses, re-pushes modal - Map collapse: uses saved _leafletMap ref and _bounds for proper resize - Init: renderScreen with fromPopstate=true to avoid navStack duplication - Modal popHandler searches within overlay only (not global document) Fixed user-reported bugs: 1. Map collapse keeps zoom → now calls invalidateSize + fitBounds 2. Chart open → back → back = app exit → now back closes chart, back closes modal 3. "<-" goes to Today instead of track list → fixed closeModal race 4. X on chart → back = correct → was already working 5. Chart open → back back = app exit → same fix as #2 |
||
|---|---|---|
| frontend | ||
| src | ||
| src-tauri | ||
| .gitignore | ||
| data.js | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||