Page Contracts¶
Page and navigation contracts for consumer-owned operator pages.
NotifySeverity ¶
NotifySeverity = Literal['information', 'warning', 'error']
Toast severities the shell forwards to Textual's notification system.
OperatorPage ¶
Bases: Protocol
Structural contract implemented by consumer Textual widgets.
PageContext ¶
Bases: Protocol
Narrow context passed to page factories.
PageRegistration
dataclass
¶
PageRegistration(
route: PageRoute,
factory: Callable[[PageContext], OperatorPage],
)
PageRegistry ¶
PageRegistry(routes: Sequence[PageRoute])
PageRoute
dataclass
¶
PageRoute(key: str, label: str, purpose: str)