Skip to content

PhoenixKit 1.7.179: Dashboard settings column and screen width on connect

PhoenixKit 1.7.179 prepares for the next Dashboards release and removes a strip that showed at the right edge of admin pages while a modal was open.

Migration V139 gives each dashboard a config column for its layout settings. mix phoenix_kit.install and mix phoenix_kit.update now add viewport_width to the LiveSocket connect params in assets/js/app.js, so pages such as the dashboard builder can pick the right layout on the first render. When app.js has a shape the task cannot safely change, it prints instructions for doing it by hand instead.

On daisyUI 5.0, users with classic scrollbars saw an unpainted strip beside an open modal or drawer. A CSS rule in the admin and root layouts now hides it, at the cost of a small shift on long pages when a modal opens.

Upgrading

Run mix phoenix_kit.update for V139 and the app.js change.

Full release notes: PhoenixKit 1.7.179

1.7.179 · 8 July 2026

Added

  • V139 migration: per-dashboard config column. Adds a JSONB config column (NOT NULL DEFAULT '{}') to phoenix_kit_dashboards for dashboard-level presentation state (layout mode, pixel-mode zoom, home tier, per-tier markers), read and written whole like layout. Idempotent (ADD COLUMN IF NOT EXISTS); unblocks the dashboards module’s next Hex floor. (#623)
  • Installer wires a viewport_width LiveSocket connect param. mix phoenix_kit.install / mix phoenix_kit.update now add viewport_width: window.innerWidth to the host’s LiveSocket params: (rewritten into a closure so reconnects re-read the width). Responsive PhoenixKit LiveViews (e.g. the dashboards builder) use it to resolve the right layout tier server-side on the first render instead of a client-hook round-trip; everything degrades gracefully without it. The rewrite is deliberately conservative — it anchors on the real new LiveSocket( call, only patches a params: object at the options’ top brace depth, blanks string literals and comments before depth counting, and refuses every ambiguous shape with a manual-instructions notice rather than risk corrupting host app.js. Pinned by 13 tests in js_integration_test.exs. (#623)

Fixed

  • daisyUI 5.0.x modal scrollbar-gutter strip. daisyUI 5.0.x reserves a scrollbar gutter while a modal/drawer is open and paints it with a base-100 trick that mismatches on non-base-100 pages, so classic-scrollbar users saw an uncovered strip at the window’s right edge on every admin page. An unlayered :root:has(.modal-open, …) { scrollbar-gutter: auto } counter-rule in the admin LayoutWrapper and the core root layout beats the layered original regardless of stylesheet order. Documented trade-off: scrollable pages get a small reflow on modal open instead of the mispainted strip. Upstream fixed this properly in daisyUI 5.1.0–5.6.x; an AGENTS.md TODO tracks removing the rule once hosts upgrade. (#623)

Changed

  • Migration-history doc block tracks V139. Migrations.Postgres’s version list now carries the ### V139 entry and the ⚡ LATEST marker, which the merge left pointing at V138. (post-merge review)

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