Projects 0.3.0: Project pages open in pop-ups inside your own app
Projects 0.3.0 lets an app show the project management pages as pop-up windows inside its own screens, instead of sending the user away to the module’s admin pages. The project page also gets a cleaner header.
Pop-ups inside a host app
Since 0.2.1 an app could place the module’s pages inside its own LiveViews. Those pages could only move on by opening another page. Now a host can ask them to report what happened instead: a page opened, closed, was saved or something was deleted. The app passes "mode" => "emit" and its own PubSub topic in the session, and the module sends these events there. Links and menu items inside the pages then open the next page as a pop-up rather than leaving the screen.
For apps that want this without building it, the new PopupHostLive, or the <.popup_host> component, shows one page inline and opens follow-up pages as stacked modal windows. Escape or a click on the backdrop closes the top one, and the stack stops at five windows. Each window keeps the language of the page that opened it. Pages left in the default mode work as before, including redirect_to after saving.
On the project page
The project name and its description now sit together at the top, above the action buttons. Edit and archiving moved into a menu, and the row actions in the task timeline moved into menus too. When embedded, the list and detail pages now take the full width by default.
Upgrading
No migration and no configuration. Update the dependency. Sites that use the module only through its own admin pages see just the new project page header.
Full release notes: Projects 0.3.0
0.3.0 · 15 May 2026
Emit-mode navigation + PopupHostLive for embedded LiveViews, locale inheritance fixes, and UI polish.
Added
- Emit-mode contract — embedded LVs can now broadcast UI-intent events (
:opened,:closed,:saved,:deleted) on a host-supplied PubSub topic instead of calling top-levelpush_navigate. Passsession["mode"] => "emit"+session["pubsub_topic"]to any embedded LV.session["redirect_to"]from PR #6 stays supported in navigate mode (default). PopupHostLive— opinionated daisyUI modal-stack host for embedded LVs. Renders a root view inline, pushes follow-up views into<dialog>frames, and handles ESC / backdrop / race-safe pop viaframe_ref.PhoenixKitProjects.Web.Helpersembed utilities —assign_embed_state/2,attach_open_embed_hook/1,navigate_or_open/2,close_or_navigate/2,navigate_after_save/3,notify_deleted_or_navigate/4,notify_deleted/3.<.smart_link>+<.smart_menu_link>components — render real<a>tags in navigate mode and<button phx-click="open_embed">in emit mode, with whitelist validation againstHelpers.embeddable_lvs/0.<.popup_host>component — function-component wrapper for PopupHostLive session generation.dev_docs/embedding_emit.md— full emit-mode contract reference for host authors.
Changed
- Embedded LV locale inheritance —
session["locale"]is now threaded through PopupHostLive and restored in every stacked frame so translations stay consistent across modal opens. - Full-width default wrappers — list and show LVs now default to
w-fullinstead ofmax-w-*when embedded, giving hosts more layout control. - Project show header layout — title + description are stacked; Edit / Archive actions moved into a kebab menu. Row actions in the assignment timeline converted to kebab menus for cleaner visuals.
- Dependency upgrades —
phoenix_live_view,phoenix_kit,phoenix_kit_staff, and transitive deps updated to latest compatible versions.
Fixed
- Dialyzer warnings — silenced pre-existing opaque-type warnings on
PopupHostLiveandHelpersvia targeted@dialyzerannotations and.dialyzer_ignore.exsentries. - Duplicate alias — removed a duplicate
Helpersalias left by a rebase inAssignmentFormLive.
Tests
- Emit-mode regression gate —
embedding_emit_test.exs(53 tests) +popup_host_live_test.exs(27 tests) covering mount, event round-trips,frame_refstamping, race-safe pops, stack-depth caps, andnext:chaining. - Helper embed tests —
helpers_embed_test.exs(15 tests) coveringsafe_internal_path?/1,assign_embed_state/2, and emit-vs-navigate branching.
Projects 0.3.0. Install or update: {:phoenix_kit_projects, "~> 0.3"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.