Manufacturing 0.4.3: Machine files under a parent folder of your choice
Manufacturing 0.4.3 lets an app keep the attachment folders of machines under a parent folder it chooses, instead of at the root of the media storage.
The new setting config :phoenix_kit_manufacturing, :attachments_parent_folder, {Mod, :fun} names a function that is called with "machine" and the user, and answers {:ok, parent_folder_uuid} or nil for the root. New folders are then created under that parent. Lookups check the parent first and the root second, so folders made before the setting was turned on are still found. A function that raises is logged and the root is used, so the machine form still opens.
Without the setting nothing changes.
Full release notes: Manufacturing 0.4.3
0.4.3 · 14 September 2026
Added
- Attachment folders (machines) can be created under a host-configured
parent folder instead of always landing at the storage root:
config :phoenix_kit_manufacturing, :attachments_parent_folder, {Mod, :fun}, called asMod.fun("machine", actor_uuid)and returning{:ok, parent_folder_uuid}ornil. Folder lookups by name now check the parent first and the root second, so folders created before the setting is turned on are still found. No behaviour change without the config. A hook that raises is logged and falls back to the root instead of crashing the machine form.
Changed
- Updated dependencies:
phoenix1.8.14,phoenix_kit2.23.1,phoenix_kit_entities0.4.13,beamlab_countries1.2.1.
Manufacturing 0.4.3. Install or update: {:phoenix_kit_manufacturing, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.