Projects 0.4.0: Admin addresses without a language prefix
Projects 0.4.0 follows a change in PhoenixKit core: admin links in the default language drop the language prefix, so they point to /admin/projects/… instead of /en/admin/projects/…. It also moves to helpers shared in core and polishes the embedded popup.
Admin addresses
The module builds its admin links through core, and for the default language those links now leave out the prefix. If your app has hard-coded links to project pages with a language prefix, check that they still go where you expect.
Shared core pieces
Reordering, value handling and the empty-state message on the lists now use PhoenixKit core’s own versions instead of copies inside the module. Task status badges on the project page and the Overview share one component, so they look the same in both places.
Embedded popups
For apps that open project pages in the module’s popup:
- each popup frame shows a spinner while it loads, and links give clearer click feedback;
- the number of stacked popups can be capped with the
max_stack_depthsession key (1 to 20, 5 by default).
Fixes
- A link in an embedded page could crash the whole page if its data could not be encoded. It now falls back to an empty session.
- The “Project not found.” message on an embedded page now comes in the host’s language.
- A faulty telemetry handler in the host app can no longer crash an embedded page.
Upgrading
Projects 0.4 needs PhoenixKit 1.7.114 or later. Update core first. No migration.
Full release notes: Projects 0.4.0
0.4.0 · 19 May 2026
Adopts phoenix_kit core PR #551 — shared utilities consolidated upstream — plus emit-mode review follow-ups and UX polish.
Changed
- Prefixless admin URLs —
Paths.*helpers now resolve to/admin/projects/...instead of/en/admin/projects/...for the default locale, trackingRoutes.admin_path/2from phoenix_kit core PR #551. Hosts with hardcoded locale-prefixed paths to project routes should re-check them. - Migrated to
PhoenixKit.Utils.{Reorder,Values}— the projects-local reorder and value-coercion helpers were dropped in favour of the consolidated core utilities. - Dropped local
<.empty_state>— list views now use thePhoenixKitWeb.Components.Coreempty_state/1component lifted into phoenix_kit core. - Minimum
phoenix_kitis now~> 1.7.114(shipsUtils.Reorder,Utils.Values,core/empty_state, and prefixlessadmin_path).
Added
<.assignment_status_badge>component — shared assignment-status presentation (color/1,badge_class/1,label/1), extracted fromProjectShowLive+OverviewLive.session["max_stack_depth"]—PopupHostLiveaccepts a host-supplied modal-stack cap (integer1..20, default 5; out-of-band values reset to the default with a logged warning).<.popup_host>loading feedback — per-frame daisyUI spinner overlay that auto-fades;<.smart_link>buttons getcursor-pointer+phx-click-loadingCSS feedback.
Fixed
<.smart_link>/<.smart_menu_link>render-time crash vector — emit-session JSON now encodes via the non-bangHelpers.encode_emit_session/3, falling back to an empty session on failure instead of crashing the whole view.ProjectShowLivefail-closed mount now inherits the host locale, so the “Project not found.” flash is localized.emit_telemetry/2builds its payload outside the rescue and rescues only around:telemetry.execute/3, so a misbehaved host telemetry handler can’t crash the embed flow while bugs in this module still surface.mix precommit— credo alias, dialyzerpattern_match_covon the reorder LiveViews, and formatting.
Removed
- Dead
:embed_close_onassign /"close_on"session key — reserved-but-unused; can be reintroduced when per-frame close-event opt-in is genuinely needed.
Tests
- New pure-changeset suites —
schemas/project_test.exs(26 tests: required/length validation,start_modeenum,derived_status/2cascade,planned_end_for/2+eta_from/3branches) andschemas/dependency_test.exs(required validation, self-reference rejection).
Projects 0.4.0. Install or update: {:phoenix_kit_projects, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.