Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Some changes to the "site taken" copy (#2647)
Marko Saric4ea519fd112a
diff --git a/lib/plausible/site.ex b/lib/plausible/site.exindex bbe8c90b82..8c2859dd78 100644--- a/lib/plausible/site.ex+++ b/lib/plausible/site.ex@@ -50,7 +50,7 @@ defmodule Plausible.Site do|> validate_domain_reserved_characters()|> unique_constraint(:domain,message:- "This domain has already been taken. Perhaps one of your team members registered it? If that's not the case, please contact [email protected]"+ "This domain cannot be registered. Perhaps one of your colleagues registered it? Or did you recently delete it from your account? The deletion may take up to 48 hours before you can add the same site again. If that's not the case, please contact [email protected]")enddiff --git a/lib/plausible/sites.ex b/lib/plausible/sites.exindex a77acb6367..67fabbd72b 100644--- a/lib/plausible/sites.ex+++ b/lib/plausible/sites.ex@@ -192,7 +192,7 @@ defmodule Plausible.Sites do[domain:- "This domain has already been taken. Perhaps one of your team members registered it? If that's not the case, please contact [email protected]"+ "This domain cannot be registered. Perhaps one of your colleagues registered it? Or did you recently delete it from your account? The deletion may take up to 48 hours before you can add the same site again. If that's not the case, please contact [email protected]"]else[]diff --git a/test/plausible_web/controllers/api/external_sites_controller_test.exs b/test/plausible_web/controllers/api/external_sites_controller_test.exsindex 01ba959e55..8fb28022d7 100644--- a/test/plausible_web/controllers/api/external_sites_controller_test.exs+++ b/test/plausible_web/controllers/api/external_sites_controller_test.exs@@ -98,7 +98,7 @@ defmodule PlausibleWeb.Api.ExternalSitesControllerTest doassert json_response(conn, 400) == %{"error" =>- "domain: This domain has already been taken. Perhaps one of your team members registered it? If that's not the case, please contact [email protected]"+ "domain: This domain cannot be registered. Perhaps one of your colleagues registered it? Or did you recently delete it from your account? The deletion may take up to 48 hours before you can add the same site again. If that's not the case, please contact [email protected]"}enddiff --git a/test/plausible_web/controllers/site_controller_test.exs b/test/plausible_web/controllers/site_controller_test.exsindex 8a27f5096b..11f3d0f53d 100644--- a/test/plausible_web/controllers/site_controller_test.exs+++ b/test/plausible_web/controllers/site_controller_test.exs@@ -126,7 +126,7 @@ defmodule PlausibleWeb.SiteControllerTest do})assert html = html_response(conn, 200)- assert html =~ "This domain has already been taken."+ assert html =~ "This domain cannot be registered"assert html =~ "please contact support"refute Repo.get_by(Plausible.Site, domain: domain)end@@ -291,7 +291,7 @@ defmodule PlausibleWeb.SiteControllerTest do})assert html_response(conn, 200) =~- "This domain has already been taken. Perhaps one of your team members registered it? If that's not the case, please contact [email protected]"+ "This domain cannot be registered. Perhaps one of your colleagues registered it?"endend