Catalogue 0.28.0: Slugs per language, SEO fields and a Translations page
Catalogue 0.28.0 gives items and categories a URL slug for each language and their own SEO title and description, and adds a Translations page that shows which content is missing a translation or has gone out of date.
Slugs and SEO fields
The item and category forms have three new fields: URL slug, SEO title and SEO description. The slug is filled in from the name when left empty, and each language has its own. A slug must be unique within its language. The SEO fields are translatable like the name and description. When an AI translation runs, the slug is made from the translated name, so a French item gets a French slug.
The Translations page
A new Translations tab under the catalogue admin lists every item, category and attribute set label and value with its state for each language: Missing, Stale (the source text changed after it was translated), Unknown (a translation from before this release, with no record of what it was made from) or Fresh. Filter by type, language and state, or search by name.
Each row has a Translate button and a Stamp fresh button, which marks the current source as the one the translation matches. Translate all missing and Retranslate all stale queue the whole filtered list. If no AI endpoint is set up, the page says so and links to Configure AI. AI translation now also covers the SEO fields and the attribute set labels and values.
There is also an automatic sweep that queues translations for stale content on a schedule. It is off by default and is turned on through a setting; the page has no switch for it yet.
Fixes
- Activity log entries for files attached outside the admin forms now record who did it.
- The Translations page no longer reads and writes the database twice on each visit.
Upgrading
Run mix phoenix_kit.update: the module’s own migration moves to V2, adding the slug column and the tables that keep slugs unique per language. Catalogue 0.28 needs PhoenixKit 2.13.11 or later. The German and French interface translations are new and mostly unfinished, so most of the admin stays in English under those languages.
Full release notes: Catalogue 0.28.0
0.28.0 · 7 September 2026
Added
- Per-language slugs, SEO fields, form extension slot (#96, chain V2) —
PhoenixKitCatalogue.MigrationsV2 adds aslug jsonbcolumn to items and categories plus two lookup/uniqueness projection tables and sync triggers, so a slug can be resolved and enforced unique per language without scanning every row’s jsonb. Items and categories gainedseo_title/seo_descriptionfields (stored under multilangdata, no DB column).PhoenixKitCatalogue.Extension/Extensionslet a sibling module contribute a form section (e.g. shop pricing) without this repo knowing about it.Attachments.attach_files/3links already-uploaded Storage files to an item without a mounted LiveView. - AI translation: freshness states, opt-in sweep, admin page (#97) —
TranslationStatustracks a fingerprint-based freshness state (missing/stale/unknown/fresh) per resource and target language.Workers.TranslationSweepWorkeris a second, opt-in (config-gated), self-rescheduling Oban job that enqueues translations for stale content. A new admin page (/admin/catalogue/translations) lists translation state across items, categories, and attribute-set labels/values, with per-row and bulk translate/stamp-fresh actions. Slug generation now runs after translation, so a translated name gets its own per-language slug. AI-translation adapters cover item/category SEO+summary fields and attribute-set labels/values.
Fixed
- SEO title/description were silently dropped on single-language
installs —
merge_translatable_params/4(core) only foldsseo_title/seo_descriptionintodatainside itsmultilang_enabledbranch; since those two fields have no DB column, a single-language install (multilang off, the common case) lost whatever was typed into them on every save with no error. BothItemFormLiveandCategoryFormLivenow fold the fields intodatadirectly when multilang is disabled. Attachments.attach_files/3droppedactor_uuid— the one non-LiveView mutation path recorded every activity-log entry with anilactor. Now forwardsopts[:actor_uuid].TranslationsLive.mount/3did unconditional DB reads/writes —TranslationSweepWorker.endpoint_and_prompts/0(which can upsert a default AI prompt) ran on every mount, including the disconnected dead render, double-firing on every page visit. Now gated behindconnected?/1, matching the existing guard inWeb.Helpers.
Changed
AGENTS.md’s “Only one background job” hard boundary corrected — it named onlyWorkers.PdfExtractorafter #97 added a second, opt-in Oban worker (Workers.TranslationSweepWorker). Both are now listed.
Known limitations
de/frgettext catalogues are ~96% untranslated — #97 addedpriv/gettext/{de,fr}/LC_MESSAGES/default.po, but only the ~30 strings the PR itself introduced carry real translations; every pre-existing string falls back to the English msgid (gettext/1’s designed fallback, so nothing crashes or renders blank — just English under ade/frlocale).test/gettext_test.exspins non-fallback behavior forru/etbut notde/fr. Needs a dedicated translation pass before either locale should be considered supported.
Catalogue 0.28.0. Install or update: {:phoenix_kit_catalogue, "~> 0.28"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.