Projects 0.26.0: Project folders join the media reorganizer
Projects 0.26.0 lets PhoenixKit’s media reorganizer tidy project file folders: it can plan moving each project’s old project-<uuid> folder to the place your app’s folder hooks now choose, and it reports what it will not move.
What it does
Projects 0.25.1 let an app place each project’s file folder under a parent of its choice, through the :attachments_parent_folder and :attachments_folder_name hooks. Folders created before that still sit at the storage root under their old project-<uuid> name. This release registers Projects with core’s media reorganizer, run with mix phoenix_kit.media.reorganize (PhoenixKit 2.24.0 or later).
For every project that has such a folder, the plan moves it to where the hooks place it now. A project’s portal submissions folder sits inside the project folder, so it moves along with it. The plan also reports what it leaves alone:
- a project with a folder both at the root and at its target (a duplicate);
- a stray copy under an unrelated parent;
- folders of projects that have been deleted;
- a hook that fails, or answers the root.
A project whose hook fails is skipped rather than moved to the root, and all such failures are counted in one report. A target name that is already taken is reported instead of renamed, because the module looks folders up by name.
If you have no folder hook
An app that has not set :attachments_parent_folder gets reports only, never a move. Archived projects count as live; only a deleted project leaves an orphaned folder.
Upgrading
No migration and no configuration. Update the dependency. The module still accepts any PhoenixKit 2.x; the reorganizer task itself needs core 2.24.0 or later, and an older core simply does not offer it.
Full release notes: Projects 0.26.0
0.26.0 · 16 September 2026
PR #45 plus its post-merge review
(dev_docs/pull_requests/2026/45-media-reorganizer/CLAUDE_REVIEW.md).
Added
PhoenixKitProjects.MediaReorganizer, a plan source for core’s media reorganizer (mix phoenix_kit.media.reorganize, core ≥ 2.24.0), registered throughmedia_reorganizer/0. It plans moving each project’s legacyproject-<uuid>folder to where the:attachments_parent_folder/:attachments_folder_namehooks place it, and reports what it will not move: duplicates, copies living elsewhere, orphaned folders of deleted projects, and failing or root-answering hooks. A host with no parent hook configured gets reports only, never a move.
Fixed
- A stray legacy copy under an unrelated parent is reported even when the same project is also a duplicate (live at root and under its target).
Projects 0.26.0. Install or update: {:phoenix_kit_projects, "~> 0.26"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.