PhoenixKit 2.29.0: Title and description in the media viewer, and a Google address per user
PhoenixKit 2.29.0 shows a file’s title and description in the media viewer, where people look at it, and gives each user an optional Google address for sharing files and invites with them.
Title and description in the viewer
The media viewer’s sidebar has a collapsible Title & description section between the action buttons and the technical details. Where the viewer already links to the file’s details, it can be edited in place; elsewhere it is read-only, and it is hidden when empty and not editable. It edits the same fields as the admin detail page, and saving keeps the file’s rotation and tags. The server refuses a save from a viewer that does not offer editing, such as a public gallery.
A Google address per user
Users have a new Google Email field, for sharing a Drive file or calendar invite when their Google account uses another address than their sign-in email. Users can set it on their settings page and admins on the user form. It is filled in the first time the user signs in with Google, never overwriting a set value. An @gmail.com or @googlemail.com sign-in email counts as their Google address. It is optional, not unique, and not used to sign in.
Other changes
The annotation editor moves to Etcher 0.14.1: labels on a line default to its colour, and a dimension opens a label editor that can be skipped. Three translations that were wrong in all seven languages are corrected, among them “Channel”, which read as “Cancel”.
Upgrading
Run mix phoenix_kit.update for migration V196. It adds the google_email column to users and fills it from existing Google sign-ins. If the app cannot boot because its startup code reads the users table before the column exists, migrate the database first, then run the full update.
Full release notes: PhoenixKit 2.29.0
2.29.0 · 17 September 2026
Added
-
Title and description in the media viewer’s sidebar (#825). The file’s own words about itself lived only on the admin detail page; the viewer popup — where people actually look at the file — showed the technical row (type, MIME, size) and nothing human. A collapsible “Title & description” section now sits between the action buttons and that row: an inline editor in the contexts that already offer a road to the metadata editor (
details_path/edit_targethosts), read-only elsewhere, and absent entirely when it is both empty and uneditable. It opens itself when there is something to see.- Writes go into the file’s
metadataJSONB under the same keys the detail page’s editor uses, so the two surfaces read each other’s edits, and they MERGE into the row’s current metadata — rotation and tags survive a title edit. The write re-reads the row; the parent-passed map carries no metadata. - Seeding rides the mount read the rotation already did: one
Storage.get_filefor both, where there used to be one for rotation alone.
- Writes go into the file’s
-
A user’s Google address (
google_emailonphoenix_kit_users, V196). Sharing something with a user through Google — a Drive file, a calendar invite — needs the address their Google account answers to, which is not always the address they registered with.PhoenixKit.Users.Auth.google_email/1resolves it: the stored address, else the account email when that is itself@gmail.com/@googlemail.com, elsenil. Nothing else is guessed — a share sent to an address with no Google account behind it is a share the user never receives.- Editable by the user on their settings page and by an admin on the user form, and filled in automatically the first time the user signs in with Google (never overwriting a value already there).
- V196 backfills it from existing linked Google sign-ins, so those users start filled instead of waiting for their next sign-in.
- It is not an identity: optional, not unique, and nothing authenticates
against it.
emailstays the identity.
Changed
- Etcher pinned to 0.14.1 (#826) —
mix.lockand the jsDelivr tag inphoenix_kit.jsmove together, per the pin discipline (vendored_cdn_pins_test.exs). Shaft labels now default to their line’s colour, the dimension drops into a skippable label editor on release, the shaft breaks under the editor while typing instead of popping in at placement, and a label-prompted shape stays fresh so the label size chosen while typing becomes the tool’s default. The~> 0.14.0requirement already admitted the patch, somix.exsis unchanged.
Fixed
-
The viewer’s title/description editor accepted writes from hosts that never offered it (#825 follow-up). The editability rule lived only in the template, so
save_media_detailswrote the shared file row for any sender — including an anonymous visitor of a readonlyMediaGallerylightbox, which passes neitherdetails_pathnoredit_targetand renders the section read-only. The handler now refuses that case outright, the same way thecan_annotate: falseclauses refuse annotation writes, and one predicate (can_edit_media_meta?/2) feeds both the template and the handler so they cannot drift. -
The viewer metadata suite never ran (#825 follow-up). Its
Storage.Filefixture omitted three required fields, and the setup returned the row under:file, a reserved ExUnit context key — so both DB tests died insetupand the merge-don’t-replace guarantee they exist to prove was never checked. Fixed, with new tests covering the gate above. -
The sidebar’s save status could be wiped by a stale timer (#825 follow-up). A second Save inside the two-second auto-hide window left the first save’s timer alive to clear the status the second one had just put up. Token-guarded now, like the rotation pill beside it.
-
Three translations were wrong in all seven locales. A catalog merge had copied a near neighbour’s translation onto new strings: “Channel” read as “Cancel” (
Отмена,Abbrechen,Annuler, …) and “Could not save the linked chats” had lost the “linked chats” half. Fuzzy entries are served, so these shipped silently. (#822 follow-up)
PhoenixKit 2.29.0. Install or update: {:phoenix_kit, "~> 2.29"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.