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
|
- ✅ **Tmpfs Monitoring**: Added /tmp usage to RAM section
|
||||||
- ✅ **Agent Deployment**: NixOS collector working in production
|
- ✅ **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:**
|
**Current Status - October 23, 2025:**
|
||||||
- Agent successfully collecting NixOS metrics (confirmed in logs)
|
- All keyboard navigation features working correctly ✅
|
||||||
- Dashboard shows "Build: unknown" - investigating metric reception/display
|
- Service selection cursor implemented with focus-aware highlighting ✅
|
||||||
- Tmpfs monitoring working correctly in RAM section
|
- Panel scrolling fixed for System, Services, and Backup panels ✅
|
||||||
- All other system metrics functioning properly
|
- Build display working: "Build: 25.05.20251004.3bcc93c" ✅
|
||||||
|
|
||||||
**Layout Achieved:**
|
**Layout Achieved:**
|
||||||
```
|
```
|
||||||
@ -47,30 +57,43 @@ Storage:
|
|||||||
- Overflow handling restored for all widgets ("... and X more") ✅
|
- Overflow handling restored for all widgets ("... and X more") ✅
|
||||||
- Agent hash display working correctly ✅
|
- Agent hash display working correctly ✅
|
||||||
|
|
||||||
### Next Implementation Phase: Keyboard Navigation & UI Enhancement
|
### Current Keyboard Navigation Implementation
|
||||||
|
|
||||||
**Phase 1 - Panel Navigation (In Progress):**
|
**Navigation Controls:**
|
||||||
- Add panel focus state management to TuiApp
|
- **Tab**: Switch between hosts (cmbox, srv01, srv02, steambox, etc.)
|
||||||
- Implement Shift-Tab for panel cycling (System → Services → Backup → Network)
|
- **Shift+Tab**: Cycle through visible panels (System → Services → Backup → System)
|
||||||
- Keep Tab for host switching as current behavior
|
- **Up/Down (System/Backup)**: Scroll through panel content
|
||||||
- Add visual focus indicators to panel borders
|
- **Up/Down (Services)**: Move service selection cursor between parent services
|
||||||
|
- **q**: Quit dashboard
|
||||||
|
|
||||||
**Phase 2 - Dynamic Statusbar:**
|
**Panel-Specific Features:**
|
||||||
- Create bottom statusbar showing context-aware shortcuts
|
- **System Panel**: Scrollable content with CPU, RAM, Storage details
|
||||||
- System panel: "R: Rebuild", "S: Services"
|
- **Services Panel**: Service selection cursor for parent services only (docker, nginx, postgresql, etc.)
|
||||||
- Services panel: "Space: Start/Stop", "R: Restart"
|
- **Backup Panel**: Scrollable repository list with proper overflow handling
|
||||||
- Backup panel: "B: Trigger Backup"
|
|
||||||
- Global: "Tab: Switch Host", "Shift-Tab: Switch Panel"
|
|
||||||
|
|
||||||
**Phase 3 - Scrolling Support:**
|
**Visual Feedback:**
|
||||||
- Add Up/Down arrow key handling within focused panels
|
- **Focused Panel**: Blue border and title highlighting
|
||||||
- Implement scroll offset tracking for overflow content
|
- **Service Selection**: Blue background with preserved status icon colors (green ● for active, red ● for failed)
|
||||||
- Add scroll position indicators (↑/↓) when needed
|
- **Focus-Aware Selection**: Selection highlighting only visible when Services panel focused
|
||||||
|
- **Dynamic Statusbar**: Context-aware shortcuts based on focused panel
|
||||||
|
|
||||||
**Future - Remote Execution:**
|
### Future Priorities
|
||||||
- Remote nixos rebuild commands via dashboard
|
|
||||||
- Service start/stop/restart controls
|
**Service Management Implementation:**
|
||||||
- Backup trigger functionality
|
- 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
|
## Core Architecture Principles - CRITICAL
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user