Skip to content

Emails 0.5.4: The metrics dashboard works with custom date ranges

Emails 0.5.4 fixes the email metrics dashboard of the PhoenixKit email module, which crashed whenever you picked a custom date range, and makes the admin pages shrug off malformed input.

Picking a custom date range on the metrics dashboard crashed the page every time. It now shows the range.

Also fixed:

  • A junk page number in the address of the emails or templates list, such as ?page=abc, no longer crashes the list, and a page past the end shows the last page. The number fields in the settings read numbers the same safe way.
  • A request from the browser with data of the wrong shape is refused instead of crashing the page, on the blocklist, details, emails, queue, metrics, templates and template editor pages and the settings sections.
  • Switching the metrics period accepts only the four known periods.
Full release notes: Emails 0.5.4

0.5.4 · 10 October 2026

Fixed

  • ?page and ?per_page on the emails and templates lists no longer crash on junk (?page=abc); a page past the end lands on the last page (PR #51). The settings number fields and column reorder read integers through the same no-raise parser, Utils.parse_int/3.
  • LiveView events with a payload of the wrong shape (integer, nil, map, list) are refused instead of crashing the LiveView, across Blocklist, Details, Emails, Queue, Metrics, Templates, the template editor and the settings sections (PR #52).
  • The metrics dashboard crashed on every custom date range (and on a Date).
  • change_period no longer mints an atom per client-sent value; it maps the four known period names explicitly.

Added

  • Regression tests for non-map translation fields in the template editor.

Emails 0.5.4. Install or update: {:phoenix_kit_emails, "~> 0.5"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.