Skip to content

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. The InfiniteScroll JS hook now re-fires only when its data-cursor changes (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, stale total, or a replace-in-place list with a constant loaded) 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_changed forwarder no longer crashes the host LiveView if PhoenixKitComments.Web.CommentsComponent.forward_leaf_event/2 returns an unexpected value — an other -> branch logs a warning and degrades to {:noreply, socket}.
  • Inline annotation-title edits from the comments sidebar now log a Logger.warning when the underlying Annotations.update/2 write fails (previously the error was discarded, making a failed write indistinguishable from a no-op). UX is unchanged — still no flash.

Changed

  • <.load_more>: in infinite mode, data-cursor defaults to @loaded (so most callers can omit cursor), and the component raises a clear ArgumentError when infinite is set without an id. resolve_cursor/1 is now nil/type-safe and computed only for the infinite variant.
  • Bump the lazy-load etcher CDN pin in phoenix_kit.js v0.5.2 → v0.5.3 to match the resolved etcher hex dependency.

 

Merged

  • Merged upstream dev, which added V122 (phoenix_kit_location_spaces
    • staff translations JSONB + staff Person.name) and V123 (catalogue folders: phoenix_kit_cat_folders + cat_catalogues.folder_uuid), plus the <.load_more> infinite-scroll option.

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_idx to WHERE trashed_at IS NULL. @current_version is now 124.

PhoenixKit 1.7.125. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.