Warehouse 0.4.1: An In stock menu entry, product cards and who-did-it columns
Warehouse 0.4.1 makes the warehouse admin easier to find your way around: the stock list gets its own In stock entry in the sidebar, and a click on a stock row opens the item’s product card.
The Warehouse section of the sidebar now stays open on every warehouse page, and In stock leads back to the stock list from any of them. An open stocktake keeps its own menu entry lit, as other documents already did. The product card is the catalogue’s own read-only card, with the item’s photos, files and fields.
The document lists offer two new columns, Created by and Responsible, hidden by default and sortable. Quantities on the stock page, the document forms and the turnover report no longer show trailing zeros, so 5.000000 reads 5. The item picker on stocktakes, internal orders and transfers shows its count of picked items again.
Full release notes: Warehouse 0.4.1
0.4.1 · 11 September 2026
Fixed
- Test router now gates admin routes like production (#27). The test
router’s
live_session :warehouse_testwired the public:phoenix_kit_mount_current_scopeon_mount instead of the:phoenix_kit_ensure_adminevery real deployment uses for plugin admin tabs, so a non-admin user reached admin-only LiveViews in tests only. Fixing the gate surfaced a latent fixture-ordering bug (the first user registered in a sandboxed transaction becomes Owner, so a “regular” user fixture created before the admin fixture was silently promoted) — both fixed together, with one test rewritten to assert the real redirect behavior instead of a successful read-only render. - Module identity tests caught up with the warehouse UI pass (#28):
admin_tabs/0‘s count (38 → 39), the root tab’smatch(:exact→:prefix), andColumnConfig.Inventories.all_column_ids/0(missing thecreated_by/performed_bycolumns). Also registers"In stock"intranslatable_labels/0— the new root subtab’s label, otherwise invisible tomix gettext.extractand silently rendered in raw English. - Restored the item-selector’s cart-count tray, lost silently when
phoenix_kit_catalogueflippedItemSelectorModal’sshow_traydefault tofalse. All three embeds (inventory, internal order, and transfer forms) now passshow_tray={true}explicitly. mix test’s catalogue tables were missingphoenix_kit_catalogue0.19+’s own migration chain (the per-languageslugcolumn), becausetest/test_helper.exsonly replayed core’s versioned migrations. 144 of 813 tests were failing on every catalogue item insert. Addedtest/support/catalogue_migration.exto run catalogue’s chain throughEcto.Migrator, mirroringphoenix_kit_crm’s test-boot pattern.mix precommitwas actually red (credo --strictexit 8): sixColumnConfig.*.columns/0functions exceeded the cyclomatic-complexity ceiling after thecreated_by/performed_bycolumns landed. Nobody caught it because checking withmix precommit | tailreportstail’s exit code, notmix’s. Fixed by extracting each column literal into its own named function across all sixcolumn_config/*.exmodules — no behavior change.
Warehouse 0.4.1. Install or update: {:phoenix_kit_warehouse, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.