1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/frontend/src/component/common
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
..
AnimateOnMount chore: add no unused imports biome rule (#5855) 2024-01-11 12:44:05 +00:00
Announcer chore: add no unused imports biome rule (#5855) 2024-01-11 12:44:05 +00:00
ApiError
ApiTokenTable fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
AutocompleteBox fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
Badge refactor: prefer 'span' to 'div' in the badge element (#5981) 2024-01-22 14:44:26 +04:00
BatchSelectionActionsBar Feat/new paginated table (#5371) 2023-11-24 17:50:58 +01:00
BreadcrumbNav
CheckmarkBadge fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
Codebox
ConditionallyRender
ConstraintAccordion fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
CreateButton
DateTimePicker
Dialogue Chore: add zendesk btn to error dialog (#6187) 2024-02-12 10:26:45 +02:00
DividerText
DropdownMenu fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
EnterpriseBadge
EnvironmentIcon fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
ExperimentalFeedback fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
FavoriteIconButton fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
FeatureArchiveDialog chore: add no unused imports biome rule (#5855) 2024-01-11 12:44:05 +00:00
FeatureStaleDialog
FeatureStatusChip
Feedback
FilterDateItem chore: add no unused imports biome rule (#5855) 2024-01-11 12:44:05 +00:00
FormSwitch
FormTemplate fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
GeneralSelect fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
Gradient
GridCol
GridRow
GuidanceIndicator
HelpIcon fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
Highlighter chore: add no unused imports biome rule (#5855) 2024-01-11 12:44:05 +00:00
HtmlTooltip
Input
InputCaption
InputListField
InstanceStatus fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
ItemList fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
Loader
LoginRedirect
MainHeader
Markdown fix: properly handle markdown links (#5768) 2024-01-05 08:18:34 +00:00
MultiActionButton feat: project applications paging backend (#6312) 2024-02-22 15:35:16 +02:00
MultipleRoleSelect
NewConstraintAccordion fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
NoItems
NotFound
Notifications fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
OperatorUpgradeAlert
PageContent chore: add no unused imports biome rule (#5855) 2024-01-11 12:44:05 +00:00
PageHeader
PasswordField fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
PercentageCircle Feat/disabled strategies (#5930) 2024-01-17 13:20:39 +01:00
PermissionButton fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
PermissionGuard chore: add support for project and environment in PermissionGuard (#6008) 2024-01-24 08:20:38 +00:00
PermissionHOC Biome1.5.1 (#5867) 2024-01-12 09:25:59 +00:00
PermissionIconButton
PermissionSwitch task: Use fine-grained project permissions in frontend (#5974) 2024-01-22 15:34:10 +01:00
PremiumFeature chore: rename incoming webhooks to signals (#6415) 2024-03-04 12:08:05 +00:00
PrettifyLargeNumber
Proclamation
ProjectSelect Insights dashboard refactor (#6404) 2024-03-04 12:56:17 +01:00
ProtectedRoute
ReactJSONEditor chore: incoming webhook events UI (#6317) 2024-02-23 11:01:27 +00:00
ResponsiveButton
RoleBadge fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
RoleDescription fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
RoleSelect feat: list all root roles in SSO config (#5887) 2024-01-15 13:13:29 +00:00
ScrollTop
Search fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
SegmentItem fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
SidebarModal
SidePanelList chore: action events UI (#6358) 2024-02-27 13:52:09 +00:00
SkipNavLink
StaleDataNotification
Sticky
StrategyItemContainer fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
StrategySeparator
StrategyVariantsUpgradeAlert
StringTruncator
Table fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
TabNav chore: adapt integrations layout for incoming webhooks (#5828) 2024-01-10 10:33:51 +00:00
ThemeMode
ToastRenderer chore(deps): update dependency @biomejs/biome to v1.4.0 (#5288) 2023-11-28 09:32:00 +00:00
TooltipLink feat: disable sorting on selected columns (#5652) 2023-12-15 12:47:00 +01:00
TooltipResolver
UpdateButton
UserAvatar Biome1.5.1 (#5867) 2024-01-12 09:25:59 +00:00
VariantInfoAlert
VerticalTabs
common.module.scss
flags.ts
index.jsx fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
select.tsx Feat/new strategy configuration general tab (#5628) 2023-12-13 12:34:43 +01:00
util.test.ts
util.ts feat: support localization in date filter (#5572) 2023-12-08 13:20:39 +02:00