The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: Add custom icon overrides for specific MCP apps (#47130)
Ivan Vasilovf8e682c44313
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/AuthorizeRequesterDetails.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/AuthorizeRequesterDetails.tsxindex f4412261806..7ef47ad4777 100644--- a/apps/studio/components/interfaces/Organization/OAuthApps/AuthorizeRequesterDetails.tsx+++ b/apps/studio/components/interfaces/Organization/OAuthApps/AuthorizeRequesterDetails.tsx@@ -15,7 +15,7 @@ import { InfoTooltip } from 'ui-patterns/info-tooltip'import { PERMISSIONS_DESCRIPTIONS } from './OAuthApps.constants'import { LogoBox } from '@/components/layouts/InterstitialLayout'import { InlineLink } from '@/components/ui/InlineLink'-import { DOCS_URL } from '@/lib/constants'+import { BASE_PATH, DOCS_URL } from '@/lib/constants'const OAUTH_SCOPES_DOCS_URL = `${DOCS_URL}/guides/platform/oauth-apps/oauth-scopes`const PERMISSION_DETAILS_TRIGGER_CLASSNAME =@@ -165,9 +165,33 @@ const PERMISSION_GROUPS: PermissionGroup[] = [},]+// Hardcode custom logs for known apps that have broken icons (e.g. due to CORS issues), to ensure they display properly+// in the UI. This should be deleted once we support CIMD MCP+const CUSTOM_LOGO_URLS = {+ perplexity: `${BASE_PATH}/img/icons/perplexity-icon.svg`,+ cursor: `${BASE_PATH}/img/icons/cursor-icon.svg`,+ claude: `${BASE_PATH}/img/icons/claude-icon.svg`,+ chatgpt: `${BASE_PATH}/img/icons/openai-icon.svg`,+ openai: `${BASE_PATH}/img/icons/openai-icon.svg`,+}+export const RequesterLogo = ({ icon, name }: { icon: string | null; name: string }) => {const [failedIcon, setFailedIcon] = useState<string | null>(null)- const showLetter = !icon || failedIcon === icon++ const customLogoUrl = useMemo(() => {+ for (const key of Object.keys(CUSTOM_LOGO_URLS)) {+ if (icon?.toLocaleLowerCase().includes(key)) {+ return CUSTOM_LOGO_URLS[key as keyof typeof CUSTOM_LOGO_URLS]+ }++ if (name.toLocaleLowerCase().includes(key)) {+ return CUSTOM_LOGO_URLS[key as keyof typeof CUSTOM_LOGO_URLS]+ }+ }+ return icon || ''+ }, [icon, name])++ const showLetter = !customLogoUrl || failedIcon === customLogoUrlreturn (<LogoBox>@@ -176,9 +200,9 @@ export const RequesterLogo = ({ icon, name }: { icon: string | null; name: strin) : (<imgalt={name}- src={icon}+ src={customLogoUrl}className="size-full object-cover"- onError={() => setFailedIcon(icon)}+ onError={() => setFailedIcon(customLogoUrl)}/>)}</LogoBox>diff --git a/apps/studio/public/img/icons/claude-icon.svg b/apps/studio/public/img/icons/claude-icon.svgnew file mode 100644index 00000000000..113e9f58d6d--- /dev/null+++ b/apps/studio/public/img/icons/claude-icon.svg@@ -0,0 +1,6 @@+<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">+<rect width="24" height="24" fill="#000"/>+<g transform="translate(4.8 4.8) scale(0.6)">+<path d="M5.92381 15.2988L9.85798 13.0912L9.92381 12.8988L9.85798 12.7924H9.66558L9.00735 12.7519L6.75925 12.6912L4.80988 12.6102L2.92127 12.5089L2.44533 12.4076L1.99976 11.8203L2.04533 11.5266L2.44533 11.2583L3.01748 11.3089L4.2833 11.395L6.18203 11.5266L7.55925 11.6076L9.59976 11.8203H9.92381L9.96938 11.6886L9.85798 11.6076L9.77191 11.5266L7.80735 10.195L5.68077 8.78737L4.56684 7.97724L3.96431 7.56711L3.66052 7.1823L3.52887 6.3418L4.07571 5.73927L4.80988 5.7899L4.99722 5.84053L5.74153 6.41268L7.3314 7.64306L9.40735 9.17218L9.71115 9.42534L9.83267 9.33927L9.84786 9.27851L9.71115 9.05066L8.58203 7.01015L7.37697 4.9342L6.84026 4.07344L6.69849 3.55699C6.64786 3.34433 6.61241 3.16712 6.61241 2.94939L7.2352 2.10382L7.5795 1.99243L8.40988 2.10382L8.75925 2.40762L9.27571 3.58737L10.1111 5.4456L11.4074 7.97218L11.7871 8.72154L11.9896 9.41522L12.0656 9.62787H12.1972V9.50635L12.3036 8.08357L12.501 6.33673L12.6934 4.08863L12.7592 3.45572L13.0732 2.69623L13.696 2.2861L14.182 2.51901L14.582 3.09117L14.5263 3.46079L14.2884 5.00509L13.8225 7.42534L13.5187 9.0456H13.696L13.8985 8.84306L14.7187 7.75446L16.096 6.03294L16.7036 5.34939L17.4124 4.59496L17.8681 4.23547H18.7289L19.3618 5.17724L19.0782 6.14939L18.1922 7.27344L17.458 8.22534L16.4048 9.64306L15.7466 10.7772L15.8074 10.8684L15.9643 10.8532L18.3441 10.3469L19.6301 10.114L21.1643 9.85066L21.858 10.1747L21.9339 10.5038L21.6605 11.1772L20.02 11.5823L18.096 11.9671L15.2301 12.6456L15.1947 12.6709L15.2352 12.7215L16.5263 12.8431L17.0782 12.8734H18.4301L20.9466 13.0608L21.6048 13.4962L21.9998 14.0279L21.9339 14.4329L20.9213 14.9494L19.5542 14.6253L16.3643 13.8658L15.2706 13.5924H15.1187V13.6836L16.0301 14.5747L17.701 16.0836L19.7922 18.0279L19.8985 18.5089L19.6301 18.8886L19.3466 18.8481L17.5086 17.4658L16.7998 16.8431L15.1947 15.4912H15.0884V15.6329L15.458 16.1747L17.4124 19.1114L17.5137 20.0127L17.3719 20.3064L16.8656 20.4836L16.3086 20.3823L15.1643 18.7772L13.9846 16.9696L13.0327 15.3494L12.9162 15.4152L12.3542 21.4658L12.0909 21.7747L11.4833 22.0076L10.977 21.6228L10.7086 21L10.977 19.7696L11.301 18.1646L11.5643 16.8886L11.8023 15.3038L11.9441 14.7772L11.9339 14.7418L11.8175 14.757L10.6225 16.3975L8.80482 18.8532L7.36684 20.3924L7.02254 20.5291L6.42507 20.2203L6.48077 19.6684L6.81495 19.1772L8.80482 16.6456L10.0048 15.076L10.7795 14.1696L10.7744 14.038H10.7289L5.44279 17.4709L4.50102 17.5924L4.09596 17.2127L4.14659 16.5899L4.339 16.3874L5.92887 15.2937L5.92381 15.2988Z" fill="#D97757"/>+</g>+</svg>diff --git a/apps/studio/public/img/icons/cursor-icon.svg b/apps/studio/public/img/icons/cursor-icon.svgnew file mode 100644index 00000000000..a73aa16db10--- /dev/null+++ b/apps/studio/public/img/icons/cursor-icon.svg@@ -0,0 +1,12 @@+<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">+<g clip-path="url(#clip0_2001_474)">+<rect width="28" height="28" fill="black"/>+<rect x="-0.5" y="-0.5" width="29" height="29" stroke="black" stroke-opacity="0.13"/>+<path d="M22.6411 8.85702L14.4263 4.11425C14.1625 3.96192 13.837 3.96192 13.5732 4.11425L5.35878 8.85702C5.13703 8.98505 5.00012 9.22183 5.00012 9.47829V19.0421C5.00012 19.2982 5.13703 19.5354 5.35878 19.6634L13.5736 24.4062C13.8374 24.5585 14.1629 24.5585 14.4267 24.4062L22.6414 19.6634C22.8632 19.5354 23.0001 19.2986 23.0001 19.0421V9.47829C23.0001 9.22222 22.8632 8.98505 22.6414 8.85702H22.6411ZM22.1251 9.86164L14.1949 23.5971C14.1413 23.6896 13.9997 23.6518 13.9997 23.5446V14.5508C13.9997 14.3711 13.9037 14.2049 13.7479 14.1146L5.95924 9.61791C5.86669 9.56431 5.90448 9.42275 6.01169 9.42275H21.8721C22.0973 9.42275 22.2381 9.66688 22.1254 9.86204H22.1251V9.86164Z" fill="white"/>+</g>+<defs>+<clipPath id="clip0_2001_474">+<rect width="28" height="28" rx="6" fill="white"/>+</clipPath>+</defs>+</svg>\ No newline at end of filediff --git a/apps/studio/public/img/icons/openai-icon.svg b/apps/studio/public/img/icons/openai-icon.svgnew file mode 100644index 00000000000..da774aeaf5e--- /dev/null+++ b/apps/studio/public/img/icons/openai-icon.svg@@ -0,0 +1,2 @@+<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->+<svg width="800px" height="800px" viewBox="0 0 24 24" role="img" xmlns="http://www.w3.org/2000/svg"><title>OpenAI icon</title><rect width="24" height="24" fill="#000"/><g fill="#fff" transform="translate(4.8 4.8) scale(0.6)"><path d="M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"/></g></svg>\ No newline at end of filediff --git a/apps/studio/public/img/icons/perplexity-icon.svg b/apps/studio/public/img/icons/perplexity-icon.svgnew file mode 100644index 00000000000..9ad90c3e52a--- /dev/null+++ b/apps/studio/public/img/icons/perplexity-icon.svg@@ -0,0 +1,4 @@+<svg width="256" height="256" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">+<rect width="256" height="256" fill="black"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M78.504 49.0L123.495 90.4525L123.495 90.443L123.495 49.0956H132.253L132.253 90.638L177.4455 49.0V96.262L196.0 96.262V164.433H177.5025V206.5175L132.253 166.7625L132.253 206.974H123.495L123.495 167.418L78.555 207.0V164.433H60.0V96.262H78.504V49.0ZM116.8925 104.913H68.758V155.782H78.544V139.736L116.8925 104.913ZM87.3125 143.5745V187.696L123.495 155.8275L123.495 110.7105L87.3125 143.5745ZM132.505 155.406V110.668L168.698 143.534V164.433H168.7445V187.2455L132.505 155.406ZM177.5025 155.782H187.242V104.913L139.466 104.913L177.5025 139.3755V155.782ZM168.6875 96.262V68.899L138.9885 96.262L168.6875 96.262ZM116.9605 96.262H87.262V68.899L116.9605 96.262Z" fill="#FBFAF4"/>+</svg>\ No newline at end of file