- Fix: Remove double /api prefix in stations API calls - stations.api.ts was using '/api/stations' but apiClient already prepends '/api' - Changed API_BASE from '/api/stations' to '/stations' - This resolves 404 errors on /api/api/stations/saved and similar endpoints - Fix: Remove invalid access-log middleware from Traefik config - The accessLog field is only valid in traefik.yml main config, not as a middleware - Removed the invalid access-log middleware definition - This resolves Traefik configuration errors during startup These changes resolve the console errors: - GET https://motovaultpro.com/api/vehicles 404 - GET https://motovaultpro.com/api/api/stations/saved 404 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
Frontend Quickload
Overview
- Tech: React 18, Vite, TypeScript, MUI, Tailwind, React Query, Zustand.
- Auth: Auth0 via
src/core/auth/Auth0Provider.tsx. - Data: API client in
src/core/api/client.tswith React Query config.
Commands (containers)
- Build:
make rebuild - Logs:
make logs-frontend
Structure
src/App.tsx,src/main.tsx— app entry.src/features/*— feature pages/components/hooks.src/core/*— auth, api, store, hooks, query config, utils.src/shared-minimal/*— shared UI components and theme.
Mobile + Desktop (required)
- Layouts responsive by default; validate on small/large viewports.
- Verify Suspense fallbacks and navigation flows on both form factors.
- Test key screens: Vehicles, Fuel Logs, Documents, Settings.
- Ensure touch interactions and keyboard navigation work equivalently.
Testing
- Jest config:
frontend/jest.config.ts(jsdom). - Setup:
frontend/setupTests.ts(Testing Library). - Run:
docker compose exec mvp-frontend npm test(from project root, containerized). - Watch mode:
docker compose exec mvp-frontend npm run test:watch.
Patterns
- State: co-locate feature state in
src/core/store(Zustand) and React Query for server state. - Forms:
react-hook-form+ Zod resolvers. - UI: MUI components; Tailwind for utility styling.