Skip to content

Dashboards 0.1.0: Build admin dashboard pages from module widgets

Dashboards 0.1.0 is the first release of the PhoenixKit dashboards module. Admins compose their own pages from widgets, place them on a grid or a free canvas, and keep dashboards for themselves or share them.

Dashboards in the admin

The module adds a Dashboards tab to the admin sidebar. The list page creates, opens, clones and deletes dashboards. A new dashboard gets a title, a Layout type of Grid (responsive) or Pixel (free canvas), which is fixed once it is created, and a Visibility of Personal or Shared. A shared dashboard can be turned into a personal one with Make a personal copy.

The builder

Opening a dashboard shows the builder with a Widget catalog on the side. Widgets are added from the panel or dragged onto the board, moved by drag, and resized from the bottom-right corner. Each widget has its own Widget settings form with size fields for use without dragging.

A grid dashboard keeps a separate layout for four screen sizes, TV, Desktop, iPad and Phone, and fills a size you have not designed from another one. A pixel dashboard places widgets at exact positions, lets them overlap with Bring to front and Send to back, and scales to fit the screen. Full screen shows the board on its own, for example on a wall display.

Widgets

Three widgets come built in: Note (a title and text), Clock (normal, digital or analog, with its own timezone and 12h or 24h format, ticking every second) and Module stats (the statistics another PhoenixKit module exposes). Any module can contribute its own widgets without depending on this package; widgets from disabled modules, or modules the user has no permission for, are left out of the catalog.

Upgrading

Add {:phoenix_kit_dashboards, "~> 0.1"} and run mix phoenix_kit.update: the dashboards table comes from core PhoenixKit migration V133, and the package has no migration of its own. It needs PhoenixKit 1.7.179 or later. Enable the module on the admin Modules page.

Full release notes: Dashboards 0.1.0

0.1.0 · 12 June 2026

Added

  • Initial scaffold of the Dashboards module.
  • PhoenixKit.Module integration: auto-discovery, admin tab, permission, enable/disable.
  • Backing phoenix_kit_dashboards table added as core PhoenixKit migration V133 (modules do no DDL of their own).
  • Widget provider contract — any module exposes widgets via a plain-map phoenix_kit_widgets/0 (PhoenixKitDashboards.Widget).
  • PhoenixKitDashboards.Registry — runtime discovery and a cached widget catalog (built-ins ∪ providers), filtered by module enablement and permissions.
  • Built-in widgets: Note, Clock, Module stats.
  • phoenix_kit_dashboards table + schema + context, with personal and system/shared dashboard scopes and a JSONB layout of widget instances.
  • Manage page (DashboardsLive) and a gridstack-style 2D grid builder (BuilderLive) with add/remove, drag/resize persistence, and a schema-generated per-widget settings form.

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