1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-28 17:55:15 +02:00
unleash.unleash/frontend/src/component/admin
Jaanus Sellin 3acb3ad2c2
feat: upgrade from react v17 to v18 (#7265)
**Upgrade to React v18 for Unleash v6. Here's why I think it's a good
time to do it:**
- Command Bar project: We've begun work on the command bar project, and
there's a fantastic library we want to use. However, it requires React
v18 support.
- Straightforward Upgrade: I took a look at the upgrade guide
https://react.dev/blog/2022/03/08/react-18-upgrade-guide and it seems
fairly straightforward. In fact, I was able to get React v18 running
with minimal changes in just 10 minutes!
- Dropping IE Support: React v18 no longer supports Internet Explorer
(IE), which is no longer supported by Microsoft as of June 15, 2022.
Upgrading to v18 in v6 would be a good way to align with this change.

TS updates:
* FC children has to be explicit:
https://stackoverflow.com/questions/71788254/react-18-typescript-children-fc
* forcing version 18 types in resolutions:
https://sentry.io/answers/type-is-not-assignable-to-type-reactnode/

Test updates:
* fixing SWR issue that we have always had but it manifests more in new
React (https://github.com/vercel/swr/issues/2373)

---------

Co-authored-by: kwasniew <kwasniewski.mateusz@gmail.com>
2024-06-11 13:59:52 +03:00
..
apiToken feat: upgrade from react v17 to v18 (#7265) 2024-06-11 13:59:52 +03:00
auth fix: trim sso URL fields (#7301) 2024-06-06 10:01:24 +02:00
banners chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
billing feat: upgrade from react v17 to v18 (#7265) 2024-06-11 13:59:52 +03:00
cors chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
groups feat: upgrade from react v17 to v18 (#7265) 2024-06-11 13:59:52 +03:00
instance-admin chore: rename toggle to flag #1 (#7092) 2024-05-21 15:18:00 +03:00
instance-privacy chore: rename toggle to flag #2 (#7097) 2024-05-22 08:20:11 +03:00
invoice chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
license fix: add instanceName to license display (#6065) 2024-01-30 11:05:27 +01:00
maintenance chore: add no unused imports biome rule (#5855) 2024-01-11 12:44:05 +00:00
menu feat: upgrade from react v17 to v18 (#7265) 2024-06-11 13:59:52 +03:00
network fix: also check includedTraffic before calculating overage and showing warning (#7091) 2024-05-21 12:41:19 +02:00
roles chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
serviceAccounts task: upgraded semver dependency (and biome) (#7272) 2024-06-04 15:01:43 +02:00
users feat: upgrade from react v17 to v18 (#7265) 2024-06-11 13:59:52 +03:00
Admin.tsx feat: hide top nav (#7140) 2024-05-24 12:08:08 +02:00
AdminIndex.tsx chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
AdminRedirect.tsx feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
adminRoutes.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
filterAdminRoutes.test.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
filterAdminRoutes.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
LazyAdmin.tsx Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00
LazyAdminExport.tsx Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00
useAdminRoutes.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00