Catalogue 0.49.0: Shop API, internal categories, AI notes and item dependencies
Catalogue 0.49.0 opens the PhoenixKit product catalogue to PhoenixKit’s machine API, lets you hide categories from item pickers, adds notes for AI tools and item dependencies, and lets the import wizard read files in older encodings.
Shop API
Nine catalogue.* tools plug into PhoenixKit’s API layer, behind its keys, scopes and rate limits: list, get, create, update and delete products, set translations, and list, upsert and delete categories. Read, write and delete are separate scopes for products and for categories. Batches answer row by row and can run as a dry run first. The two delete tools move records to the trash and ask for confirmation. Products can be looked up by uuid, SKU or external id.
The external id an outside system gives an item or category through the API is unique among the live rows of its catalogue. A restore or move that would collide is refused, and a copy leaves the id out.
Internal categories
The category form has a new Internal switch: “Kept out of the item pickers and browse pop-ups that other pages embed, with its subcategories and their items. The admin pages still show it.”
Notes for AI
Catalogues, categories and items get a Notes for AI field: “For AI tools that read the catalogue. Customers never see it, and it is not translated.”
Item dependencies
The item form has a new Dependencies tab: what this item needs from other catalogues, categories or items, and how many, with an optional note. As the form says, “It is for the people using the catalogue: nothing is calculated from it.” Dependencies can be imported and exported too, written as “8 × SKU” and separated by semicolons. If someone else saved the item’s dependencies while you were editing, your list stays and a second Save replaces theirs.
File encoding in the import wizard
A text file that does not say which encoding it is in now gets a File encoding choice with a preview: Western European, Baltic, Cyrillic and Central European Windows code pages, and ISO-8859-15. The wizard asks you to check that the letters read correctly.
Upgrading
Catalogue 0.49 needs PhoenixKit 2.63.0 or later (it was 2.38.0). Run mix phoenix_kit.update after upgrading: the module’s migrations move to V6, adding the external id indexes, internal categories, notes for AI and item dependencies.
Full release notes: Catalogue 0.49.0
0.49.0 · 19 October 2026
Reviews: dev_docs/pull_requests/2026/152-shop-api-tools/,
153-internal-notes-dependencies/ (CLAUDE_REVIEW.md).
Requirements raised: phoenix_kit >= 2.63.0 (was >= 2.38.0), the first
core release that ships the machine API the shop tools plug into
(PhoenixKit.API.Tool, api_tools/0, PhoenixKit.Activity.log_many/2). Run
mix phoenix_kit.update after upgrading: the module’s own chain moves to V6
(V5 and V6 are new).
Added
- Shop API: nine
catalogue.*tools served by core’s API layer behind its keys, scopes and rate limits (list_products,get_products,create_products,update_products,set_translations,delete_products,list_categories,upsert_categories,delete_categories). Batches answer per row, support a dry run with a fingerprint, and the two delete tools trash and ask for confirmation. Guide:dev_docs/guides/api-tools.md. Thanks to timujinne (#152). Catalogue.update_items/2(one transaction, one activity insert, one broadcast), keyset paging with exact counts for item listings, and reference lookups by uuid, SKU orexternal_id.- V5: partial unique indexes on an item’s and a category’s
external_idper catalogue. A restore or move that would collide is refused with:external_id_taken, and a copy drops the id. - V6: internal categories (hidden, with their subtree and items, from the item picker, the item selector and the catalogue browse), notes for AI on catalogues, categories and items, and item dependencies (the item form’s Dependencies tab, with import and export). Thanks to mdon (#153).
Changed
- The
Cataloguecontext is split into section modules; the facade keeps its public functions. - The media folder layout follows batch item updates and the shop API’s moves.
Fixed
- The package no longer starts with its
phoenix_kitfloor below the first core release that has the APIs it calls. - Dialyzer’s
call_without_opaqueonAPI.DeleteCategories’ subtree walk.
Catalogue 0.49.0. Install or update: {:phoenix_kit_catalogue, "~> 0.49"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.