Projects 0.25.1: Project file folders can live under a parent folder
Projects 0.25.1 lets an app put each project’s file folder under a parent folder of its choice instead of always at the storage root. It also ships the unpublished 0.25.0, so it is the first release with this feature.
Two new hooks, :attachments_parent_folder and :attachments_folder_name, choose the parent and the folder’s name. Without them nothing changes: folders stay at the root as project-<uuid>, and an existing root folder is found and reused once a hook is set. Images sent with portal issue reports now go into a Portal submissions subfolder of the project folder on every site; a report is still saved if that folder cannot be made.
Also fixed: removing a file could say “File removed.” while the file stayed, under a parent hook that depends on the user. Trashed folders are skipped, and a failing name hook falls back to the default name instead of blanking the Files page. Two projects whose hooks answer the same parent and name share one folder, so keep that pair unique.
Full release notes: Projects 0.25.1
0.25.1 · 15 September 2026
Post-merge review of PR #44 (dev_docs/pull_requests/2026/44-attachments-parent-folder/CLAUDE_REVIEW.md).
0.25.0 was never published; its entry below ships in this release.
Changed
Attachments.remove_file/3takes the actor uuid, like its siblings, andlist_files,attach_filesandremove_fileall accept a loaded%Project{}. The Files page passes the struct, so a refresh no longer re-reads the project row.- The folder-hook contract is now stated: a project’s folder is found by the
{parent, name}pair the hooks answer (core records no owner on a folder), so that pair must be unique per project. Two projects answering the same parent AND the same host name share one folder and see each other’s files.
Fixed
- Removing a file could silently do nothing — “File removed.” while the file
stayed — under an actor-dependent parent hook, because
remove_fileresolved the folder without the actor. - Folder lookups skip trashed folders. Core’s name/parent unique index ignores trashed rows, so a trashed project folder and its live replacement coexist, and Projects could keep attaching into the trashed one.
- Placing a portal image in
Portal submissionsis best-effort for real: a raise while resolving the folder no longer refuses the whole report and orphans the image that was just stored. - A raising
:attachments_folder_namehook falls back to the deterministic name instead of blanking the Files page; both hooks also survive an:exit.
Projects 0.25.1. Install or update: {:phoenix_kit_projects, "~> 0.25"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.