Pure aggregate for Traditional sidebar selection and built-in surfaces.
The selected sidebar, Git status panel pair, and Observatory lifecycle are kept together so opening, closing, and replacing one built-in surface cannot leave an unrelated stale selection behind.
Summary
Functions
Returns the selected native sidebar id.
Closes Git status and clears both shared and TUI-specific state.
Closes Observatory and clears its selection when selected.
Completes a matching Observatory collection.
Expires a matching Observatory refresh token.
Returns the Git status panel.
Returns the TUI-specific Git status view state.
Shows or dismisses Observatory process inspection.
Returns the Observatory lifecycle value.
Opens and selects the Observatory surface.
Replaces the Git status panel while retaining its TUI view state.
Replaces the TUI-specific Git status view state.
Replaces Observatory data without changing refresh correlation.
Selects a visible sidebar, or clears selection with nil.
Types
@type git_status_tui_state() :: MingaEditor.GitStatus.TUIState.t()
@type t() :: %MingaEditor.Shell.Traditional.Sidebars{ active_id: String.t() | nil, git_status_panel: MingaEditor.GitStatus.Panel.t() | nil, git_status_tui_state: git_status_tui_state() | nil, observatory: MingaEditor.Shell.Traditional.Observatory.t() }
Functions
Returns the selected native sidebar id.
Closes Git status and clears both shared and TUI-specific state.
Closes Observatory and clears its selection when selected.
@spec complete_observatory( t(), reference(), MingaEditor.Observatory.Data.t(), MingaEditor.Shell.Traditional.Observatory.timer() ) :: {:accepted | :stale, t()}
Completes a matching Observatory collection.
Expires a matching Observatory refresh token.
@spec git_status_panel(t()) :: MingaEditor.GitStatus.Panel.t() | nil
Returns the Git status panel.
@spec git_status_tui_state(t()) :: git_status_tui_state() | nil
Returns the TUI-specific Git status view state.
@spec inspect_observatory(t(), MingaEditor.Observatory.Inspection.t() | nil) :: t()
Shows or dismisses Observatory process inspection.
@spec observatory(t()) :: MingaEditor.Shell.Traditional.Observatory.t()
Returns the Observatory lifecycle value.
@spec open_observatory(t(), MingaEditor.Shell.Traditional.Observatory.timer() | nil) :: t()
Opens and selects the Observatory surface.
@spec replace_git_status(t(), MingaEditor.GitStatus.Panel.t() | nil) :: t()
Replaces the Git status panel while retaining its TUI view state.
@spec replace_git_status_tui(t(), git_status_tui_state() | nil) :: t()
Replaces the TUI-specific Git status view state.
@spec replace_observatory_data(t(), MingaEditor.Observatory.Data.t() | nil) :: t()
Replaces Observatory data without changing refresh correlation.
Selects a visible sidebar, or clears selection with nil.