Skip to content

Projects 0.16.0: A month calendar of running projects on the Overview

Projects 0.16.0 adds a calendar to the Overview page. Next to the list of running projects, a month view now shows every project as a bar across the days it runs, and a late project’s overrun is marked so you can see at a glance how late it is.

List or calendar

The Overview’s running projects panel gets List and Calendar tabs. On the calendar:

  • a running project spans from its start to its planned end, and always reaches at least today;
  • a completed project spans from its start to its completion;
  • a scheduled project shows a one-day marker on its planned start.

Each project keeps its own colour, so bars that sit next to or on top of each other stay easy to tell apart. The stretch past a late project’s planned end is drawn in the inverse of its colour, so the length of that tail shows how late it is. Clicking a bar opens the project. An info popover explains the overdue marking. Days are placed in the viewer’s own time zone. The calendar loads the first time you open the tab and keeps its month when you switch back and forth.

Overdue animation settings

The Projects settings page gets a Calendar overdue animation card. Choose the marker, stripes or a solid fill, and the motion, a wave, a flash or none, then tune the speed, brightness range and wave spread. A live preview shows the result, Reset to defaults puts everything back, and each change is written to the activity log.

Upgrading

No migration. Update the dependency; it brings the new phoenix_live_calendar package (0.1), and its styles are picked up through PhoenixKit’s CSS sources with no extra setup. The module still needs PhoenixKit 1.7.130 or later.

Full release notes: Projects 0.16.0

0.16.0 · 29 June 2026

Overview month calendar of running projects. The Overview dashboard’s Running-projects panel gains a List / Calendar tab switch (hero-list-bullet / hero-calendar-days). The Calendar view renders every project as an all-day, multi-day “ongoing line” on a month grid: running projects span start → planned-end (always reaching at least today, so they read as ongoing), completed projects span start → completion, and scheduled projects get a one-day marker on their planned start. Bars are coloured by project identity (a stable colour per project, hashed over a fixed palette spread around the colour wheel) so adjacent and stacked bars stay tellable apart; a late project’s overdue tail (the stretch past its planned end) is marked in the inverse of its own colour, so the length of the marked tail shows how late it is. Clicking a bar opens that project. Lazy-mounted on first switch, then kept so its paged month survives toggling. Pairs with the new phoenix_live_calendar 0.1.0 dependency.

Added

  • Overview Calendar view (OverviewLive). A new List / Calendar tab (core <.nav_tabs>) over the same Running-projects data. The Calendar embeds PhoenixLiveCalendar.CalendarComponent (month view, fixed_weeks=false, expand_cells=true) with an “About this calendar” info popover that describes the overdue indicator in the words of the configured animation. Bar clicks navigate to the project (or emit an :opened intent when the LV is embedded). Day/date placement is timezone-aware: one UTC now (for “deadline passed?”) and one viewer-local today (for day placement) are computed once and threaded through the tier, sort, and calendar code so the Running cards, the sort order, and the calendar’s late-marking all agree.
  • PhoenixKitProjects.CalendarDisplay. Maps the dashboard’s already-loaded summaries/projects to PhoenixLiveCalendar.Event structs (no extra queries — reuses the existing project_tree_summary/1 pass). Owns the per-project colour palette, the overdue-tail extra.highlight, and the overdue-animation settings + <style> generation. Every interpolated CSS value is a validated enum or a clamped number, so the generated <style> is safe to raw/1-inject. Fully unit-tested (calendar_display_test.exs).
  • Calendar overdue animation settings (/admin/settings/projects). A new card configures how a late project’s overdue tail looks and animates — marker (diagonal inverse-colour stripes / solid inverse fill) × motion (wave / flash / off) plus speed, brightness range, and wave spread, each validated/clamped on read and write. A live preview re-renders from the same settings, and a “Reset to defaults” button restores them. Each change is recorded to the activity log (projects.calendar_display_changed / projects.calendar_display_reset).
  • phoenix_live_calendar CSS/JS source wiring. css_sources/0 now includes :phoenix_live_calendar (so the host’s Tailwind scans the calendar’s classes with no manual @source), and js_sources/0 declares its PhoenixLiveCalendarHooks bundle (progressive-enhancement hooks — the calendar renders without JS). config :phoenix_live_calendar, skip_install_check: true silences the package’s CSS-install check, since CSS is wired via core’s sources compiler.

Changed

  • New dependency — phoenix_live_calendar ~> 0.1 (0.1.0). Hex by default (publish-safe); PHOENIX_LIVE_CALENDAR_PATH=../phoenix_live_calendar builds against a local checkout, like the other phoenix_live_* deps.

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