Skip to content

Commit

Permalink
Add notification badge
Browse files Browse the repository at this point in the history
  • Loading branch information
jspahrsummers committed Oct 25, 2024
1 parent 5da4174 commit 0d66867
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
ProgressNotificationSchema,
ServerNotification,
EmptyResultSchema,
CreateMessageRequest,
CreateMessageResult,
CreateMessageRequestSchema,
} from "mcp-typescript/types.js";
Expand Down Expand Up @@ -355,9 +354,14 @@ const App = () => {
<Bell className="w-4 h-4 mr-2" />
Ping
</TabsTrigger>
<TabsTrigger value="sampling">
<TabsTrigger value="sampling" className="relative">
<Hash className="w-4 h-4 mr-2" />
Sampling
{pendingSampleRequests.length > 0 && (
<span className="absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full h-4 w-4 flex items-center justify-center">
{pendingSampleRequests.length}
</span>
)}
</TabsTrigger>
</TabsList>

Expand Down

0 comments on commit 0d66867

Please sign in to comment.