PhoenixKit 1.7.110: Code tidy-up, no change for a running site
PhoenixKit 1.7.110 changes nothing on a running site. It moves a helper function in the media browser so its event handlers sit together, which the compiler had warned about.
The rest is development housekeeping: the pre-commit checks now fail on compiler warnings and unused locked dependencies, unused Dialyzer ignores are gone, and a stale entry for PhoenixKit itself left mix.lock. Update the dependency when convenient.
Full release notes: PhoenixKit 1.7.110
1.7.110 · 13 May 2026
Added
- V117 migration: document composition tables for
phoenix_kit_document_creator(PR #539)- Adds nullable
category :: varcharcolumn + index tophoenix_kit_doc_templatesso templates self-classify (financial / technical / etc.) and the template grid can filter by scope - Creates
phoenix_kit_doc_document_sections— join table snapshotting(document_uuid, template_uuid, position, variable_values, image_params)for every section of every composed document.document_uuid → :delete_allcascades sections with their parent;template_uuid → :nilify_alllets sections outlive the template (regenerate-required state). Unique(document_uuid, position)+ lookup index on(document_uuid) - Creates
phoenix_kit_doc_template_presets— named reusable section recipes scoped via(scope_type, scope_id)and optionally categorized.sectionsis a JSONB array of[%{template_uuid, position, variable_values, image_params}]. Index on(scope_type, scope_id, category) - Legacy
Document.template_uuidcolumn retained: composed docs leave itNULL, legacy single-template docs continue to use it
- Adds nullable
Fixed
- Fixed ungrouped
handle_event/3clauses inMediaBrowserby relocatingcreator_attrs/2helper to private-helpers block - Restored sitemap dynamic
<lastmod>for homepage and group listing pages (Sources.Static,Sources.Publishing)- PR #539’s merge silently re-removed
static_lastmod/1andlatest_post_date/2(a zombie revert that came back via merge conflict and got cut again from a behind-the-base fork). Result: every static URL was reportinglastmod: <today>on every crawl (a known false-freshness signal Google de-prioritizes), and every group listing was shipping without<lastmod>at all - Homepage
<lastmod>now uses a new lightweightPublishing.latest_post_date_global/0helper — single pass over each group’s posts to take maxpublished_at. Replaces the prior shape that calledPublishing.collect/1and threw away everything except the:lastmodfield (which triggered ~3× redundantlist_posts/2calls per group insidecollect/1)
- PR #539’s merge silently re-removed
Hygiene
- Routine lockfile updates (
mix.lock) - Precommit:
compile --forcereplaced withcompile --warnings-as-errors --all-warnings, addeddeps.unlock --check-unused, switched fromqualitytoquality.ci(format-check) - Dialyzer: removed 5 unused ignore filters (css_integration, process_scheduled_jobs_worker, duplicate conn_case/data_case, integrations guard_fail)
- Removed stale
:phoenix_kitself-entry frommix.lock
PhoenixKit 1.7.110. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.