From 31472dac1b7164ee4b8c5f77c552f897c0271534 Mon Sep 17 00:00:00 2001 From: Bruno Garcia Date: Tue, 12 Dec 2023 16:41:01 -0500 Subject: [PATCH] dotnet logo --- .changeset/eight-mangos-complain.md | 5 +++++ .../src/integrations/sentry/components/PlatformIcon.tsx | 9 ++++++++- .../src/integrations/sentry/utils/sdkToPlatform.ts | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .changeset/eight-mangos-complain.md diff --git a/.changeset/eight-mangos-complain.md b/.changeset/eight-mangos-complain.md new file mode 100644 index 00000000..a0c9cbe9 --- /dev/null +++ b/.changeset/eight-mangos-complain.md @@ -0,0 +1,5 @@ +--- +'@spotlightjs/overlay': minor +--- + +dotnet logo diff --git a/packages/overlay/src/integrations/sentry/components/PlatformIcon.tsx b/packages/overlay/src/integrations/sentry/components/PlatformIcon.tsx index 61848714..f4fa32bd 100644 --- a/packages/overlay/src/integrations/sentry/components/PlatformIcon.tsx +++ b/packages/overlay/src/integrations/sentry/components/PlatformIcon.tsx @@ -1,6 +1,8 @@ import { ReactComponent as AstroIcon } from 'platformicons/svg/astro.svg'; import { ReactComponent as DefaultIcon } from 'platformicons/svg/default.svg'; +import { ReactComponent as DotNetIcon } from 'platformicons/svg/dotnet.svg'; import { ReactComponent as JavaScriptIcon } from 'platformicons/svg/javascript.svg'; +import { ReactComponent as DotNetMauiIcon } from 'platformicons/svg/maui.svg'; import { ReactComponent as NodeIcon } from 'platformicons/svg/nodejs.svg'; import { ReactComponent as PhpIcon } from 'platformicons/svg/php.svg'; import { ReactComponent as PythonIcon } from 'platformicons/svg/python.svg'; @@ -10,7 +12,7 @@ import { SentryEvent } from '../types'; import { ComponentPropsWithoutRef } from 'react'; -type Platform = 'python' | 'javascript' | 'node' | 'ruby' | string; +type Platform = 'python' | 'javascript' | 'node' | 'ruby' | 'csharp' | string; export default function PlatformIcon({ platform, @@ -36,6 +38,11 @@ export default function PlatformIcon({ return ; case 'php': return ; + case 'dotnet': + case 'csharp': // event.platform is 'csharp' + return ; + case 'dotnet.maui': + return ; default: return ; } diff --git a/packages/overlay/src/integrations/sentry/utils/sdkToPlatform.ts b/packages/overlay/src/integrations/sentry/utils/sdkToPlatform.ts index b9d38714..3f7d1d23 100644 --- a/packages/overlay/src/integrations/sentry/utils/sdkToPlatform.ts +++ b/packages/overlay/src/integrations/sentry/utils/sdkToPlatform.ts @@ -7,5 +7,6 @@ export function sdkToPlatform(name: string) { if (name.includes('python')) return 'python'; if (name.includes('php')) return 'php'; if (name.includes('ruby')) return 'ruby'; + if (name.includes('dotnet')) return 'dotnet'; return 'unknown'; }