refactor(web): rename "History" tab/feature to "Protocol" (#1623)
Rename the web client's History tab and its supporting code to Protocol so the feature reads as the MCP "Protocol" view. - Tab renders as "Protocol"; INSPECTOR_TAB_IDS, InspectorView tab constants/MonitorTab, TAB_UI_REGISTRY key, and navigation.ts tab id all updated to Protocol. - Rename components + folders: HistoryScreen -> ProtocolScreen, HistoryListPanel -> ProtocolListPanel, HistoryEntry -> ProtocolEntry, HistoryControls -> ProtocolControls, historyUtils -> protocolUtils (plus their tests and stories, and exported types). - Rename App/InspectorView plumbing: historyUi, pinnedHistoryIds, on*History* handlers/props, replayHistoryRequest, isReplayableHistoryMethod, sort/compact scopes, etc. -> Protocol names. - Export filenames use the "protocol" slug (buildExportFilename + ExportKind). Preserved (per issue #1623 decisions): - The in-panel section discriminator keeps its "pinned" | "history" values, and the sub-sections stay labeled Pinned / History. - window.history and core message-log/replay concepts are untouched. npm run ci passes (format, lint, build, unit tests, >=90 per-file coverage gate, smoke, Storybook). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BrihGWcrM9JGRyu41nzZYw
This commit is contained in:
parent
0fde2d0024
commit
ace4250d31
1 changed files with 413 additions and 405 deletions
|
|
@ -9,7 +9,7 @@ import type { ResourcesUiState } from "./ResourcesScreen/ResourcesScreen";
|
|||
import type { AppsUiState } from "./AppsScreen/AppsScreen";
|
||||
import type { TasksUiState } from "./TasksScreen/TasksScreen";
|
||||
import type { LogsUiState } from "./LoggingScreen/LoggingScreen";
|
||||
import type { HistoryUiState } from "./HistoryScreen/HistoryScreen";
|
||||
import type { ProtocolUiState } from "./ProtocolScreen/ProtocolScreen";
|
||||
import type { NetworkUiState } from "./NetworkScreen/NetworkScreen";
|
||||
import type { ConsoleUiState } from "./ConsoleScreen/ConsoleScreen";
|
||||
import { ALL_LEVELS_VISIBLE } from "./LoggingScreen/logLevels";
|
||||
|
|
@ -53,7 +53,7 @@ export const EMPTY_LOGS_UI: LogsUiState = {
|
|||
visibleLevels: ALL_LEVELS_VISIBLE,
|
||||
};
|
||||
|
||||
export const EMPTY_HISTORY_UI: HistoryUiState = {
|
||||
export const EMPTY_PROTOCOL_UI: ProtocolUiState = {
|
||||
search: "",
|
||||
methodFilter: undefined,
|
||||
visibleDirections: { client: true, server: true },
|
||||
|
|
@ -76,6 +76,6 @@ export const TAB_UI_REGISTRY = {
|
|||
Resources: { empty: EMPTY_RESOURCES_UI },
|
||||
Tasks: { empty: EMPTY_TASKS_UI },
|
||||
Logs: { empty: EMPTY_LOGS_UI },
|
||||
History: { empty: EMPTY_HISTORY_UI },
|
||||
Protocol: { empty: EMPTY_PROTOCOL_UI },
|
||||
Network: { empty: EMPTY_NETWORK_UI },
|
||||
} as const;
|
||||
|
|
|
|||
Loading…
Reference in a new issue