PhoenixKit 1.7.131: Highlighter in the media viewer and a billing column fix
PhoenixKit 1.7.131 adds the pan and highlighter tools to the media viewer and fixes a missing column that broke billing subscriptions on fresh installs.
On new databases, phoenix_kit_subscriptions lacked the subscription_type_uuid column the Billing module uses, so creating a subscription or opening the subscriptions page failed. Migration V129 adds it where it is missing.
A highlighter line is saved like any other shape but does not ask for a title or comment; its tooltip shows who drew it and when. V130 lets the database accept it, so a highlight no longer disappears on reload. Each user’s line width, opacity and dash style are saved and reused in every viewer. The core <.select> now shows validation errors, as <.input> does. Etcher moves to 0.6.5.
Upgrading
Run mix phoenix_kit.update for V129 and V130.
Full release notes: PhoenixKit 1.7.131
1.7.131 · 5 June 2026
Added
- Per-user Etcher line params (“ink”) saved to user meta, mirroring the color
palette.
MediaCanvasViewerwires Etcher 0.6.5’s newetcher:line-params-changedhook: the global stroke defaults (width / opacity / dash for new shapes) are one set per user shared across every viewer, seeded fresh fromcustom_fields["etcher_line_params"]on mount and persisted back viaupdate_user_custom_fields/2on every slider edit. The payload is sanitized on both write and read — width clamped 1..40, opacity 0..1, dash restricted tosolid/dashed/dotted, merged over the default — so a partial or garbage client payload can never reach<Etcher.layer line_params={…}>. - Expose the full Etcher 0.6.5 toolset in the Media viewer: add
:grabber(pan) and:marker(highlighter) toMediaCanvasViewer‘stoolslist, which previously omitted them. Marker is pure marking for now — it persists like any shape (viaannotations-changed) but skips the annotation composer, so highlighting doesn’t prompt for a title/comment; it’s just a line. Its tooltip shows a byline instead: the drawing user’s display name (stamped intometadataserver-side at creation, not the spoofable client wire) over the creation date — filled instantly via the patch-shape push and identical after a reload. - V130 migration widens
phoenix_kit_annotations_kind_checkto allow'marker', andAnnotation’s@kindsadds it too. Without both layers the marker insert was rejected and silently dropped, so a marker vanished on reload.
Changed
- Upgrade
etcher0.5.5 → 0.6.5 (adds the line-params hook + API) and bump the matching jsDelivr CDN pin inphoenix_kit.js(@v0.5.5 → @v0.6.5) so the lazy-loaded browser JS is the same version — a stale pin silently serves an oldetcher.jsand the new hook never fires. Also bumpcredo1.7.18 → 1.7.19 andowl0.13.0 → 0.13.1.
Fixed
- V129 migration adds the missing
subscription_type_uuidUUID column tophoenix_kit_subscriptions. The column the billingSubscriptionschema uses was only ever renamed in V65 (plan_uuid→subscription_type_uuid), never added, andplan_uuidnever existed — so on a freshensure_current/2build the column was absent and every subscription insert / the billing Subscriptions LiveView raisedundefined_column. Idempotent throughout: nullable UUID FK tophoenix_kit_subscription_types(uuid)ON DELETE SET NULLplus a partial index, every step guarded. - AI translation now retries a bare HTTP 429 surfaced as
{:api_error, 429}instead of discarding it on the first attempt. The built-in OpenRouter client already maps 429 →:rate_limited(snoozed), so this is defense-in-depth for a custom/future provider that returns the raw status — 429 is the canonical retry-after. Also corrected the worker’s:timeoutretry-clause comment (PhoenixKitAI.Completionremaps transport timeouts to:request_timeoutbefore they reach the worker). - Core
<.select field={...}>now renders changeset validation errors. The component already had the rendering side (select-errorclass + the<.error>loop) but itsFormFieldclause never populated@errorsfromfield.errors, so<.select>silently swallowed validation errors while the sibling<.input>showed them. MirrorsInputexactly.
PhoenixKit 1.7.131. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.