Spaces:
Sleeping
Sleeping
Commit History
-
feat: add React frontend (feature/frontend)
Fabio Antonini +1: Claude Sonnet 4.6Vite + React 19 + TypeScript SPA with: - Tailwind CSS + shadcn/ui-compatible components (Button, Input, Card, Badge) - react-router-dom v7 with protected routes and AppLayout sidebar - zustand auth store (access + refresh token, persisted to localStorage) - axios API client with auto-refresh interceptor on 401 - react-i18next with IT/EN locale files (full translation coverage) - Pages: LoginPage, ProjectsPage, ProjectDetailPage, RagPage - Sidebar with role-aware nav (admin link only for admin role) + language toggle - vite proxy: /api → http://localhost:8000 (dev), nginx proxy (Docker) - Dockerfile: multi-stage build (node:20 → nginx:alpine) with SPA fallback - docker-compose.yml: added frontend service on port 3000 Build: 384 kB JS + 13 kB CSS (gzip: 124 kB + 3.7 kB) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>977221f