MOS UI (MUI) for system status visualization #45

Merged
thabeta merged 3 commits from develop-mui-for-system-status-visualization into develop 2026-01-06 12:22:31 +00:00
Member

Implemented a terminal-based UI for visualizing system status in the herolib-mos package, addressing Issue #44.

  • Created a new module packages/mos/src/mui/ containing the UI logic
  • Exposed the dashboard functionality to Rhai scripts via print_system_status().
  • Added rhaiexamples/mos/dashboard.rhai to demonstrate usage.

Dependencies

  • Added optional dependencies comfy-table for building the layout and boxes to packages/mos/Cargo.toml

Verification

The implementation was verified by:

  • Build Check: cargo check --features full passed successfully.
  • dashboard check: cargo run --package herolib-mos --bin hero-mos --features "full" -- packages/mos/rhaiexamples/mos/dashboard.rhai
  • API Verification: Confirmed that SystemFacts data is correctly mapped to the UI sections.
  • Visualization: The output structure matches the requested design (System/Resources/Storage on left, Capabilities/Network on right).

Note
I had to do minimal changes to the herolib-mos package:

  • Added hostname field to OsInfo struct.
  • Made fields public in OsInfo, HardwareInfo, CPUInfo, and SystemCapabilities so the UI (and other consumers) can access raw data.
Implemented a terminal-based UI for visualizing system status in the herolib-mos package, addressing Issue #44. - Created a new module packages/mos/src/mui/ containing the UI logic - Exposed the dashboard functionality to Rhai scripts via print_system_status(). - Added rhaiexamples/mos/dashboard.rhai to demonstrate usage. **Dependencies** - Added optional dependencies `comfy-table` for building the layout and boxes to packages/mos/Cargo.toml **Verification** The implementation was verified by: - Build Check: `cargo check --features full` passed successfully. - dashboard check: `cargo run --package herolib-mos --bin hero-mos --features "full" -- packages/mos/rhaiexamples/mos/dashboard.rhai` - API Verification: Confirmed that SystemFacts data is correctly mapped to the UI sections. - Visualization: The output structure matches the requested design (System/Resources/Storage on left, Capabilities/Network on right). **Note** I had to do minimal changes to the herolib-mos package: - Added hostname field to OsInfo struct. - Made fields public in OsInfo, HardwareInfo, CPUInfo, and SystemCapabilities so the UI (and other consumers) can access raw data.
thabeta merged commit 093aeb9000 into develop 2026-01-06 12:22:31 +00:00
thabeta deleted branch develop-mui-for-system-status-visualization 2026-01-06 12:22:31 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
geomind_research/herolib_rust!45
No description provided.