Monitoring sidebar toggle, Prompts-style Tools results, and icon-button UI polish (#1661)#1662
Conversation
…ts (#1661) Consolidate the monitoring column's open/close affordances into one header toggle, and align the Tools/Prompts result panes and the sidebar log layout. - Add a single `MonitoringToggle` in the header, to the right of the theme icon. It opens/closes the monitoring column and only shows when a server is connected OR a connect attempt failed (wide viewport + a monitor tab available) — the same availability rule the column uses. - Remove the scattered pin/close icons: delete `PinColumnButton`; drop `onPin` from the Logs/Protocol/Network/Console screens and their stream panels; drop `onOpenMonitor` from the server list; remove the close button from `MonitoringControls`/`MonitoringScreen`. - Tools screen: remove the "Results will appear here" placeholder pane. Results now replace the input form in a single content pane (the Prompts pattern), with a top-left X (ToolResultPanel) that dismisses them back to the form; form values are preserved for a re-run. - Prompts screen: the argument form fills the content pane width (drop the 40% cap), matching the Tools input. - LogEntry: add a `compact` two-line layout (time/level/logger on line one, message wrapping below) used by the embedded monitoring-column Logs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015sMW1YZXkM7fDkdPtHpE95
…"monitoring sidebar" (#1661) - Add Mantine `Tooltip`s to the icon-only controls: Client settings, Theme (dynamic light/dark label), the monitoring-sidebar toggle, the list-level and per-entry Expand/Collapse toggles, the Pin/Unpin toggle, and the Replay button. Labels mirror each control's existing aria-label. - Rename the feature term "monitoring column" → "monitoring sidebar" across the user-facing labels (Open/Close/Resize), comments, and tests, so the UI calls it a sidebar consistently. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015sMW1YZXkM7fDkdPtHpE95
|
@claude review |
|
Claude finished @cliffhall's task in 3m 2s —— View job Code Review — PR #1662
Overall this is a clean, well-scoped refactor. The consolidation of the scattered open/close affordances into a single header toggle is a genuine simplification — the diff removes more than it adds in the interaction layer, deletes a now-dead component ( Correctness — verified, no issues
Minor observations (non-blocking, optional)
Tests & docs
Nice work — I'd approve this if I could. (I can't submit formal GitHub approvals for security reasons.) |
Address the two optional notes from the PR #1662 review: - Make the MonitoringToggle JSDoc voice consistent ("sidebar" throughout, no lingering "column"). - Drop ViewHeader's duplicate `MonitorToggleProps` and reuse the element's exported `MonitoringToggleProps` as the single source of truth. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015sMW1YZXkM7fDkdPtHpE95
|
Thanks for the thorough review! Both non-blocking notes are addressed in 126dcef:
|
…1661) The header MonitoringToggle now animates in/out via a Mantine Transition whose in/out styles drive width + margin-left (plus opacity/translateX): as its slot grows from 0 → the 36px icon, the flex-end header row reflows and pushes the theme + client-settings buttons one slot to the left; the exit reverses and they slide back over. A negative margin-left while collapsed cancels the row gap so the theme icon stays flush-right when the toggle is absent. Only appearance/ disappearance (connect / disconnect / narrow viewport) animates — opening or closing the sidebar leaves the toggle in place. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015sMW1YZXkM7fDkdPtHpE95
Closes #1661
What & why
Consolidates the monitoring sidebar's scattered open/close icons into one header toggle, aligns the Tools/Prompts result panes and the sidebar log layout, and adds tooltips across the icon-only controls.
Monitoring sidebar toggle
MonitoringToggleelement in the header, immediately to the right of the theme icon. One control opens or closes the monitoring sidebar on demand — the glyph, tooltip, and accessible label reflect the state (Open monitoring sidebar/Close monitoring sidebar).MonitoringControls. Deleted the now-unusedPinColumnButton.Tools screen results (Prompts pattern)
Layout consistency
LogEntrygains a compact two-line layout (time/level/logger on line one, message wrapping below) used by the embedded monitoring-sidebar Logs, so long messages aren't clipped by the narrow sidebar.Icon-button tooltips
Tooltips to the icon-only controls: Client settings, Theme (dynamic "Switch to light/dark theme"), the monitoring-sidebar toggle, the list-level and per-entry Expand/Collapse toggles, the Pin/Unpin toggle, and the Replay button. Each tooltip mirrors the control's existing aria-label.Naming
Testing
npm run cigreen locally: validate (all clients) + the per-file ≥90% coverage gate + smokes (launcher/cli/tui/web) + Storybook play tests.MonitoringToggle,ViewHeader,InspectorView,ToolResultPanel,ToolsScreen,LogEntry, and the tooltip-wrapped toggles.🤖 Generated with Claude Code