feat(ClubSettings): add country and state code fields for regional calendar data
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 43s

- Introduced `countryCode` and `stateCode` fields in the Club model to support regional calendar data.
- Updated ClubSettings component to allow users to select their country and state, enhancing the configuration options for clubs.
- Enhanced the ClubService to handle normalization of country and state codes during updates.
- Added new routes and middleware to support the training cancellation feature and calendar integration in the backend.
- Updated frontend navigation to include a calendar link, improving user access to scheduling features.
This commit is contained in:
Torsten Schulz (local)
2026-05-12 23:46:07 +02:00
parent 1e23171370
commit bea5facb7d
46 changed files with 4286 additions and 12 deletions

View File

@@ -0,0 +1,9 @@
import express from 'express';
import { authenticate } from '../middleware/authMiddleware.js';
import { getClubCalendarDays } from '../controllers/calendarController.js';
const router = express.Router();
router.get('/club/:clubId/holidays', authenticate, getClubCalendarDays);
export default router;

View File

@@ -0,0 +1,16 @@
import express from 'express';
import { authenticate } from '../middleware/authMiddleware.js';
import {
deleteTrainingCancellation,
getTrainingCancellations,
upsertTrainingCancellation,
} from '../controllers/trainingCancellationController.js';
const router = express.Router();
router.use(authenticate);
router.get('/:clubId', getTrainingCancellations);
router.post('/:clubId', upsertTrainingCancellation);
router.delete('/:clubId/:cancellationId', deleteTrainingCancellation);
export default router;