Skip to content

Manufacturing 0.3.3: Machines list search and sorting are kept in the address

Manufacturing 0.3.3 keeps the search and sort order of the machines list in the page address, so a filtered list survives a reload, can be shared as a link, and the browser’s Back button returns to the previous search.

The address gains ?q=, ?sort= and ?dir=. The per-column filters stay out of the address for now.

Also fixed: hiding the column the list was sorted by could leave the list unchanged, or sorted by a column no longer shown while the sort marker sat on another one. The list now falls back to the first visible column that can be sorted and reloads. Every sortable column header can now be clicked.

With core 1.7.231, the Manufacturing row in the admin permissions matrix shows its label in the admin’s language, using the translation settings the module declared in 0.3.2.

Upgrading

The list now uses PhoenixKit’s PhoenixKitWeb.Live.UrlState, which first shipped in core 1.7.231: update core to 1.7.231 or later with this release.

Full release notes: Manufacturing 0.3.3

0.3.3 · 5 August 2026

Added

  • The machines list’s search and sort now live in the query string (?q=, ?sort=, ?dir=) via core’s PhoenixKitWeb.Live.UrlState, so a filtered list is a real URL — shareable, reload-proof, and Back returns to the previous query instead of leaving the page (PR #6). The list loads in handle_url_state/2, so first paint, a shared link and a Back press all take one code path. Per-column filter values deliberately stay out of the URL — compound values need a nested encoding that hasn’t been designed yet.
  • ColumnConfig.sortable_column_ids/0, alongside the existing all_column_ids/0.

Fixed

  • A column-modal save or a filter change could leave the machines list stale when the active sort column was hidden: __view_config_changed__/1 relied on the resulting URL patch to reload, but a patch that resolves to the current state is skipped by UrlState.reload?/3, and nothing else recomputed the list. It now reloads directly when there is no URL change to make.
  • The sort fallback for a hidden sort column picked the first visible column, which can be the non-sortable types — sanitized back to the hidden name, leaving the list sorted by an invisible column with the sort control sitting on an unrelated one. It now picks the first sortable visible column.
  • The ?sort= whitelist is derived from ColumnConfig.Machines at compile time instead of being a hand-copied second list, so adding a sortable column can no longer silently leave its header un-clickable.

Changed

  • Bumped the phoenix_kit lock pin to 1.7.231 and dropped eight lock entries orphaned by the upgrade (igniter and its transitive deps).
  • Removed the .dialyzer_ignore.exs entry for permission_metadata/0’s callback_type_mismatch: phoenix_kit 1.7.231 ships core PR #651, which widens permission_meta() to accept gettext_backend/gettext_domain, so the permission-label translation added in 0.3.2 is now live rather than inert.

Manufacturing 0.3.3. Install or update: {:phoenix_kit_manufacturing, "~> 0.3"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.