Catalogue 0.19.0: Bulk move and duplicate, supplier comments and live refresh
Catalogue 0.19.0 lets admins move and copy many items and categories at once, shows supplier prices in the item list, gives each supplier on an item its own comment thread, and keeps more pages up to date without a reload.
Bulk Move and Duplicate
On a catalogue’s page, selected items and categories now have Move and Duplicate actions. A copied item keeps its translated names, with a copy suffix in each language, and brings its current supplier rows, attribute sets, catalogue rules and files. The files are linked from a new storage folder, not uploaded again. A copied category brings everything below it. Bulk actions only accept items and categories from the catalogue you are on.
A new Supplier price column shows the lowest to highest current supplier price for each item, with each currency listed separately.
Comments per supplier
A comment on a supplier attached to an item now goes to a thread for that item and supplier, instead of the supplier’s company thread. The thread survives price changes and comes back if the same supplier is attached again. Removing a supplier from an item now closes its row instead of deleting it. The comments need the Comments module installed.
Live refresh
More pages update by themselves when something changes in another tab: bulk actions, file uploads and removals, AI translations, imports, supplier rows and the item form.
Fixes
- Some dropdowns on the catalogue page did nothing, because the choice never reached the server.
- Deleting a category while moving its items into one of its own subcategories left live items in a deleted category. This is now refused.
- Two people changing the same supplier row at once could overwrite each other.
- A first file uploaded in another tab did not show on an open form.
- Some actions closed with an error after their dialog was closed.
Upgrading
No migration. Update the dependency. Install phoenix_kit_comments if you want supplier comments; the catalogue works without it.
Full release notes: Catalogue 0.19.0
0.19.0 · 24 August 2026
Added
- Per item × supplier comment threads (#78) — a comment on an attached
supplier is filed on its own
phoenix_kit_commentsthread ("catalogue_item_supplier"), not the CRM company’s. The thread uuid lives initem_supplier_info.metadata["comment_thread_uuid"], survives price revisions, and is resumed when the same supplier is re-attached. Removing a supplier closes the row (valid_to) instead of deleting it.resource_links/0registers the Comments-admin / Activity back-link resolver with core — no host config line. Requiresphoenix_kit_commentsat runtime for the UI; it is a test-only Mix dep so the library still compiles without the package. - Bulk Move and Duplicate for categories and items on the catalogue
page, plus a Supplier price column (min–max of current supplier
rows, currencies listed separately).
Catalogue.Duplicationcopies an item with its multilang data (names suffixed per language), current supplier rows (fresh comment thread), attribute-set attachments, catalogue rules, and a new Storage folder ofFolderLinks to the source’s files. A category copy brings its subtree. - Live refresh of remaining stale surfaces: bulk ops on other tabs, attachment uploads/removals, AI translations, the import wizard’s crash path, orphan-attachment prunes, the PRO100 loader (broadcasts after commit), supplier-row writes, and the item form (supplier rows, files, categories).
Fixed
- Bulk actions accepted a uuid from another catalogue — every bulk
path on the catalogue page now takes the page’s catalogue as a scope
(
:wrong_catalogue_scopeper entry). - Modal disposition/target handlers crashed with
KeyErrorafter the modal closed (%{modal | …}on%{}). - Duplication logged activity inside the transaction (core’s
Activity.log/1inserts and broadcasts at once) and stamped"(copy)"in the acting admin’s locale into every language. Logs are flushed after commit; the suffix is rendered per language ("(koopia)","(копия)"). push_event("bulk_select:clear")is a no-op in core’sBulkSelectScopehook — the scope id carries abulk_epochthat remounts it after every bulk op. Core follow-up: add the handler.<select phx-change>pickers sat outside a<form>, which LiveView 1.2’s JS rejects — the choice never reached the server.set_primary/2/revise_unit_cost/3raced a concurrent close — both now lock-reload underFOR UPDATE. Category Duplicate takesFOR SHAREon the target parent, matchingcreate_item.trash_category(items: {:move_to, child})left live items in a deleted category — refused as:move_target_in_subtree; pickers accept only offered targets.- A first file upload in another tab did not appear on a form that
had no
files_folder_uuidyet —Attachments.refresh_files/1now resolves the deterministic folder name. - Item-form delete / set-primary / history accepted a uuid from another item’s supplier row — scoped to rows this form rendered, same as the comments action.
See PR #78 for the full findings.
Catalogue 0.19.0. Install or update: {:phoenix_kit_catalogue, "~> 0.19"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.