PhoenixKit 2.34.0: Activity shows what changed
PhoenixKit 2.34.0 makes the activity log say what changed in a record, and fixes modals that came back after being closed.
What changed, in the activity log
When a module records which fields changed, the activity detail page now opens with a What changed table, with a Before and an After column for each field. In the activity list, the Details column shows the change instead of the record’s name. Older entries that stored changes in the previous flat format read the same way, so rows already in the table benefit too.
A reference to another record is shown by its label rather than its id. A long value can be recorded only as changed, without keeping either copy in the log. The new wording is translated in all seven languages, and the list’s Details column translates the word “changed” too. Modules record their changes under a reserved "changes" key in the entry’s metadata.
Media viewer
The tooltip of an annotation shape now sits in the style panel instead of popping up over the photo. This needs Etcher 0.16, now the minimum, with Etcher 0.16.0 and Fresco 0.12.2 loaded in the browser. A photo rotated a quarter turn no longer opens stretched for a moment while the viewer loads.
Fixes
- A modal closed with Escape or a click outside no longer reopens at the next page update. In a stack of modals, closing a child no longer also closes it a second time from its parent.
- A link to a record whose title resolves to nothing shows the record type and a short id instead of an empty link.
- The bulk selection bar can take the place of a toolbar outside the table while rows are selected, so rows no longer jump down under the pointer when a selection starts.
Upgrading
No migration and no configuration. Etcher must be on 0.16.
Full release notes: PhoenixKit 2.34.0
2.34.0 · 20 September 2026
Added
- Activity says what changed. A module records a field diff under the
reserved
"changes"metadata key (Activity.changes_key/0):%{"changes" => %{"sku" => %{"from" => "T-21", "to" => "T-22"}}}. The detail page leads with a “What changed” before/after table and the list’s Details column shows the change instead of the row’s name. Legacy flatfield_from/field_topairs fold into the same shape, so rows already in the table read the same way. A%{"uuid" => _, "label" => _}reference renders as its label;%{"changed" => true}records a long value as changed without keeping either copy. New:Activity.split_changes/1,change_side/2,humanize_metadata_key/1. bulk_select_scopetakesswap— a CSS selector for a toolbar outside the scope that is hidden while the scope holds a selection, so the action bar takes its place instead of pushing every row down under the pointer. Several scopes may name one toolbar; it stays hidden while any has a selection.
Changed
- The media viewer docks a shape’s tooltip in the style panel
(
tooltip_dock={:panel}) — nothing pops up over the photograph. Needs etcher 0.16, so the floor moves to~> 0.16.0; the CDN pins move to etcher 0.16.0 and fresco 0.12.2.
Fixed
- A modal dismissed with Escape or a backdrop click no longer re-opens on
the next patch. Chromium dismisses a server-opened dialog without firing
close, andclose()is a no-op once morphdom has strippedopen; the hook now pushes the close fromcanceland restores the attribute first. In a stack, a child that already pushed its own close is not pushed a second time by its parent. - A photo rotated a quarter turn no longer opens stretched in the instant stand-in — the element is fitted to the box it will occupy after the turn. The fit is measured after the stand-in is revealed: measured while hidden, the frame read 0 × 0 and the fit never ran on an open from the grid.
- A resource link whose title template resolves to nothing falls back to
<type> <short-uuid>instead of rendering an empty link.
i18n
- “What changed”, “Before”, “After” and “changed” translated in all seven locales. The merge had fuzzy-matched “changed” onto the imperative “Change”; rewritten by hand. The list’s Details column translates the word too, rather than printing the English one.
PhoenixKit 2.34.0. Install or update: {:phoenix_kit, "~> 2.34"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.