From 538a6bf923cee968758802c5cc92271b7d5f168b Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Thu, 2 Jan 2025 21:04:09 +0700 Subject: [PATCH] fix: send event opt out (#4390) * fux: send event opt out from button deny * chore: fix copy * chore: update placeholder --- .../resources/default_settings.json | 4 ++-- web/containers/Layout/index.tsx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/extensions/inference-cortex-extension/resources/default_settings.json b/extensions/inference-cortex-extension/resources/default_settings.json index 31586fbe6..6a0dcd4a0 100644 --- a/extensions/inference-cortex-extension/resources/default_settings.json +++ b/extensions/inference-cortex-extension/resources/default_settings.json @@ -21,11 +21,11 @@ { "key": "cpu_threads", "title": "CPU Threads", - "description": "The number of threads to use for inferencing (CPU MODE ONLY)", + "description": "The number of CPU threads to use (when in CPU mode)", "controllerType": "input", "controllerProps": { "value": "", - "placeholder": "4" + "placeholder": "Number of CPU threads" } }, { diff --git a/web/containers/Layout/index.tsx b/web/containers/Layout/index.tsx index 29fda70de..38d45ebd0 100644 --- a/web/containers/Layout/index.tsx +++ b/web/containers/Layout/index.tsx @@ -123,6 +123,7 @@ const BaseLayout = () => { if (isAllowed) { posthog.opt_in_capturing() } else { + posthog.capture('user_opt_out', { timestamp: new Date() }) posthog.opt_out_capturing() } }