Hello World 0.2.0: PhoenixKit 2.0, a migration audit task and new demo pages
Hello World 0.2.0 moves the PhoenixKit module template to PhoenixKit 2.0 and adds a migration audit task, a template for module-owned tables, and examples of notifications, dashboard widgets and project tabs.
It includes the changes of 0.1.7 to 0.1.9, which were never published.
Module-owned migrations
The template now states the rule that a module ships the migrations for its own tables, in its own package, instead of adding them to core. A commented migration coordinator template shows the four functions mix phoenix_kit.update calls, version tracking and prefix safety. Hello World itself still creates no tables.
The new mix phoenix_kit_hello_world.audit_migrations checks a module’s migration coordinator against those rules on a live database. Three bugs in the coordinator template that every module was copied from are fixed: a table with a text comment read as not installed, an invalid prefix read as a fresh install, and the pgcrypto extension was not ensured before the first insert.
New demo pages
- A Notifications tab shows how to send a notification by logging an activity, how to change its text, icon and link, and how to read, mark and dismiss notifications live. The module declares its notification types, so users can mute them.
- A reference dashboard widget shows every part of the Dashboards widget API in one component.
- A reference projects-hub tab shows the minimal extension a module contributes to a project page.
Upgrading
Hello World 0.2 requires PhoenixKit ~> 2.0. PhoenixKit 2.0 refuses to migrate a database below V135: run mix phoenix_kit.status first, and if it is lower, install PhoenixKit 1.7.236 and migrate before moving to 2.0.
Full release notes: Hello World 0.2.0
0.2.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
mix phoenix_kit_hello_world.audit_migrations(PR #34) — audits a module migration coordinator against the rules this template documents, on a live database.- Reference project-extension provider (PR #33) —
phoenix_kit_project_extensions/0plusWeb.ProjectHelloTabLive, the canonical minimal implementation of the projects-hub extension contract, with a test pinning the contributed shape.
Fixed
Three bugs in the migration-coordinator template every module was copied from (PR #34). Each disguised itself as a healthy reading:
String.to_integer/1on the version comment raises on a non-numeric comment, and the raise landed in a blanketrescue _ -> 0— so a populated table reported “not installed”. The comment slot is not always free: core V43 puts a prose description onphoenix_kit_consent_logs. NowInteger.parse/1with an@initial_versionfallback.migrated_version_runtime/1swallowed everything into0, so an invalid--prefixread as a fresh install and the updater generated DDL against live data. Now re-raisesArgumentError, matching core.up_v1/1ensured the uuid function but not pgcrypto, souuid_generate_v7()was created and then failed on the first insert.
Also on main, fixing gate failures in PR #34 itself: extracted a too-deeply
nested case out of the auditor’s check_version_marker/2 (credo –strict),
and added :mix to plt_add_apps — the auditor is this package’s first Mix
task, and dialyzer could not resolve Mix.shell/0 without it.
Hello World 0.2.0. Install or update: {:phoenix_kit_hello_world, "~> 0.2"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.