yera.ui.navigation

Declarative definitions for UI screens and contextual sidebars.

Symbols

class ScreenDefinition — A navigable top-level UI screen.
class ScreenRegistry — Ordered collection of uniquely keyed UI screens.
class SidebarDefinition — A contextual sidebar associated with a screen.

ScreenDefinition

A navigable top-level UI screen.

ScreenRegistry

Ordered collection of uniquely keyed UI screens.

Methods

__post_init__ — Build the immutable screen lookup and reject duplicate keys.
__iter__ — Iterate over screens in navigation order.
__len__ — Return the number of registered screens.
__getitem__ — Look up a screen by its stable key.
available — Return screens that are currently available.
mobile_menu_screens — Return screens assigned to the mobile menu in display order.

ScreenRegistry.__post_init__

__post_init__() → None

Build the immutable screen lookup and reject duplicate keys.

ScreenRegistry.__iter__

__iter__() → Iterator[ScreenDefinition]

Iterate over screens in navigation order.

ScreenRegistry.__len__

__len__() → int

Return the number of registered screens.

ScreenRegistry.__getitem__

__getitem__(
    key: str,
) → ScreenDefinition

Look up a screen by its stable key.

ScreenRegistry.available

available() → tuple[ScreenDefinition, ...]

Return screens that are currently available.

ScreenRegistry.mobile_menu_screens

mobile_menu_screens() → tuple[ScreenDefinition, ...]

Return screens assigned to the mobile menu in display order.

SidebarDefinition

A contextual sidebar associated with a screen.