Expand description
Shared data types and logic for UI modules.
This module contains common data structures used by both the GUI and TUI, such as run progress, project data, session data, and run history entries.
These types are framework-agnostic and can be used by any UI implementation.
Structs§
- Project
Data - Data collected from a single project for display.
- RunHistory
Data - Result of loading run history.
- RunHistory
Entry - Data for a single entry in the run history panel.
- RunHistory
Options - Options for loading run history.
- RunProgress
- Progress information for a run.
- Session
Data - Data for a single session in the Active Runs view.
- UiData
- Result of loading UI data from disk.
Enums§
- Status
- Semantic status states for consistent status determination across UIs.
Functions§
- format_
duration - Format a duration from a start time as a human-readable string.
- format_
duration_ secs - Format a duration in seconds as a human-readable string.
- format_
relative_ time - Format a timestamp as a relative time string.
- format_
relative_ time_ secs - Format a relative time from seconds ago.
- format_
run_ duration - Format a run duration, using
finished_atif available, otherwise live from now. - format_
state_ label - Format a MachineState as a human-readable label.
- load_
archived_ run - Load an archived run by run_id from a project’s runs directory.
- load_
project_ run_ history - Load run history for a single project (simplified API for GUI).
- load_
run_ history - Load run history for display.
- load_
session_ by_ id - Load a single session by project name and session ID.
- load_
ui_ data - Load UI data from disk.