Catalogue 0.10.0: PRO100 import and a shared table toolbar for the admin lists
Catalogue 0.10.0 can read PRO100 files back in to update existing items, adds JSON import, and gives the catalogue, supplier and manufacturer lists a shared toolbar with search, filters, sorting and column choices.
PRO100 and JSON import
The import page now asks for a Source and a Format next to the target catalogue. With PRO100, the furniture and materials text formats are read and each row is matched to an existing item in the catalogue by its numeric code. Matching items are updated, and nothing is created. You see a PRO100 Sync Preview first, then apply, then get a report. Rows that matched nothing, matched several items or failed are listed with the original line from the file; for several matches the report names the items.
PRO100 columns that the export used to fill with fixed values are now kept per item on import and written back on the next export, so a file survives the round trip. The universal source can also import the module’s own JSON export; XLSX and CSV import work as before.
Table toolbar
The catalogue, supplier and manufacturer lists share a toolbar: search, filters per column, sort, a table or card view, and a choice of columns. Each admin’s choices are remembered across sessions. The catalogue list is now a flat table with a Folder column and filter, including Unfiled (root). Folders are created and edited in a Folders… dialog instead of the old inline tree with drag and drop. The PDF library uses the standard admin header and table, and a catalogue’s item list gets a card layout on phones.
Fixes
- Changing the view on one admin tab could undo a change just saved on another.
- Applying column choices could reset the sort away from name.
- Changing the import source or format after a file was read could run the wrong import.
- The phone card on a catalogue’s page showed the base price instead of the price with markup.
Upgrading
No migration and no configuration. Update the dependency. Folder drag and drop on the catalogue list is gone in this release; use the Folders… dialog.
Full release notes: Catalogue 0.10.0
0.10.0 · 3 July 2026
Added
- PRO100 round-trip import (#40) — mirrors the existing PRO100 export. A new
Import.Sourceregistry (Universal/PRO100) lets you pick a Source + Format alongside the target catalogue on the upload step; PRO100 (Фурнитура / Материалы) reads the# Parts/# Materialstext formats, matches rows to existing items in the target catalogue by digits-only id, and updates them (no auto-create) via apreview → apply → reportflow — unmatched/ambiguous/failed rows surface with the raw file line, not silently dropped. Round-trip fidelity: the PRO100 “service” columns the export used to hardcode are preserved per item indata["pro100"]on import and re-emitted by the export. Universal JSON import (mirroring the Universal JSON export) is also new; existing XLSX/CSV import is untouched. - Catalogue admin table stack (#40) — the catalogues/suppliers/manufacturers admin lists gained a shared toolbar (search, per-column filters, sort, table/card view toggle, column show/hide), with the user’s column/sort/filter/view choices persisted per-user across sessions (
phoenix_kit_users.custom_fields, no new table). The catalogues index converted to a flat table with a Folder filter + Folder column; the inline folder tree + drag-and-drop was replaced by a “Folders…” modal preserving full folder CRUD.PdfLibraryLivemigrated to the shared admin-header +table_defaultpattern.CatalogueDetailLive’s active items table gained a mobile card fallback.
Fixed
- Per-user view-config writes for one admin tab could silently revert another tab’s earlier save in the same session —
CataloguesLivewrote the wholecustom_fieldscolumn from a snapshot it never refreshed after a save, so switching tabs and changing a second tab’s view settings would revert the first tab’s just-saved change. - Clicking “Apply” on the Columns modal could silently reset the table’s sort away from “Name” (and “Name” never appeared as a sort option), because the always-visible
namecolumn was excluded from the id list used for the sort-preserving check. - Switching Import Source/Format after a file was already parsed could silently run the wrong import path — going back to the upload step and picking PRO100 over an already-parsed Universal spreadsheet (or vice versa) reused the stale parse instead of re-parsing under the new selection.
CatalogueDetailLive’s new mobile card showed the raw base price instead of the marked-up sale price, disagreeing with the desktop table for any item/catalogue with a non-zero markup.- Folder filter never offered “Unfiled (root)”, and an incomplete
PRO100duplicate-item merge (from a prior fix) could keep an earlier row’s stale price change when the last colliding row reasserted the item’s original value. - Ambiguous PRO100 matches now list the colliding items’ SKU/name in the report instead of just “multiple items match”; the new mobile card/table toggle on
CatalogueDetailLive’s active list no longer offers a desktop card view missing bulk-select/drag-reorder. - Full findings, rationale, and what was verified-but-not-changed:
dev_docs/pull_requests/2026/40-catalogue-table-stack-pro100-import/CLAUDE_REVIEW.md.
Notes
- Dependency lockfile advances (no
mix.exsconstraint changes):phoenix_kit1.7.169 → 1.7.171,phoenix_live_view1.2.4 → 1.2.5,plug1.20.1 → 1.20.2,mdex0.13.2 → 0.13.3,mdex_native0.2.3 → 0.2.4,makeup1.2.1 → 1.2.2. Constraints stay loose. - Verification:
mix format,mix compile --warnings-as-errors, andmix dialyzerare clean.mix credo --strictis at parity with the pre-existing baseline (see the review doc — baselinemainalready carries 14 Design/Readability/Refactor-level suggestions unrelated to this release).mix testcould not be run in this environment (no local Postgres); the new pure-logic fixes (PRO100 plan, table-query folder filter) have dedicated unit tests, the LiveView-level fixes were verified by manual trace and should get DB-backed regression coverage in a follow-up.
Catalogue 0.10.0. Install or update: {:phoenix_kit_catalogue, "~> 0.10"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.