Release v1.4.0

This commit is contained in:
rene 2026-05-05 21:46:21 +02:00
commit bb4117dd71
41 changed files with 3539 additions and 222 deletions

View file

@ -3,8 +3,8 @@
Router, State-Management, Navigation, Initialisierung.
============================================================ */
const APP_VER = '700'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VERSION = '1.3.0'; // ← semantische Version, wird bei make release gesetzt
const APP_VER = '727'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VERSION = '1.4.0'; // ← semantische Version, wird bei make release gesetzt
const IS_STAGING = location.hostname === 'staging.banyaro.app';
const App = (() => {
@ -79,6 +79,7 @@ const App = (() => {
ernaehrung: { title: 'Ernährung', module: null, requiresAuth: true },
personality: { title: 'Persönlichkeitstest', module: null },
reise: { title: 'Reise mit Hund', module: null },
hilfe: { title: 'Hilfe & FAQ', module: null },
};
// ----------------------------------------------------------
@ -484,6 +485,9 @@ const App = (() => {
navigate('onboarding');
}
// Drei Welten nach Login starten (falls noch nicht initialisiert)
if (window.Worlds) window.Worlds.init(state);
_showVerifyBanner();
_updateNotifBadge();
_updateChatBadge();
@ -559,7 +563,8 @@ const App = (() => {
_updateHeaderUserBtn(false);
// Nicht eingeloggte User immer zur Welcome-Seite
window.Worlds?.hide();
document.getElementById('worlds-back')?.classList.remove('worlds-back-visible');
navigate('welcome', false);
}
@ -855,11 +860,8 @@ const App = (() => {
}
const startPage = (hashPage && pages[hashPage]) ? hashPage : 'welcome';
// Nicht eingeloggte User immer zur Welcome-Seite — auch bei direktem Link auf Forum, Map etc.
navigate(state.user ? startPage : 'welcome', false, hashParams);
// Drei Welten nach initialer Navigation starten (damit hide() in navigate() sie nicht gleich killt)
if (window.Worlds) window.Worlds.init(state);
if (window.Worlds && state.user) window.Worlds.init(state);
}
async function _handleInvite(token) {