yera.ui.rendering.views.sessions
Rendering for the Sessions exploration screen.
Symbols
classify_sessions
classify_sessions(
records: list[SessionRecord],
available_app_ids: Collection[str],
) → SessionGroupsClassify ordered session records without changing their order.
Parameters
Session records in their intended display order.
Apps currently available on this server.
Returns
Session records grouped by availability and persisted lifecycle state.
render_live_sessions
render_live_sessions(
apps: dict[str, AppFunctionWrapper],
live_by_app: dict[str, list[SessionRecord]],
) → TrustedHTMLRender active sessions for the canonical Live screen.
render_mobile_session_detail
render_mobile_session_detail(
record: SessionRecord,
app_name: str,
app_available: bool,
) → TrustedHTMLRender persisted session metadata as a pushed mobile screen.
render_session_sidebar
render_session_sidebar(
record: SessionRecord,
app_name: str,
app_available: bool,
) → TrustedHTMLRender persisted metadata and navigation for one selected session.
Parameters
Persisted session being inspected.
Human-readable app name or its stored identifier.
Whether the app is currently registered on this server.
Returns
Contextual session-inspector HTML.
render_sessions_home
render_sessions_home(
records: list[SessionRecord],
apps: dict[str, AppFunctionWrapper],
selected_session_id: str = '',
mode: SessionViewMode = SessionViewMode.CHRONOLOGICAL,
) → TrustedHTMLRender persisted sessions as main-screen navigation.
Parameters
Sessions ordered for display.
Apps currently available on this server.
Session to mark as selected, if any.
History ordering and grouping presentation.
Returns
Main-screen HTML for session exploration.
SessionGroups
Sessions grouped for live, historical, and offline presentation.
SessionViewMode
StrEnumSupported Sessions history presentations.