PhoenixKit 2.31.1: Breadcrumb switchers in the admin header
PhoenixKit 2.31.1 adds a switcher that admin pages can attach to a breadcrumb in the header, and translates the Catalogues module name on the Modules page.
A page that uses it shows a small arrow beside a breadcrumb segment. It opens a searchable list of the other items on that level, such as the other catalogues beside the current one, with the current one ticked. The search ignores case and accents, so kasitoo finds Käsitöö, and Enter opens the first match. Every row is a real link, so middle-click and copying the link work. On a phone the list opens as a full-screen sheet. Pages that do not use it look exactly as before.
The Modules page showed the catalogue module’s new name, “Catalogues”, in English in every language. It is now translated, and the old name stays for older catalogue releases.
Full release notes: PhoenixKit 2.31.1
2.31.1 · 19 September 2026
Added
- Breadcrumb level switchers in the admin header (#835). A ▾ beside a
breadcrumb segment that opens a searchable list of the other things on that
level and switches to one — GitHub’s repository switcher, for any trail: the
other catalogues beside this one, the sibling categories beside this
category. The header’s breadcrumb is core’s, so the component lives here and
every page, core’s own and a module package’s, can reach it.
PhoenixKitWeb.Components.Core.CrumbSwitcher.crumb_switcher/1— the ▾, the panel (PopoverPanel: instant, Escape and a click away close it, a full-screen sheet on a phone), a heading, a search box and the list with the current row ticked. Every row is a realnavigateorpatchlink, so middle-click and copy-link keep working.LayoutWrapper.app_layoutgrows apage_title_switcherattr and honors a:switcheron anypage_crumbsentry;layouts/admin.html.heexthreads the new attr so plugin LiveViews can pass one. A page that passes neither renders exactly as before.- Two JS hooks.
ListFilterfilters the list on the client, ignoring case and accents (kasitoofindsKäsitöö); Enter opens the first match, but not an Enter that confirms an IME composition. It re-filters whenever its list re-renders, because the inline styles it sets are not the sticky kind LiveView re-applies after a patch — morphdom strips them, and an unfiltered list under a query that still readskitchwould open the wrong row.CrumbSwitcherdoes the open/close bookkeeping however the panel opened or closed: the search starts empty and takes focus, focus returns to the ▾ on close,aria-expandedfollows the panel, and Tab stays inside it. - No new strings: the switcher reuses
Search...andNo results., both already translated in all eight locales.
Changed
- The catalogue module is named “Catalogues” on the Modules page (#835).
The module took its pages’ name, and the Modules page translates each
module’s
module_name/0through core’s catalogs, which knew only “Catalogue” — so every locale but English showed the new name in English. Both msgids are now registered and translated in all eight locales; the old one stays, because older catalogue releases still send it.
Fixed
- Gettext source references for the switcher’s reused strings. #835
branched before 2.31.0’s extract/merge round-trip, so
Search...andNo results.carried no reference tocrumb_switcher.exin the.potor any.po. Nothing was mistranslated, but the next extract would have mixed a thousand-line reference diff into someone else’s work. Round-trip re-run: 0 new, 0 removed, 0 fuzzy, reference comments only.
PhoenixKit 2.31.1. Install or update: {:phoenix_kit, "~> 2.31"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.