Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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.

91 changes: 61 additions & 30 deletions mcpjam-inspector/client/src/components/auth/auth-upper-area.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@ import { usePostHog } from "posthog-js/react";
import { Button } from "@/components/ui/button";
import { DiscordIcon } from "@/components/ui/discord-icon";
import { GitHubIcon } from "@/components/ui/github-icon";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import {
ActiveServerSelector,
ActiveServerSelectorProps,
} from "@/components/ActiveServerSelector";
import { NotificationBell } from "@/components/notifications/NotificationBell";
import { detectEnvironment, detectPlatform } from "@/lib/PosthogUtils";
import { Bug, CircleHelp, ExternalLink, BookOpenText } from "lucide-react";

interface AuthUpperAreaProps {
activeServerSelectorProps?: ActiveServerSelectorProps;
Expand All @@ -22,35 +29,6 @@ export function AuthUpperArea({
const { isLoading } = useConvexAuth();
const posthog = usePostHog();

const communityLinks = (
<div className="flex items-center gap-1">
<Button asChild size="icon" variant="ghost">
<a
href="https://discord.gg/JEnDtz8X6z"
target="_blank"
rel="noreferrer"
aria-label="Join the Discord community"
title="Join the Discord community"
>
<DiscordIcon className="h-10 w-10" />
<span className="sr-only">Discord</span>
</a>
</Button>
<Button asChild size="icon" variant="ghost">
<a
href="https://github.com/MCPJam/inspector"
target="_blank"
rel="noreferrer"
aria-label="Visit the GitHub repository"
title="Visit the GitHub repository"
>
<GitHubIcon className="h-10 w-10" />
<span className="sr-only">GitHub</span>
</a>
</Button>
</div>
);

return (
<div className="ml-auto flex h-full flex-1 items-center gap-2 no-drag min-w-0">
{activeServerSelectorProps && (
Expand All @@ -62,10 +40,63 @@ export function AuthUpperArea({
</div>
)}
<div className="ml-auto flex items-center gap-2 shrink-0">
{communityLinks}
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button size="icon" variant="ghost" aria-label="Help & support">
<CircleHelp className="h-5 w-5" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" sideOffset={4}>
<DropdownMenuItem asChild>
<a
href="https://docs.mcpjam.com/"
target="_blank"
rel="noreferrer"
>
<BookOpenText className="size-4" />
Documentation
<ExternalLink className="ml-auto size-3 text-muted-foreground" />
</a>
</DropdownMenuItem>
<DropdownMenuItem asChild>
<a
href="https://discord.gg/JEnDtz8X6z"
target="_blank"
rel="noreferrer"
>
<DiscordIcon className="size-4" />
Discord community
<ExternalLink className="ml-auto size-3 text-muted-foreground" />
</a>
</DropdownMenuItem>
<DropdownMenuItem asChild>
<a
href="https://github.com/MCPJam/inspector/issues/new"
target="_blank"
rel="noreferrer"
>
<Bug className="size-4" />
Report a bug
<ExternalLink className="ml-auto size-3 text-muted-foreground" />
</a>
</DropdownMenuItem>
<DropdownMenuItem asChild>
<a
href="https://github.com/MCPJam/inspector"
target="_blank"
rel="noreferrer"
>
<GitHubIcon className="size-4" />
GitHub repository
<ExternalLink className="ml-auto size-3 text-muted-foreground" />
</a>
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
<NotificationBell />
{!user && !isLoading && (
<>
<div className="h-6 w-px bg-border/60" />
<Button
variant="outline"
size="sm"
Expand Down
17 changes: 0 additions & 17 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
10 changes: 0 additions & 10 deletions mcpjam-inspector/client/src/components/sidebar/sidebar-user.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ 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" />
</SidebarMenuButton>
Expand Down Expand Up @@ -191,13 +188,6 @@ export function SidebarUser() {
</AvatarFallback>
</Avatar>
<span className="flex-1 truncate">{org.name}</span>
<Settings
className="size-4 text-muted-foreground hover:text-foreground"
onClick={(e) => {
e.stopPropagation();
window.location.hash = `organizations/${org._id}`;
}}
/>
</DropdownMenuItem>
))
) : (
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