Locations 0.4.0: PhoenixKit 2.0 and a Sites tab on projects
Locations 0.4.0 moves the PhoenixKit locations module to PhoenixKit 2.0 and adds a Sites tab to projects, so a project can show the physical locations it is tied to.
A Sites tab on projects
With the Projects module installed, a project can now switch on a Sites feature (“Link physical locations to this project”). It is off by default. You link locations by pasting their ids, separated by commas, into the Location UUIDs (comma-separated) field in the project’s modules and features panel.
The Sites tab then shows each linked location as a card with its name and address, and an Open location button that leads to the location in the Locations admin. With nothing linked it says No sites linked to this project yet., and when the linked locations no longer exist it says so instead of showing an error. A database hiccup or an id that no longer matches leaves out the card rather than breaking the project page.
The link is kept in the project’s settings rather than as a database relation, and Locations does not depend on Projects: the Projects module finds the tab on its own when both are installed. The tab’s texts are in English only in this release.
Upgrading
Locations 0.4 needs PhoenixKit 2.0 and no longer installs alongside core 1.7. This is the main thing to plan for.
PhoenixKit 2.0 squashes its migrations into one starting point, V135, and refuses to migrate a database below it. Before you update, run mix phoenix_kit.status. If the database is below V135, first install phoenix_kit 1.7.236, the last release with the full migration chain, and migrate until the reported version is at least V135. Only then move to PhoenixKit 2.0 and Locations 0.4.
Locations itself has no migration in this release, and nothing changes in its own pages.
Full release notes: Locations 0.4.0
0.4.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
V135baseline and makes V135 the chain’s floor:mix ecto.migratenow refuses on a database below it rather than migrating. Checkmix phoenix_kit.statusbefore upgrading. A host below V135 must installphoenix_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
- Sites tab for the
phoenix_kit_projectshub (PR #10). Contributed throughphoenix_kit_project_extensions/0, the duck-typed one-way discovery contract — the projects package finds it, and this package takes no dependency on projects. Linkage is per-project config (comma-separated location UUIDs in the Modules & features panel), not a foreign key. Read-only address cards with link-outs to the locations admin; a stale UUID or a DB hiccup degrades to a missing card rather than crashing the host project page.
Locations 0.4.0. Install or update: {:phoenix_kit_locations, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.