Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions mcpjam-inspector/client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { OAuthFlowTab } from "./components/OAuthFlowTab";
import { AppBuilderTab } from "./components/ui-playground/AppBuilderTab";
import { ProfileTab } from "./components/ProfileTab";
import { OrganizationsTab } from "./components/OrganizationsTab";
import { SupportTab } from "./components/SupportTab";
import OAuthDebugCallback from "./components/oauth/OAuthDebugCallback";
import { MCPSidebar } from "./components/mcp-sidebar";
import { SidebarInset, SidebarProvider } from "./components/ui/sidebar";
Expand Down Expand Up @@ -775,7 +774,6 @@ export default function App() {
workspaceName={activeWorkspace?.name ?? null}
/>
)}
{activeTab === "support" && <SupportTab />}
{activeTab === "profile" && <ProfileTab />}
{activeTab === "organizations" && (
<OrganizationsTab organizationId={activeOrganizationId} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,6 @@ vi.mock("../components/ProfileTab", () => ({
vi.mock("../components/OrganizationsTab", () => ({
OrganizationsTab: () => <div />,
}));
vi.mock("../components/SupportTab", () => ({
SupportTab: () => <div />,
}));
vi.mock("../components/oauth/OAuthDebugCallback", () => ({
default: () => <div />,
}));
Expand Down
82 changes: 0 additions & 82 deletions mcpjam-inspector/client/src/components/SupportTab.tsx

This file was deleted.

25 changes: 25 additions & 0 deletions mcpjam-inspector/client/src/components/auth/auth-upper-area.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
} from "@/components/ActiveServerSelector";
import { NotificationBell } from "@/components/notifications/NotificationBell";
import { detectEnvironment, detectPlatform } from "@/lib/PosthogUtils";
import { BookOpen, Bug } from "lucide-react";

interface AuthUpperAreaProps {
activeServerSelectorProps?: ActiveServerSelectorProps;
Expand All @@ -24,6 +25,30 @@ export function AuthUpperArea({

const communityLinks = (
<div className="flex items-center gap-1">
<Button asChild size="icon" variant="ghost">
<a
href="https://github.com/MCPJam/inspector/issues/new"
target="_blank"
rel="noreferrer"
aria-label="Report a bug"
title="Report a bug"
>
<Bug className="h-5 w-5" />
<span className="sr-only">Report a bug</span>
</a>
</Button>
<Button asChild size="icon" variant="ghost">
<a
href="https://docs.mcpjam.com/"
target="_blank"
rel="noreferrer"
aria-label="Documentation"
title="Documentation"
>
<BookOpen className="h-5 w-5" />
<span className="sr-only">Docs</span>
</a>
</Button>
<Button asChild size="icon" variant="ghost">
<a
href="https://discord.gg/JEnDtz8X6z"
Expand Down
27 changes: 6 additions & 21 deletions mcpjam-inspector/client/src/components/mcp-sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { useState, useEffect, useMemo } from "react";
import {
Hammer,
MessageCircle,
Settings,
MessageSquareCode,
BookOpen,
FlaskConical,
Expand All @@ -12,7 +11,6 @@ import {
Layers,
ListTodo,
SquareSlash,
MessageCircleQuestionIcon,
GitBranch,
GraduationCap,
Box,
Expand Down Expand Up @@ -185,21 +183,6 @@ const navigationSections: NavSection[] = [
},
],
},
{
id: "settings",
items: [
{
title: "Support",
url: "#support",
icon: MessageCircleQuestionIcon,
},
{
title: "Settings",
url: "#settings",
icon: Settings,
},
],
},
];

const hostedNavigationSections = navigationSections
Expand Down Expand Up @@ -340,8 +323,10 @@ export function MCPSidebar({
return (
<Sidebar collapsible="icon" {...props}>
<SidebarHeader>
<button
onClick={() => handleNavClick("#servers")}
<a
href="https://www.mcpjam.com/"
target="_blank"
rel="noreferrer"
className="flex items-center justify-center px-4 py-4 w-full cursor-pointer hover:opacity-80 transition-opacity"
>
<img
Expand All @@ -351,7 +336,7 @@ export function MCPSidebar({
alt="MCP Jam"
className="h-4 w-auto"
/>
</button>
</a>
{updateReady && (
<div className="px-2 pb-2">
<Button
Expand Down Expand Up @@ -385,7 +370,7 @@ export function MCPSidebar({
))}
</SidebarContent>
<SidebarFooter>
<SidebarUser />
<SidebarUser onSettingsClick={() => handleNavClick("#settings")} />
</SidebarFooter>
</Sidebar>
);
Expand Down
28 changes: 23 additions & 5 deletions mcpjam-inspector/client/src/components/sidebar/sidebar-user.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ import { CreateOrganizationDialog } from "@/components/organization/CreateOrgani
import { HOSTED_MODE } from "@/lib/config";
import { Button } from "@/components/ui/button";

export function SidebarUser() {
interface SidebarUserProps {
onSettingsClick?: () => void;
}

export function SidebarUser({ onSettingsClick }: SidebarUserProps) {
const { isLoading, isAuthenticated } = useConvexAuth();
const { user, signIn, signOut } = useAuth();
const { profilePictureUrl } = useProfilePicture();
Expand Down Expand Up @@ -120,11 +124,25 @@ export function SidebarUser() {
</Avatar>
<div className="grid flex-1 text-left text-sm leading-tight group-data-[collapsible=icon]:hidden">
<span className="truncate font-semibold">{displayName}</span>
<span className="truncate text-xs text-muted-foreground">
{email}
</span>
</div>
<ChevronsUpDown className="ml-auto size-4 group-data-[collapsible=icon]:hidden" />
{onSettingsClick && (
<button
onClick={(e) => {
e.stopPropagation();
e.preventDefault();
onSettingsClick();
}}
onPointerDown={(e) => {
e.stopPropagation();
}}
className="ml-auto p-1 rounded-md hover:text-foreground hover:bg-sidebar-accent transition-colors group-data-[collapsible=icon]:hidden"
aria-label="Settings"
title="Settings"
>
<Settings className="size-4" />
</button>
)}
<ChevronsUpDown className={`size-4 group-data-[collapsible=icon]:hidden ${onSettingsClick ? '' : 'ml-auto'}`} />
</SidebarMenuButton>
</DropdownMenuTrigger>
<DropdownMenuContent
Expand Down
1 change: 0 additions & 1 deletion mcpjam-inspector/client/src/lib/hosted-tab-policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export const HOSTED_SIDEBAR_ALLOWED_TABS = [
"tools",
"resources",
"prompts",
"support",
"settings",
"oauth-flow",
"learning",
Expand Down
Loading