AshUi.Phoenix.Bridge behaviour (ash_ui_phoenix v0.1.0)

Copy Markdown View Source

Compile-time contract for host-specific LiveView integration.

A bridge supplies the transport session and route-local host options used while mounting an AshUi resource. This module validates the host implementation and exposes a session MFA suitable for a Phoenix live_session. It does not define UI structure or application state.

Summary

Callbacks

generate_session(t, keyword)

@callback generate_session(Plug.Conn.t(), keyword()) :: map()

route_group(term)

@callback route_group(term()) :: map() | nil

route_options(term, term)

@callback route_options(term(), term()) :: keyword()

screen_action(term, keyword)

@callback screen_action(term(), keyword()) :: atom()