Implement comprehensive backup monitoring and fix timestamp issues

- Add BackupCollector for reading TOML status files with disk space metrics
- Implement BackupWidget with disk usage display and service status details
- Fix backup script disk space parsing by adding missing capture_output=True
- Update backup widget to show actual disk usage instead of repository size
- Fix timestamp parsing to use backup completion time instead of start time
- Resolve timezone issues by using UTC timestamps in backup script
- Add disk identification metrics (product name, serial number) to backup status
- Enhance UI layout with proper backup monitoring integration
This commit is contained in:
2025-10-18 18:33:41 +02:00
parent 8a36472a3d
commit 125111ee99
19 changed files with 2788 additions and 1020 deletions

View File

@@ -4,10 +4,12 @@ use ratatui::{layout::Rect, Frame};
pub mod cpu;
pub mod memory;
pub mod services;
pub mod backup;
pub use cpu::CpuWidget;
pub use memory::MemoryWidget;
pub use services::ServicesWidget;
pub use backup::BackupWidget;
/// Widget trait for UI components that display metrics
pub trait Widget {
@@ -16,10 +18,4 @@ pub trait Widget {
/// Render the widget to a terminal frame
fn render(&mut self, frame: &mut Frame, area: Rect);
/// Get widget name for display
fn get_name(&self) -> &str;
/// Check if widget has data to display
fn has_data(&self) -> bool;
}