Skip to content

Catalogue 0.33.0: Catalogue files in core's media reorganizer

Catalogue 0.33.0 lets PhoenixKit core’s mix phoenix_kit.media.reorganize task tidy the catalogue’s attachment folders.

Reorganizing catalogue media

The module now gives the reorganize task a source of its own. When the site has set :attachments_parent_folder, the task plans to move the old catalogue-* attachment folders under the parent folder that setting returns. It renames them with :attachments_folder_name when that is set, and links each folder back to its record.

The task also reports what it cannot fix by itself: duplicates, old folders with no record, upload folders left pending, errors from the folder hooks, and PDFs still at the top of the storage.

Without a parent folder configured, the task only reports and never moves anything.

Upgrading

No migration and no change in requirements. Update the dependency. The task needs PhoenixKit 2.24.0 or later; on an older core the module works as before and the source is simply not used. To use it, configure the folder hooks, then run mix phoenix_kit.media.reorganize --source catalogue.

Full release notes: Catalogue 0.33.0

0.33.0 · 16 September 2026

Review: dev_docs/pull_requests/2026/119-media-reorganizer-source/.

Added

  • Media reorganizer source (#119). PhoenixKitCatalogue.MediaReorganizer plugs into core’s mix phoenix_kit.media.reorganize (phoenix_kit 2.24.0+) through media_reorganizer/0. With :attachments_parent_folder configured, it plans moving legacy catalogue-* attachment folders under the parent that hook returns, renames them with :attachments_folder_name, and fills in the record’s files_folder_uuid pointer. It also reports duplicates, orphaned legacy folders, stale pending upload folders, hook failures, and PDFs still at the storage root. Without a configured hook it only reports and never writes. On an older core the function is present and unused.

Changed

  • Dependencies: phoenix_kit 2.24.0, phoenix_kit_entities 0.4.15, phoenix_live_view 1.2.12 (lock only; constraints unchanged).

Catalogue 0.33.0. Install or update: {:phoenix_kit_catalogue, "~> 0.33"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.