From 377f36547328cd816542e71ea22da986e8c3295a Mon Sep 17 00:00:00 2001 From: Lars Date: Thu, 23 Apr 2026 14:26:10 +0200 Subject: [PATCH] feat: Add TrainerContextsPage to navigation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- frontend/src/App.jsx | 9 +++++++++ frontend/src/config/appNav.js | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 1aa2455..a6753d5 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -11,6 +11,7 @@ import ClubsPage from './pages/ClubsPage' import SkillsPage from './pages/SkillsPage' import TrainingPlanningPage from './pages/TrainingPlanningPage' import AdminCatalogsPage from './pages/AdminCatalogsPage' +import TrainerContextsPage from './pages/TrainerContextsPage' import './app.css' // Bottom Navigation (Mobile) @@ -189,6 +190,14 @@ function AppRoutes() { } /> + + + + } + /> {/* Catch all - redirect to dashboard or login */} } /> diff --git a/frontend/src/config/appNav.js b/frontend/src/config/appNav.js index 0aa93a7..ea87dd6 100644 --- a/frontend/src/config/appNav.js +++ b/frontend/src/config/appNav.js @@ -4,7 +4,8 @@ import { Calendar, Building2, Settings, - Shield + Shield, + Target } from 'lucide-react' /** @@ -21,6 +22,7 @@ function baseItems() { { to: '/exercises', label: 'Übungen', shortLabel: 'Übungen' }, { to: '/planning', label: 'Planung' }, { to: '/clubs', label: 'Vereine' }, + { to: '/trainer-contexts', label: 'Meine Bereiche', shortLabel: 'Bereiche' }, { to: '/settings', label: 'Einstellungen', shortLabel: 'Einst.' } ] } @@ -32,6 +34,7 @@ export function getMainNavItems(isAdmin) { BookOpen, Calendar, Building2, + Target, Settings ]