🎯 Goal
Enhance the existing kdm watch live dashboard into a feature-rich split-pane TUI with resource actions, detail overlays, and inline AI diagnostics.
📌 Current Behavior
kdm watch launches an interactive real-time TUI dashboard that auto-refreshes status and metrics. Press Ctrl+C to exit.
Example usage:
🚀 Proposed Interactive Dashboard
Layout
┌──────────────────────┬──────────────────────┐
│ Kubernetes Pods │ Docker Containers │
├──────────────────────┼──────────────────────┤
│ > nginx ✔ │ api-server ✔ │
│ redis ✔ │ postgres ✔ │
│ backend ✖ │ cache ✖ │
└──────────────────────┴──────────────────────┘
Detail Panel (for selected resource)
──────────────────────────────────────
Name: nginx
Status: Running
CPU: 30%
RAM: 220MB
──────────────────────────────────────
[L] Logs [A] AI Analysis [R] Restart [Q] Quit
User Flow
- Dashboard loads with a split-pane grid — Kubernetes on the left, Docker on the right.
- Press
Tab or ← / → to switch focus between panels. The active panel highlights its border.
- Use
↑ / ↓ to select a resource. The detail panel below updates automatically.
- Press action keys for the selected resource:
l → Stream live logs.
a → Run AI diagnosis and display explanation:
AI Diagnosis
─────────────
Possible root cause:
Container cannot connect to Redis.
Recommended:
kubectl describe pod backend
r → Restart the selected resource.
- Press
Q to quit.
Keyboard Shortcuts
| Key |
Action |
Tab / ← / → |
Switch focus between panels |
↑ / ↓ |
Navigate resources |
l |
Stream logs for selected resource |
a |
Run AI analysis |
r |
Restart selected resource |
Q |
Quit |
Recommended Libraries
📋 Contribution Workflow
- Fork the repo and create a feature branch (e.g.,
feature/interactive-kdm-watch).
- Implement the interactive TUI for
kdm watch using the layout and flow described above.
- Submit a PR explicitly linked to this issue (e.g.,
Closes #137).
- 📸 Include a screenshot or recording of the implemented UI in your PR to verify the new dashboard experience.
🎯 Goal
Enhance the existing
kdm watchlive dashboard into a feature-rich split-pane TUI with resource actions, detail overlays, and inline AI diagnostics.📌 Current Behavior
kdm watchlaunches an interactive real-time TUI dashboard that auto-refreshes status and metrics. PressCtrl+Cto exit.Example usage:
🚀 Proposed Interactive Dashboard
Layout
User Flow
Tabor←/→to switch focus between panels. The active panel highlights its border.↑/↓to select a resource. The detail panel below updates automatically.l→ Stream live logs.a→ Run AI diagnosis and display explanation:r→ Restart the selected resource.Qto quit.Keyboard Shortcuts
Tab/←/→↑/↓larQRecommended Libraries
<Box>withflexDirection="row"+yoga-layoutink-select-inputchalk📋 Contribution Workflow
feature/interactive-kdm-watch).kdm watchusing the layout and flow described above.Closes #137).