E-commerce 0.5.16: Category moves without loops and one translation sweep at a time
E-commerce 0.5.16 fixes two races in the shop admin: moving categories at the same time could create a loop, and pressing Run sweep twice queued the same AI translations twice.
Every category move, single or bulk, and every category delete now waits its turn on the category tree, so two opposite moves can no longer make a category its own ancestor. On the translations page, a second Run sweep now answers “A sweep is already running. Its result appears when it finishes.”, and Run sweep and Save sweep settings are disabled while they work.
The sweep now runs on the AI module’s shared translation engine. A resource missing more languages than the per-run limit allows is translated into the languages that fit, and a pair whose job was discarded in the last day is held back and counted on the page. Every shop admin page now shows a breadcrumb trail in the admin header.
Upgrading
The module now needs PhoenixKit core 2.38.0 or later and, if you use it, AI 0.24 or later.
Full release notes: E-commerce 0.5.16
0.5.16 · 25 September 2026
Fixed
- Two opposite category re-parents could commit a cycle (#70). Every re-parent, single or bulk (moves to the top level included), and every category delete now take one lock on the shop’s category tree. Bulk broadcasts go out after the commit.
- Two Run sweep presses at once enqueued the same translations twice (#70). The second one now answers “A sweep is already running”. A scheduled tick that starts during a manual one waits for it to finish and does not re-enqueue its pairs.
- The sweep buttons took a double click (#70). Run sweep and Save sweep settings are disabled while their event runs.
Changed
- The translation sweep runs on
PhoenixKitAI.TranslationSweep(#70). The worker’s name and public functions are unchanged. When a resource is missing more languages than the ceiling has room for, it is admitted for the languages that fit, so a ceiling below the target-language count is accepted now. A pair whose latest job was discarded in the last day is held back, and the page reports how many were. The last outcome is stored under the engine’s key. Without the engine, the sweep reports “unavailable”. - Activity logging and the actor go through core (#70), via
PhoenixKit.Activity.log/3andPhoenixKitWeb.Actor. The Shopify media sync reads its actor the same way. - Every shop admin page sets the admin header trail (#70): the E-Commerce section, the list it sits under, and the page itself.
- Dependency floors:
phoenix_kit >= 2.38.0 and < 3.0.0,phoenix_kit_ai ~> 0.24(optional).
E-commerce 0.5.16. Install or update: {:phoenix_kit_ecommerce, "~> 0.5"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.