Projects 0.2.1: Remaining time and an ETA on each project
Projects 0.2.1 changes the schedule line on a running project. Instead of a planned and a projected end date, it shows Remaining:, the hours of work still open, and ETA:, when the project ends if work goes on at the planned pace from now.
The ETA is green when the project is ahead and red when it is behind.
The module’s nine pages can now also be placed inside another LiveView of your app, with their own wrapper styling and a page to go to after saving. That address must be a path within the site; anything else is ignored. The overview, projects, templates and tasks pages now show their content on first load instead of filling it in a moment later. On the tasks page, the switch between list and grouped view no longer changes the address, so old links with ?view= open the default view.
Full release notes: Projects 0.2.1
0.2.1 · 13 May 2026
Embed support + ETA refactor + Phase 2 re-validation sweep (PR #6) plus
post-merge follow-up (review under
dev_docs/pull_requests/2026/6-embed-and-quality/FOLLOWUP.md).
Added
- Embeddable LiveViews — all 9 LVs in the module can now be nested
inside a host LiveView via
live_render/3(issue #5). Each LV accepts a:not_mounted_at_routermount path, a session-overridablewrapper_class, and (for form LVs) a session-overridableredirect_to. Host apps can drop the module’s own UI into their own workflow instead of re-implementing it against the contexts. - Shared embed plumbing in
PhoenixKitProjects.Web.Helpers—resolve_live_action/3,resolve_action_params/2, andnavigate_after_save/2provide a single source of truth for the router-vs-embed mount path. - Open-redirect guard on
navigate_after_save/2—session["redirect_to"]is validated as a relative internal path (starts with/, not protocol-relative, no://) before anypush_navigate. Protects embedders that naively forward an unvalidatedparams["return_to"]from a request query string. - Remaining + ETA stat —
ProjectShowLivenow displaysRemaining: Xh · ETA: <datetime> at planned pacein place of the previous Planned/Projected date pair. Anchored onnowand the sum of remaining task hours rather than velocity. NewProject.eta_from/3public API mirrorsplanned_end_for/2but accepts an arbitrary anchor datetime. dev_docs/embedding_audit.md— per-LV diagnosis of the three embed-blocker patterns (router-shapedmount/3,handle_params/3export, hardcoded wrapper class) and the test convention (live_isolated/3intest/phoenix_kit_projects/web/embedding_test.exs) that stops them from being re-introduced. 28 new contract tests.
Changed
handle_params/3removed from list, show, and form LVs. Phoenix LiveView refuses to mount a LV exportinghandle_params/3outside a router live route, which would blocklive_renderembedding. The bodies were folded into the tail ofmount/3. (Reverses the 0.2.0 refactor that had moved queries the other direction.)TasksLiveview toggle moved from URL-driven?view=list|groupstophx-click set_view. The toggle is UI state, not a real route arg — making it a URL param requiredhandle_params/3(now removed for embedability) and meant deep links could collide with per-user preference.- Empty-content pop-in eliminated on first paint for Tier 1/2 LVs
(
OverviewLive,ProjectsLive,TemplatesLive,TasksLive) by dropping theconnected?(socket)gate around data loading inmount/3. First HTTP response now contains content rather than a skeleton that the WebSocket-connected mount then replaces. mix precommitauto-formats before checking —formatprepended to the alias so unformatted files are rewritten beforequality.ci’sformat --check-formattedverifies.quality.cikeeps the check-only variant for CI.
Fixed
- Dead
archivedkey in PubSub broadcast payload —project_payload/1was buildingarchived: not is_nil(p.archived_at)but every subscriber pattern-matched on{:projects, event, _payload}and re-fetched viaget_project/1when archived state mattered. Removed. - Unreachable
safe_internal_path?/1catch-all inWeb.Helpers— the second clause was dead code because the only caller already narrows the value to a non-empty binary; Dialyzer flagged it as unreachable. - PR #4 follow-up — docstring symmetry on reorder helpers (Phase 1
triage of
CLAUDE_REVIEW.md).
Projects 0.2.1. Install or update: {:phoenix_kit_projects, "~> 0.2"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.