Catalogue 0.36.0: Duplicate a whole catalogue, move items to any catalogue
Catalogue 0.36.0 lets you copy a whole catalogue in one step and move items and categories between catalogues, with safer locking around every move.
Duplicate a catalogue
The catalogues page has a new Duplicate catalogue dialog. It copies a catalogue with its categories, items, supplier rows and attribute sets, in the same folder, with “(copy)” after its name, then “(copy 2)” and so on. You can turn off Copy SKUs, Copy images and files and Copy suppliers and purchase prices, and choose Start the copy archived. Images and files are shared with the original, not duplicated. Not copied: items in Deleted, comments, history and links to other systems, such as a shop’s product ids. The copy’s slugs are left empty. A second duplicate of the same catalogue while one is running is refused.
Move to any catalogue
The item form, the category form and the bulk Move dialogs on the catalogue page now offer every live catalogue of the same kind. A category can land at the top level or under a parent there. Standard and smart catalogues cannot exchange items or categories, and a move into a trashed catalogue or category is refused.
For developers, extensions get an optional duplicate_data/2 callback, so an external id never ends up on two rows after a copy.
Fixes
- Item photos no longer shrink to zero width in the picker’s table views.
- Trash and restore after a move or a partial restore now bring back the right rows and no others.
- A forged id no longer crashes the catalogues page, the bulk item move or the category form’s parent picker.
- The forms’ collapsible sections stay open when the page redraws.
Upgrading
No migration and no change in requirements. Update the dependency. Every move now locks both catalogues and the moving rows, so concurrent moves wait for each other instead of colliding.
Full release notes: Catalogue 0.36.0
0.36.0 · 17 September 2026
Review: dev_docs/pull_requests/2026/124-duplicate-and-move-anywhere/.
Added
- Duplicate a whole catalogue (#124). The catalogues page copies a catalogue with its categories, items, supplier rows and attribute sets in one transaction, under the source’s lock. The copy is named “(copy)”, “(copy 2)”, … in the content’s primary language. Its slugs are left empty, and references between copied rows are re-pointed at the copies. The dialog can leave out SKUs, files or suppliers, and can start the copy archived. Files are linked, not duplicated. A second Duplicate of the same catalogue while one runs is refused.
- Move items and categories to any catalogue (#124). The item form, the category form and the detail page’s bulk Move modals offer every live catalogue of the same kind (standard or smart), and a category can land under a parent there. Both catalogues are told about the move.
Extension.duplicate_data/2(#124), an optional callback. Every copy passes each extension’sdatanamespace through it, even while the extension is disabled, so an external id (a Shopify product, say) never ends up on two rows. A callback that raises, throws, exits or returns something other than a map ornildrops its namespace from the copy.
Changed
- Every move now takes both catalogues’ locks in sorted order and row-locks the moving subtree. A move into a trashed catalogue or category, or into a catalogue of the other kind, is refused.
- Creating a subcategory holds its parent
FOR SHARE, so it cannot be left behind by a concurrent move of the parent’s tree. - The forms’ collapsible sections stay open across a re-render.
- Dependencies: phoenix_kit 2.28.0, phoenix_kit_entities 0.4.16, etcher 0.14.0, fresco 0.12.0, tessera 0.3.6 (lock only).
Fixed
- Item photos no longer collapse to zero width in the picker’s table views (#124).
- A restore that had to leave an item behind (its category still trashed under another root) no longer leaves it stamped for the restored root, so a second trash and restore cannot bring it back under a trashed category.
- A category move now restamps the trashed rows it carries out from under their trash root (a category restored on its own under a trashed parent, then moved), so a Restore still reaches them.
- A bulk category move re-checks its catalogue scope under the row lock.
- A forged uuid no longer crashes the catalogues page (Duplicate, trash), the detail page’s bulk item move or the category form’s parent picker.
- An extension whose
key/0throws or exits no longer aborts a copy.
Catalogue 0.36.0. Install or update: {:phoenix_kit_catalogue, "~> 0.36"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.