Skip to content

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 :: varchar column + index to phoenix_kit_doc_templates so 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_all cascades sections with their parent; template_uuid → :nilify_all lets 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. sections is a JSONB array of [%{template_uuid, position, variable_values, image_params}]. Index on (scope_type, scope_id, category)
    • Legacy Document.template_uuid column retained: composed docs leave it NULL, legacy single-template docs continue to use it

Fixed

  • Fixed ungrouped handle_event/3 clauses in MediaBrowser by relocating creator_attrs/2 helper 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/1 and latest_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 reporting lastmod: <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 lightweight Publishing.latest_post_date_global/0 helper — single pass over each group’s posts to take max published_at. Replaces the prior shape that called Publishing.collect/1 and threw away everything except the :lastmod field (which triggered ~3× redundant list_posts/2 calls per group inside collect/1)

Hygiene

  • Routine lockfile updates (mix.lock)
  • Precommit: compile --force replaced with compile --warnings-as-errors --all-warnings, added deps.unlock --check-unused, switched from quality to quality.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_kit self-entry from mix.lock

PhoenixKit 1.7.110. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.