Commit Graph

15 Commits

Author SHA1 Message Date
10a150cb39 Diverse Fixes nach refactoring 2025-09-16 01:31:22 +02:00
5ca7b0b19c Div Erweiterungen 2025-09-15 23:52:59 +02:00
6d5dc9eb7a Komplettes AdivmentSystem überarbeitet! 2025-09-11 17:07:43 +02:00
28616b3b0c Zulassen von Anonymen RFID updates verlinkung der UUID wenn spieler angelegt wurde 2025-09-11 16:33:22 +02:00
d2a1bb16ea Fix HTML formatting in translated text
- Update translateElement function to support HTML tags
- Settings modal note now displays with proper <strong> formatting
- Applied to both dashboard and leaderboard
- Text with HTML tags now uses innerHTML instead of textContent
2025-09-10 19:54:57 +02:00
340e22a815 Add real country flags to language selector
- Replace emoji flags with SVG-based country flags
- German flag: Black-Red-Gold (official colors)
- USA flag: Red-White-Blue with stars
- Dynamic flag switching on language change
- Applied to both dashboard and leaderboard
- Database achievements now support English translations
- Extended achievements table with name_en and description_en columns
- Updated API routes to return English translations
- Simplified frontend translation system to use database translations
2025-09-10 19:40:57 +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
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
4d00be8127 Keks notice! 2025-09-05 07:42:07 +02:00
eb1d713942 Refactor ALL 2025-09-04 14:31:17 +02:00