Warehouse 0.4.2: The item picker shows the catalogue tree on every form
Warehouse 0.4.2 fixes the item picker on internal orders and transfers: it now opens with the catalogue tree to browse, as on stocktakes, instead of a flat search box.
The picker on these two forms also remembers each user’s view preferences now. On the stock page, a catalogue lookup that fails while opening a product card leaves the card closed instead of crashing the page.
User names in the warehouse lists now read the same as in every other PhoenixKit admin list. Nothing else changes for a running site: the lists keep the same columns, defaults, sorting and filters.
Full release notes: Warehouse 0.4.2
0.4.2 · 13 September 2026
Fixed
- Internal order and transfer forms now open the item picker with the
catalogue tree. Both passed the catalogue’s
ItemSelectorModala scope of just%{statuses: ["active"]}, which the modal renders as a flat search box with no group navigation (its category tree is only built for a scope that names its catalogues). The stocktake form had already been fixed to pass every catalogue; the same scope now comes from one sharedPhoenixKitWarehouse.Web.ItemSelectorScope.build/0in all three forms, and the two forms also passcurrent_user, so the picker’s per-user view preferences persist there too. StockLive’s product-card click is guarded like every other context read in the LiveViews: a catalogue lookup that raises leaves the card closed and logs at:debuginstead of crashing the stock page.
Changed
- The six document column registries share their column definitions.
number,status,date,posted_at,lines_count,note,created_by,performed_by,supplier,internal_orderandlocationwere byte-identical copies acrosscolumn_config/*.ex; they are now constructors inPhoenixKitWarehouse.ColumnConfig(imported byuse), and each registry only spells out its own columns and their order. Column ids, defaults, sort keys and filters are unchanged. - One
sort_headercomponent (Web.Components.SortHeader) replaces the identical private copy each of the seven list LiveViews carried. Web.UserNamesuses core’sUser.display_name/1instead of its own name-resolution rules, so a user reads the same in a warehouse list as in every other PhoenixKit admin list. A uuid with no matching user still renders as a short stub. The stocktake form’s referenced-user lookup now fetches both users in one query.- Regenerated the gettext catalogue: eleven msgids left over from the warehouse-local item picker removed in 0.4.0 are gone. No live string changed.
Warehouse 0.4.2. Install or update: {:phoenix_kit_warehouse, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.