Skip to content

Projects 0.12.0: The Timeline tab in embedded project pages

Projects 0.12.0 is for apps that embed project pages in their own screens. An embedded project page now shows the List and Timeline tabs instead of the list only, and an app can insert the Timeline view on its own.

Timeline in embeds

Before, an embedded project page showed only its task list. Now the tab bar appears in every embedded project page (templates stay list-only). The chart is drawn on the server, so it shows before any JavaScript loads, and it is only built the first time its tab is opened, so an embed that never opens it costs nothing extra.

The Timeline view can also be inserted directly, like the module’s other views: the popup host, a link in emit mode and a stacked frame can all open it by name. Before, the admin page drew it itself, so it worked inside the module but other apps could not insert it. All ten of the module’s pages can now be embedded.

The host’s address bar is left alone

Switching tabs on an embedded project page no longer changes the host page’s address. Apps that want the /gantt deep link can turn it on with the tab_url_sync session key. The module’s own admin page keeps its deep linking as before. With or without it, the tabs switch at once, without reloading the page.

Upgrading

No migration. Update the dependency. If you embed project pages and relied on the address changing when tabs switch, pass "tab_url_sync" => true in the embed session.

Full release notes: Projects 0.12.0

0.12.0 · 18 June 2026

Timeline tab in embedded project views + host-insertable Gantt. A host that embeds ProjectShowLive now gets the List / Timeline tab pair (previously embeds were list-only), and ProjectGanttLive (the Timeline view) is now in the embeddable-LV whitelist so hosts can insert it directly. URL-sync stays opt-in and off by default for embeds, so an embedded page never rewrites the host’s address bar.

Added

  • Timeline tab renders in embeds. The List/Timeline tab bar now renders in every ProjectShowLive mount context (only templates stay list-only). The Timeline tab is a nested live_render of ProjectGanttLive — server-rendered SVG, so the chart shows even before any JS loads. The gantt stays lazy-mounted (only live_rendered once its tab is first opened) so a list-only embed pays nothing for it.
  • ProjectGanttLive is host-insertable. Added to Web.Helpers.embeddable_lvs/0 so PopupHostLive (root_view), <.smart_link emit>, emit :opened, and next frames can insert the Timeline view by module — the admin tab always rendered it via a direct live_render, which never consulted the whitelist, so it ran in our own UI yet stayed un-insertable by other apps. All 10 LVs are now embeddable.
  • session["tab_url_sync"] embed key (ProjectShowLive only). Boolean, defaults false in embeds. Pass true (a real boolean) to opt an embed into /gantt deep-linking via the ProjectTabsUrl hook; the router-mounted standalone admin page enables it implicitly so its existing deep-linking keeps working.

Changed

  • Embedded ProjectShowLive no longer rewrites the host URL on tab switch. URL sync is off by default in embeds — switch_tab only pushes the project_tab_url event when tab_url_sync? is on, and the ProjectTabsUrl hook isn’t attached otherwise. The tabs still switch instantly with or without it.
  • Dependency upgrade — phoenix_kit → 1.7.162.

Internal

  • Embedding regression coverage grown to 43 live_isolated/3 tests: ProjectGanttLive embed (off-router mount, wrapper_class override, whitelist round-trip through the decode_embeddable_lv/1 decoder), embedded ProjectShowLive rendering the tab bar with a still-lazy gantt, and the URL-sync default-off / opt-in pair. AGENTS.md + dev_docs/embedding_* updated for the contract change (incl. the host-side gantt-JS-hooks note for the embedded Timeline).

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