Commit Graph

17 Commits

Author SHA1 Message Date
7cce818932 Remove Ki-Moderator add more backlist 2025-09-15 18:59:25 +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
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
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
1f82c98646 Statistik backend and favicon 2025-09-04 17:27:45 +02:00
f6cd5c734f Separieren vom css und js und fixes 2025-09-04 14:14:59 +02:00
1a377517a6 AdminDashboard 2025-09-03 17:13:18 +02:00
e4f6218066 Add linking of RFID with camera 2025-09-03 16:42:18 +02:00
e6cf08893e Initial local commit 2025-09-03 11:07:29 +02:00