use cm_dashboard_shared::Metric; pub mod backup; pub mod cpu; pub mod memory; pub mod services; pub mod system; pub use backup::BackupWidget; pub use services::ServicesWidget; pub use system::SystemWidget; /// Widget trait for UI components that display metrics pub trait Widget { /// Update widget with new metrics data fn update_from_metrics(&mut self, metrics: &[&Metric]); }