Event detail popup — overlay showing the full payload of the selected event as a syntax-highlighted Elixir term.
Renders the message payload via inspect(payload, pretty: true) inside
an ExRatatui.Widgets.CodeBlock so operators get real Elixir
highlighting (atoms, structs, numerics) instead of the previous
hand-rendered tree. The popup's block title carries the one-line
summary built by BB.TUI.Panels.Events.format_event/1.
Pure function — takes an event tuple, returns a Popup widget struct.
Summary
Functions
Renders the event detail popup for the given event.
Functions
@spec render({DateTime.t(), list(), term()}) :: struct()
Renders the event detail popup for the given event.
Examples
iex> event = {~U[2026-01-15 18:23:12.000Z], [:sensor, :sim], %{payload: %{names: [:a], positions: [1.0]}}}
iex> %ExRatatui.Widgets.Popup{content: %ExRatatui.Widgets.CodeBlock{language: "elixir"}} =
...> BB.TUI.Panels.EventDetail.render(event)