feat(manager): upgrade to React 19, React Router 7 and Vite 8 (same versions as the waiter)

Platform-v2 step 2.2: react/react-dom 19.2.5, react-router-dom 7.14.1, vite 8.0.9,
@vitejs/plugin-react 6.0.1, and react-is 19.2.5 (recharts' peer dependency, no
longer installed implicitly). React and the router are now shared by both apps
at the workspace root; the waiter resolves exactly the versions it had.
- .npmrc legacy-peer-deps for the whole workspace (vite-plugin-pwa 1.2 does not
  list Vite 8 yet; the waiter always installed this way)
- manager Vite dev/preview proxies /api, /api/ws and /static to :8000 like the waiter
No code changes were needed: every route renders and the main flows work.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-13 18:27:10 +02:00
co-authored by Claude Opus 5.5
parent 17bef9915f
commit c7102f1c89
4 changed files with 1031 additions and 2695 deletions
+4
View File
@@ -0,0 +1,4 @@
# vite-plugin-pwa 1.2 (waiter) does not list Vite 8 as a peer yet; the waiter always
# installed with --legacy-peer-deps. One setting for the whole workspace so local
# installs, npm ci in the Dockerfiles and the e2e builds resolve the same way.
legacy-peer-deps=true
+8 -7
View File
@@ -13,20 +13,21 @@
"axios": "^1.7.9", "axios": "^1.7.9",
"lucide-react": "^1.14.0", "lucide-react": "^1.14.0",
"qrcode.react": "^4.2.0", "qrcode.react": "^4.2.0",
"react": "^18.3.1", "react": "^19.2.5",
"react-dom": "^18.3.1", "react-dom": "^19.2.5",
"react-hot-toast": "^2.4.1", "react-hot-toast": "^2.4.1",
"react-router-dom": "^6.28.0", "react-is": "^19.2.5",
"react-router-dom": "^7.14.1",
"recharts": "^3.8.1", "recharts": "^3.8.1",
"zustand": "^5.0.2" "zustand": "^5.0.2"
}, },
"devDependencies": { "devDependencies": {
"@types/react": "^18.3.12", "@types/react": "^19.2.14",
"@types/react-dom": "^18.3.1", "@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^4.3.4", "@vitejs/plugin-react": "^6.0.1",
"autoprefixer": "^10.4.20", "autoprefixer": "^10.4.20",
"postcss": "^8.4.49", "postcss": "^8.4.49",
"tailwindcss": "^3.4.16", "tailwindcss": "^3.4.16",
"vite": "^6.0.5" "vite": "^8.0.9"
} }
} }
+7
View File
@@ -11,5 +11,12 @@ export default defineConfig({
server: { server: {
host: '0.0.0.0', host: '0.0.0.0',
port: 5174, port: 5174,
// Same as the waiter: the API is same-origin in production (nginx), so in
// dev (and `vite preview`) forward it to the local backend.
proxy: {
'/api/ws': { target: 'ws://localhost:8000', ws: true, changeOrigin: true },
'/api': { target: 'http://localhost:8000', changeOrigin: true },
'/static': { target: 'http://localhost:8000', changeOrigin: true },
},
}, },
}) })
+1012 -2688
View File
File diff suppressed because it is too large Load Diff