From 97c83857222cf8a71aaca16de1941d78fab46006 Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Thu, 5 Mar 2026 13:33:15 +0100 Subject: [PATCH 1/3] Indicate pin status in crm site index --- .../live/customer_support/team/components/sites.ex | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/extra/lib/plausible_web/live/customer_support/team/components/sites.ex b/extra/lib/plausible_web/live/customer_support/team/components/sites.ex index bd12326f996b..7097c8bdc3d4 100644 --- a/extra/lib/plausible_web/live/customer_support/team/components/sites.ex +++ b/extra/lib/plausible_web/live/customer_support/team/components/sites.ex @@ -108,7 +108,7 @@ defmodule PlausibleWeb.CustomerSupport.Team.Components.Sites do <.th invisible>Dashboard {site.domain} + + + + @@ -150,7 +154,7 @@ defmodule PlausibleWeb.CustomerSupport.Team.Components.Sites do Settings - <.td> + <.td max_width="max-w-40"> Date: Thu, 5 Mar 2026 13:37:14 +0100 Subject: [PATCH 2/3] Move to icons --- .../customer_support/team/components/sites.ex | 2 +- lib/plausible_web/components/icons.ex | 20 ++++++++++++++++ lib/plausible_web/live/sites.ex | 24 ++----------------- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/extra/lib/plausible_web/live/customer_support/team/components/sites.ex b/extra/lib/plausible_web/live/customer_support/team/components/sites.ex index 7097c8bdc3d4..e69c517693c5 100644 --- a/extra/lib/plausible_web/live/customer_support/team/components/sites.ex +++ b/extra/lib/plausible_web/live/customer_support/team/components/sites.ex @@ -131,7 +131,7 @@ defmodule PlausibleWeb.CustomerSupport.Team.Components.Sites do {site.domain} - + diff --git a/lib/plausible_web/components/icons.ex b/lib/plausible_web/components/icons.ex index 5ac42a70fae9..787e95adbb52 100644 --- a/lib/plausible_web/components/icons.ex +++ b/lib/plausible_web/components/icons.ex @@ -6,6 +6,26 @@ defmodule PlausibleWeb.Components.Icons do attr :class, :any, default: [] + def pin_icon(assigns) do + ~H""" + + + + """ + end + + attr(:rest, :global) + attr(:filled, :boolean, default: false) + def external_link_icon(assigns) do ~H""" - <.icon_pin + - <.icon_pin + @@ -587,26 +587,6 @@ defmodule PlausibleWeb.Live.Sites do """ end - attr(:rest, :global) - attr(:filled, :boolean, default: false) - - def icon_pin(assigns) do - ~H""" - - - - """ - end - attr(:sparkline, :any, required: true) def site_stats(assigns) do From 67c128f1ab5a82704f90f6bf4bc391d14f5db74a Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Thu, 5 Mar 2026 13:37:45 +0100 Subject: [PATCH 3/3] !fixup --- lib/plausible_web/components/icons.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/plausible_web/components/icons.ex b/lib/plausible_web/components/icons.ex index 787e95adbb52..2ce11f0581aa 100644 --- a/lib/plausible_web/components/icons.ex +++ b/lib/plausible_web/components/icons.ex @@ -4,7 +4,8 @@ defmodule PlausibleWeb.Components.Icons do """ use Phoenix.Component - attr :class, :any, default: [] + attr(:rest, :global) + attr(:filled, :boolean, default: false) def pin_icon(assigns) do ~H""" @@ -23,8 +24,7 @@ defmodule PlausibleWeb.Components.Icons do """ end - attr(:rest, :global) - attr(:filled, :boolean, default: false) + attr :class, :any, default: [] def external_link_icon(assigns) do ~H"""