PhoenixKit 1.7.43: Entities in several languages, and timestamps with time zones
PhoenixKit 1.7.43 makes Entities multilingual and moves every timestamp column in the database to a type with time zone.
When the Languages module has more than one language, entity forms, record forms and record views get a tab per language. The primary language holds the full record; other languages store only the fields that differ, and an empty field shows the primary value as a hint (Fields left empty will use the primary language value.). Slug and status sit in their own card and are not translated. Code can set translations with Entities.set_entity_translation/3 and EntityData.set_translation/3.
Migration V58 converts the timestamp columns of 68 tables to timestamptz, and the schemas now store times to the second.
A guest who signs in during checkout returns to where they were, and the guest cart is merged into the account. The admin sidebar submenus open again on localized routes, the admin header no longer falls back to “PhoenixKit” as the project title, and the Sessions page no longer crashes.
Upgrading
Run mix phoenix_kit.update for V58.
Full release notes: PhoenixKit 1.7.43
1.7.43 · 18 February 2026
- Standardize all schemas to
:utc_datetimeandDateTime.utc_now()across 73 files- Replace
:utc_datetime_usecwith:utc_datetimeandNaiveDateTimewithDateTime - Add V58 migration to convert all timestamp columns across 68 tables from
timestamptotimestamptz - Fix UUID FK backfill to handle NULL UUIDs before applying NOT NULL constraints
- Replace
- Fix DateTime.utc_now() microsecond crashes in 19 files after
:utc_datetimeschema migration- Add
DateTime.truncate(:second)to allDateTime.utc_now()calls in contexts - Affected: settings, billing, shop, emails, referrals, tickets, comments, auth, permissions, roles
- Add
- Fix Language struct Access error on admin modules page and all bracket-access-on-struct bugs
- Add 20 typed structs replacing plain maps across billing, entities, sync, emails, AI, and dashboard
- Billing: CheckoutSession, SetupSession, WebhookEventData, PaymentMethodInfo, ChargeResult, RefundResult, ProviderInfo
- Other: AIModel, FieldType, EmailLogData, LegalFramework, PageType, Group, TableSchema, ColumnInfo, SitemapFile, TimelineEvent, IbanData, SessionFingerprint
- Fix
register_groupsto convert plain maps toGroupstructs, preventing sidebar crashes - Fix CastError in live sessions page by using UUID lookup instead of integer id
- Fix guest checkout flow: relax NOT NULL on legacy integer FK columns, fix transaction error double-wrapping
- Add return_to login redirect support for seamless post-login navigation (e.g., guest checkout)
- Add cart merge on login for guest checkout sessions
- Fix shop module .id to .uuid migration in Storage image lookups and import modules
- Fix hardcoded “PhoenixKit” fallback in admin header project title
- Fix admin sidebar submenu not opening on localized routes
- Fix 2 dialyzer warnings in checkout session and UUID migration
- Add multi-language support for Entities module
- New
Multilangmodule with pure-function helpers for multilang JSONB data - Language tabs in entity form, data form, and data view (adaptive compact mode for >5 languages)
- Override-only storage for secondary languages with ghost-text placeholders
- Lazy re-keying when global primary language changes (recomputes all secondary overrides)
- Translation convenience API:
Entities.set_entity_translation/3,EntityData.set_translation/3,EntityData.set_title_translation/3, and related get/remove functions - Multilang-aware category extraction in data navigator and entity data
- Non-translatable fields (slug, status) separated into their own card
- Required field indicators hidden on secondary language tabs
- Title translations stored as
_titlein JSONB data column (unified with other field translations) - Slug generation disabled on secondary language tabs
- Validation error messages wrapped in gettext for i18n
- 124 pure function tests for Multilang, HtmlSanitizer, FieldTypes, FieldType
- New
- Fix entities multilang review issues
- Unify title storage in JSONB data column, fix rekey logic for primary language changes
- Add
seed_title_in_datafor lazy backwards-compat migration on mount - Replace
String.to_existing_atomwith compile-time@preserve_fieldsmap - Fix 7 remaining issues from PR #341 permissions review
- Add catch-all fallback clauses to Scope functions to prevent FunctionClauseError
- Sort
custom_keys/0explicitly instead of relying on Erlang map ordering
PhoenixKit 1.7.43. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.