Commit c74bcc4
authored
migrate frontend to React 19 (#487)
Migrate frontend to React 19.2, TypeScript 5.9, and Vite 8
Bump React to 19.2.4, react-dom to 19.2.4
Bump TypeScript to 5.9.3 (@types/react 19, @types/react-dom 19)
Bump Vite to 8.0, @vitejs/plugin-react to 5.2, vitest to 4.1
Bump @testing-library/react to 16.3 (required for React 19)
Bump @mantine/core + @mantine/hooks to 7.17 (React 19 peer dep)
Bump react-redux to 9.2, add explicit redux 5.0 dependency
Bump react-router-dom to 6.30.3, @tabler/icons-react to 3.40
Bump jsdom to 28, @types/node to 24
Fix Redux 5 type-stricter breaking changes:
Add [key: string]: unknown index signature to LoginAction/LogoutAction
so they satisfy Redux 5's UnknownAction requirement
Cast reducers via as unknown as Reducer<RootState, AuthenticationActionTypes>
to reconcile combineReducers' 3-param Reducer type with createStore's 2-param overload
Switch DevTools enhancer from && idiom to optional chaining (?.)
so the type is StoreEnhancer | undefined instead of false | StoreEnhancer
Fix test/config changes for vitest 4 and React Router v6 future flags:
Replace vi.fn().mockImplementation(() => ...) with class for ResizeObserver mock
(vitest 4 requires function/class, not arrow, for constructors called with new)
Use regular function for matchMedia mock to silence vitest 4 warning
Switch vite.config.mts to import defineConfig from vitest/config (v4 style)
Add v7_startTransition + v7_relativeSplatPath future flags to HashRouter and
MemoryRouter to silence React Router v6 deprecation warnings1 parent d167327 commit c74bcc4
23 files changed
Lines changed: 4591 additions & 27800 deletions
File tree
- src/frontend
- src
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
| 318 | + | |
317 | 319 | | |
318 | 320 | | |
319 | 321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments