Catalogue 0.31.0: Archive and restore attribute sets
Catalogue 0.31.0 lets you retire an attribute set without deleting it, and keeps archived or trashed values visible on the items that already use them.
Archive and restore attribute sets
The Attributes tab gets Archive and Restore row actions, a Show archived toggle and Archived badges. A set can be archived while items still use it; deleting it for good stays refused. The item form no longer offers an archived set for a new attachment, while one that is already attached keeps showing, with a badge.
Hidden values stay on their items
When a value is archived or trashed, items that had it selected keep it. The product card, the set’s Items popup and the item form still show it; the popup and the form mark it as archived, and the form can remove it. It cannot be added again. When a value is deleted for good, the selections that pointed at it are cleaned up.
The Translations page now includes archived sets and hidden values.
Fixes
- A trashed or archived attribute value no longer comes back published. The migration from the old attribute groups, which runs again on every Attributes tab visit, could not see those values and recreated them.
- The item list’s Attributes column shows the attached sets’ selected values, or the set’s name when nothing is selected, instead of a dash. It was reading the old attribute group table.
- A live value and a trashed or archived copy with the same slug no longer let the old label overwrite the live one.
Known issue
Detaching a set that the legacy migration attached from an old attribute group assignment does not stick: the next visit to the Attributes tab attaches it again while the old assignment row exists.
Upgrading
No migration and no change in requirements. Update the dependency. On first boot, existing attribute sets are stamped once so the entities admin can link back to them.
Full release notes: Catalogue 0.31.0
0.31.0 · 13 September 2026
Attribute sets get a soft lifecycle (#108), and two attribute-surface bugs
are fixed (#109). Reviews: dev_docs/pull_requests/2026/108-*/ and
109-*/.
Added
- Archive and restore attribute sets.
Catalogue.archive_attribute_set/2andrestore_attribute_set/2flip the blueprint’s status (allowed while items are attached; hard delete stays refused). The Attributes tab has Archive/Restore row actions, a “Show archived” toggle and badges; the item form no longer offers an archived set for a new attachment, while an attached one keeps rendering, badged.list_attribute_sets/1takes:status(nil— the default, non-archived —:archivedor:all). - Hidden values stay resolvable. A resolved set carries
hidden_values(archived and trashed values) next to active-onlyvalues, and a selection that points at a hidden value survives. The product card, the set’s Items popup and the item form keep rendering it; the popup and form mark it and the form can remove it.list_attribute_set_hidden_values_for/2is the batched read. Catalogue.prune_orphan_attribute_set_value_slugs/1, run byOrphanPruneron entities’ data-deletion event, removes selections that point at a value deleted for good.- New set blueprints carry
settings["managed_path"]so the entities admin can link back here; a one-time boot backfill stamps existing sets. Catalogue.attribute_set_presence/1andattribute_group_names/1.
Fixed
- A trashed or archived attribute value no longer comes back published. The legacy migration’s value top-up, which re-runs on every Attributes tab visit, checked existence with a read that hides archived and trashed rows (#109).
- The item list’s “Attributes” column shows the attached sets’ selected values (or the set’s name when nothing is selected) instead of a dash — it was reading the legacy attribute-group table (#109). A selected value that was later archived or trashed keeps its label there too, rather than reading as “whole set applies” (post-merge).
set_attribute_set_selection/4keeps a hidden value an attachment already holds but refuses to add one, in the context rather than only in the item form (post-merge).- Slug collisions between a live value and trashed or archived copies no longer let a stale label overwrite the live one.
- The Translations page includes archived sets and hidden values.
Known issue
- Detaching a set that the legacy migration attached from an attribute-group assignment does not stick: the next Attributes tab visit re-attaches it while the legacy assignment row exists.
Catalogue 0.31.0. Install or update: {:phoenix_kit_catalogue, "~> 0.31"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.