diff --git a/Cargo.lock b/Cargo.lock index 034bbb6..fa20603 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -270,7 +270,7 @@ checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d" [[package]] name = "cm-dashboard" -version = "0.1.57" +version = "0.1.58" dependencies = [ "anyhow", "chrono", @@ -292,7 +292,7 @@ dependencies = [ [[package]] name = "cm-dashboard-agent" -version = "0.1.57" +version = "0.1.58" dependencies = [ "anyhow", "async-trait", @@ -315,7 +315,7 @@ dependencies = [ [[package]] name = "cm-dashboard-shared" -version = "0.1.57" +version = "0.1.58" dependencies = [ "chrono", "serde", diff --git a/agent/Cargo.toml b/agent/Cargo.toml index 710cb5d..936376d 100644 --- a/agent/Cargo.toml +++ b/agent/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-agent" -version = "0.1.58" +version = "0.1.59" edition = "2021" [dependencies] diff --git a/dashboard/Cargo.toml b/dashboard/Cargo.toml index 59c4669..48daf2a 100644 --- a/dashboard/Cargo.toml +++ b/dashboard/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard" -version = "0.1.58" +version = "0.1.59" edition = "2021" [dependencies] diff --git a/dashboard/src/app.rs b/dashboard/src/app.rs index b8a2704..7670ad5 100644 --- a/dashboard/src/app.rs +++ b/dashboard/src/app.rs @@ -191,6 +191,17 @@ impl Dashboard { break; } } + + // Render UI immediately after handling input for responsive feedback + if let Some(ref mut terminal) = self.terminal { + if let Some(ref mut tui_app) = self.tui_app { + if let Err(e) = terminal.draw(|frame| { + tui_app.render(frame, &self.metric_store); + }) { + error!("Error rendering TUI after input: {}", e); + } + } + } } // Check for new metrics diff --git a/shared/Cargo.toml b/shared/Cargo.toml index 69b3f76..b73d657 100644 --- a/shared/Cargo.toml +++ b/shared/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-shared" -version = "0.1.58" +version = "0.1.59" edition = "2021" [dependencies]