Add InspectorView state machine driving screens from props
InspectorView replaces the prior pair (ConnectedView/UnconnectedView wrapping children) with a single state-machine view. Holds activeServer, connectionStatus, initializeResult, latencyMs, activeTab, and availableTabs internally; renders the appropriate screen based on activeTab; switches the header between connected and unconnected modes. Screen data (servers, tools, prompts, resources, resourceTemplates, subscriptions, logs, tasks, progressByTaskId, history) flows in via props so stories can populate the entire view with fixtures. Demo data lives in stories, not in the view. Stories include one server per transport (stdio, sse, streamable-http) so the TransportBadge / descriptor variants are all visible. Reorders ViewHeader.stories tabs to match the new ALL_TABS sequence. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
1149288ea6
commit
9553fb9c8a
1 changed files with 515 additions and 1 deletions
|
|
@ -31,8 +31,8 @@ export const Connected: Story = {
|
|||
"Tools",
|
||||
"Resources",
|
||||
"Prompts",
|
||||
"Logging",
|
||||
"Tasks",
|
||||
"Logging",
|
||||
"History",
|
||||
],
|
||||
onTabChange: fn(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue