From a3a20b820b36cd7587e0ec0f9de0d74df17ea5cb Mon Sep 17 00:00:00 2001 From: Oleg Isonen Date: Tue, 10 Jun 2025 17:21:21 +0100 Subject: [PATCH 1/2] improve badge tip --- apps/builder/app/builder/features/topbar/publish.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/builder/app/builder/features/topbar/publish.tsx b/apps/builder/app/builder/features/topbar/publish.tsx index 5693bc64af70..a0de72a308c8 100644 --- a/apps/builder/app/builder/features/topbar/publish.tsx +++ b/apps/builder/app/builder/features/topbar/publish.tsx @@ -273,7 +273,7 @@ const $usedProFeatures = computed( const badgeFeature = 'No "Built with Webstudio" badge'; // Badge should be rendered on free sites on every page. features.set(badgeFeature, { - info: "Adding the badge to your homepage helps us offer a free version of the service. Please open the Components panel by clicking the “+” icon on the left, and add the “Built with Webstudio” component to your page. Feel free to adjust the badge’s styles to match your design.", + info: "Adding the badge to your homepage helps us offer a free version of the service. Please open the Components panel by clicking the “+” icon on the left, and add the “Built with Webstudio” component to your page. Feel free to adjust the badge's style to match your design - after all, it's just a link, and you can place it wherever you like.", }); // We want to check the badge only on the home page const homePageInstanceIds = findTreeInstanceIds( From d4c1357825fb5323b1c23d900f62af3904cdf73f Mon Sep 17 00:00:00 2001 From: Oleg Isonen Date: Tue, 10 Jun 2025 17:40:10 +0100 Subject: [PATCH 2/2] only check the webstudio link without the badge --- apps/builder/app/builder/features/topbar/publish.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/builder/app/builder/features/topbar/publish.tsx b/apps/builder/app/builder/features/topbar/publish.tsx index a0de72a308c8..4348a6fc386b 100644 --- a/apps/builder/app/builder/features/topbar/publish.tsx +++ b/apps/builder/app/builder/features/topbar/publish.tsx @@ -288,7 +288,8 @@ const $usedProFeatures = computed( for (const prop of props ?? []) { if ( prop.name === "href" && - prop.value === "https://webstudio.is/?via=badge" + typeof prop.value === "string" && + prop.value.includes("https://webstudio.is") ) { features.delete(badgeFeature); }