Skip to content

Catalogue 0.31.3: Item form no longer crashes on a value without a slug

Catalogue 0.31.3 fixes a crash on the item form caused by attribute set values that have no slug.

Such values turned up in live data, although the catalogue itself never creates them. Clicking one on the item form crashed and reloaded the page, and every unsaved attribute choice was lost. The value now shows as a disabled chip with the hint “This value has no slug and cannot be selected”, and a malformed click is ignored.

When a set had two or more values without a slug, they shared one swatch picture, so a chip could lose its swatch or show another value’s. Each now shows its own, and the disabled chip no longer looks clickable.

No change in requirements. Update the dependency.

Full release notes: Catalogue 0.31.3

0.31.3 · 14 September 2026

Review: dev_docs/pull_requests/2026/114-value-without-slug-crash/.

Fixed

  • A value without a slug no longer crashes the item form (#114). An attribute set value whose slug column is NULL (seen in live data; the catalogue’s own value paths never produce one) used to render its checkbox with no phx-value-key; clicking it sent a toggle_value_selection payload the handler had no clause for, crashing and remounting the LiveView and discarding every unsaved staged selection with it. The chip now renders disabled instead, and the handler ignores a malformed payload rather than crashing.
  • With two or more slugless values in one set, each chip shows its own swatch thumbnail. They used to share one thumbnail slot, so a chip could lose its swatch or show another value’s. The disabled chip also drops the pointer cursor and hover highlight of a clickable one.

Catalogue 0.31.3. Install or update: {:phoenix_kit_catalogue, "~> 0.31"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.