PhoenixKit 1.7.125: Annotations and comments on the media detail page
PhoenixKit 1.7.125 lets admins draw annotations and comment on an image from its own page at /admin/media/:uuid, as they already could in the modal. It carries 1.7.122 and 1.7.123, which were not published on Hex.
The detail page now shows the image at its real proportions instead of in a square, with the annotation tools and a comments thread above the storage locations. Creating a folder no longer fails silently when a trashed folder of the same name sits in the same place; migration V124 lets trashed folders free their names. The name of a new “untitled” folder is selected, so typing replaces it. Comments typed in the media browser’s sidebar now reach the server. Infinite scroll with <.load_more infinite> no longer fetches too much or stops loading.
V122 adds spaces inside locations and translations for staff, and V123 adds catalogue folders. When the Catalogue module is installed, mix phoenix_kit.update adds the endpoint mount for its PDF viewer.
Upgrading
Run mix phoenix_kit.update for V122 to V124.
Full release notes: PhoenixKit 1.7.125
1.7.125 · 29 May 2026
Fixed
<.load_more infinite>no longer over-fetches or wedges. TheInfiniteScrollJS hook now re-fires only when itsdata-cursorchanges (not on every unrelated LiveView diff), guards against stacked in-flight pushes, and carries a 2s watchdog so a load that resolves without advancing the cursor (empty/no-op page, staletotal, or a replace-in-place list with a constantloaded) can never permanently disable auto-scroll — worst case is a brief stall that the next scroll or the manual button recovers.MediaBrowser.Embed’s injected:leaf_changedforwarder no longer crashes the host LiveView ifPhoenixKitComments.Web.CommentsComponent.forward_leaf_event/2returns an unexpected value — another ->branch logs a warning and degrades to{:noreply, socket}.- Inline annotation-title edits from the comments sidebar now log a
Logger.warningwhen the underlyingAnnotations.update/2write fails (previously the error was discarded, making a failed write indistinguishable from a no-op). UX is unchanged — still no flash.
Changed
<.load_more>: ininfinitemode,data-cursordefaults to@loaded(so most callers can omitcursor), and the component raises a clearArgumentErrorwheninfiniteis set without anid.resolve_cursor/1is now nil/type-safe and computed only for the infinite variant.- Bump the lazy-load
etcherCDN pin inphoenix_kit.jsv0.5.2 → v0.5.3to match the resolvedetcherhex dependency.
Merged
- Merged upstream
dev, which added V122 (phoenix_kit_location_spaces- staff
translationsJSONB + staffPerson.name) and V123 (catalogue folders:phoenix_kit_cat_folders+cat_catalogues.folder_uuid), plus the<.load_more>infinite-scroll option.
- staff
Migrations
- V124 — the media-folder partial unique index (previously authored
as V122 on this fork) is renumbered to V124 because upstream
claimed V122/V123. Content is unchanged: restricts
phoenix_kit_media_folders_name_parent_idxtoWHERE trashed_at IS NULL.@current_versionis now 124.
PhoenixKit 1.7.125. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.