Primary Phoenix integration for routed AshUi resources.
The routes/1 macro discovers route declarations from Ash domains and mounts
each resource through the shared LiveView host. At runtime this module
creates or upserts the page's :mount action with the transport session,
caches its compiled patch table, renders the current resource row, routes
binding keys to Ash actions, reloads notification-backed relationships, and
reconciles the resource's URL projection.
Host applications keep ownership of their endpoint, router, session,
authentication, and static assets. Authored UI remains in resource
:view calculations; Phoenix supplies transport only.
Summary
Functions
@spec mount(module(), map(), map(), Phoenix.LiveView.Socket.t(), keyword()) :: {:ok, Phoenix.LiveView.Socket.t()}
Attributes
ash_ui_record(:any) - Defaults tonil.ash_ui_changed(:any) - Defaults to:all.ash_ui_mount_error(:string) - Defaults tonil.
@spec runtime_handle_event(String.t(), map(), Phoenix.LiveView.Socket.t()) :: {:noreply, Phoenix.LiveView.Socket.t()}
@spec runtime_handle_info(term(), Phoenix.LiveView.Socket.t()) :: {:noreply, Phoenix.LiveView.Socket.t()}
@spec runtime_handle_params( map(), String.t() | map() | nil, Phoenix.LiveView.Socket.t() ) :: {:noreply, Phoenix.LiveView.Socket.t()}
@spec runtime_terminate(term(), Phoenix.LiveView.Socket.t()) :: :ok