diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-28 14:56:51 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-28 14:56:53 +0300 |
| commit | 81f355fadac7d0d45b077dfc28f9f679add6bbb6 (patch) | |
| tree | 8c734b443c28ee4de8c4058f5a0c25cafbd057bd /src/ui.rs | |
| parent | 1491b7dd9c992ef0ad2b763f3e450befaf25c47f (diff) | |
perf: replace agent spinners with static status marks
Diffstat (limited to 'src/ui.rs')
| -rw-r--r-- | src/ui.rs | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -105,15 +105,6 @@ use crate::terminal::TerminalRuntimeRegistry; const COLLAPSED_WIDTH: u16 = 4; // num + space + dot + separator -// Braille spinner frames — smooth rotation -const SPINNERS: &[&str] = &["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"]; - -/// Map spinner_tick (incremented every frame at ~60fps) to a spinner frame. -/// We want ~8 updates/sec so divide by 8. -pub(super) fn spinner_frame(tick: u32) -> &'static str { - SPINNERS[(tick as usize / 8) % SPINNERS.len()] -} - /// Compute view geometry and reconcile pane sizes. /// Called before render to separate mutation from drawing. #[cfg_attr(not(test), allow(dead_code))] @@ -401,7 +392,7 @@ pub fn render_with_runtime_registry( let tab_bar_area = app.view.tab_bar_rect; let terminal_area = app.view.terminal_area; - render_working_animation(app, terminal_runtimes, frame); + render_navigation_chrome(app, terminal_runtimes, frame); if app.view.layout != ViewLayout::Mobile { render_tab_bar(app, frame, tab_bar_area); } @@ -452,7 +443,7 @@ pub fn render_with_runtime_registry( } } -pub(crate) fn render_working_animation( +fn render_navigation_chrome( app: &AppState, terminal_runtimes: &TerminalRuntimeRegistry, frame: &mut Frame, |
