Repository navigation
refactor(web): rename "History" tab/feature to "Protocol" (#1623) - #1634
Conversation
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) <[email protected]> Claude-Session: https://claude.ai/code/session_01BrihGWcrM9JGRyu41nzZYw
…1623) Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01BrihGWcrM9JGRyu41nzZYw
…on (#1623) - Direction labels now both point right so the arrow reads clearly at badge size: incoming "client ← server" becomes "server → client" (from → to), in MessageDirectionBadge and MessageDirectionFilter (shared by the Protocol and Network views). - The Protocol list's pinned section header now reads "Pinned Messages" (was "Pinned Requests"), matching the "Messages" panel title. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01BrihGWcrM9JGRyu41nzZYw
…1623) Long request URLs stretched every Network card to their own max-content width, bleeding the cards (and their status badges) past the pinned monitoring column. Mantine's ScrollArea `content` slot defaults to `min-width: max-content`, so a non-wrapping URL forced the whole list wider than its viewport. Add an opt-in `constrainContentWidth` prop to EmbeddableScrollArea that relaxes that slot to `min-width: 0`, so the list can't grow past its viewport and each row manages its own overflow — the URL already lives in a horizontal ScrollArea, which now actually scrolls. Scoped to the Network stream panel (Logs/Protocol rows wrap or truncate, so they keep the default where a long line scrolls the list). Verified in Storybook (embedded 380px column): cards clamp to the viewport, no list/page horizontal overflow, and the URL scrolls within its own area. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01BrihGWcrM9JGRyu41nzZYw
|
@claude review |
|
Claude finished @cliffhall's task in 1m 41s —— View job Review: rename "History" → "Protocol"
This is a clean, well-scoped mechanical rename. I read the full diff across Behavioral note — persisted user preferences silently reset
|
…1623) Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01BrihGWcrM9JGRyu41nzZYw
|
Thanks for the thorough review! Responses: localStorage preference reset ( Preserved-concept boundary — Confirmed, and I added a short comment above Cosmetic test-local names ( No correctness changes needed. Re-requesting to confirm clean. |
|
@claude review |
|
Claude finished @cliffhall's task in 1m 2s —— View job Review: rename "History" → "Protocol" (re-review)
I re-read the full diff (52 files, 5 commits Rename completeness ✅The old identifiers are fully gone outside preserved contexts — a grep for Preserved boundary — matches the stated intent exactly ✅Every surviving
The Prior localStorage note — resolved as a conscious call ✅The scope rename VerdictComplete, internally consistent, tests/stories moved in lockstep, and the preserved-concept boundary is now documented in-source. No correctness issues. LGTM. ✅ |
Closes #1623
Renames the web client's History tab and its supporting code to Protocol, so the feature reads as the MCP "Protocol" view rather than "History".
What changed
INSPECTOR_TAB_IDS,InspectorViewtab constants +MonitorTab,TAB_UI_REGISTRYkey, andnavigation.tstab id.HistoryScreen→ProtocolScreenHistoryListPanel→ProtocolListPanelHistoryEntry→ProtocolEntryHistoryControls→ProtocolControlshistoryUtils→protocolUtilshistoryUi/setHistoryUi,pinnedHistoryIds, theon*History*handlers/props,replayHistoryRequest,isReplayableHistoryMethod/REPLAYABLE_HISTORY_METHODS, thehistoryprop, and the sort/compact/localStorage scopes.protocolslug (buildExportFilename+ExportKind).ProtocolControlssidebar title now reads Protocol.Preserved (per the settled decisions in #1623)
ProtocolListPanelsection discriminator keeps its"pinned" | "history"values, and the two sub-sections stay labeled Pinned / History (including the"History (N)"header, the "History sort direction" sort control, and the "No request history" empty state).window.historyand thecore/message-log/replay concepts are untouched.Testing
npm run cipasses locally — format, lint, build, unit tests (2951), the ≥90 per-file coverage gate, smoke, and Storybook play tests (394).🤖 Generated with Claude Code
https://claude.ai/code/session_01BrihGWcrM9JGRyu41nzZYw