Commit Graph

17 Commits

Author SHA1 Message Date
ee910aecf0 🔧 Fix footer positioning in adminlogin and generator pages
- Added proper HTML/body height: 100% for full viewport height
- Changed body to flex-direction: column for proper footer positioning
- Updated footer CSS with margin-top: auto for sticky footer behavior
- Added flex-grow: 1 to containers for proper space distribution
- Footer now properly sticks to bottom of viewport
- Improved responsive layout for both adminlogin and generator pages
2025-09-08 21:48:48 +02:00
b610d85313 🔧 Fix location name logic: User determines name, API only provides coordinates
- Removed automatic API location name usage
- User input from locationSearch field is used as location name
- API search only provides coordinates (latitude/longitude)
- User has full control over location naming
- Search functionality purely for coordinate lookup
2025-09-08 21:44:18 +02:00
7d88ad036d 🔧 Fix location name: Use real location name from API instead of search term
- Added hidden field 'realLocationName' to store actual location name from Nominatim API
- Updated location saving to use real location name (display_name) instead of search term
- Fallback to search term if real location name not available
- Now saves proper location names like 'Marienplatz, Altstadt-Lehel, München, Bayern, Deutschland' instead of just 'München'
- Improved location data quality in database
2025-09-08 21:41:58 +02:00
2becf784bd 🔧 Fix settings modal: Load current user preferences
- Added show_in_leaderboard to user-player API response
- Improved loadSettings() function with better error handling
- Added console logging for debugging
- Settings modal now shows current user preference instead of always 'off'
- Fixed dependency on currentPlayerId (now uses currentUser.id directly)
2025-09-08 19:18:35 +02:00
fbd8677709 🔧 Fix settings API: Use public endpoint for logged-in users
- Changed from /api/v1/private/update-player-settings to /api/v1/public/update-player-settings
- Removed API key requirement for logged-in users
- Added both public and private endpoints for flexibility
- Fixed 401 Unauthorized error in settings modal
2025-09-08 19:16:57 +02:00
70ceb2da25 🔒 Add privacy settings for leaderboard visibility
 Features:
- Added show_in_leaderboard column to players table (default: false)
- Replaced Quick Actions with Settings section in dashboard
- Added toggle switch for leaderboard visibility
- Created settings modal with privacy controls

🔧 API Changes:
- Added /api/v1/private/update-player-settings endpoint
- Updated best-times queries to filter by show_in_leaderboard
- Updated times-with-details to respect privacy settings
- Added updated_at column to players table

🎨 UI/UX:
- Modern toggle switch design
- Responsive settings modal
- Success/error notifications
- Clear privacy explanation

🔐 Privacy:
- Default: Times are NOT shown in global leaderboard
- Users can opt-in via settings
- Personal dashboard always shows own times
- Global leaderboard only shows opted-in users
2025-09-08 19:14:17 +02:00
70d4db9901 PWA improvements 2025-09-07 17:10:50 +02:00
5bed125cf6 Achivements abends um 19 uhr 2025-09-07 16:54:09 +02:00
8342d95a13 Notifications, div fixes, kekse für last location 2025-09-06 12:37:10 +02:00
61d5ef2e6f Achivement System 2025-09-05 17:56:23 +02:00
a78a8dc3ce edia all routes 2025-09-05 13:15:11 +02:00
3872397082 Mobile desighn Adjustments 2025-09-05 12:37:33 +02:00
4d00be8127 Keks notice! 2025-09-05 07:42:07 +02:00
b0b5149069 Add Google Login 2025-09-05 06:51:31 +02:00
1f82c98646 Statistik backend and favicon 2025-09-04 17:27:45 +02:00
eb1d713942 Refactor ALL 2025-09-04 14:31:17 +02:00
f6cd5c734f Separieren vom css und js und fixes 2025-09-04 14:14:59 +02:00