Add GlobalProfileScreen and integrate global user management features

- Introduced GlobalProfileScreen for user profile management.
- Implemented user data fetching and updating via global API.
- Added session handling for global user state.
- Updated navigation to include profile access from the top navbar.
- Created global data caching mechanisms for improved performance.
This commit is contained in:
bobbert committed 2026-04-09 20:49:43 +01:00
1 parent 2a83d0608f
commit 53fddc8220
15 files changed
+1129 -210

No files matched your search

+3
View File
@@ -25,12 +25,14 @@ const Screen = ({children, style, showBack = false}) => {
GlobalMapScreen: 'Global Map',
GlobalCacheViewScreen: 'Cache Details',
GlobalLeaderboardScreen: 'Global Leaderboard',
GlobalProfileScreen: 'Global Profile',
};
// State ----------------------
const routeName = route.name;
const isAuthScreen = routeName === 'LoginScreen' || routeName === 'RegisterScreen';
const isGlobalRoute = routeName.startsWith('Global');
const pageTitle = titleMap[routeName] || 'Treasure Hunt';
// Handlers -------------------
@@ -50,6 +52,7 @@ const Screen = ({children, style, showBack = false}) => {
<TopNavbar
title={pageTitle}
showBack={showBack}
showProfile={isGlobalRoute}
navigation={navigation}
/>
)}