1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-27 11:02:16 +01:00
unleash.unleash/frontend/src/component/admin
Fredrik Strand Oseberg f381718fd6
fix: icon imports (#6499)
Based on this article:
https://mui.com/material-ui/guides/minimizing-bundle-size/ importing
from `'@mui/icons-material'` instead of specifying the actual path to
the icon like `import Delete from '@mui/icons-material/Delete';` can be
up to six time slower. This change changes all named imports in Unleash
referencing the `@mui/icons-material` to default imports.

This reduced the amount of modules we had to process when building the
frontend from 15206 to 4746

Before:
<img width="1016" alt="Skjermbilde 2024-03-11 kl 14 19 58"
src="https://github.com/Unleash/unleash/assets/16081982/f137d24a-6557-4183-a40f-f62a33524520">

After:
<img width="1237" alt="Skjermbilde 2024-03-11 kl 14 20 32"
src="https://github.com/Unleash/unleash/assets/16081982/05a27d6a-2c3f-4409-9862-7188ab4b9c72">

Build time locally decreased by around 50%

Before:
<img width="1504" alt="Skjermbilde 2024-03-11 kl 14 31 45"
src="https://github.com/Unleash/unleash/assets/16081982/bc931559-b022-47ed-9f8f-c87401578518">


After:
<img width="1219" alt="Skjermbilde 2024-03-11 kl 14 27 00"
src="https://github.com/Unleash/unleash/assets/16081982/3c3a8d6b-576d-45c3-aa40-cc5f95d9df2b">
2024-03-12 10:56:10 +01:00
..
apiToken fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
auth fix: improve SSO default role resolution (#5916) 2024-01-16 16:08:46 +00:00
banners fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
billing chore(deps): update dependency @biomejs/biome to v1.4.0 (#5288) 2023-11-28 09:32:00 +00:00
cors chore: add no unused imports biome rule (#5855) 2024-01-11 12:44:05 +00:00
groups fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
instance-admin fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
instance-privacy feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
invoice feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +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: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
network fix: better arrow design in network overview (#6331) 2024-02-23 13:38:54 +00:00
roles fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
serviceAccounts fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
users fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
Admin.tsx feat: license checker for self-hosted (#5239) 2024-01-02 20:06:35 +00:00
AdminIndex.tsx feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
AdminRedirect.tsx feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
adminRoutes.ts feat: license checker for self-hosted (#5239) 2024-01-02 20:06:35 +00:00
filterAdminRoutes.test.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
filterAdminRoutes.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
LazyAdmin.tsx
LazyAdminExport.tsx
useAdminRoutes.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00