Fix: Nach Login ohne Hund → Onboarding mit Skip-Option statt direkt zu dog-profile (SW by-v748)

This commit is contained in:
rene 2026-05-06 21:02:55 +02:00
parent fd87c9af7b
commit 81bc0f50a0
6 changed files with 11 additions and 8 deletions

View file

@ -327,7 +327,7 @@ MEDIA_DIR = os.getenv("MEDIA_DIR", "/data/media")
os.makedirs(MEDIA_DIR, exist_ok=True) os.makedirs(MEDIA_DIR, exist_ok=True)
app.mount("/media", StaticFiles(directory=MEDIA_DIR), name="media") app.mount("/media", StaticFiles(directory=MEDIA_DIR), name="media")
APP_VER = "747" # muss mit APP_VER in app.js übereinstimmen APP_VER = "748" # muss mit APP_VER in app.js übereinstimmen
@app.get("/api/version") @app.get("/api/version")
async def app_version(): async def app_version():

View file

@ -578,7 +578,7 @@
<script src="/js/api.js?v=94"></script> <script src="/js/api.js?v=94"></script>
<script src="/js/ui.js?v=94"></script> <script src="/js/ui.js?v=94"></script>
<script src="/js/app.js?v=94"></script> <script src="/js/app.js?v=94"></script>
<script src="/js/worlds.js?v=747"></script> <script src="/js/worlds.js?v=748"></script>
<!-- Feature-Seiten werden lazy geladen --> <!-- Feature-Seiten werden lazy geladen -->

View file

@ -3,7 +3,7 @@
Router, State-Management, Navigation, Initialisierung. Router, State-Management, Navigation, Initialisierung.
============================================================ */ ============================================================ */
const APP_VER = '747'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VER = '748'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VERSION = '1.5.0'; // ← semantische Version, wird bei make release gesetzt const APP_VERSION = '1.5.0'; // ← semantische Version, wird bei make release gesetzt
const IS_STAGING = location.hostname === 'staging.banyaro.app'; const IS_STAGING = location.hostname === 'staging.banyaro.app';

View file

@ -440,9 +440,12 @@ window.Page_onboarding = (() => {
function _finish() { function _finish() {
localStorage.setItem('by_onboarding_done', '1'); localStorage.setItem('by_onboarding_done', '1');
if (_appState.dogs.length > 0) { if (_appState.dogs.length > 0) {
App.navigate('diary'); if (window.Worlds) window.Worlds.init(_appState);
else App.navigate('diary');
} else { } else {
App.navigate('map'); // Ohne Hund: Welten zeigen (HUND-Tab mit "Jetzt anlegen"-Karte)
if (window.Worlds) window.Worlds.init(_appState);
else App.navigate('welcome');
} }
} }

View file

@ -1689,11 +1689,11 @@ window.Page_settings = (() => {
_offerPushNotifications(); _offerPushNotifications();
} }
// Nach Login: Welten initialisieren (mit User-State) oder Profil anlegen // Nach Login: Welten initialisieren oder Onboarding (mit Skip-Option)
if (_appState.activeDog) { if (_appState.activeDog) {
window.Worlds?.init(_appState); window.Worlds?.init(_appState);
} else { } else {
App.navigate('dog-profile'); App.navigate('onboarding');
} }
}); });
}); });

View file

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