Skip to content

Commit e8b5b56

Browse files
authored
chore(design-system): centralise MCP client assets (#43730)
## What kind of change does this PR introduce? Chore ## What is the current behavior? - We use the MCP client connect dialog in two places: Studio and Docs - We duplicate image assets for each client in each of those two places ## What is the new behavior? - Centralised assets - Consolidation and simplification as a result of it all being a single source-of-truth now ## To test - [ ] Everything works as it did before across both Studio and [Docs](https://supabase.com/docs/guides/getting-started/mcp) - [ ] All MCP client images load as expected
1 parent dc04437 commit e8b5b56

45 files changed

Lines changed: 114 additions & 414 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/docs/features/ui/McpConfigPanel.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ export function McpConfigPanel() {
322322
: 'Project selection is only available for the hosted platform.'}
323323
</p>
324324
<McpConfigPanelBase
325-
basePath="/docs"
326325
className="mt-6"
327326
projectRef={project?.ref}
328327
theme={resolvedTheme as 'light' | 'dark'}

apps/docs/public/img/mcp-clients/antigravity-icon.svg

Lines changed: 0 additions & 98 deletions
This file was deleted.

apps/studio/components/interfaces/Connect/McpTabContent.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { IS_PLATFORM, useParams } from 'common'
22
import Panel from 'components/ui/Panel'
3-
import { BASE_PATH } from 'lib/constants'
43
import { useTrack } from 'lib/telemetry/track'
54
import { useTheme } from 'next-themes'
65
import { useMemo, useState } from 'react'
@@ -64,7 +63,6 @@ const McpTabContentInnerLoaded = ({
6463

6564
return (
6665
<McpConfigPanel
67-
basePath={BASE_PATH}
6866
projectRef={projectRef}
6967
theme={resolvedTheme as 'light' | 'dark'}
7068
isPlatform={IS_PLATFORM}

apps/studio/components/interfaces/ConnectSheet/content/steps/mcp/cursor/content.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useParams } from 'common'
2-
import { BASE_PATH, IS_PLATFORM } from 'lib/constants'
2+
import { IS_PLATFORM } from 'lib/constants'
33
import { useTrack } from 'lib/telemetry/track'
44
import { useMemo } from 'react'
55
import {
@@ -79,7 +79,6 @@ function McpCursorContentInner({
7979
<McpConfigurationDisplay
8080
className="space-y-4"
8181
theme="dark"
82-
basePath={BASE_PATH}
8382
selectedClient={selectedClient}
8483
clientConfig={clientConfig}
8584
onCopyCallback={handleCopy}

apps/studio/public/img/mcp-clients/antigravity-icon.svg

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)