Skip to content

PhoenixKit 1.7.151: One user menu for guests and members

PhoenixKit 1.7.151 turns the user menu into a widget for every visitor. Signed-out visitors used to see a plain log-in button; they now get the same dropdown as signed-in users, with sign-in links and the language switcher.

The guest menu says Not signed in and offers Log in, Sign up, Forgot password and Magic link, followed by the language list. Sign up shows only while registration is allowed, and Magic link only while magic link sign-in is on. Both menus now draw the language list from the same component.

A host can pass guest_links to show fewer of these links; it cannot bring back one the settings turn off. show_language_switcher={false} hides the language list in both states, for a site that keeps a separate switcher.

Full release notes: PhoenixKit 1.7.151

1.7.151 · 15 June 2026

Anonymous (guest) state for the user-menu widget, so one dropdown serves both signed-in and logged-out visitors and always offers a language switcher.

Added

  • Guest dropdown in UserDashboardNav.user_dropdown/1. The anonymous state, previously a bare “Login” button, now renders the same dropdown shape as the authenticated state: a generic “not signed in” trigger (hero-user-circle) opening a menu with guest links — Log in, Sign up, Forgot password, Magic link — plus the shared language switcher. A host can now rely on this single widget for everyone and drop a separate standalone switcher. Guest links are gated by the allow_registration / magic_link_login_enabled settings (log in and forgot-password always show).
  • :show_language_switcher attr (default true) on user_dropdown/1 — hides the in-menu language list in both states, for hosts that keep a standalone switcher and want to avoid a duplicate.
  • :guest_links attr (default [:login, :register, :reset, :magic_link]) — narrows which guest links may appear; the per-feature settings gates still apply, so it can only narrow, never force-enable a disabled feature.

Changed

  • The authenticated and guest dropdowns now share one internal language_menu_section component, so both states render an identical language list. The guest switcher reuses the same URL logic, so locale links resolve correctly on locale-less pages (/ → /ru, building on 1.7.150).

PhoenixKit 1.7.151. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.