PhoenixKit 2.27.0: Highlighter and arrow tools, and a faster media viewer
PhoenixKit 2.27.0 adds two drawing tools to the media viewer, puts the open file in the page address, and makes the viewer open faster.
Highlighter and arrows
The annotation toolbar gains a highlighter and an arrow, from Etcher 0.14. Arrows are now saved like every other shape: the database only accepted the shape kinds it knew, so an arrow could be drawn and labelled but was gone after a reload. The label font size is now remembered per user, as a whole number of pixels between 6 and 200.
The open file is in the address
Media browsers that keep their state in the address now add ?file= with the open file. A refresh reopens the viewer on that file, and Back closes it. Opening, stepping through and closing the viewer no longer reloads the listing behind it.
A ?file= link is held to the same limits as the listing. A picker limited to a folder or to one file type opens only a file it would list itself, and never a hidden system file. A malformed id in the address no longer breaks the page.
A faster viewer
The viewer opens on the small size the grid has already loaded, and shows the card’s picture at once while the server answers. Grid cards load the viewer’s sizes when the pointer rests on them, and the open viewer loads its neighbours’ sizes ahead, so stepping through files feels immediate. The user’s settings are read once per opening instead of three times.
Elsewhere in Media, the folder sidebar opens and closes without waiting for the server, the upload drawer closes once files are accepted, and dropping files from the desktop works however deeply the browser is nested in a page.
Upgrading
Run mix phoenix_kit.update for migration V192, which lets annotations be arrows. Rolling it back is refused while arrow annotations exist, rather than deleting them. Etcher 0.14 is now the minimum, and Fresco 0.12 is allowed.
Full release notes: PhoenixKit 2.27.0
2.27.0 · 16 September 2026
Added
- Etcher 0.14 tools in the media viewer —
:highlighterand:arrowjoin the toolbar, and label font size is a per-user pref (clamped 6–200px, whole pixels). Pins move toetcher ~> 0.14.0, a fresco~> 0.12.0alternative, and tessera 0.3.6. (#820) - V192 migration —
phoenix_kit_annotations_kind_checkallows'arrow'.down/1refuses while arrow annotations exist. A new test reads the viewer’s tool list, so a tool the schema can’t persist fails CI. (#820) - The media viewer’s file is in the URL (
?file=<uuid>) for url-synced browsers: a refresh reopens the viewer on that file, and Back closes it. Opening, stepping and closing the viewer skip the listing reload. (#820)
Changed
- The media viewer opens faster (#820):
- it opens on the
smallvariant the grid already cached - an instant stand-in shows the card’s bitmap while the server replies
- grid cards warm their viewer variants on hover
- the open viewer warms its neighbours’ variants
- the user row is read once per open instead of three times
- it opens on the
- The folder sidebar collapses and expands client-side before the server round trip. (#820)
- The upload drawer closes itself once files are accepted. (#820)
- OS drag-drop uploads find their upload input from any nesting depth. (#820)
Fixed
- Post-merge review of #820:
- A
?file=uuid missing from the loaded listing is now held to the browser’sscope_folder_id, itsonly_file_typelock and the system-managed filter. Before, a scoped picker opened any file in the install by uuid. A malformed uuid no longer crash-loops the mount. - V192 stamps version
192(it stamped191, and190on rollback, left over from its pre-merge number). A new test checks every migration’s version comment.
- A
PhoenixKit 2.27.0. Install or update: {:phoenix_kit, "~> 2.27"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.