MailglassAdmin.Operator.DeliveriesList (MailglassAdmin v1.8.0)

Copy Markdown View Source

Recent deliveries list with dual table+card presentation.

Renders a semantic <table> at >=768px and a <ul> of card buttons at <768px, both driven from the same @deliveries assign with identical selection semantics, result-count, and pagination.

Data-state branches render four distinct Components.data_state/1 kinds when there is no row data to show. The four branches are:

  • :empty — no records (no-data / filtered distinction preserved)
  • :error — data unavailable
  • :permission_denied — access restricted
  • :stale — data may be out of date

Status is always rendered via Components.status_badge/1. Recipients are always masked via Components.mask_recipient/1. Long values use per-field classes from the deliveries table (truncate+title for IDs, whitespace-nowrap for timestamps).

Summary

Functions

deliveries_list(assigns)

Attributes

  • deliveries (:list) (required)
  • page_meta (:map) - Defaults to %{total_count: 0, total_pages: 0, has_previous?: false, has_next?: false}.
  • previous_page_path (:string) - Defaults to nil.
  • next_page_path (:string) - Defaults to nil.
  • selected_delivery (:map) - Defaults to nil.
  • filters_active? (:boolean) - Defaults to false.
  • data_state (:atom) - Defaults to nil.