fix: add missing resource app icon

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
This commit is contained in:
Heikki Hellgren
2023-09-11 09:45:47 +03:00
committed by Fredrik Adelöw
parent ed8bd1b3c5
commit 1a0616fa10
5 changed files with 27 additions and 14 deletions
+7
View File
@@ -0,0 +1,7 @@
---
'@backstage/core-app-api': patch
'@backstage/app-defaults': patch
'@backstage/test-utils': patch
---
Add missing resource and template app icons
@@ -35,6 +35,7 @@ import MuiPeopleIcon from '@material-ui/icons/People';
import MuiPersonIcon from '@material-ui/icons/Person';
import MuiWarningIcon from '@material-ui/icons/Warning';
import MuiWorkIcon from '@material-ui/icons/Work';
import MuiFeaturedPlayListIcon from '@material-ui/icons/FeaturedPlayList';
export const icons = {
brokenImage: MuiBrokenImageIcon as IconComponent,
@@ -58,6 +59,7 @@ export const icons = {
'kind:system': MuiCategoryIcon as IconComponent,
'kind:user': MuiPersonIcon as IconComponent,
'kind:resource': MuiWorkIcon as IconComponent,
'kind:template': MuiFeaturedPlayListIcon as IconComponent,
user: MuiPersonIcon as IconComponent,
warning: MuiWarningIcon as IconComponent,
};
+2
View File
@@ -179,6 +179,8 @@ export type AppIcons = {
'kind:location': IconComponent;
'kind:system': IconComponent;
'kind:user': IconComponent;
'kind:resource': IconComponent;
'kind:template': IconComponent;
brokenImage: IconComponent;
catalog: IconComponent;
chat: IconComponent;
+6 -5
View File
@@ -18,13 +18,13 @@ import { ComponentType, PropsWithChildren } from 'react';
import {
AnyApiFactory,
AppTheme,
IconComponent,
BackstagePlugin,
ExternalRouteRef,
FeatureFlag,
IconComponent,
IdentityApi,
RouteRef,
SubRouteRef,
ExternalRouteRef,
IdentityApi,
FeatureFlag,
} from '@backstage/core-plugin-api';
import { AppConfig } from '@backstage/config';
@@ -99,7 +99,8 @@ export type AppIcons = {
'kind:location': IconComponent;
'kind:system': IconComponent;
'kind:user': IconComponent;
'kind:resource': IconComponent;
'kind:template': IconComponent;
brokenImage: IconComponent;
catalog: IconComponent;
chat: IconComponent;
@@ -16,24 +16,23 @@
import React, {
ComponentType,
ReactNode,
ReactElement,
PropsWithChildren,
ReactElement,
ReactNode,
} from 'react';
import { MemoryRouter } from 'react-router-dom';
import { Route } from 'react-router-dom';
import { UnifiedThemeProvider, themes } from '@backstage/theme';
import { MemoryRouter, Route } from 'react-router-dom';
import { themes, UnifiedThemeProvider } from '@backstage/theme';
import MockIcon from '@material-ui/icons/AcUnit';
import { createSpecializedApp } from '@backstage/core-app-api';
import {
BootErrorPageProps,
RouteRef,
ExternalRouteRef,
attachComponentData,
BootErrorPageProps,
createRouteRef,
ExternalRouteRef,
RouteRef,
} from '@backstage/core-plugin-api';
import { MatcherFunction, RenderResult } from '@testing-library/react';
import { renderWithEffects, LegacyRootOption } from './testingLibrary';
import { LegacyRootOption, renderWithEffects } from './testingLibrary';
import { defaultApis } from './defaultApis';
import { mockApis } from './mockApis';
@@ -45,6 +44,8 @@ const mockIcons = {
'kind:location': MockIcon,
'kind:system': MockIcon,
'kind:user': MockIcon,
'kind:resource': MockIcon,
'kind:template': MockIcon,
brokenImage: MockIcon,
catalog: MockIcon,