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
lineannotation kind — a two-endpoint line tool alongsidedimension(same geometry, no arrowheads, no inline numeric label). V121 migration widens thephoenix_kit_annotations_kind_checkconstraint to accept it.PhoenixKitWeb.Components.MediaCanvasViewer— shared LiveComponent owning the per-file canvas + Etcher annotation layer + composer popover + comments thread. Embedded by bothMediaBrowserandMediaViewer, so files opened viaMediaGallery→MediaViewerget the full pan/zoom + annotation experience (PR #550).Storage.folder_subtree_uuids/1is now public — walks a folder tree and returns every descendant uuid including the root (PR #549).
Changed
MediaBrowsermigrated to Etcher 0.3 + Fresco 0.5: per-op annotation events collapse into a single bulketcher:annotations-changeddiff;frescoandetcherdeps 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 deliveredphx-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_presetstable 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 previouspg_constraintexistence 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. MediaCanvasViewerannotation sync skips no-opUPDATEs — 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 (
<option selected>instead of an ignored<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.