Address PR #1211 code review feedback
1. ServerCard: import ConnectionStatus and ServerType from core instead of inline union types 2. ResourcePreviewPanel: move ContentBlock import to top of file 3. ContentViewer: remove dead annotation mimeType check in isJsonText 4. ProgressDisplay: use Pick to exclude progressToken from params type; remove fake tokens from callers and stories 5. AnnotationBadge: restore human-readable priority labels (high/medium/low) and remove unused --inspector-annotation-* CSS vars from App.css 6. MessageBubble: add fallback rendering for resource, resource_link, tool_use, and tool_result content block types 7. TaskControls: import TaskStatus directly from SDK instead of via TaskCard Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
658ef86944
commit
3e2e44ccfc
1 changed files with 31 additions and 34 deletions
|
|
@ -1,5 +1,9 @@
|
|||
import { useEffect } from "react";
|
||||
import { Badge, Button, Card, Group, Menu, Stack, Text } from "@mantine/core";
|
||||
import type {
|
||||
ConnectionStatus,
|
||||
ServerType,
|
||||
} from "@inspector/core/mcp/types.js";
|
||||
import { ServerStatusIndicator } from "../../elements/ServerStatusIndicator/ServerStatusIndicator";
|
||||
import { TransportBadge } from "../../elements/TransportBadge/TransportBadge";
|
||||
import { ConnectionToggle } from "../../elements/ConnectionToggle/ConnectionToggle";
|
||||
|
|
@ -9,10 +13,10 @@ import { InlineError } from "../../elements/InlineError/InlineError";
|
|||
export interface ServerCardProps {
|
||||
name: string;
|
||||
version?: string;
|
||||
transport: "stdio" | "sse" | "streamable-http";
|
||||
transport: ServerType;
|
||||
connectionMode: string;
|
||||
command: string;
|
||||
status: "connected" | "connecting" | "disconnected" | "error";
|
||||
status: ConnectionStatus;
|
||||
retryCount?: number;
|
||||
error?: { message: string; details?: string };
|
||||
canTestClientFeatures: boolean;
|
||||
|
|
|
|||
Loading…
Reference in a new issue