From 9b2b1fe28543149593577c38a489e9d123255277 Mon Sep 17 00:00:00 2001 From: Maxim Dietz Date: Wed, 13 Nov 2024 14:22:04 -0500 Subject: [PATCH] fix: Match Azure/GCP Application Icons (#48848) --- .../components/UnifiedResources/shared/guessAppIcon.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/packages/shared/components/UnifiedResources/shared/guessAppIcon.ts b/web/packages/shared/components/UnifiedResources/shared/guessAppIcon.ts index fa93ffd5e3670..b49ffc816da0d 100644 --- a/web/packages/shared/components/UnifiedResources/shared/guessAppIcon.ts +++ b/web/packages/shared/components/UnifiedResources/shared/guessAppIcon.ts @@ -56,7 +56,6 @@ export function guessAppIcon(resource: UnifiedResourceApp): ResourceIconName { } // Help match brands with sub brands: - if (match('adobe', app)) { if (match('creative', app)) return 'adobecreativecloud'; if (match('marketo', app)) return 'adobemarketo'; @@ -87,6 +86,12 @@ export function guessAppIcon(resource: UnifiedResourceApp): ResourceIconName { if (match('word', app)) return 'microsoftword'; return 'microsoft'; // generic } + if (match('gcp', app)) { + return 'googlecloud'; + } + if (match('azure', app)) { + return 'azure'; + } // Try matching by iterating through all the icon names const matchingIcon = iconNames.find(iconName => match(iconName, app));