yera.ui.rendering.views.settings

Render the pages, forms, and navigation used by Yera Settings.

Symbols

def render_appearance_settings — Render browser-local appearance settings.
def render_default_models_settings — Render model defaults for the active profile.
def render_model_settings — Render discovered model data and editable inference defaults.
def render_models_settings — Render the model catalogue available to the active profile.
def render_profile_settings — Render editable settings for the active profile.
def render_provider_connection_form — Render an editor for an existing provider connection.
def render_provider_connection_settings — Render one existing provider connection.
def render_providers_settings — Render existing provider connections.
def render_settings_home — Render the top-level Settings navigation.
def render_settings_sidebar — Render Settings navigation in the shell sidebar.

render_appearance_settings

render_appearance_settings(
    state: SettingsState,
) → TrustedHTML

Render browser-local appearance settings.

render_default_models_settings

render_default_models_settings(
    state: SettingsState,
) → TrustedHTML

Render model defaults for the active profile.

render_model_settings

render_model_settings(
    state: SettingsState,
    model_type: str,
    model_id: str,
) → TrustedHTML

Render discovered model data and editable inference defaults.

render_models_settings

render_models_settings(
    state: SettingsState,
) → TrustedHTML

Render the model catalogue available to the active profile.

Parameters

state
type: SettingsState

Current Settings configuration state.

Returns

type: TrustedHTML

Trusted HTML containing the filterable model catalogue.

render_profile_settings

render_profile_settings(
    state: SettingsState,
) → TrustedHTML

Render editable settings for the active profile.

Parameters

state
type: SettingsState

Settings state containing the active profile and its available provider connections.

Returns

type: TrustedHTML

Trusted HTML containing the active-profile settings form.

render_provider_connection_form

render_provider_connection_form(
    state: SettingsState,
    provider_type: str,
    connection_name: str,
    active: bool,
    error: str | None = None,
) → TrustedHTML

Render an editor for an existing provider connection.

Parameters

state
type: SettingsState

Current Settings configuration state.

provider_type
type: str

Provider key containing the connection.

connection_name
type: str

Name of the connection to edit.

active
type: bool

Whether the active profile selects this connection.

error
type: str | None = None

Optional validation or configuration conflict message.

Returns

type: TrustedHTML

Trusted HTML containing the provider connection form.

render_provider_connection_settings

render_provider_connection_settings(
    state: SettingsState,
    provider_type: str,
    connection_name: str,
) → TrustedHTML

Render one existing provider connection.

render_providers_settings

render_providers_settings(
    state: SettingsState,
    open_provider: str | None = None,
    open_connection: str | None = None,
) → TrustedHTML

Render existing provider connections.

render_settings_home

render_settings_home(
    state: SettingsState,
) → TrustedHTML

Render the top-level Settings navigation.

render_settings_sidebar

render_settings_sidebar(
    state: SettingsState,
    current: str | None,
) → TrustedHTML

Render Settings navigation in the shell sidebar.