From e9ec86b10b274cacd969bbff95275f5020b78691 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Mon, 16 Mar 2026 17:20:27 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20polish=20ScriptSetupBlock=20=E2=80=94=20?= =?UTF-8?q?orange=20accent=20bar,=20terminal=20dots,=20tighter=20storage/T?= =?UTF-8?q?TL,=20framework=20icons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add gradient orange accent bar and macOS-style terminal dots to code block - Copy button uses brand-orange styling instead of plain gray - Storage and TTL selects sit side-by-side tightly instead of spread apart - TTL options shortened (24h, 48h, 7d, 30d) - Replace framework dropdown with compact icon+label buttons (logos visible) - Add "All integrations" link in section header --- components/sites/ScriptSetupBlock.tsx | 168 ++++++++++++++------------ 1 file changed, 91 insertions(+), 77 deletions(-) diff --git a/components/sites/ScriptSetupBlock.tsx b/components/sites/ScriptSetupBlock.tsx index 08874e8..ac988a8 100644 --- a/components/sites/ScriptSetupBlock.tsx +++ b/components/sites/ScriptSetupBlock.tsx @@ -11,13 +11,7 @@ import { API_URL, APP_URL } from '@/lib/api/client' import { integrations, getIntegration } from '@/lib/integrations' import { toast, Toggle, Select, CheckIcon } from '@ciphera-net/ui' -const FRAMEWORK_OPTIONS = [ - { value: '', label: 'Choose framework' }, - ...integrations - .filter((i) => i.category === 'framework') - .slice(0, 10) - .map((i) => ({ value: i.id, label: i.name })), -] +const FRAMEWORKS = integrations.filter((i) => i.category === 'framework').slice(0, 10) const STORAGE_OPTIONS = [ { value: 'local', label: 'Cross-tab (localStorage)' }, @@ -25,10 +19,10 @@ const STORAGE_OPTIONS = [ ] const TTL_OPTIONS = [ - { value: '24', label: '24 hours' }, - { value: '48', label: '48 hours' }, - { value: '168', label: '7 days' }, - { value: '720', label: '30 days' }, + { value: '24', label: '24h' }, + { value: '48', label: '48h' }, + { value: '168', label: '7d' }, + { value: '720', label: '30d' }, ] const FEATURES = [ @@ -111,35 +105,47 @@ export default function ScriptSetupBlock({ return (
{/* ── Script snippet ──────────────────────────────────────────────── */} -
-
- - Your tracking script - - +
+ {/* * Orange accent bar */} +
+
+
+
+ {/* * Terminal dots */} +
+
+
+
+
+ + tracking script + +
+ +
+
+            {scriptSnippet}
+          
-
-          {scriptSnippet}
-        
{/* ── Feature toggles ─────────────────────────────────────────────── */} @@ -184,10 +190,10 @@ export default function ScriptSetupBlock({

Visitor identity

-
-
+
+
-

- Setup guide -

-
-
-