Build Routes tab with paginated list and Zod-validated API responses

Routes tab (Phase 3.1):
- Paginated FlatList fetching from Journal REST API
- Route cards with name, distance (km), elevation gain, day count
- Pull-to-refresh, loading spinner, error state with retry, empty state
- Safe area insets for notch and tab bar

API client:
- Import types from @trails-cool/api instead of hand-written interfaces
- Parse list/detail responses through Zod schemas at runtime
- Add zod as mobile app dependency

i18n:
- Add mobile namespace (en + de) for routes, activities, profile, login

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-04-13 01:10:09 +02:00
parent 05659bcfc1
commit 77e3c1b1ee
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9
8 changed files with 224 additions and 24 deletions

View file

@ -33,7 +33,8 @@
"react": "19.2.0",
"react-native": "0.83.4",
"react-native-safe-area-context": "~5.6.2",
"react-native-screens": "~4.23.0"
"react-native-screens": "~4.23.0",
"zod": "^3.25.76"
},
"devDependencies": {
"@testing-library/react-native": "^13.3.3",