Skip to content

PhoenixKit 1.7.113: Annotations everywhere files open, and user search works again

PhoenixKit 1.7.113 fixes search on the Users and Sessions pages, which had stopped responding, and gives files opened from a media gallery the same pan, zoom and annotation tools as the media browser.

A new line tool draws a plain line between two points; migration V121 lets the database store it. The annotation popover now opens above its shape, and Cancel removes the new shape. Deleting an annotation deletes its comments too, instead of leaving “[removed]” entries in the thread. A folder-limited media picker now includes images in subfolders.

On the Users page, the role filter shows the chosen role again, and Clear Filters resets every filter. Filters on the Users, Sessions and Activity pages stay visible when nothing matches, and Activity says No activities match the current filters in that case. V120 no longer fails on sites without the Document Creator module.

Upgrading

Run mix phoenix_kit.update for V121.

Full release notes: PhoenixKit 1.7.113

1.7.113 · 18 May 2026

Added

  • line annotation kind — a two-endpoint line tool alongside dimension (same geometry, no arrowheads, no inline numeric label). V121 migration widens the phoenix_kit_annotations_kind_check constraint to accept it.
  • PhoenixKitWeb.Components.MediaCanvasViewer — shared LiveComponent owning the per-file canvas + Etcher annotation layer + composer popover + comments thread. Embedded by both MediaBrowser and MediaViewer, so files opened via MediaGallery → MediaViewer get the full pan/zoom + annotation experience (PR #550).
  • Storage.folder_subtree_uuids/1 is now public — walks a folder tree and returns every descendant uuid including the root (PR #549).

Changed

  • MediaBrowser migrated to Etcher 0.3 + Fresco 0.5: per-op annotation events collapse into a single bulk etcher:annotations-changed diff; fresco and etcher deps flipped from local path deps to hex pins (~> 0.5 / ~> 0.3) (PR #550).
  • Annotation composer now positions itself above its shape and drops the shape entirely when dismissed via Cancel (PR #550).
  • Deleting an annotation now hard-deletes its linked comments instead of leaving [removed] placeholders in the file’s thread (PR #550).
  • Activity and Users/Sessions filter panels relocated into the <.table_default> toolbar row; tables render unconditionally with the empty state as a table-body row so filters/search stay visible on a zero-result filter (PR #549).

Fixed

  • Users/Sessions search regression — form-less <input>s no longer delivered phx-change; search inputs are wrapped in <form phx-change="search"> again (PR #549).
  • Folder-scoped media picker now includes images in nested subfolders, not just files directly in the scope folder (PR #549).
  • V120 migration tolerates a missing phoenix_kit_doc_template_presets table on hosts that never installed the Document Creator module — the index rebuild is guarded on table existence (PR #550).
  • V121 migration adds the kind-check constraint unconditionally after DROP CONSTRAINT IF EXISTS; the previous pg_constraint existence guard was not schema-scoped and would skip the add on multi-prefix installs.
  • Annotation updates no longer cast :uuid, closing a path where a stray payload uuid could rewrite an annotation’s primary key.
  • MediaCanvasViewer annotation sync skips no-op UPDATEs — Etcher re-broadcasts the full annotation list on every mutation, so untouched rows are now diffed out and a zero-net-change re-broadcast does no DB work.
  • Users role-filter dropdown reflects the active filter again (&lt;option selected> instead of an ignored &lt;select value>); the empty-state “Clear Filters” button resets all filters via a dedicated handler.
  • Activity empty state distinguishes “No activities match the current filters” from “No activities recorded yet”.

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