Skip to content

Hello World 0.3.0: The module template catches up with current PhoenixKit

Hello World 0.3.0 brings the PhoenixKit module template up to date with core 2.63, so a module cloned from it starts on core’s current logging, translation, page-header and linking conventions.

Translations and logging

The module ships its own translations for English, Estonian and Russian, and its tabs and permission labels show translated in the admin sidebar and the permissions matrix. Activity logging now calls core’s PhoenixKit.Activity.log/3 with the current actor directly, without the guards and fallbacks the template used to carry, and every logging example shows that form. The Events, Components and Notifications pages show “Hello World” in the admin header, linking back to the landing page.

A larger Components page

The Components page now shows the newer core components: modals that guard unsaved input, alert modals, a drawer, a table with sortable rows, bulk actions and column settings, a search picker, badges, status dots, stat cards, line and bar charts, sparklines, chart lanes, date navigation, save buttons and pagination controls. Every new event handler checks its input against a list on the server. The only thing the page stores is your column choice.

New template patterns

The template shows resource_links/0 for deep links to a module’s records, a moderate sub-permission that gates a second demo action, a dashboard widget that renders its note as sanitised rich text, and a projects-hub extension that follows the session language and honours write access.

Fixes

  • The Notifications page no longer crashes once the viewer has a notification, and it reports a failed send.
  • Fold-out sections stay open when the page updates.
  • Field labels use daisyUI 5 classes.
  • mix phoenix_kit_hello_world.audit_migrations accepts namespaced version markers such as pkb_schema:4, and no longer reports false failures from a long test prefix or blames the wrong task for a missing function.

Upgrading

Hello World 0.3 needs PhoenixKit 2.63 or later and below 3.0, and adds a gettext ~> 1.0 dependency. There are no migrations; the module owns no tables.

Full release notes: Hello World 0.3.0

0.3.0 · 24 October 2026

The template brought up to current core and its consumers (#41, #42, #44). Modules cloned from it now start on core’s logging, Actor, header-trail, Gettext and resource-link conventions.

Changed

  • ⚠️ Requires phoenix_kit >= 2.63.0 and < 3.0.0 (was ~> 2.0). The floor follows the lock, so the suite proves the pages render against it. By the source, the newest core APIs called are from 2.47.0 (save_button); the README asks for that “oldest core” rule instead, and the choice between the two rules is still open.
  • Adds a gettext ~> 1.0 dependency. The module ships its own backend (PhoenixKitHelloWorld.Gettext) with en, et and ru catalogues, and priv is now in the package files. Tabs and permission labels carry gettext_backend: so they render translated in core’s sidebar and the permissions matrix (#42).
  • Activity logging uses core’s PhoenixKit.Activity.log/3 with PhoenixKitWeb.Actor.opts/1 (#41), with no guard, rescue or actor helper of its own. The Code.ensure_loaded? guards around core’s Activity and Notifications are gone, and every logging example on the pages and in the docs shows the log/3 form.
  • The Events, Components and Notifications pages set the admin header trail (page_section “Hello World” linking to the landing page) (#41).
  • Components page refreshed for core 2.63 (#42, #44): core <.modal> with the unsaved-input guard, alert_modal, a drawer, a managed table (sortable rows, drag handles, bulk_actions_toolbar, column_settings_modal over PhoenixKitWeb.TableColumns), bulk select, search picker, form sections, popover, typed badges, status_dot, hero_stat_card, charts (line_chart, bar_chart, sparkline, chart_lanes), date_nav, section_header/decimal_input/save_button, form_actions submit_disabled, tree_name_cell, row_link, pagination_info and page_size_selector. Every new event handler checks its input against a server-side list. The column choice is the only row the page writes (in ViewPrefs).
  • New template patterns (#42): resource_links/0 replaces host config as the way to deep-link the module’s resource types; a "moderate" sub-permission (moderate_permission/0, checked with Scope.can?/2) gates a second demo action; the dashboard widget takes the context assign, documents lattice sizes and renders its note as sanitised rich text; the project extension covers every field and session key the projects hub reads, applies the session locale and honours can_write. The hub’s mode is documented as an atom (#43).
  • Callbacks table in PhoenixKitHelloWorld lists all 32 callbacks of the core floor. The moduledoc describes js_sources/0 instead of inline <script> tags, which stop working after a LiveView navigation. Routing docs (Routes) say that tabs with live_view: and dynamic paths cover multi-page admin modules, so a route module is only for what tabs cannot express. version/0 reads mix.exs at compile time.
  • Dependency refresh: phoenix_kit 2.64.1 and its transitive set.

Fixed

  • mix phoenix_kit_hello_world.audit_migrations no longer fails coordinators that follow the documented namespaced marker convention for adopted tables (pkl_schema:1, pkb_schema:4, pkp_schema:14, …) (#40). The check — previously “version marker is numeric”, now “version marker is a version” — accepts both a bare number and a <namespace>:<number> marker.
  • The absent schema reports 0 check’s own fixture prefix was 22 bytes, over core’s validate_prefix!/1 20-byte ceiling, so a coordinator that correctly delegates prefix validation to core raised ArgumentError and the check reported a false failure. Shortened the fixture to 15 bytes.
  • The protocol check always blamed mix phoenix_kit.update for a missing function, even when the only function missing was migrated_version/1 — which mix phoenix_kit.update never calls directly (it is read by the coordinator’s own up/1 to re-read the version mid-migration). The message now names the accurate consequence for whichever function is actually missing.
  • The Notifications page handles :notification_updated, reports a failed send, loads only when connected, and no longer crashes once the viewer has a notification (#42).
  • Fold-out <details> sections no longer close whenever the page re-renders (#42).
  • Field labels no longer use daisyUI 4 classes that style nothing in v5.

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