Skip to content

Conversation

@newhook
Copy link
Owner

@newhook newhook commented Jan 16, 2026

Summary

This PR enhances the work mode TUI with zoom state functionality, mouse support, and improved inline forms for a unified work management experience.

Changes

Zoom State

  • Added ZoomLevel enum with two states:
    • ZoomOverview: Shows the grid of all works with bead details
    • ZoomZoomedIn: Shows the 2-panel task view (40/60 ratio) for a selected work
  • Keyboard navigation: Enter to zoom in, Escape to zoom out

Mouse Support

  • Hover and click support for beads/workers in overview grid mode
  • Hover and click support for tasks in zoomed mode
  • Hover effects on status bar buttons

Inline Forms (Zoomed Mode)

  • Assign Beads: Inline issue selection in details panel
    • Scrollable issue list with checkboxes, status, type, and priority
    • Selected issue details shown below the list
    • Custom status bar with selection controls
    • a key toggles select all/deselect all
    • Space toggles individual selection
  • Create Bead: Inline form in details panel (same as plan mode)

Keyboard Improvements

  • All work-related shortcuts (a, n, c, d, p, r, t, C, R, P, U) now work in zoomed mode from tasks panel
  • Bead navigation within workers in overview mode (j/k moves through beads, h/l switches workers)

Panel Layout

  • Changed zoomed mode panel ratio from 50/50 to 40/60 (tasks/details)

Files Changed

  • cmd/tui_work.go: Major enhancements (+900 lines)
  • cmd/poll.go: Minor updates

Testing

  • Code compiles successfully
  • All tests pass

🤖 Generated with Claude Code

newhook and others added 5 commits January 16, 2026 12:30
Added ZoomLevel enum (Overview/ZoomedIn) and selectedWorkID field to
workModel. Enter zooms in on the selected work from the left panel,
Escape zooms out to overview. This lays the foundation for the grid
view in overview mode vs 3-panel task view when zoomed in.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add grid state (GridConfig) to workModel for tracking grid layout
- Add CalculateGridDimensions shared helper in tui_shared.go
- Update View() to render grid when ZoomLevel=Overview
- Implement grid navigation (h/j/k/l, Enter to zoom in, Esc to zoom out)
- Add renderOverviewGrid, renderGrid, renderGridWorkerPanel methods
- Add renderOverviewStatusBar for grid view status bar
- Update updateNormal to handle grid navigation and commands
- Update help text to document view states and navigation
- Add [Esc]back hint to zoomed view status bar

The work mode now defaults to a grid overview showing all workers.
Pressing Enter on a work zooms into the 3-panel task view.
Pressing Escape returns to the grid overview.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Overview mode: Show navigate, zoom, create, destroy, and help actions
- Zoomed mode: Show overview, run, plan, assign, new, terminal, Claude,
  review, PR, and help actions for task management
- Update mouse detection to be zoom-level aware for proper button
  hover/click handling in both modes
- Simplify button labels (e.g., "[Esc]overview" and "[n]ew")

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Delete tui_monitor.go entirely
- Remove ModeMonitor from Mode enum in tui_root.go
- Remove monitorModel from rootModel struct
- Remove c-m keybinding and monitor tab from mode switcher
- Update detectHoveredMode and renderTabBar for two modes only
- Remove TestDetectStatusBarButton test (used monitorModel)
- Update TestDetectHoveredMode to only test Plan and Work modes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add mouse hover and click support for beads in overview grid mode
- Add mouse hover and click support for tasks in zoomed mode
- Add inline assign beads UI in zoomed mode details panel
  - Shows scrollable issue list with checkboxes
  - Shows selected issue details below the list
  - Custom status bar with selection controls
  - Select all/deselect all toggle with 'a' key
- Add inline create bead form in zoomed mode details panel
- Change zoomed mode panel ratio to 40/60 (tasks/details)
- Fix keyboard shortcuts (a, n, c, d, p, r, t, C, R, P, U) to work in zoomed mode
- Add bead navigation within workers in overview mode (j/k moves through beads)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@newhook newhook merged commit 349d2aa into main Jan 16, 2026
@newhook newhook deleted the feat/add-zoom-state-to-work-mode-model branch January 16, 2026 20:16
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.

2 participants