Catalogue 0.28.4: Saving a form no longer overwrites newer data
Catalogue 0.28.4 stops the item and category forms from overwriting data that changed after the page was opened.
On Save, the forms wrote back the whole stored data of the record as it was when the page loaded. Anything written meanwhile, such as the translation sweep’s record of what is translated or another module’s own data, was lost. A save now re-reads the record and keeps every part the form does not show, while still applying your edits.
Also fixed:
- An AI translation followed by a quick Save no longer resets the record’s translation status to what it was before.
- Clearing the featured image or the media order and saving now really clears it.
No change in requirements. Update the dependency.
Full release notes: Catalogue 0.28.4
0.28.4 · 10 September 2026
Fixed
- The item/category form no longer clobbers
dataon Save with a stale page-load snapshot:Catalogue.update_item/3/update_category/3gain a:data_owned_keysoption that re-reads the row inside the write transaction and preserves any top-leveldatakey the form didn’t actually render (a translation fingerprint written by the sweep worker, a sync’s own namespace, …), while still applying the form’s own edits and honoring an explicit “clear this field” (#106). - An AI-translate action followed by a Save moments later no longer reverts
_translation_fingerprintsto the pre-translate snapshot —AITranslateBinding.apply_translation/4re-reads the row’s current fingerprints before folding the translation into the live changeset (#106). - Clearing the featured image or the media order on an item/category and
saving now actually persists the clear; the previous
Map.delete/2was indistinguishable, once:data_owned_keyslanded, from the field simply not being rendered by the form (#106).
Added
PhoenixKitCatalogue.TranslationStatus.stamp_preimage/3: stamps fingerprints computed from a value about to be overwritten (e.g. by an external sync), so the affected (resource, language) pair reads:stalerather than:unknownonce the overwrite lands (#106).
Changed
- Bumped the transitive
leaftest dependency (0.6.1 → 0.7.0).
Catalogue 0.28.4. Install or update: {:phoenix_kit_catalogue, "~> 0.28"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.