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.skillscolumn with a first-class, translatablephoenix_kit_staff_skillsentity (globally unique bylower(name)) and aphoenix_kit_staff_person_skillsmany-to-many join. Each skill carries its own per-skill, translatable proficiency levels (levelsJSONB array of{id, name, translations}) plus anallow_multiple_levelsboolean; the join’sproficiency_levelsJSONB 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-localetranslations["skills"]overrides don’t map to structured skills and are stripped (structured skills carry their own translations going forward).down/1is a lossy rollback (re-adds an emptyskillscolumn). - Partial birthday index on
phoenix_kit_staff_people(date_of_birth)(active + non-null DOB only) soStaff.upcoming_birthdays/1scans a small index instead of the full people table.
Fixed
- V135 data migration caps skill tokens at 255 chars. The source
skillscolumn is unboundedTEXTbutphoenix_kit_staff_skills.nameisVARCHAR(255)(theSkillchangeset’s max), so a >255-char token would raisevalue too longand wedge the migration on every host. Both the skill INSERT and the link-INSERT join now truncate withLEFT(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.