Warehouse 0.4.3: Document folders under a parent folder of your choice
Warehouse 0.4.3 lets an app keep the file folders of warehouse documents under a parent folder it chooses, instead of at the root of the media storage.
The new setting config :phoenix_kit_warehouse, :storage_parent_folder, {MyApp.Media, :for_warehouse} names a function that gets the document kind and the user, and answers {:ok, parent_folder_uuid} or nil for the root. Without it, folders stay at the root as before. A document’s existing root-level folder moves under the parent the next time its Files panel opens, and keeps its files. A function that fails or answers something else is logged and treated as the root, so the panel still opens.
Also fixed: a trashed folder with the same name as a live one made the folder lookup fail and left the Files panel spinning. Trashed folders are now ignored.
Full release notes: Warehouse 0.4.3
0.4.3 · 14 September 2026
Added
- Document folders can live under a host-configured parent folder.
config :phoenix_kit_warehouse, :storage_parent_folder, {MyApp.Media, :for_warehouse}is called asfor_warehouse(resource, actor_uuid)(resourceone of:goods_issue | :goods_receipt | :inventory | :supplier_order | :internal_order | :transfer) and returns{:ok, parent_folder_uuid}ornilfor the storage root. Without the config folders stay at the root. Existing root-level document folders — including ones already linked to a document — are moved under the parent the next time the document’s Files panel opens, so they keep their files. A hook that raises or returns a non-UUID is logged and treated as the root instead of hanging the Files panel.
Fixed
- Folder name lookup ignores trashed folders. A trashed folder sharing
a live folder’s name (allowed by core’s unique index) made the lookup
raise
Ecto.MultipleResultsError, leaving the Files panel spinning.
Warehouse 0.4.3. Install or update: {:phoenix_kit_warehouse, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.