PhoenixKit 1.7.128: Notifications module, account switcher and sub-projects
PhoenixKit 1.7.128 turns notifications into a module with its own admin page, adds an optional switcher between several signed-in accounts, and prepares the database for sub-projects. It carries 1.7.127, which was not published on Hex.
Notifications now has a card on the Modules page and an overview at /admin/notifications with its status, retention and counts. When it is on, the notification bell sits in the admin header next to the theme switcher. Modules can also send notifications that do not come from an activity, to one user or many.
Settings has a new Multiple Sessions option, off by default. When on, any signed-in user can use Add account in the user menu, with a password or a social sign-in, and switch between up to five accounts. Log out from all accounts ends them all.
Migrations V127 and V128 let a project contain sub-projects and be assigned to a department, team or person, for the Projects module. The catalogue’s PDF viewer files are now also served by PhoenixKit’s routes, so the viewer works when the endpoint lacks its static mount.
Upgrading
Run mix phoenix_kit.update for V126 to V128.
Full release notes: PhoenixKit 1.7.128
1.7.128 · 1 June 2026
Added
- Sub-projects and project assignees (core schema support for the
phoenix_kit_projectsmodule). A sub-project is an assignment row that points at a child project instead of a task template, so it lives in the parent’s task timeline with dependencies + drag-reorder for free; a whole project (or sub-project) can also be assigned to a Department / Team / Person, exactly like a task. The schemas, context, and UI ship in the externalphoenix_kit_projectspackage — this release adds the migrations.
Migrations
- V127 — sub-projects as tasks: adds
child_project_uuid(FKphoenix_kit_projects(uuid) ON DELETE RESTRICT) tophoenix_kit_project_assignments, dropsNOT NULLontask_uuid, and adds atask_uuid-XOR-child_project_uuidCHECK. A partial UNIQUE index on(child_project_uuid) WHERE NOT NULLenforces one parent per child and also serves child-link lookups (an equality predicate impliesIS NOT NULL). - V128 — assignee on projects (and sub-projects): adds
assigned_team_uuid/assigned_department_uuid/assigned_person_uuid(FKs to the staff tables,ON DELETE SET NULL) tophoenix_kit_projectswith anum_nonnulls(...) <= 1single-assignee CHECK + a partial index per FK.@current_version→ 128.
Fixed
- Notifications kill-switch (
Notifications.enabled?/0) reads the setting uncached again. The:settingscache is node-local with no cross-node invalidation or TTL, so a cached read let a disable on one node go unseen on others until restart; the uncached read keeps the switch immediate and cluster-wide. Notifications.admin_stats/0now runs a singlecount(...) FILTER (WHERE ...)query (one table scan) instead of three separateCOUNT(*)aggregates, andget_config/0skips it entirely when the module is disabled — it’s called for every module on each Modules-page render.
PhoenixKit 1.7.128. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.