Skip to content

Projects 0.17.0: Seven widgets for PhoenixKit dashboards

Projects 0.17.0 adds seven widgets that a site with the Dashboards module can put on its boards: an overview of all projects, the team’s workload, your own tasks, upcoming deadlines, and three that follow one chosen project.

The widgets

  • Projects board: every project, coloured by status, as a grid sorted by what needs attention, or as status counts.
  • Projects workload: how many projects are in each stage and how tasks stand, in a detailed or a simple view.
  • My tasks: the open tasks assigned to the person looking at the dashboard.
  • Deadlines: running projects by their nearest planned end, counting weekends as the project does, with overdue ones flagged and an Only my projects option that still fills the widget when the nearest deadlines on the site belong to others.
  • Project status and Project schedule: one project’s status, or its estimate and live finish date.
  • Ongoing tasks: one project’s to-do and in-progress tasks.

The single-project widgets are set up by picking a project from a list of current projects. Most views come in a detailed and a smaller version, and each has a minimum size, so the smallest box shows its content without scrollbars.

How they appear

Projects does not depend on the Dashboards module. The widgets are offered only when both modules are present, and only to people who have the Projects permission. Each widget refreshes when the dashboard does, and checks that Projects is enabled before reading anything.

Upgrading

No migration and no configuration. Update the dependency, and install the Dashboards module if you want to use the widgets. The module still needs PhoenixKit 1.7.130 or later.

Full release notes: Projects 0.17.0

0.17.0 · 8 July 2026

Dashboard widgets for phoenix_kit_dashboards. Projects now contributes seven dashboard widgets through the duck-typed PhoenixKitProjects.phoenix_kit_widgets/0 — a one-way contract (projects has no dependency on the dashboards package; its Registry discovers the plain-map list and gates visibility on the "projects" module + permission). Each widget is a Phoenix.LiveComponent the host renders with settings / view / size / scope, re-querying on the host’s refresh tick, with per-view min_size floors so minimum boxes fit without scrollbars. Every data read is guarded behind an enablement check and reuses the projects badge components and attacker-proof colour guard.

Added

  • Seven dashboard widgets (PhoenixKitProjects.DashboardWidgets + web/widgets/*): projects.board (every project, coloured by status — attention-sorted grid / status counts), projects.workload (workspace lifecycle + task-status KPIs — detailed / simple), projects.my_tasks (the current user’s open assignments via the host scope → staff person), projects.deadlines (running projects by nearest weekend-aware planned_end, overdue flagged, with an “only my projects” filter), projects.status / projects.schedule (one project’s status / estimate + live ETA — detailed / simple), and projects.tasks (a project’s ongoing todo + in-progress tasks — detailed / compact). Single-project widgets pick their project from a select of current projects, resolving stored values leniently (uuid / name / external id / substring).
  • PhoenixKitProjects.Web.Components.DerivedStatusBadge.workflow_color/1 is now public so widgets can colour status dots with the same #hex-only guard that keeps an attacker-controlled string out of the inline style attribute.

Fixed

  • Deadlines widget “Only my projects” no longer under-reports. The only_mine filter was applied after the row cap, so it narrowed the global nearest-N deadlines to the viewer’s — which could render the widget empty (or short) even when the viewer had running projects whose deadlines fell just outside the global top-N. The viewer-filter now runs before the cap (new pure, unit-tested scope_and_limit/4), while still showing nothing when there’s no resolvable viewer.

Projects 0.17.0. Install or update: {:phoenix_kit_projects, "~> 0.17"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.