Newsletters 0.4.1: The layout editor opens again
Newsletters 0.4.1 fixes the layout editor that 0.4.0 introduced. Opening New layout or Edit layout in a browser crashed on the first load, so no layout could be created or edited from the admin.
The editor kept the layout it was editing under a name the page’s first render also uses for the page layout. It now keeps it under a name of its own, and both pages open normally.
The release also adds a test that loads every admin page and the public email preferences page the way a browser does, the path that missed this crash. No migration and nothing to configure.
Full release notes: Newsletters 0.4.1
0.4.1 · 4 October 2026
Fixed
- Layout editor crashed on first load.
/layouts/newand/layouts/:id/editraised aCaseClauseErrorin the browser because the editor assigned the edited record as:layout, which a dead render reads as the page layout. It is now:edited_layout. (#38)
Added
- A dead-render test that GETs every LiveView (admin pages and the public preference center) through a test endpoint and router, the path the callback-level tests never reach. (#38)
Newsletters 0.4.1. Install or update: {:phoenix_kit_newsletters, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.