feat(tui): refactor graph metrics and simplify view navigation

Consolidate graph modes into a single GraphMetric enum to support more granular metrics like one-way delays and server processing. Replace the "full graph" toggle with a dedicated TuiView system to improve UI state management and status line clarity.
This commit is contained in:
Nils Andreas Svee committed 2026-07-05 00:28:22 +07:00
1 parent f9c6728855
commit d2ae68a05f
2 files changed
+323 -537

No files matched your search

+4 -8
View File
@@ -318,16 +318,12 @@ fn handle_input(state: &mut TuiState, shutdown_requested: &AtomicBool) -> io::Re
state.toggle_pause();
force_render = true;
}
KeyCode::Char('g') | KeyCode::Char('m') => {
state.cycle_graph_mode();
KeyCode::Char('g') => {
state.toggle_view();
force_render = true;
}
KeyCode::Char('s') => {
state.cycle_graph_scale();
force_render = true;
}
KeyCode::Char('f') => {
state.toggle_full_graph();
KeyCode::Char('m') => {
state.cycle_graph_metric();
force_render = true;
}
KeyCode::Left => {
File diff suppressed because it is too large. Load diff