From 5743b4eee6e990c09c7879b8566ea3c8cc30ffa1 Mon Sep 17 00:00:00 2001 From: Robert Joonas Date: Thu, 8 Jan 2026 12:52:29 +0000 Subject: [PATCH 1/8] render dashboard directly from Live.Dashboard --- assets/js/dashboard/index.tsx | 21 +---- .../live/components/dashboard/tile.ex | 2 +- lib/plausible_web/live/dashboard.ex | 18 ++-- lib/plausible_web/live/dashboard/pages.ex | 4 +- lib/plausible_web/router.ex | 5 +- .../templates/stats/stats.html.heex | 88 ++++++++++--------- 6 files changed, 59 insertions(+), 79 deletions(-) diff --git a/assets/js/dashboard/index.tsx b/assets/js/dashboard/index.tsx index 0262471c011b..baeb20130f71 100644 --- a/assets/js/dashboard/index.tsx +++ b/assets/js/dashboard/index.tsx @@ -56,26 +56,7 @@ function DashboardStats({ <> - {site.flags.live_dashboard ? ( - - ) : ( - - )} - + diff --git a/lib/plausible_web/live/components/dashboard/tile.ex b/lib/plausible_web/live/components/dashboard/tile.ex index 4750325592d2..b0af8c675a5c 100644 --- a/lib/plausible_web/live/components/dashboard/tile.ex +++ b/lib/plausible_web/live/components/dashboard/tile.ex @@ -45,7 +45,7 @@ defmodule PlausibleWeb.Components.Dashboard.Tile do <%!-- reportbody --%>