Skip to content

PhoenixKit 1.7.38: Entities save again, and no circular shop categories

PhoenixKit 1.7.38 fixes two bugs from the UUID and timestamp changes in Entities and the Shop.

Creating or updating an entity or an entity record could crash, because the created and updated times were set in a format the schemas no longer accepted. They are now set as DateTime values.

A shop category could be given one of its own subcategories as parent, which made a loop in the category tree. Saving now checks the whole chain of parents and refuses such a change, as it already refused a category being its own parent. The admin categories page also loads its data in fewer steps.

In the entity data list, archiving, restoring and changing the status of records now check on the server that you are an admin; otherwise they answer Not authorized.

Full release notes: PhoenixKit 1.7.38

1.7.38 · 15 February 2026

  • Fix Ecto.ChangeError in entities by using DateTime instead of NaiveDateTime
  • Fix infinite recursion risk in category circular reference validation
  • Add DateTime inconsistency audit report with phased migration plan
  • Add custom permission key auto-registration for admin tabs
    • Custom admin tabs with non-built-in permission keys now auto-register with the permission system
    • Custom keys appear in the permission matrix and roles popup under “Custom” section
    • Owner role automatically gets access to custom permission keys
    • Custom LiveView permission enforcement via cached :persistent_term mapping
    • New API: Permissions.register_custom_key/2, unregister_custom_key/1, custom_keys/0, clear_custom_keys/0
    • Key validation: format check (~r/^[a-z][a-z0-9_]*$/), ArgumentError on built-in key collision

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