Catalogue 0.32.0: Trash and restore that undo exactly what they did
Catalogue 0.32.0 makes trash and restore precise: restoring a catalogue or category brings back exactly what its trash took, and the Deleted tab works like a real trash.
Trash and restore
Every trash now records what took each row away. Restoring a catalogue or category brings back only the rows its own trash took, each to its earlier status; rows trashed on their own stay trashed. Trash, restore and permanent delete on a catalogue run one at a time.
Moving a category to Deleted now asks what happens to its items. By default they go with it, and restoring the category brings them back. You can instead keep them in the catalogue without a category, or move them to another category.
The Deleted tab
A trashed category is now one closed card that counts what its Restore brings back. The confirmation for permanent delete names what is really removed. The tab searches and sorts like the others, and a level with nothing live opens on Deleted. Delete forever on a trashed category removes only its trashed part, and keeps a subcategory that was restored on its own.
Item picker and selector
The item picker’s suggestions show each item’s photo next to its name. The item selector gets a third view, Comfy list view: the same table with a larger thumbnail. The choice is remembered per user.
Fixes
- Attribute set and supplier field blueprints can be deleted again; every delete had failed.
- Two people creating the same attribute value at once no longer both get its slug.
- The catalogue page’s row actions act only on rows of that catalogue.
- An import update that would move an item’s catalogue away from its category is refused.
- The product card marks only hidden values as archived.
- Save and exit on the category form opens the saved category, and Cancel returns to its level.
Upgrading
No migration and no change in requirements. Update the dependency. A host app can now put attachment folders and newly uploaded PDFs under a parent folder of its own, with :attachments_parent_folder and :attachments_folder_name.
Full release notes: Catalogue 0.32.0
0.32.0 · 15 September 2026
Reviews: dev_docs/pull_requests/2026/117-item-selector-comfy-view/,
118-trash-restore-deleted-tab/, 120-open-follow-up-items/.
Changed
- Trash and restore undo exactly what they did (#118). Every trash
records in the row’s
data["_trash"]what took it; a catalogue or category restore brings back only the rows its own trash took, each to its earlier status, so rows trashed on their own stay trashed. Every trash, restore and permanent delete runs under a per-catalogue lock. Details:dev_docs/guides/trash-and-restore.md. - The Deleted tab behaves as a trash (#118). A trashed category is one closed card that counts what its Restore brings back; Delete Forever’s confirmation names what is really removed; the tab searches and sorts like the others; a level with nothing live opens on Deleted and still offers Active.
- A category delete says what it does and trashes its items with it by default (#118).
- Two sessions creating the same attribute value at once no longer both
take its slug:
create_value/3locks the set (#120).
Fixed
- Attribute-set and supplier-field blueprints can be deleted again
(#120). Their two delete guards registered from separate boot tasks and
one went missing, so every delete failed with
:no_delete_guard; one boot task now registers both, and the supplier-fields guard also registers while entities is disabled at boot. - Delete Forever on a trashed category removes only its trashed part: a subcategory restored on its own is kept, moves to the end of the top level, and the trashed rows under it are re-stamped so its Restore brings them back together (#118).
- The catalogue page’s row actions (restore, Delete Forever, trash) act only on rows of that catalogue (#118).
- An importer update that moves an item’s catalogue away from its category is refused (#120).
CatalogueBrowserendersview: "comfy"as the table instead of rendering nothing (#117 review).- The product card marks only hidden values “(archived)”, not a live value that shares a hidden value’s key (#120).
- Save & Exit on the category form opens the saved category, and Cancel returns to its level (#118).
Added
- Attachment folders can be created under a host-configured parent
(
:attachments_parent_folder); lookups check parent then root. :attachments_parent_foldernow also receives the resource itself (3-arity, kind/actor/resource) when the hook module exports it, and a host can name resource folders with:attachments_folder_name— a renamed folder is still found without a stored pointer via the newAttachments.find_resource_folder/2lookup order (host name → own name under the parent → own name at the root).- Newly uploaded PDF library files are attached to the host’s PDF parent folder when one is configured; content-deduped uploads are left where they already live.
- Item picker dropdown rows show a photo thumbnail (A040 part 2). Each suggestion in the item picker’s dropdown list now renders the item’s featured-image thumbnail next to its name, the same way the picker’s own selected-item slot already does; an item without a photo renders unchanged, with no layout gap.
- Item selector: a third “comfy” view mode. Alongside the compact table and the photo-forward card grid, the item selector’s view toggle now offers “comfy” — the same table and columns, just a larger thumbnail, for browsing by photo without the card grid’s layout cost. The choice persists per user the same way “table”/“card” already did.
Catalogue 0.32.0. Install or update: {:phoenix_kit_catalogue, "~> 0.32"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.