feat: Add TrainerContextsPage to navigation
Some checks failed
Deploy Development / deploy (push) Successful in 34s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 5s
Test Suite / playwright-tests (push) Failing after 1m54s

- Import TrainerContextsPage in App.jsx
- Add route /trainer-contexts
- Add 'Meine Bereiche' to main navigation (appNav.js)
- Icon: Target (Zielscheibe) für Trainer-Bereiche
- Visible in both desktop sidebar and mobile bottom nav

version: 0.5.0
module: TrainerContextsPage 1.0.0

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Lars 2026-04-23 14:26:10 +02:00
parent 5e2820c63c
commit 377f365473
2 changed files with 13 additions and 1 deletions

View File

@ -11,6 +11,7 @@ import ClubsPage from './pages/ClubsPage'
import SkillsPage from './pages/SkillsPage' import SkillsPage from './pages/SkillsPage'
import TrainingPlanningPage from './pages/TrainingPlanningPage' import TrainingPlanningPage from './pages/TrainingPlanningPage'
import AdminCatalogsPage from './pages/AdminCatalogsPage' import AdminCatalogsPage from './pages/AdminCatalogsPage'
import TrainerContextsPage from './pages/TrainerContextsPage'
import './app.css' import './app.css'
// Bottom Navigation (Mobile) // Bottom Navigation (Mobile)
@ -189,6 +190,14 @@ function AppRoutes() {
</ProtectedRoute> </ProtectedRoute>
} }
/> />
<Route
path="/trainer-contexts"
element={
<ProtectedRoute>
<TrainerContextsPage />
</ProtectedRoute>
}
/>
{/* Catch all - redirect to dashboard or login */} {/* Catch all - redirect to dashboard or login */}
<Route path="*" element={<Navigate to="/" replace />} /> <Route path="*" element={<Navigate to="/" replace />} />

View File

@ -4,7 +4,8 @@ import {
Calendar, Calendar,
Building2, Building2,
Settings, Settings,
Shield Shield,
Target
} from 'lucide-react' } from 'lucide-react'
/** /**
@ -21,6 +22,7 @@ function baseItems() {
{ to: '/exercises', label: 'Übungen', shortLabel: 'Übungen' }, { to: '/exercises', label: 'Übungen', shortLabel: 'Übungen' },
{ to: '/planning', label: 'Planung' }, { to: '/planning', label: 'Planung' },
{ to: '/clubs', label: 'Vereine' }, { to: '/clubs', label: 'Vereine' },
{ to: '/trainer-contexts', label: 'Meine Bereiche', shortLabel: 'Bereiche' },
{ to: '/settings', label: 'Einstellungen', shortLabel: 'Einst.' } { to: '/settings', label: 'Einstellungen', shortLabel: 'Einst.' }
] ]
} }
@ -32,6 +34,7 @@ export function getMainNavItems(isAdmin) {
BookOpen, BookOpen,
Calendar, Calendar,
Building2, Building2,
Target,
Settings Settings
] ]