Skip to content

Commit

Permalink
feat(issues): Add cloudflare worker, vercel-edge runtime icon (#80963)
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper authored and andrewshie-sentry committed Dec 2, 2024
1 parent 9121cfa commit 783ef19
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions static/app/components/events/contexts/contextIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import logoAppleWatch from 'sentry-logos/logo-apple-watch.svg';
import logoArm from 'sentry-logos/logo-arm.svg';
import logoChrome from 'sentry-logos/logo-chrome.svg';
import logoChromium from 'sentry-logos/logo-chromium.svg';
import logoCloudflareWorker from 'sentry-logos/logo-cloudflare-worker.svg';
import logoCrystal from 'sentry-logos/logo-crystal.svg';
import logoDeno from 'sentry-logos/logo-deno.svg';
import logoDotnet from 'sentry-logos/logo-dotnet.svg';
Expand Down Expand Up @@ -41,6 +42,7 @@ import logoSamsung from 'sentry-logos/logo-samsung.svg';
import logoUbuntu from 'sentry-logos/logo-ubuntu.svg';
import logoUnity from 'sentry-logos/logo-unity.svg';
import logoUnknown from 'sentry-logos/logo-unknown.svg';
import logoVercel from 'sentry-logos/logo-vercel.svg';
import logoWindows from 'sentry-logos/logo-windows.svg';

import ConfigStore from 'sentry/stores/configStore';
Expand Down Expand Up @@ -70,6 +72,7 @@ const LOGO_MAPPING = {
arm: logoArm,
chrome: logoChrome,
chromium: logoChromium,
cloudflare: logoCloudflareWorker,
cpython: logoPython,
crystal: logoCrystal,
darwin: logoApple,
Expand Down Expand Up @@ -100,6 +103,7 @@ const LOGO_MAPPING = {
samsung: logoSamsung,
tvos: logoApple,
ubuntu: logoUbuntu,
vercel: logoVercel,
watch: logoAppleWatch,
watchos: logoApple,
windows: logoWindows,
Expand All @@ -117,6 +121,7 @@ const INVERT_IN_DARKMODE = [
'mac',
'apple',
'watchos',
'vercel',
];

const darkCss = css`
Expand Down
4 changes: 4 additions & 0 deletions static/app/components/events/contexts/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ export function generateIconName(
return 'google';
}

if (lowerCaseName.startsWith('vercel')) {
return 'vercel';
}

const formattedName = name
.split(/\d/)[0]
.toLowerCase()
Expand Down

0 comments on commit 783ef19

Please sign in to comment.