Skip to content

Commit 0c04e99

Browse files
authored
Merge pull request #1627 from AnishSarkar22/fix/models
fix: UI changes
2 parents 041dfaf + af81aaf commit 0c04e99

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

surfsense_web/components/assistant-ui/connector-popup/connect-forms/components/mcp-connect-form.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22

3-
import { CheckCircle2, ChevronDown, ChevronUp, Loader2, Server, XCircle } from "lucide-react";
3+
import { CheckCircle2, ChevronDown, ChevronUp, Info, Loader2, XCircle } from "lucide-react";
44
import { type FC, useRef, useState } from "react";
55
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
66
import { Button } from "@/components/ui/button";
@@ -136,9 +136,9 @@ export const MCPConnectForm: FC<ConnectFormProps> = ({ onSubmit, isSubmitting })
136136

137137
return (
138138
<div className="space-y-6 pb-6">
139-
<Alert className="bg-slate-400/5 dark:bg-white/5 border-slate-400/20 p-2 sm:p-3">
140-
<Server className="h-4 w-4 shrink-0" />
141-
<AlertDescription className="text-[10px] sm:text-xs">
139+
<Alert>
140+
<Info />
141+
<AlertDescription>
142142
Connect to a Model Context Protocol server. Each MCP server is added as a separate
143143
connector.
144144
</AlertDescription>

surfsense_web/components/layout/ui/playground/PlaygroundSidebar.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22

3-
import { ChevronRight, History, KeyRound, LayoutGrid } from "lucide-react";
3+
import { ArrowRight, ChevronRight, History, KeyRound, LayoutGrid, Unplug } from "lucide-react";
44
import Link from "next/link";
55
import { usePathname } from "next/navigation";
66
import { useEffect, useMemo, useState } from "react";
@@ -216,6 +216,17 @@ export function PlaygroundSidebar({ workspaceId, className }: PlaygroundSidebarP
216216
))}
217217
</div>
218218
</nav>
219+
<div className="shrink-0 border-t p-2">
220+
<Link
221+
href={`/dashboard/${workspaceId}/connectors`}
222+
prefetch
223+
className="group inline-flex h-auto w-full items-center justify-start gap-3 rounded-md bg-transparent px-3 py-2.5 text-left text-sm font-medium text-muted-foreground transition-colors duration-150 hover:bg-accent hover:text-accent-foreground focus:outline-none focus-visible:outline-none"
224+
>
225+
<Unplug className="h-4 w-4 shrink-0" />
226+
<span className="min-w-0 truncate">Add external connectors</span>
227+
<ArrowRight className="ml-auto hidden h-4 w-4 shrink-0 -rotate-45 group-hover:block" />
228+
</Link>
229+
</div>
219230
</aside>
220231
);
221232
}

0 commit comments

Comments
 (0)