Christoffer Martinsson da37e28b6a
All checks were successful
Build and Release / build-and-release (push) Successful in 2m5s
Integrate backup metrics into system widget with enhanced disk monitoring
Replace standalone backup widget with compact backup section in system widget displaying disk serial, temperature, wear level, timing, and usage information.

Changes:
- Remove standalone backup widget and integrate into system widget
- Update backup collector to read TOML format from backup script
- Add BackupDiskData structure with serial, usage, temperature, wear fields
- Implement compact backup display matching specification format
- Add time formatting utilities for backup timing display
- Update backup data extraction from TOML with disk space parsing

Version bump to v0.1.149
2025-11-24 23:55:35 +01:00

16 lines
366 B
Rust

use cm_dashboard_shared::AgentData;
pub mod cpu;
pub mod memory;
pub mod services;
pub mod system;
pub use services::ServicesWidget;
pub use system::SystemWidget;
/// Widget trait for UI components that display structured data
pub trait Widget {
/// Update widget with structured agent data
fn update_from_agent_data(&mut self, agent_data: &AgentData);
}