1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +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 feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
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 feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
CheckmarkBadge fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
Codebox
ConditionallyRender feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
ConstraintAccordion fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
CreateButton feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
DateTimePicker feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
Dialogue Chore: add zendesk btn to error dialog (#6187) 2024-02-12 10:26:45 +02:00
DividerText feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
DropdownMenu fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
EnterpriseBadge Update admin navigation (1-1104-improved-menu-oss) (#4458) 2023-08-10 09:28:10 +02:00
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 feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
FilterDateItem chore: add no unused imports biome rule (#5855) 2024-01-11 12:44:05 +00:00
FormSwitch feat: banner UI/UX adjustments (#5151) 2023-10-25 17:14:18 +01:00
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 feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
GridRow feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
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 feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
Input feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
InputCaption feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
InputListField feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
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 feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
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 feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
NewConstraintAccordion fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
NoItems
NotFound feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
Notifications fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
OperatorUpgradeAlert feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
PageContent chore: add no unused imports biome rule (#5855) 2024-01-11 12:44:05 +00:00
PageHeader feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
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 feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
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 feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
Proclamation feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
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 feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
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 feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
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 feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
SidePanelList chore: action events UI (#6358) 2024-02-27 13:52:09 +00:00
SkipNavLink
StaleDataNotification feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
Sticky feat: add new sticky component to handle stacked stickies (#5088) 2023-10-19 15:50:37 +01:00
StrategyItemContainer fix: icon imports (#6499) 2024-03-12 10:56:10 +01:00
StrategySeparator
StrategyVariantsUpgradeAlert feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
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 feat: strategy variants on strategy overview (#4776) 2023-09-21 14:28:45 +02:00
UpdateButton feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
UserAvatar Biome1.5.1 (#5867) 2024-01-12 09:25:59 +00:00
VariantInfoAlert feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
VerticalTabs feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
common.module.scss
flags.ts feat: open-source segments 🚀 (#4690) 2023-09-19 11:24:26 +00:00
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 feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
util.ts feat: support localization in date filter (#5572) 2023-12-08 13:20:39 +02:00