pub fn load_ui_data(project_filter: Option<&str>) -> Result<UiData>Expand description
Load UI data from disk.
This function consolidates the data loading logic used by both GUI and TUI. It loads the project tree, filters by project name if specified, loads active run states and session information.
§Arguments
project_filter- Optional project name to filter results
§Returns
Result<UiData>- The loaded data or an error
§Error Handling
This function returns Result and lets callers decide how to handle errors.
For GUI (which swallows errors), call .unwrap_or_default().
For TUI (which propagates errors), use the ? operator.