PhoenixKit 1.7.100: General settings save with an empty site icon
PhoenixKit 1.7.100 fixes saving General settings. With Site Icon or Default Tab Title left empty, the whole save was rolled back. Both may now stay empty.
Migration V103 lets catalogue categories have a parent, so the Catalogue module can build category trees of any depth. The media selector can be limited to one folder, and files uploaded through it land in that folder. Audio and other file types can now be stored, besides images, videos, documents and archives.
In the sitemap, the home page now always carries today’s date, and publishing group pages carry no date.
Upgrading
Run mix phoenix_kit.update for V103.
Full release notes: PhoenixKit 1.7.100
1.7.100 · 22 April 2026
Added
- V103 migration: nullable self-FK
parent_uuidonphoenix_kit_cat_categorieswith b-tree index on(parent_uuid)for arbitrary-depth category trees. Existing rows stayNULLand become roots — no backfill. No DB-levelON DELETEcascade (subtree cascades are owned by the context layer so they go through soft-delete + activity log) (PR #503) scope_folder_idattr onPhoenixKitWeb.Live.Components.MediaSelectorModal— filters the browse query to the given folder plus any files reached viaFolderLink, and assigns newly-uploaded files into that folder (adopt as home if orphan, else add aFolderLink). Plugins scoping the picker to a single domain object (e.g. a catalogue item) pass this after lazy-creating their folder (PR #503)PhoenixKit.Settings.Setting.optional_settings/0accessor exposing@optional_settingsfor invariant tests- Invariant test (
test/phoenix_kit/settings/setting_test.exs) asserting every empty-string default inPhoenixKit.Settings.get_defaults/0is also in@optional_settings, to prevent the class of bug fixed in PR #502 from recurring
Changed
PhoenixKit.Modules.Storage.Filechangesetfile_typeallowlist widened from["image", "video", "document", "archive"]to include"audio"and"other"so non-image/video uploads bucket cleanly (PR #503)MediaSelectorModal.load_files/2refactored into four composablescope_files_by_{user,folder,type,search}helpers — credo cyclomatic-complexity fix from adding the new scope branch (PR #503)
Fixed
- Settings batch save no longer rolls back when
site_icon_file_uuidordefault_tab_titleis left empty on the General Settings form. Both keys added to@optional_settingsinPhoenixKit.Settings.Settingand seeded with empty-string defaults inPhoenixKit.Settings.get_defaults/0(PR #502) MediaSelectorModal.maybe_set_folder/2errors (from thefolder_uuidupdate orFolderLinkinsert) now log a warning viawarn_on_folder_error/3instead of being silently discarded by_ =. Previously, a failed scope assignment after a successful upload left no trace
PhoenixKit 1.7.100. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.