Commit Graph
7 Commits
Author SHA1 Message Date
Finessse 6982a4cc31 feat(tui): add responsive layout and fix sidebar overflow
COMPLETED:
- Added ViewWithSize(width, height) pattern to all submodels
  - login.go: responsive provider rows with adaptive widths
  - switch.go: responsive agent rows without card borders
  - mappings.go: responsive table columns with calculateColumnWidths()
  - usage.go: responsive stat cards (2x2 grid layout)
  - logs.go: responsive log entries with message truncation

- Fixed main View() layout calculation in tui.go
  - Properly accounts for border (2) + padding (2) = 4 chars per panel
  - sidebarWidth now represents content width (20/14 for normal/narrow)
  - contentWidth = m.width - sidebarWidth - 9 (accounts for both panels)

- Added new screen files:
  - integrations.go: setup/integration screen
  - logs.go: real-time log viewer with filtering
  - mappings.go: model alias mappings table
  - usage.go: usage statistics with charts

PENDING TEST:
- Verify sidebar displays correctly alongside content (was overflowing)
- Test all screens at various terminal widths (60, 80, 100+ cols)

KNOWN ISSUE BEING FIXED:
- Sidebar was showing only "[8] Setup" at top due to width overflow
- Content panel was too wide, causing horizontal wrap
2025-12-30 08:45:56 +07:00
Finessse 7d90fda663 feat(tui): add status dashboard screen 2025-12-30 01:28:34 +07:00
Finessse 93a0643466 feat(tui): add provider login screen 2025-12-30 01:28:29 +07:00
Finessse dd113e5077 feat(tui): add agent switch screen 2025-12-30 01:28:25 +07:00
Finessse e20343eeec feat(tui): add server control screen 2025-12-30 01:28:20 +07:00
Finessse 738cd4d365 feat(tui): add main TUI app and utilities 2025-12-30 01:28:05 +07:00
Finessse 244782281c feat(tui): add styles and key bindings 2025-12-30 01:28:01 +07:00