Dashboard: per-host resource overview bar (0.20.0)

The dashboard resource bar (CPU cores, memory used/total, containers, Docker
version) is now rendered per host instead of once for the local host — each
host section (local + each agent) shows its own bar above its stacks table.

- agent_app.py: _system_info() now also returns mem_used (from meminfo
  available), alongside the cpu_cores/mem_total added in 0.19.0.
- Frontend: extracted a ResourceBar component used by the local section and each
  AgentDashboardSection; AgentSystem type gained mem_used.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
menzelj
2026-06-08 13:22:27 +00:00
co-authored by Claude Opus 4.8
parent 8fbacd200a
commit eb9ffd0b0d
6 changed files with 80 additions and 35 deletions
+1
View File
@@ -10,6 +10,7 @@ export interface AgentSystem {
host_os: string;
cpu_cores: number;
mem_total: number;
mem_used: number;
containers_running: number;
containers_total: number;
}