Skip to content

Dashboards 0.2.0: Named screen layouts and live updates on every open display

Dashboards 0.2.0 replaces the four fixed device sizes with layouts you name and size yourself, each exactly one screen, and keeps every open copy of a dashboard up to date as it is edited.

Layouts you define

The TV, Desktop, iPad and Phone sizes are gone. A grid dashboard now has one or more named layouts, shown as tabs in the builder under Dashboard layouts. Each layout is a grid of 25px square cells, set in Grid size (columns × rows), and it is exactly one screen: nothing scrolls. Add layout copies the current one, a layout can be renamed or deleted, and Fit this screen sizes it to the display you are looking at. A new dashboard starts with one layout of 64 by 36 cells. Widgets can show a different view in each layout, for example detailed on a wall screen and compact on a small one, and their content scales to the size of the card.

Live dashboards and display mode

Every change is pushed to every open session of the same dashboard, so a wall display shows an edit at once, and a deleted dashboard sends its viewers away. If two people edit at the same moment, the older change is refused instead of overwriting the newer one, and the builder reloads the current state. Full screen now hides all editing controls and hides the mouse pointer after a short idle. While the browser tab is in the background, the widgets stop refreshing.

A settings page instead of a dialog

Creating and editing a dashboard’s title, layout type and visibility now happens on its own page. The list page keeps open, create, clone and delete.

Widgets from the host app

The host application can add its own widgets with config :phoenix_kit_dashboards, widget_providers: [...], using the same contract as a PhoenixKit module.

Fixes and hardening

Every builder action and form save is checked against the user’s access again, widget settings are validated so a bad value cannot break a dashboard, and a widget provider that crashes no longer takes the catalog down. A new widget on a full layout no longer lands below the visible screen.

Upgrading

No migration: the new data lives in the existing dashboard record. It needs PhoenixKit 1.7.189 or later. A grid dashboard made with 0.1 opens with the default layout, and widgets placed for the old device sizes are laid out automatically, so check them and arrange them again where needed.

Full release notes: Dashboards 0.2.0

0.2.0 · 16 July 2026

Added

  • Screenful lattice grid model: replaces fixed device-tier breakpoints (TV/Desktop/iPad/Phone) with user-defined named layouts, each a cols × rows grid on a gapless 25px square-cell lattice representing exactly one screenful — nothing scrolls. Layouts are managed as a tab strip (add/rename/delete/duplicate) with numeric dimension inputs and a “Fit screen” button.
  • Fully live dashboards: every mutation broadcasts over a per-dashboard PubSub topic, so any open session (e.g. a wall-mounted display) re-renders instantly on a concurrent edit and navigates away on delete.
  • Optimistic concurrency: a monotonic config["rev"] compare-and-swap (no schema migration) refuses stale writes instead of silently clobbering a concurrent edit; the builder re-syncs automatically.
  • Display mode: fullscreen now hides all edit chrome and auto-hides the cursor after idle; the refresh loop pauses while the tab is hidden so a backgrounded display doesn’t fast-forward its clocks on return.
  • Host-app widgets: any host application can contribute widgets via config :phoenix_kit_dashboards, widget_providers: [...], using the same phoenix_kit_widgets/0 contract as a PhoenixKit module.
  • Per-layout widget views: a widget’s render variant (detailed/compact/…) is chosen per layout and honored verbatim at any size via container-query self-fit sizing.
  • Dedicated create/edit page (DashboardFormLive) replacing the old create modal.

Changed

  • Pixel-canvas dashboards brought up to the lattice-era polish (native fit, fill-to-container scaling, restack z-order).
  • Manage page trimmed to list/create/clone/delete now that metadata editing lives on its own page.

Fixed

  • Hardened the module against a multi-AI security/quality review: re-authorize every builder event and form save, scope-gate add-widget paths, validate settings/view input to prevent bricking, bound pixel coordinates, gate module-stats on module access, and isolate provider discovery from crashes.
  • Grid.first_free/4 ignored a layout’s actual row count (scanned to a hardcoded 160-row cap), letting a new widget seed below the visible screenful on a full small layout instead of triggering the documented below-the-fold fallback.
  • DashboardsLive had no catch-all handle_event, unlike its sibling LiveViews — an unrecognized event crashed the process.
  • DashboardFormLive treated a concurrent-edit {:error, :stale} as a generic save failure instead of resyncing.
  • The DashboardVisibility JS hook didn’t sync the refresh-pause state for a dashboard that mounts already in a background tab.

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