MailglassAdmin.Operator.QuickView (MailglassAdmin v2.4.1)

Copy Markdown View Source

In-context "Quick view" of one delivery — the peek layer of the operator inspection flow ("what happened, at a glance").

A URL-driven overlay (?delivery_id= with no full): a right slide-over pane on desktop, a bottom sheet on mobile (positioning in the root layout's inline <style> via .mg-detail-panel). Renders entirely from the list-row projection already loaded in @deliveries, so flipping records with the ‹ › controls (and, in Stage C, the keyboard) fires no new queries. The heavy evidence — full event timeline, suppression state, replay history — lives one step deeper in Full detail (&full=1), reached via "Open full detail".

Cloned from MailglassAdmin.Operator.ReplayModal's zero-hook overlay skeleton (scrim + role="dialog" panel, phx-window-keydown Escape, JS.hide exit, focus-trap sentinels), differing in that it is URL-driven and edge-anchored.

Summary

Functions

quick_view(assigns)

Attributes

  • delivery (:map) - Defaults to nil.
  • detail_error (:atom) - Defaults to nil.
  • account_labels (:map) - Defaults to %{}.
  • full_path (:string) (required)
  • close_path (:string) (required)
  • previous_path (:string) - Defaults to nil.
  • next_path (:string) - Defaults to nil.
  • position (:map) - Defaults to nil.
  • keyboard? (:boolean) - Defaults to true.