Skip to content

Projects 0.13.0: The Timeline charts prerequisites first

Projects 0.13.0 changes how the Timeline chart orders tasks. A prerequisite is now always charted before the task that depends on it, even when it was dragged lower in the list, so dependency arrows point forward.

Why it changed

The Timeline laid tasks out in the order they had been dragged. When a prerequisite sat after the task that needed it, the chart scheduled it later and drew its arrow backwards, as a red dashed “conflict” detour, with the dependent bar weaving around it.

The chart now sorts each project’s tasks so prerequisites come first, keeping your drag order wherever dependencies allow. Each finish-to-start arrow then runs forward, from the end of the prerequisite to the start of the task that waits for it, and the dependent bar no longer has to detour around anything. A project whose order already respects its dependencies looks the same. A dependency loop falls back to the drag order, and dependencies on tasks outside the chart are ignored. The sorting happens within each project, so tasks from different projects in the tree are not mixed together.

A newer chart library

The release picks up phoenix_live_gantt 0.2.0 through its existing requirement: the time axis snaps to whole weeks and months, week labels show a date range, and arrowheads are solid. The other locked dependencies move up too, among them phoenix_kit_ai 0.10.0.

Nothing in the task list itself changes. The list view keeps the order you set, and only the chart sorts.

Upgrading

No migration, no configuration and no new requirement. Update the dependency; mix deps.get picks up the newer chart library.

Full release notes: Projects 0.13.0

0.13.0 · 22 June 2026

Timeline (Gantt) lays tasks out in dependency order. A prerequisite is now always charted before the task that depends on it — even when it was drag-positioned later — so finish-to-start arrows point forward instead of rendering as backward red “conflict” detours. Pairs with phoenix_live_gantt 0.2.0 (whole-week/month axis snapping, date-range week labels, solid arrowheads).

Fixed

  • A prerequisite positioned after its dependent drew a backward “conflict” arrow. When a prerequisite task was positioned (drag order) after the task depending on it, ProjectGanttLive laid the waterfall out by raw position, so the prerequisite was scheduled later and its finish-to-start connector pointed backward — a red dashed “conflict” detour — forcing the dependent’s bar to weave around the misplaced prerequisite. The view now orders each project’s assignments topologically (prerequisites first, drag-position as the tiebreaker) before the waterfall. No-op when the manual order already respects dependencies; cycle-safe (degrades to position order); out-of-scope dependencies are ignored.

Changed

  • Dependency upgrade — phoenix_live_gantt → 0.2.0, picked up automatically via the floating ~> 0.1 pin: whole-week/month axis snapping, date-range week labels, and solid arrowheads. Other transitive lock bumps: phoenix_kit_ai 0.10.0, req 0.6.2, mdex 0.13.1 / mdex_native 0.2.2. No mix.exs requirement-floor changes.

Internal

  • order_by_dependencies/2 no longer re-sorts by position before the topological pass — list_assignments already returns rows position-ordered, so the sort was a no-op. The Gantt bar-position test helper now fails loudly on a markup miss instead of defaulting to 0.0 (which would have let the <= assertion pass trivially).

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