2.44.0 - 2026-10-01
Added
- Email files can be written in Markdown, with a shared header, footer and layout groups
(#887). A
markdown.mdpart feeds both bodies: the HTML (links and a lone-link paragraph as accent-coloured buttons, tables, lists) and the text (label: url).{{variable}}/{{{variable}}}work as in anhtmlpart and a link target is checked after substitution — onlyhttp(s)andmailto:become links. The layout gains_header/_footerparts, and a group (layout: "billing"or the email'slayout.txt) brings_layout-billing,_header-billing,_footer-billing, each falling back to the shared one.Content.resolve_with_sources/5says where every part came from. Raises thephoenix_kit_templatesfloor to 0.2.2. - Email branding (#887, #890). Every part of a file email sees
{{logo_url}}(the site logo as an absolute, permanently signed URL; empty for a private library's logo) and{{accent_color}}. Settings → Emails Transactional has a Branding tab with the accent colour (email_accent_color,#rrggbb, blank = neutral) and the logo emails carry; core's layout draws an accent bar only once a colour is set. - Admin email preview (#890).
/admin/settings/email-sending/previewlists every email the site sends — core's eight and those enabled modules declare through the newPhoenixKit.Module.email_templates/0callback (default[]; collected byModuleRegistry.all_email_templates/0,PhoenixKit.Email.Catalog) — renders the chosen one in a chosen language with sample values through the same resolution a send uses (HTML in a sandboxed iframe, text, subject), and says for each part whether it came from a database template, a host file or the built-in default, and which file overrides it. Gated bysettings.
Changed
- Core's default email copy lives in
PhoenixKit.Email.CoreTemplates(one function per email), shared by the send and the preview; the text is unchanged.
Fixed
- A dialect language preference rendered core's default copy in English (#889). A recipient
or web visitor on
es-ESmatched no Gettext catalogue and read English; the locale is now chosen byRecipientLocale.gettext_locale/1(the locale, itspt_BRspelling, then its base language), shared by the web and by emails and notifications rendered for a recipient. - A bare
{{url}}on a line of a Markdown email is documented as text, not a link (write[label]({{url}})).
i18n
- The strings the three PRs added (the Email preview page, the Branding tab, the core email labels — 69 per locale) were never extracted, so every locale showed them in English. They are extracted and translated in de, es, et, fr, it, pl and ru, and the fuzzy carry-overs the merge produced were rewritten by hand.
2.43.1 - 2026-10-01
Fixed
- Uploaded and generated media no longer ship in the Hex package.
priv/mediais excluded even when its files are ignored by Git. The release gate inspects the built package and refuses media or generated sitemaps before publication. - Restricted Media viewers cannot change another person's visible folder. Folder
colour, header and cover events use
folder-uuid; the ownership guard now checks that parameter as well as the other folder identifiers. - Wall-clock cache deadlines survive slow loads and a busy cache process.
Cache.remember/4subtracts loading time from a boundary-based lifetime and skips caching a value loaded after its deadline. An explicitCache.put/4expiry is measured when called, so waiting in the cache's mailbox cannot extend it. - Admin-page generator tests no longer overwrite a concurrently running test's repo configuration. The generator tests run synchronously.
2.43.0 - 2026-10-01
Added
Media shows each viewer only what is theirs. A holder of
mediawithout the newmedia.view_allsees, in a site library, the files they uploaded, the folders they created or that hold their files, and those folders' ancestors: in the grid, folders, tree, search, counts, trash and orphans, and on the file's own page. An Owner/Admin or a holder ofmedia.view_allsees everything, as before. Every event that names someone else's file or a folder the viewer cannot see is refused, so is changing a folder they did not create, and a hand-edited?file=link opens only a file of the library shown that the viewer may see (it opened any file, of any library, before). A trashed file's URL answers its uploader, an Owner/Admin or amedia.view_allholder; changing another person's file needsmedia.view_all. Emptying the trash and clearing orphans work for a restricted viewer on their own files only.User libraries join Media's switcher, grouped "Site" and "Mine" (
/admin/media/my/<id>). A holder ofmediawho is not an Owner/Admin is sent there from/admin/libraries; that page remains for people who holdstoragewithoutmediaand for the admin's audited list of other users' libraries. The profile's Media tab has an "Open" link on every library.Two sub-permissions of
media:media.view_all(see everyone's files in the site's libraries) andmedia.manage(Settings → Media: buckets, sizes, health). They appear under Media in the permissions matrix.Which services users may connect on their own is a site setting. Settings → Integrations has a "Personal integrations" card: a checkbox per provider that supports personal use, and the personal "add integration" page offers exactly the ticked ones. The list used to be fixed in code (Telegram and OpenRouter); until an admin saves a choice those two are still what users are offered, so nothing changes on upgrade. A provider opts in with
personal_default: true(offered until the admin chooses), and Object Storage is also offered while users may keep a library on their own bucket (personal_also_while). The page refuses a provider it did not offer, even to a hand-made event.A shared HTML layout for emails built from files and defaults (
PhoenixKit.Email.Layout). Core's auth emails and the defaults a module passes toMailer.send_from_template/4ship nohtmlpart, so they went out as plain text; they now arrive as HTML — the site's name above the body, the name and a link to the site below it, inline styles, no brand colours, no external resources, and no words of its own to translate. A text-only message is escaped, split into paragraphs and itshttp(s)://addresses linked (a link ends at invisible and bidirectional format characters, so it cannot display one address and open another). A host overrides the layout with_layout/html.htmlunder itsphoenix_kit_templatesroot (needsphoenix_kit_templates0.2.1; older releases skip the name and core's layout is used). A layout without{{{content}}}is refused with one warning.layout: falseopts out; anhtmlpart that is already a whole document, and any database template, are never wrapped. A blankhtmlortextpart (an empty override file) is now treated as missing. Seeguides/email-templates.md.Module UI standardisation, core side.
<.date_nav>— previous / today / next over a date held in the URL (stateless patch links, optional native picker,DateNav.parse_param/2clamps to min/max). Not in the global import list; import it.line_chart hover={:crosshair}— a snapping crosshair with a server-computed readout (x, value, optionalpoint_note, the rows active at that x), keyboard (arrows, Home/End, Escape), touch (tap to pin) and a polite live region; the native tooltips stay as the no-JS readout.SearchPickerdraws its list in the top layer (a modal body or overflow ancestor no longer cuts it off), closes on blur, picks on touch-up, and takesclose_on_pick,row_layout="stacked"and the input'sform/maxlength/required/inputmode.table_defaultgets atoolbar_primaryslot,bulk_actions_toolbaraprimaryslot,form_actionssubmit_disabled,form_sectionan:actionsslot, an optional title, andpage_actionshow_label.Utils.Reorderandsortable_rowtake non-UUID keys; modals take heights indvhas well asvh.Utils.Date.short/1andshort_with_year/1— localized day-month dates.
Settings → Users → Profile Page: an admin chooses which sections the user settings page shows (custom fields, email, start page, annotation reset, password, connected accounts, sessions, notifications, and the Google address inside the identity form). What is stored is the list of hidden sections, so a section added later shows up; a tab whose sections are all hidden is not offered; name and avatar cannot be hidden. The toggle is attributed to the admin. It hides the section on the page — it is not an access control.
Storage.store_from_url/2— a fetch that cannot reach the server's own network: public addresses only (Utils.PublicAddress, IPv4 and IPv6, withconfig :phoenix_kit, :blocked_ip_rangesfor ranges only your network knows), every redirect re-checked, https never downgraded to http, ports 80/443, size and time capped, bytes sniffed for the type.URLSigner.verify_url/2is the file route's own check for a file URL.Cache.remember/4— get-or-compute with a wall-clock expiry (until: {:end_of_day, "Europe/Tallinn"},:end_of_hour,:end_of_minute); errors are returned, never stored.Cache.put/4takesexpires_in:.PhoenixKitWeb.Plugs.ProbeBlock— answers scanner probes (/.env,wp-login.php,*.php) with a bare 404;/.well-known/always passes;extra:/except:adjust it.Sitemap:
config :phoenix_kit, sitemap: [extra_sources: [...]]adds sources without restating the defaults; a route withmetadata: %{sitemap: false}stays out of the sitemap. The doctor warns when robots.txt (a static file or a routed one) has noSitemap:line, and counts image sizes made by an older pipeline.Host hooks:
config :phoenix_kit, host_live_view_locale: :leavekeeps a host LiveView's own locale;host_anonymous_scope: {Mod, :fun, args}gives the host layout its own scope when nobody is signed in (display only).hidden_admin_tabsnow also covers host, legacy and runtime-registered admin tabs.
Fixed
PhoenixKit.System.Dependenciescompiles on OTP 28. The external-tools list held compiled~rsigils in a module attribute, which OTP 28 cannot escape into a function body; it is built in a function now.A file that merely starts with the letters
BMis no longer an image. A CSV or note beginning "BMI,weight…" was sniffed as a BMP and stored asimage/bmp; a BMP must also carry a valid file header.A grayscale image is no longer treated as see-through.
graycontains the letter the alpha check looked for, so black-and-white photos were written as PNG instead of JPEG.An animated GIF or WebP resized to a still format makes its file. ImageMagick wrote one file per frame and never the one asked for, so the size failed on every retry; frame 0 is used unless the target is itself a GIF or WebP.
A download whose response ends with trailers is kept. The trailers re-opened the temporary file and orphaned the downloaded one (
Storage.store_from_url/2).Cache.remember/4measures its boundary from before the load. A load straddling midnight kept yesterday's value for a day more;end_of_minute/end_of_hourare also right across the hour the clocks go back.host_anonymous_scopeno longer takes the login pages down. The host's function runs only when the layout has no scope yet, and one that raises leaves the scope absent and logs.The hidden-profile-sections read fails open on a dead pool too (it caught raises, not exits).
The profile's tabs stay on the personal integration "add" and edit pages. They disappeared after "Add integration", so the page no longer said where you were.
The Multiple Sessions setting reads "Enable multiple sessions" (it said "multi-account switcher in the header"; the switcher is in the user menu).
Image sizes keep transparency and are never enlarged. A see-through image gets a PNG (or
variant_alpha_format) size instead of a black-backed JPEG, and a size larger than its original is the original's size. Sizes made earlier keep working;VariantSets.remake_all/0remakes them (manual — it queues every size of every file — and every spec hash changed, so an ordinary revision bump of a size set also makes that set's files stale).ImageMagick is pinned to the sniffed format and limited on every call. A file is decoded only by the coder its bytes name, never one chosen from its file name; bytes nothing recognises under an
image/*claim are stored asapplication/octet-stream.The doctor no longer leaves a pooled connection with an empty
search_path. Behind PgBouncer in transaction mode its session-levelSET/RESETlanded on different backends, and a host's pages then failed with "relation does not exist" until the pool was reset; the setting is now transaction-local.PostgresPreflightno longer calls a PgBouncer login rejection "unreachable".table_defaultkeeps its toolbar on an empty plain table,gen.admin.pagestops rewriting the host's tab list and pointing gettext at the kit,PublicAddressno longer treats reserved IPv6 space as public, theSearchPickerlist no longer sticks on "Searching…" when focus is elsewhere, and phone form fields no longer zoom iOS (including kit pages inside a host layout).Core compiles on Elixir 1.18 with OTP 28.
Changed
phoenix_kit_templatesfloor is~> 0.2.1. Core's email layout looks up the host's_layoutoverride, which 0.2.0 skips.- The storage administration screens (Settings → Media: buckets, sizes, profiles, health) need
media.manage, no longer justmedia. So giving an end user Media does not hand them the bucket form.
Upgrading
- Every role that holds
mediawhen this boots is grantedmedia.view_allandmedia.manageonce (and Admin gets them with the other new keys), so nothing changes for existing roles. A role created afterwards gets neither by default: a holder ofmediaalone sees only their own files. Revokemedia.view_allfrom a role to make it so; it is not given back. - The media pickers (
MediaSelectorModaland the featured-image picker) are not filtered by viewer.
Older releases are archived by quarter in
dev_docs/changelogs/:
2026 Q3 ·
2026 Q2 ·
2026 Q1 ·
2025