Skip to content

Add mouse support to setup wizard and sidebar delete buttons#8

Open
merdiofriviaisherebitch wants to merge 2 commits intoInfatoshi:mainfrom
merdiofriviaisherebitch:feat/setup-mouse-and-sidebar-delete
Open

Add mouse support to setup wizard and sidebar delete buttons#8
merdiofriviaisherebitch wants to merge 2 commits intoInfatoshi:mainfrom
merdiofriviaisherebitch:feat/setup-mouse-and-sidebar-delete

Conversation

@merdiofriviaisherebitch
Copy link
Copy Markdown

Summary

  • Setup wizard is now fully mouse-navigable: all list rows (Machine, Directory, Runtime, Model, MCPs) are clickable to select, and double-click selects + advances to the next step
  • Step tabs are clickable: jump directly to any wizard step (Machine, Directory, Runtime, etc.) by clicking
  • MCP rows toggle on click: single click toggles the checkbox and moves the cursor
  • Fix setup wizard closing on click: the empty transcript area had an on_click handler that forced Mode::Normal, closing the wizard when clicked through. Now guarded to skip when Setup or Palette mode is active
  • Sidebar delete buttons: × button on each agent row (triggers existing confirmation modal) and × button on each group row (moves orphaned agents to the first remaining group, prevents deleting the last group)

Before / After

Action Before After
Click machine row Nothing Selects machine
Double-click runtime Nothing Selects runtime + advances to Model
Click MCP row Nothing Toggles checkbox + selects
Click step tab Nothing Jumps to that step
Click inside wizard (with agent behind) Wizard closes Wizard stays open
Delete agent from sidebar Not possible × button with confirmation
Delete group from sidebar Not possible × button (agents moved to fallback group)

Test plan

  • Verified all setup wizard steps are clickable (Machine, Directory, Runtime, Model, MCPs)
  • Verified double-click advances through all steps to Confirm
  • Verified wizard no longer closes when clicking inside it
  • Verified sidebar × deletes agent with confirmation modal
  • Verified sidebar × deletes group and reassigns agents
  • Verified last group cannot be deleted (× hidden)
  • Clean release build, no warnings

Auto-scroll and scroll-to-bottom used a hardcoded 40-line viewport
assumption. On small windows, multi-row grids, or large displays
this caused the scroll position to land too far up or too far down.

Add estimate_visible_lines() which computes the approximate line
count from window height, grid rows, font metrics, and UI scale.
The estimate is refreshed each render frame and used by:
- auto-scroll on new output
- scroll_to_bottom
- toggle_auto_scroll snap-to-bottom
Setup wizard:
- All list rows (Machine, Directory, Runtime, Model, MCPs) are now
  clickable to select
- Double-click any row to select and advance to the next step
- Step tabs (Machine, Directory, Runtime, etc.) are clickable to
  jump directly to any step
- MCP rows toggle on single click
- Fix: clicks no longer close the wizard — the empty transcript
  area's click handler now skips mode changes when Setup or Palette
  is active

Sidebar:
- Add × delete button on each agent row (triggers existing
  confirmation modal)
- Add × delete button on each group row (moves agents to the
  first remaining group, prevents deleting the last group)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant