Catalogue 0.50.0: Ready for PhoenixKit 3, a separate settings permission
Catalogue 0.50.0 prepares the PhoenixKit product catalogue for PhoenixKit 3: it describes its own tables for repair and orphan-file checks, splits the settings page into its own permission, and makes the bundled PDF viewer much smaller.
Works with PhoenixKit 3
The module now accepts PhoenixKit from 2.65.0 up to, but not including, 4.0. PhoenixKit 3 no longer creates the catalogue tables itself; the module’s own migration chain builds them.
The module now hands core a description of its 21 tables, so mix phoenix_kit.doctor and mix phoenix_kit.repair can check them from the module’s own chain. Repair only adds what is missing and reports the rest. It also tells core which of its tables point at a stored file (items, categories, catalogues and PDFs), for core’s orphan-file check. What counts as an orphan does not change. Core reads both from the first release after 2.64.1; before that, nothing changes.
A separate permission for the settings page
The catalogue permission gets a sub-permission of its own: Change the catalogue settings. It opens Settings → Catalogues: the AI translation sweep’s schedule, batch size and languages, and the list and item-form preferences every editor gets. Someone with only the everyday catalogue permission is sent back to the admin dashboard with a message when they open that page, and every change on it checks the permission again.
Nobody loses access on upgrade. On first boot, every role that already holds the catalogue permission is granted the settings permission once. A role created or given the catalogue permission later gets only the everyday part, so grant the settings one on purpose.
AI translation checks the permission
The AI translate window on the item, category, catalogue and attribute group forms now checks the catalogue permission before it acts. If a role lost the permission during the session, a request to translate is refused with “You do not have permission to translate catalogue content.” instead of being queued.
Smaller PDF viewer and other fixes
The bundled pdf.js viewer drops its development files: source maps, the demo PDF and the debugger. Opened without a file, it now shows an empty viewer instead of the demo document. Nothing the catalogue uses changes.
When another admin saved an item’s dependencies while you were editing it, the form now keeps what you typed and switches to the Dependencies tab with the error. Text imports with a byte order mark are no longer treated as needing a code page. A shop API create whose attributes failed to save now still reports the item it created.
Upgrading
No migration. Update the dependency; it needs PhoenixKit 2.65.0 or later. After the first boot, check the roles that should not change catalogue settings: they keep the new Change the catalogue settings permission until you take it away.
Full release notes: Catalogue 0.50.0
0.50.0 · 27 October 2026
Added
- The module supplies the manifest of its 21 tables (
expected_schema/0,PhoenixKitCatalogue.ExpectedSchema), somix phoenix_kit.repairandmix phoenix_kit.doctorcheck and repair them again, now from the module’s own chain instead of core’s manifest. Generated fromPhoenixKitCatalogue.Migrationsby core’sdev_docs/squash/generate_module_manifest.exs, never edited by hand. Core uses it from the first release after 2.64.1; before that nothing reads it. Repair is additive (it creates what is missing and reports the rest) and checks the tables only while the database is at the chain’s current version. No migration. - The module now tells core’s orphan-file check which of its rows point at a stored file (
file_references/0, inFileReferences):phoenix_kit_cat_items,phoenix_kit_cat_categories,phoenix_kit_cat_catalogues,phoenix_kit_cat_pdfs. The SQL moved here verbatim from core’sPhoenixKit.Modules.Storage; a test compares it with core’s own copy. Core reads the callback from the first release after 2.64.1; before that, core’s own list stays in force. No migration, no change in what counts as an orphan.
Changed
-
Core pin widened to
>= 2.65.0 and < 4.0.0: works with core 3.x (core 3.0 stops creating the module tables; this module’s own chain builds its tables). The floor is the first core with thefile_references/0andexpected_schema/0callbacks, which now carry@impl PhoenixKit.Module. -
The vendored pdf.js viewer no longer ships its development files: the source maps, the pdf.js demo PDF and the PDFBug debugger (~9.8 MB of the 17.8 MB
priv/static/pdfjs/). With no?file=, the viewer now opens empty instead of loading the demo document. Nothing the catalogue uses changes.
Catalogue 0.50.0. Install or update: {:phoenix_kit_catalogue, "~> 0.50"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.