Skip to content

Commit 783ef19

Browse files
scttcperandrewshie-sentry
authored andcommitted
feat(issues): Add cloudflare worker, vercel-edge runtime icon (#80963)
1 parent 9121cfa commit 783ef19

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed
Lines changed: 1 addition & 0 deletions
Loading

static/app/components/events/contexts/contextIcon.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import logoAppleWatch from 'sentry-logos/logo-apple-watch.svg';
1212
import logoArm from 'sentry-logos/logo-arm.svg';
1313
import logoChrome from 'sentry-logos/logo-chrome.svg';
1414
import logoChromium from 'sentry-logos/logo-chromium.svg';
15+
import logoCloudflareWorker from 'sentry-logos/logo-cloudflare-worker.svg';
1516
import logoCrystal from 'sentry-logos/logo-crystal.svg';
1617
import logoDeno from 'sentry-logos/logo-deno.svg';
1718
import logoDotnet from 'sentry-logos/logo-dotnet.svg';
@@ -41,6 +42,7 @@ import logoSamsung from 'sentry-logos/logo-samsung.svg';
4142
import logoUbuntu from 'sentry-logos/logo-ubuntu.svg';
4243
import logoUnity from 'sentry-logos/logo-unity.svg';
4344
import logoUnknown from 'sentry-logos/logo-unknown.svg';
45+
import logoVercel from 'sentry-logos/logo-vercel.svg';
4446
import logoWindows from 'sentry-logos/logo-windows.svg';
4547

4648
import ConfigStore from 'sentry/stores/configStore';
@@ -70,6 +72,7 @@ const LOGO_MAPPING = {
7072
arm: logoArm,
7173
chrome: logoChrome,
7274
chromium: logoChromium,
75+
cloudflare: logoCloudflareWorker,
7376
cpython: logoPython,
7477
crystal: logoCrystal,
7578
darwin: logoApple,
@@ -100,6 +103,7 @@ const LOGO_MAPPING = {
100103
samsung: logoSamsung,
101104
tvos: logoApple,
102105
ubuntu: logoUbuntu,
106+
vercel: logoVercel,
103107
watch: logoAppleWatch,
104108
watchos: logoApple,
105109
windows: logoWindows,
@@ -117,6 +121,7 @@ const INVERT_IN_DARKMODE = [
117121
'mac',
118122
'apple',
119123
'watchos',
124+
'vercel',
120125
];
121126

122127
const darkCss = css`

static/app/components/events/contexts/utils.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ export function generateIconName(
7575
return 'google';
7676
}
7777

78+
if (lowerCaseName.startsWith('vercel')) {
79+
return 'vercel';
80+
}
81+
7882
const formattedName = name
7983
.split(/\d/)[0]
8084
.toLowerCase()

0 commit comments

Comments
 (0)