Skip to content

Commit d490943

Browse files
committed
feat: add images on frontend
1 parent 8ceedf8 commit d490943

3 files changed

Lines changed: 33 additions & 39 deletions

File tree

Lines changed: 7 additions & 0 deletions
Loading
14.9 KB
Loading

components/frontend/src/app/integrations/IntegrationsClient.tsx

Lines changed: 26 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -29,36 +29,7 @@ type MCPServerEntry = {
2929
| { kind: 'credentials'; fields: FieldDefinition[] }
3030
)
3131

32-
/* Context7 — stylized "C7" mark */
33-
const Context7Icon = (
34-
<svg className="w-8 h-8" viewBox="0 0 24 24" fill="none" aria-hidden="true">
35-
<text x="3" y="19" fontSize="16" fontWeight="700" fontFamily="system-ui, sans-serif" fill="white">C7</text>
36-
</svg>
37-
)
38-
39-
/* DeepWiki — open book */
40-
const DeepWikiIcon = (
41-
<svg className="w-8 h-8 text-white" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
42-
<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z" />
43-
<path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z" />
44-
</svg>
45-
)
46-
47-
/* Web Fetch — globe with arrow */
48-
const WebFetchIcon = (
49-
<svg className="w-8 h-8 text-white" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
50-
<circle cx="12" cy="12" r="10" />
51-
<path d="M2 12h20" />
52-
<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" />
53-
</svg>
54-
)
55-
56-
/* Jira — the Jira logo (same SVG used in jira-connection-card) */
57-
const JiraMCPIcon = (
58-
<svg className="w-8 h-8 text-white" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
59-
<path d="M11.571 11.513H0a5.218 5.218 0 0 0 5.232 5.215h2.13v2.057A5.215 5.215 0 0 0 12.575 24V12.518a1.005 1.005 0 0 0-1.005-1.005zm5.723-5.756H5.736a5.215 5.215 0 0 0 5.215 5.214h2.129v2.058a5.218 5.218 0 0 0 5.215 5.214V6.758a1.001 1.001 0 0 0-1.001-1.001zM23.013 0H11.455a5.215 5.215 0 0 0 5.215 5.215h2.129v2.057A5.215 5.215 0 0 0 24 12.483V1.005A1.001 1.001 0 0 0 23.013 0z" />
60-
</svg>
61-
)
32+
/* eslint-disable @next/next/no-img-element */
6233

6334
/**
6435
* All MCP servers configured in the platform (.mcp.json).
@@ -70,30 +41,40 @@ const MCP_SERVERS: Record<string, MCPServerEntry> = {
7041
kind: 'enabled',
7142
displayName: 'Context7',
7243
description: 'Up-to-date documentation and code examples for libraries and frameworks',
73-
iconBg: 'bg-violet-600',
74-
icon: Context7Icon,
44+
iconBg: '',
45+
icon: <img src="/logos/context7.svg" alt="Context7" className="w-16 h-16 rounded-lg" />,
7546
},
7647
deepwiki: {
7748
kind: 'enabled',
7849
displayName: 'DeepWiki',
7950
description: 'AI-powered knowledge base for open-source repositories',
80-
iconBg: 'bg-sky-600',
81-
icon: DeepWikiIcon,
51+
iconBg: 'bg-white',
52+
icon: <img src="/logos/deepwiki.png" alt="DeepWiki" className="w-10 h-10" />,
8253
},
8354
webfetch: {
8455
kind: 'enabled',
8556
displayName: 'Web Fetch',
8657
description: 'Fetch and extract content from web pages',
8758
iconBg: 'bg-emerald-600',
88-
icon: WebFetchIcon,
59+
icon: (
60+
<svg className="w-8 h-8 text-white" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
61+
<circle cx="12" cy="12" r="10" />
62+
<path d="M2 12h20" />
63+
<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" />
64+
</svg>
65+
),
8966
},
9067
'mcp-atlassian': {
9168
kind: 'credentials',
9269
displayName: 'Jira (MCP)',
9370
description:
9471
'Provide Jira credentials for the MCP Atlassian server used in agentic sessions',
9572
iconBg: 'bg-blue-600',
96-
icon: JiraMCPIcon,
73+
icon: (
74+
<svg className="w-8 h-8 text-white" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
75+
<path d="M11.571 11.513H0a5.218 5.218 0 0 0 5.232 5.215h2.13v2.057A5.215 5.215 0 0 0 12.575 24V12.518a1.005 1.005 0 0 0-1.005-1.005zm5.723-5.756H5.736a5.215 5.215 0 0 0 5.215 5.214h2.129v2.058a5.218 5.218 0 0 0 5.215 5.214V6.758a1.001 1.001 0 0 0-1.001-1.001zM23.013 0H11.455a5.215 5.215 0 0 0 5.215 5.215h2.129v2.057A5.215 5.215 0 0 0 24 12.483V1.005A1.001 1.001 0 0 0 23.013 0z" />
76+
</svg>
77+
),
9778
fields: [
9879
{
9980
name: 'jira_url',
@@ -133,9 +114,15 @@ function MCPEnabledCard({
133114
<Card className="bg-card border border-border/60 shadow-sm shadow-black/[0.03] dark:shadow-black/[0.15] flex flex-col h-full">
134115
<div className="p-6 flex flex-col flex-1">
135116
<div className="flex items-start gap-4 mb-6">
136-
<div className={`flex-shrink-0 w-16 h-16 ${iconBg} rounded-lg flex items-center justify-center`}>
137-
{icon}
138-
</div>
117+
{iconBg ? (
118+
<div className={`flex-shrink-0 w-16 h-16 ${iconBg} rounded-lg flex items-center justify-center`}>
119+
{icon}
120+
</div>
121+
) : (
122+
<div className="flex-shrink-0 w-16 h-16">
123+
{icon}
124+
</div>
125+
)}
139126
<div className="flex-1">
140127
<h3 className="text-xl font-semibold text-foreground mb-1">{displayName}</h3>
141128
<p className="text-muted-foreground">{description}</p>

0 commit comments

Comments
 (0)