defmodule Integrations.HttpAbsent.Display do @moduledoc """ Dashboard panel for `Integrations.HttpAbsent` (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.HttpAbsent` starts, the same as if they were still one module. """ use CodeNameRaven.Display, category: :web, size_hint: :small @impl true def display_name, do: "HTTP Absence Check" @impl true def compatible_monitors, do: [Integrations.HttpAbsent] @impl true def render(assigns) do ~H"""

{(@config.name || @config.params[:url]) || "HTTP Absence Check"}

{@config.params[:url]}

{if @last_checked_at, do: "Checked #{Calendar.strftime(@last_checked_at, "%H:%M:%S UTC")}", else: "Waiting for first check…"}

""" end end