Catalogue 0.9.0: Export to PRO100 and JSON, and headers in the admin bar
Catalogue 0.9.0 adds an Export page that writes one or more catalogues to a PRO100 file or a JSON file, and moves the catalogue page titles into PhoenixKit’s admin header.
Export
The new Export tab under the catalogue admin, titled Export Items, asks for the Catalogues to include, a Destination and a Format. PRO100 offers its furniture and materials formats; the universal destination writes JSON. For PRO100, Add the catalogue name to the item name puts each item’s catalogue in front of its name. The Export button downloads the file at once.
PRO100 files are written in UTF-8 with a byte order mark, so Cyrillic text opens correctly, and the ID column holds digits only. File names carry the export date and time, and JSON file names keep non-Latin characters.
Headers in the admin bar
The eight catalogue admin pages put their title and subtitle in the global admin header, with the breadcrumb, instead of a header inside the page. Their action buttons and the catalogue breadcrumb move to toolbars in the page body.
Fixes
- The events counter could not agree in number with its count in Russian. The count now shows in the header subtitle as “Events: 208”, which needs no plural form.
- The module reported its version as 0.2.0. It now reports the real version.
Upgrading
No migration and no configuration. Update the dependency. The download address /admin/catalogue/export/download is added to the router through PhoenixKit’s module routes, so the host router needs no change. The new header layout works best with PhoenixKit 1.7.169 or later.
Full release notes: Catalogue 0.9.0
0.9.0 · 29 June 2026
Added
- PRO100 / Universal JSON catalogue export (#35) — a new export pipeline that produces PRO100-compatible and Universal JSON output. Lets you pick a Destination (PRO100 / Universal), export multiple catalogues at once, and optionally drop the category level. PRO100 output writes a UTF-8 BOM on Furniture/Materials exports (Cyrillic detection) and keeps the ID column (column 2) digits-only; an option prefixes each item name with its catalogue name. Export filenames now carry the export date (
YYYY-MM-DD) and local time (HH-MM), and JSON filenames are Unicode-safe. The catalogue lookup behind the export uses a lightweight query.
Changed
- Catalogue admin headers moved into the global admin header bar (#36) — the 8 catalogue admin LiveViews that rendered an in-content
<.admin_page_header>now adopt the core/admin/mediaself-wrap pattern: a per-moduleon_mountresetssocket.private[:live_layout]from the auto-applied admin chrome back to the passthrough:app, andrender/1wraps inLayoutWrapper.app_layout, so each page’s title/subtitle land in the global admin header (breadcrumb) instead of an in-content header. Action buttons and the rich catalogue breadcrumb relocate to in-body toolbars. - Export form UI (#35) — reordered the fields (Catalogues → Destination → Format) and tidied/enlarged the catalogue list.
mix precommitnow runshex.auditto scan for retired Hex dependencies.
Fixed
- Events tab counter showed the wrong plural form (#36) — the inline counter called
Gettext.gettext/3on the"%{count} events"msgid, which cannot express plural agreement and rendered the Russian singular form for every value (e.g. “208 событие”). The count now appears in the header subtitle as"<module> · Events: %{count}"via a new agreement-free"Events: %{count}"msgid, translated for en/ru/et. PhoenixKitCatalogue.version/0drift — the runtimePhoenixKit.Moduleversion/0callback reported a stale0.2.0while the package was0.8.0; it is now synced to the released version. Theversion/0compliance test no longer accepts any\d+.\d+.\d+shape (a regex is what let the drift slip through) — it asserts equality withmix.exs’s@version, so the three-places sync rule in AGENTS.md is actually enforced.
Notes
- Dependency lockfile advances (no
mix.exsconstraint changes):phoenix_kit1.7.133 → 1.7.169,phoenix_kit_ai0.4.0 → 0.10.0,phoenix_live_view1.1.31 → 1.2.4,phoenix1.8.7 → 1.8.8,req0.6.1 → 0.6.2 (plusphoenix_kittransitive deps:leaf0.2 → 0.3,etcher0.6 → 0.7,tessera0.2 → 0.3,mdexadded,earmarkdropped). Constraints stay loose; pinphoenix_kit >= 1.7.169in the parent app if you depend on the latest admin-chrome behavior. - Removed the now-unused
earmarkentry frommix.lock(mix deps.unlock --unused) after thephoenix_kitupgrade dropped it — required formix deps.unlock --check-unused/mix precommitto pass. - Verification:
mix precommitis clean (compile--warnings-as-errors+deps.unlock --check-unused+hex.audit+format --check-formatted+credo --strict+dialyzer). ExUnit is DB-gated — runmix testagainst a host with PostgreSQL. - Post-merge review of #36:
dev_docs/pull_requests/2026/36-admin-headers-global-bar/CLAUDE_REVIEW.md.
Catalogue 0.9.0. Install or update: {:phoenix_kit_catalogue, "~> 0.9"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.