Skip to content

Projects 0.2.0: Translations, archiving, comments and drag-and-drop order

Projects 0.2.0 is a large update to the project management module. Project and task texts can be translated, projects are archived instead of carrying a status, the project page gets comments, lists can be reordered by dragging, and adding a task can bring the tasks it depends on with it.

Texts in several languages

A project’s name and description, a task’s title and description, and a task assignment’s description can now have a version per language. When the site has two or more languages turned on, the forms show a tab per language. The primary language stays in the usual fields; the other languages are stored alongside.

Status and archiving

Projects no longer have a stored status. What a project is doing is worked out from its dates and tasks: running, completed, overdue, scheduled, in setup, archived or a template. Archive hides a project from the main lists but keeps it in the database, and Unarchive brings it back.

The overview puts the projects that need attention first. Running projects carry a pill: late when past their planned end, near done at 75% progress or more, otherwise on time.

Working with tasks

  • Dependencies pulled in. When you add a task to a project and it depends on other tasks, the form shows This task pulls in other tasks. Untick the ones you don’t want; the rest are added in the right order with their dependencies wired up.
  • Groups. The task library has a Groups view that shows tasks as dependency trees, each one starting at a task nothing else depends on.
  • Drag to reorder. Projects, templates and tasks can be put in order by dragging.
  • Comments. With the Comments module installed, the project page opens a comments panel from the side, with counts for the project and for each task.

When a task has no duration of its own, the inline duration editor now starts from the task template’s values.

Upgrading

Run mix phoenix_kit.update: the project tables live in PhoenixKit core’s migrations, and this release uses their new archive and translation columns. The module now depends on phoenix_kit_comments.

Full release notes: Projects 0.2.0

0.2.0 · 11 May 2026

Added

  • Multilang content — project name/description, task title/description, and assignment description are now translatable via core’s Languages module. Forms auto-render <.multilang_tabs> when 2+ languages are enabled; primary values stay in their columns, overrides live in a translations JSONB.
  • Task groups view — task templates can be grouped by dependency tree in the task-library UI, with visual → X badges showing outgoing edges.
  • Drag-and-drop reorder — projects, templates, and tasks can be reordered via sortable tables with phx-reorder events. Dedup logic guarantees last-write-wins on duplicate UUIDs.
  • Closure-pull cascade — adding a task to a project can optionally pull in its entire upstream dependency closure with automatic Dependency wiring and execution-order position assignment.
  • Slide-in comments drawer — ProjectShowLive now supports a per-resource comments side-panel with live count badges.
  • Running dashboard prioritization — the Overview tab now surfaces late and near-done projects first, with tier pills (:late, :near_done, :on_track).
  • Derived status + soft-hide archive — replaced the string status column with archived_at timestamp. Project.derived_status/2 returns :running, :completed, :overdue, :scheduled, :setup, :archived, or :template. Projects.archive_project/1 / unarchive_project/1 are the public API.
  • Reusable UI components — extracted <.derived_status_badge>, <.empty_state>, <.page_header>, <.running_card>, <.sortable_table>, <.stat_tile>, <.tabs_strip>, and <.tier_pill> from the large LiveViews into individual PhoenixKitProjects.Web.Components.* modules.
  • handle_params/3 refactor — all list, show, and form LiveViews moved their initial DB queries from mount/3 to handle_params/3 so HTTP render and WebSocket connect share a single query path.
  • Translations JSONB validation — schema changesets now validate the shape of incoming translations maps to prevent malformed JSONB inserts.

Changed

  • build_group_tree/4 and build_closure_tree/3 switched from cond do with a single non-true clause to if/else (credo compliance).
  • wire_closure_dependencies/3 nesting reduced by extracting wire_child_dependency/4 and wire_assignment_dependency/2.
  • is_template_attr?/1 renamed to template_attr?/1 per Elixir naming conventions.

Fixed

  • Diamond-dependency skip in closure pull — a task reachable via both an excluded and a non-excluded parent is now correctly emitted once when the non-excluded branch reaches it.
  • O(n²) topo append eliminated — topological_insertion_order/2 now builds the list in reverse and flips once at the end.
  • Duration editor prefill — the inline duration editor in ProjectShowLive now falls back to the task template’s default values when the assignment has no explicit duration.
  • Inline duration editor UX — improved hover contrast, control sizing, and input prefill behavior.
  • Precommit hygiene — resolved all credo strict issues and suppressed a Dialyzer false-positive on recursive MapSet opacity.

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