Commit Graph
13 Commits
Author SHA1 Message Date
Pascal 24632742ef feat(quest): add full CRUD and image handling for hunt quests 2026-07-31 01:03:54 +02:00
Pascal 77becc453e feat(hunt): add public flag to hunts and implement hunt creation page
- Add 'public' boolean column to Hunt model with default true
- Update hunt admin UI to toggle 'public' flag
- Implement new hunt creation page with form supporting all hunt properties
- Add sidebar navigation item for hunt creation for authorized users
- Adjust home API to filter hunts by public flag only
2026-07-30 23:33:34 +02:00
Pascal 370ba3406f refactor(hunt): replace admin middleware with auth and implement membership state
- Change middleware from 'admin' to 'auth' on hunt and quest admin pages
- Add global hunt store to track current hunt ID and membership status
- Use hunt store membership state to conditionally display admin UI elements
- Handle fetch errors gracefully with alerts and back navigation buttons
- Update admin UI logic to depend on membership state instead of user role
- Add membership state update after API calls in hunt, quest, teams, and admin pages
- Refactor UI templates to show error messages when fetch fails
- Centralize membership logic for better authorization control in frontend
2026-07-30 22:33:47 +02:00
Pascal 3e1bfa46d9 Add pic upload for hunt admins 2025-09-11 23:18:02 +02:00
Pascal 5d4e802796 Add line breaks to description 2025-09-11 22:51:23 +02:00
Pascal 5d1a029a54 Add typecheck 2025-08-21 00:17:01 +02:00
Pascal 16956d12f4 Add eslint 2025-08-20 23:40:00 +02:00
Pascal cc544322b2 Switch to translatable data 2025-08-20 23:18:40 +02:00
Pascal 5146e8e490 Reuse common dateStyle 2025-08-14 20:20:54 +02:00
Pascal 24f933fbaa Use composition for translation 2025-08-14 19:56:49 +02:00
Pascal 900414727f Move review to separate model 2025-08-13 23:53:36 +02:00
Pascal befc678bdb Add team member and hunt member management for admins 2025-08-10 00:20:44 +02:00
Pascal 4189c95d38 Start admin pages 2025-08-09 14:58:38 +02:00