PhoenixKit 2.8.0: Breadcrumbs in the admin header and a column editor
PhoenixKit 2.8.0 turns the admin header into a breadcrumb trail for pages nested more than one level deep, adds a reusable window for choosing table columns, and fixes extra parameters that crept into page addresses.
Breadcrumbs in the admin header
The admin header showed the section and the page title. Pages deeper than that can now pass extra crumbs, each with a label and a link, through a new page_crumbs attribute on the layout. A drilled-down page then reads like … / parent / page instead of just its own title.
On smaller screens the header now collapses step by step. Below the large breakpoint, the site name and the “Admin Panel” label give way to a … link to the admin home. On phone widths the trail is cut from the left, so the current page stays visible instead of the header falling back to the bare title.
Choosing table columns
The live column editor first built for the Catalogue module is now a core component, <.column_settings_modal>, that any module can use. The window has a Shown list, reordered by dragging the handle or trimmed with Remove, next to an Available list where a click adds a column. Reset and Close sit at the bottom, and changes apply at once, with no apply step. The module keeps control of which columns exist, which are selected and where the choice is saved.
Row menus in tables can now use patch links, which stay in the same LiveView, and so can the new crumbs.
Cleaner page addresses
Pages that keep their filters in the address, such as a search, picked up the record id from the path as an extra query parameter: ?q=oak became ?q=oak&uuid=…. Those filters are now read from the query string only, so the address stays as it was.
Upgrading
No migration and no configuration. Update the dependency. Pages show extra crumbs only once they pass page_crumbs; the collapsing header applies to every admin page.
Full release notes: PhoenixKit 2.8.0
2.8.0 · 16 August 2026
The admin header becomes a real breadcrumb for drill-down pages, and catalogue’s live column editor lands in core as a reusable modal. UrlState stops leaking router path params into every patched query (#719).
Added
-
page_crumbsonapp_layout. Extra%{label, path | patch}crumbs betweenpage_sectionand the page title for pages nested deeper than one level. The last crumb stays visible belowsm; earlier crumbs and the section drop first, so a drilled page reads… / parent / pageinstead of the bare title (#719). -
Core.ColumnSettings(<.column_settings_modal>). Live column-configuration modal: Shown list (SortableGrid drag-reorder, remove) beside Available (click to add), Reset + Close, no Apply step. Labels accept strings or 0-arity functions. The consumer owns the catalog, selection, and persistence (#719). -
table_row_menu_linkpatchattr. Same-LiveView navigation for menus that drill viapush_patch(#719).
Changed
- Admin header progressive collapse. Below
lgthe site name and “Admin Panel” give way to a home-linked…; belowsmthe trail truncates from the left rather than collapsing to the page title (#719).
Fixed
-
UrlState extras come from the URI query string, not LiveView’s merged params map. A
/:uuidsegment was being re-encoded into every patched URL (?q=oakbecame?q=oak&uuid=<uuid>).decode/2’s spec now admits:not_mounted_at_router(#719). -
ColumnSettings Shown list is actually sortable. Rows use the
sortable-itemclass SortableGrid reads; a custom.col-itemwas silently ignored. Drag starts on.pk-drag-handleonly (post-merge review of #719). -
page_crumbsacceptpatch:for same-LiveView drill trails, matching the row-menu attr the PR already added (post-merge review of #719). -
column_settings_modalis imported with the other list-UI primitives (post-merge review of #719).
PhoenixKit 2.8.0. Install or update: {:phoenix_kit, "~> 2.8"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.