defmodule Integrations.Xmpp.Display do @moduledoc """ Dashboard panel for `Integrations.Xmpp` (same package). Nested under the monitor's own namespace deliberately — the package's top-level module name never changes, and this module's name is guaranteed distinct from any separately-published standalone display package. `Display.BundledDefault` auto-hooks this whenever `Integrations.Xmpp` starts, the same as if they were still one module. """ use CodeNameRaven.Display, category: :infrastructure, size_hint: :medium @default_port 5222 @impl true def display_name, do: "XMPP" @impl true def compatible_monitors, do: [Integrations.Xmpp] @impl true def render(assigns) do result = assigns[:result] assigns = Map.merge(assigns, %{result: result}) ~H"""
<%= @result && @result.server_id %>