Skip to content

Entities 0.3.0: PhoenixKit 2.0, a Data tab for projects, and slugs for non-Latin titles

Entities 0.3.0 moves the module to PhoenixKit 2.0, adds a Data tab for projects, and fixes records whose Cyrillic or Greek titles produced an empty slug.

Requires PhoenixKit 2.0

The module now needs PhoenixKit 2.0 or later within 2.x and no longer installs with PhoenixKit 1.7. PhoenixKit 2.0 squashes its migrations into one V135 baseline, and mix ecto.migrate refuses a database below it instead of migrating. Run mix phoenix_kit.status before upgrading. If the database is below V135, first install PhoenixKit 1.7.236, the last release with the full chain, migrate until it reports at least V135, and only then move to 2.0. The module itself calls no migration code, so the requirement is the only change on its side.

A Data tab for projects

With the Projects module installed, a project can turn on a Data extension, described as “Link an entity and browse its records inside the project”. It is off by default. The tab links one entity to the project and lists its records read-only, with a count and two buttons, New record and Open in Entities, that take you to the Entities admin for any change. The module does not depend on Projects: the Projects hub finds the extension on its own.

Slugs for non-Latin titles

A title in Cyrillic, Greek or another non-Latin script produced an empty slug, because the characters were deleted instead of romanized. Slugs are now romanized in the record form, the entity form and the mirror importer. Slugs that were already stored are not changed.

Upgrading

Upgrade PhoenixKit to 2.0 first, following the steps above, then update this module. There is no migration of the module’s own.

Full release notes: Entities 0.3.0

0.3.0 · 10 August 2026

Changed

  • ⚠️ Requires phoenix_kit ~> 2.0. The core pin moved to ~> 2.0, so this release no longer resolves against core 1.7.

    Core 2.0.0 squashes the migration chain into a single V135 baseline and makes V135 the chain’s floor: mix ecto.migrate now refuses on a database below it rather than migrating. Check mix phoenix_kit.status before upgrading. A host below V135 must install phoenix_kit 1.7.236 — the migration bridge, the last release carrying the full pre-squash chain — migrate until the reported version is at least V135, and only then move to 2.0.

    This package does not call migration internals, so the change is the pin itself.

Added

  • Data tab for the phoenix_kit_projects hub (PR #26). Contributed through phoenix_kit_project_extensions/0, the duck-typed one-way discovery contract — no dependency on the projects package.

Fixed

  • Non-ASCII titles slugged to an empty string (PR #26). Three call sites invoked core’s Slug.slugify/1 without transliterate: true, which defaults to false — after which the [^a-z0-9]+ pass deletes every non-ASCII character outright, so a Cyrillic or Greek title produced "". Now romanizes.
  • Post-merge fix on main: PR #26 also passed a locale: option to Slug.slugify/2 with a comment promising language-aware output (“a German entry wants oe”). Core’s slugify/2 reads only :separator and :transliterate, so :locale was silently discarded and German still produced schon, not schoen. The dead option, its misleading comment, and the now-unused lang parameter threaded through auto_generate_entity_slug/4 were removed. Slug output is unchanged by this removal — the option never had any effect.

Entities 0.3.0. Install or update: {:phoenix_kit_entities, "~> 0.3"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.