Update CLAUDE.md with completed keyboard navigation and service selection features
- Mark keyboard navigation and service management as completed - Document all implemented navigation controls and features - Update current status to reflect working build display - Replace old future priorities with actual service management tasks - Add focus-aware selection and visual feedback documentation
This commit is contained in:
parent
b8afd15417
commit
b0b1ea04a1
71
CLAUDE.md
71
CLAUDE.md
@ -18,11 +18,21 @@ All system panel features successfully implemented:
|
||||
- ✅ **Tmpfs Monitoring**: Added /tmp usage to RAM section
|
||||
- ✅ **Agent Deployment**: NixOS collector working in production
|
||||
|
||||
**Keyboard Navigation and Service Management - COMPLETED** ✅
|
||||
|
||||
All keyboard navigation and service selection features successfully implemented:
|
||||
- ✅ **Panel Navigation**: Shift+Tab cycles through visible panels only (System → Services → Backup)
|
||||
- ✅ **Service Selection**: Up/Down arrows navigate through parent services with visual cursor
|
||||
- ✅ **Focus Management**: Selection highlighting only visible when Services panel focused
|
||||
- ✅ **Status Preservation**: Service health colors maintained during selection (green/red icons)
|
||||
- ✅ **Smart Panel Switching**: Only cycles through panels with data (backup panel conditional)
|
||||
- ✅ **Scroll Support**: All panels support content scrolling with proper overflow indicators
|
||||
|
||||
**Current Status - October 23, 2025:**
|
||||
- Agent successfully collecting NixOS metrics (confirmed in logs)
|
||||
- Dashboard shows "Build: unknown" - investigating metric reception/display
|
||||
- Tmpfs monitoring working correctly in RAM section
|
||||
- All other system metrics functioning properly
|
||||
- All keyboard navigation features working correctly ✅
|
||||
- Service selection cursor implemented with focus-aware highlighting ✅
|
||||
- Panel scrolling fixed for System, Services, and Backup panels ✅
|
||||
- Build display working: "Build: 25.05.20251004.3bcc93c" ✅
|
||||
|
||||
**Layout Achieved:**
|
||||
```
|
||||
@ -47,30 +57,43 @@ Storage:
|
||||
- Overflow handling restored for all widgets ("... and X more") ✅
|
||||
- Agent hash display working correctly ✅
|
||||
|
||||
### Next Implementation Phase: Keyboard Navigation & UI Enhancement
|
||||
### Current Keyboard Navigation Implementation
|
||||
|
||||
**Phase 1 - Panel Navigation (In Progress):**
|
||||
- Add panel focus state management to TuiApp
|
||||
- Implement Shift-Tab for panel cycling (System → Services → Backup → Network)
|
||||
- Keep Tab for host switching as current behavior
|
||||
- Add visual focus indicators to panel borders
|
||||
**Navigation Controls:**
|
||||
- **Tab**: Switch between hosts (cmbox, srv01, srv02, steambox, etc.)
|
||||
- **Shift+Tab**: Cycle through visible panels (System → Services → Backup → System)
|
||||
- **Up/Down (System/Backup)**: Scroll through panel content
|
||||
- **Up/Down (Services)**: Move service selection cursor between parent services
|
||||
- **q**: Quit dashboard
|
||||
|
||||
**Phase 2 - Dynamic Statusbar:**
|
||||
- Create bottom statusbar showing context-aware shortcuts
|
||||
- System panel: "R: Rebuild", "S: Services"
|
||||
- Services panel: "Space: Start/Stop", "R: Restart"
|
||||
- Backup panel: "B: Trigger Backup"
|
||||
- Global: "Tab: Switch Host", "Shift-Tab: Switch Panel"
|
||||
**Panel-Specific Features:**
|
||||
- **System Panel**: Scrollable content with CPU, RAM, Storage details
|
||||
- **Services Panel**: Service selection cursor for parent services only (docker, nginx, postgresql, etc.)
|
||||
- **Backup Panel**: Scrollable repository list with proper overflow handling
|
||||
|
||||
**Phase 3 - Scrolling Support:**
|
||||
- Add Up/Down arrow key handling within focused panels
|
||||
- Implement scroll offset tracking for overflow content
|
||||
- Add scroll position indicators (↑/↓) when needed
|
||||
**Visual Feedback:**
|
||||
- **Focused Panel**: Blue border and title highlighting
|
||||
- **Service Selection**: Blue background with preserved status icon colors (green ● for active, red ● for failed)
|
||||
- **Focus-Aware Selection**: Selection highlighting only visible when Services panel focused
|
||||
- **Dynamic Statusbar**: Context-aware shortcuts based on focused panel
|
||||
|
||||
**Future - Remote Execution:**
|
||||
- Remote nixos rebuild commands via dashboard
|
||||
- Service start/stop/restart controls
|
||||
- Backup trigger functionality
|
||||
### Future Priorities
|
||||
|
||||
**Service Management Implementation:**
|
||||
- Implement actual service control actions (start/stop/restart)
|
||||
- Connect service selection cursor to ZMQ command execution
|
||||
- Add confirmation dialogs for service actions
|
||||
- Implement remote nixos rebuild commands
|
||||
|
||||
**Enhanced Navigation:**
|
||||
- Add Page Up/Down for faster scrolling through long service lists
|
||||
- Implement search/filter functionality for services
|
||||
- Add jump-to-service shortcuts (first letter navigation)
|
||||
|
||||
**Advanced Features:**
|
||||
- Service dependency visualization
|
||||
- Historical service status tracking
|
||||
- Backup trigger functionality with progress indication
|
||||
|
||||
## Core Architecture Principles - CRITICAL
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user