Skip to content

Dashboards 0.2.2: Dragging a widget now repairs its stored height

Dashboards 0.2.2 finishes a fix from 0.2.1. Dragging a widget to another cell on a grid dashboard now saves its height as well as its position and width.

Before, a widget whose height had been stored as text kept that text value after every drag, because only the position and width were written back. The builder read past it, but the stored record was never repaired. Now the drop saves a clean number, the same way resizing does.

The rest of the release is test and documentation fixes, including links from the package documentation to the source code. No change in what a site needs to run.

Full release notes: Dashboards 0.2.2

0.2.2 · 19 July 2026

Fixed

  • Dashboards.place_at_cell/5 (a grid drag-to-cell drop) coerced a legacy/tampered string "h" only for its row-bound clamp but persisted just x/y/w, so the string span survived every drag. It now persists the coerced "h" too (matching resize_instance/7 / grow_on_layout/5), healing the stored placement.
  • Both regression tests added in 0.2.1 for the legacy-span coercion fixes were committed unverified (no PostgreSQL in the review environment) and failed against a real DB: the place_widget_grid/5 one via the persistence gap above, the view-switch-growth one via a setup that placed the clock on an occupied cell and couldn’t trigger growth. The latter was redesigned to actually reach the guarded path and pin the ArithmeticError.
  • mix.exs source_ref pointed ExDoc source links at non-existent v-prefixed tags; the repo tags bare version numbers. Corrected, along with the stale core-pin floor comments in mix.exs/AGENTS.md (the floor has been ~> 1.7.189 since PhoenixKit.SchemaPrefix).

Dashboards 0.2.2. Install or update: {:phoenix_kit_dashboards, "~> 0.2"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.