fix: switch default profile to terminal and fixed some comments

This commit is contained in:
objz committed 2026-04-18 19:44:59 +02:00
1 parent 971375bf1f
commit 52787b57c7
71 files changed
+671 -188

No files matched your search

+12
View File
@@ -1,3 +1,8 @@
// layout and rendering. the main frame is split into:
// left 20%: instance sidebar
// right 80%: title bar + content area + bottom bar (account / details / status)
// popups and error toasts render on top of everything.
use ratatui::{
layout::{Constraint, Direction, Layout},
Frame,
@@ -96,6 +101,7 @@ impl App {
self.render_log_overlay(frame);
}
// error toasts stack from the top, each one below the previous
let all_errors = error_buffer::peek_all_errors();
self.sync_error_effects(&all_errors);
let mut next_y: u16 = 1;
@@ -127,6 +133,8 @@ impl App {
}
}
// full-screen log viewer with search highlighting and auto-scroll.
// auto-sticks to the bottom unless the user scrolled up manually
fn render_log_overlay(&mut self, frame: &mut Frame) {
use crate::config::theme::{THEME, BORDER_STYLE};
use crate::tui::logging::get_app_logs;
@@ -226,6 +234,8 @@ impl App {
);
}
// keeps the effect map in sync with current errors: removes effects for
// dismissed errors and creates slide-in effects for new ones
fn sync_error_effects(&mut self, events: &[error_buffer::ErrorEvent]) {
use crate::config::theme::THEME;
let theme = THEME.as_ref();
@@ -244,6 +254,8 @@ impl App {
}
}
// drives the slide-in / idle / slide-out state machine for each error toast.
// transitions to FadingOut once it's within fly_out_ms of auto-dismiss time
fn render_error_effect(
&mut self,
frame: &mut Frame,