PhoenixKit 1.7.175: Advanced sitemap settings in the admin
PhoenixKit 1.7.175 makes four sitemap settings editable from the admin. Before, changing them meant editing the database by hand.
A new Advanced section on the sitemap settings page holds Router Discovery: Exclude Patterns, Protected Pipelines, Custom URLs and Static Routes, each with its own save button. An exclude pattern that is not a valid regular expression is now refused with a message, instead of being dropped later without a word. Pipeline names may only contain characters that are safe in a name.
Sitemap sources from other modules can now declare settings of their own, which the page shows on its own. No built-in source uses this yet.
Full release notes: PhoenixKit 1.7.175
1.7.175 · 6 July 2026
Added
- Sitemap settings page now exposes Router Discovery exclude patterns,
protected pipelines, custom URLs, and static routes. These four settings
(
sitemap_router_discovery_exclude_patterns,sitemap_protected_pipelines,sitemap_custom_urls,sitemap_static_routes) previously had no admin UI — changing them required editing the database directly. They’re now editable from a new “Advanced” section on/admin/settings/sitemap, with the exclude-patterns field validated againstRegex.compile/1before saving (an invalid pattern is rejected with an inline error instead of being silently dropped later) and pipeline names restricted to identifier-safe characters. - Sitemap sources can now declare their own settings via
PhoenixKit.Modules.Sitemap.Sources.Source.sitemap_settings_schema/0. This new optional callback lets a source module (built-in or contributed by another package, e.g. an Entities module) describe boolean/string/integer settings with a label, help text, and default; the sitemap settings page discovers and renders them automatically, reading/writing throughPhoenixKit.Settingsthe same way built-in settings work. No core source implements it yet — this is purely an extension point for settings that don’t already have a home in the core UI.
Fixed
- Toggling a source-contributed boolean setting no longer crashes the sitemap
settings page when the field declares a non-boolean default. The extension
toggle handler now reads the current value through the same rescue-protected
path the render uses, so a source that declares
%{type: :boolean, default: nil}(allowed by theterm()default type) can’t raiseFunctionClauseErrorfromSettings.get_boolean_setting/2’sis_boolean/1guard on click.
PhoenixKit 1.7.175. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.