feat(ui): Übersicht als Überblick mit Gesamtzustand, Datenqualität und Fehleranzeige (#1197, DASH-R1 AP6, AP7)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GmHhg7qE8FdhchzsBrwgjZ
This commit is contained in:
2026-11-22 10:52:25 +01:00
parent 1a35f0f89c
commit bc5fcd6aa7
7 changed files with 582 additions and 80 deletions

View File

@ -22,6 +22,17 @@ pub struct AppState {
pub bootstrap_file: std::sync::OnceLock<std::path::PathBuf>,
/// Stand der Fähigkeiten-Prüfung je Modell (nur im Speicher), für die Anzeige in der Tabelle.
pub pruefungen: Mutex<HashMap<String, Pruefstand>>,
/// Name dieses Knotens und Messintervall (aus der Konfiguration, → #1197);
/// ohne Eintrag gelten `lokal` und 15 s.
pub knoten: std::sync::OnceLock<KnotenInfo>,
}
/// Angaben zum eigenen Knoten für die Übersicht.
#[derive(Debug, Clone)]
pub struct KnotenInfo {
pub node_id: String,
/// Messintervall in Sekunden; `0` = Messung ausgeschaltet.
pub intervall_s: u64,
}
/// Wie weit die Fähigkeiten-Prüfung eines Modells ist.
@ -62,6 +73,7 @@ impl AppState {
logs_dir: std::sync::OnceLock::new(),
bootstrap_file: std::sync::OnceLock::new(),
pruefungen: Mutex::new(HashMap::new()),
knoten: std::sync::OnceLock::new(),
})
}