Add app navigation bars to Journal and Planner

Journal gets a nav bar in root.tsx with conditional links: Routes and
Activities for authenticated users, Sign In and Register for guests.
Active route is highlighted via useLocation(). User menu shows username
linking to profile and a logout button.

Planner SessionView header title becomes a home link back to /.

Adds i18n keys (en + de) for all nav labels. Updates E2E tests to use
scoped nav selectors now that links appear in both nav bar and page body.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-03-25 04:11:30 +01:00 committed by GitHub
parent a9e29b2950
commit bb4f193405
7 changed files with 124 additions and 16 deletions

View file

@ -1,18 +1,18 @@
## 1. Journal Navigation Bar
- [ ] 1.1 Add nav bar to Journal root Layout — show "Routes", "Activities" links when logged in; "Login", "Register" when logged out
- [ ] 1.2 Add user menu to nav bar — username/display name linking to profile, logout button
- [ ] 1.3 Highlight active nav item based on current route
- [ ] 1.4 Add i18n keys for nav labels (en + de): routes, activities, profile, logout
- [x] 1.1 Add nav bar to Journal root Layout — show "Routes", "Activities" links when logged in; "Login", "Register" when logged out
- [x] 1.2 Add user menu to nav bar — username/display name linking to profile, logout button
- [x] 1.3 Highlight active nav item based on current route
- [x] 1.4 Add i18n keys for nav labels (en + de): routes, activities, profile, logout
## 2. Planner Navigation
- [ ] 2.1 Add "Start Planning" CTA button on Planner home page linking to `/new`
- [ ] 2.2 Add home link (logo or text) to SessionView header
- [ ] 2.3 Add i18n keys for planner nav (en + de): startPlanning, home
- [x] 2.1 Add "Start Planning" CTA button on Planner home page linking to `/new` (already done in planner-landing-page change)
- [x] 2.2 Add home link (logo or text) to SessionView header
- [x] 2.3 Add i18n keys for planner nav (en + de): startPlanning, home
## 3. Verify
- [ ] 3.1 Verify all Journal routes are reachable via navigation (routes, activities, profile, auth, privacy)
- [ ] 3.2 Verify Planner home → new session → back to home works
- [ ] 3.3 Update E2E tests if navigation changes affect existing selectors
- [x] 3.1 Verify all Journal routes are reachable via navigation (routes, activities, profile, auth, privacy)
- [x] 3.2 Verify Planner home → new session → back to home works
- [x] 3.3 Update E2E tests if navigation changes affect existing selectors