Skip to content

PhoenixKit 1.7.149: Structured staff skills and deep zoom in the media viewer

PhoenixKit 1.7.149 turns the free-text staff skills field into structured skills with their own levels, and gives the media viewer progressive zoom. It carries 1.7.147 and 1.7.148, which were not published on Hex.

Migration V135 creates translatable skills, each with its own proficiency levels, and links people to them. It splits each person’s comma-separated skills into skills, merges spellings that differ only in case, and drops the old column. Names over 255 characters are cut instead of stopping the migration. Translations of the old text are removed.

The viewer on the media page, in the modal and in the lightbox opens on the medium image and loads the large one as you zoom. Images over 4096 pixels then load tiles of the visible area, if tile generation is on in the storage settings. An embedded media browser limited to one folder no longer shows that folder’s cover above All Files, Trash or search results.

Upgrading

Run mix phoenix_kit.update for V135. Rolling it back restores only an empty skills column. Core now needs tessera 0.3.

Full release notes: PhoenixKit 1.7.149

1.7.149 · 15 June 2026

Structured staff skills: the V135 migration (PR #594) replaces the free-text staff skills column with a first-class, translatable skill entity.

Added

  • V135 migration — structured staff skills. Replaces the free-text phoenix_kit_staff_people.skills column with a first-class, translatable phoenix_kit_staff_skills entity (globally unique by lower(name)) and a phoenix_kit_staff_person_skills many-to-many join. Each skill carries its own per-skill, translatable proficiency levels (levels JSONB array of {id, name, translations}) plus an allow_multiple_levels boolean; the join’s proficiency_levels JSONB array holds the selected level ids. The comma-separated free-text is split, trimmed, case-insensitively de-duplicated into skill rows, linked to each person, and the column is dropped — guarded on the column’s existence so a partial re-run is a safe no-op. Lossy by design: per-locale translations["skills"] overrides don’t map to structured skills and are stripped (structured skills carry their own translations going forward). down/1 is a lossy rollback (re-adds an empty skills column).
  • Partial birthday index on phoenix_kit_staff_people(date_of_birth) (active + non-null DOB only) so Staff.upcoming_birthdays/1 scans a small index instead of the full people table.

Fixed

  • V135 data migration caps skill tokens at 255 chars. The source skills column is unbounded TEXT but phoenix_kit_staff_skills.name is VARCHAR(255) (the Skill changeset’s max), so a >255-char token would raise value too long and wedge the migration on every host. Both the skill INSERT and the link-INSERT join now truncate with LEFT(trim(tok), 255) so a long token stores and links on the same truncated form.

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