Implement localhost prioritization and status display in dashboard

- Always select localhost as default host at startup
- Order hosts with localhost first, then predefined sequence
- Display hostname status colors in title bar based on metric aggregation
- Add gethostname dependency for localhost detection
This commit is contained in:
2025-10-19 10:56:42 +02:00
parent 0141a6e111
commit 07633e4e0e
3 changed files with 224 additions and 103 deletions

1
Cargo.lock generated
View File

@@ -255,6 +255,7 @@ dependencies = [
"clap",
"cm-dashboard-shared",
"crossterm",
"gethostname",
"ratatui",
"serde",
"serde_json",