Commit graph

3 commits

Author SHA1 Message Date
Lasse Rune Hansen
50f744c89d fix(frontend/api): Use relative paths for Docker proxy configuration
- Updated API client to use '/api' base URL in production (Docker)
- Updated StoryPlayer audio URL construction for Docker environment
- nginx proxies /api requests to backend:8080 in Docker Compose

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-14 07:29:12 +02:00
Lasse Rune Hansen
17ce0d1eb8 fix(frontend/story-integration): Fix TypeScript type imports and duplicate dictionary key
- Added 'import type' syntax for TypeScript type-only imports
- Removed duplicate 'ein' entry in GERMAN_WORD_DICTIONARY
- Removed unused import in StoryPlayer component
- Verified build passes successfully

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-13 16:25:17 +02:00
Lasse Rune Hansen
81a9eff5bc feat(frontend/story-integration): Phase 6 - Frontend components for Story feature
- Created TypeScript types for Story DTOs (types/api/story.ts)
- Created API client with authenticated fetch (lib/api/story.ts)
- Created StorySegment component with word click-to-translate
- Created StoryPlayer component with audio playback controls
- Created StoryTab component for segment navigation
- Created StoryPage component with routing
- Added comprehensive CSS styling (index.css)
- Updated App.tsx with react-router-dom routing
- Added react-router-dom dependency to package.json
- Updated feature documentation for Phase 6 completion

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-13 16:06:01 +02:00