defmodule Integrations.Smtp.Display do @moduledoc """ Dashboard panel for `Integrations.Smtp` (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.Smtp` starts, the same as if they were still one module. """ use CodeNameRaven.Display, category: :infrastructure, size_hint: :medium @default_port 25 @impl true def display_name, do: "SMTP" @impl true def compatible_monitors, do: [Integrations.Smtp] @impl true def render(assigns) do result = assigns[:result] assigns = Map.merge(assigns, %{result: result}) ~H"""
<%= @result && @result.banner %>