From 3ce2f653c99b4e268dca3c2d962c128ed988643b Mon Sep 17 00:00:00 2001 From: Guilhem Date: Thu, 15 Oct 2026 16:38:56 +0200 Subject: [PATCH] count homepage ai session hero removals and re-pins (#11781) * feat: count homepage ai session hero removals and re-pins Co-Authored-By: Claude Opus 5.5 (1M context) * chore: update ee-repo-ref to 0253ffdd6c0b0f1ba162a43d19aed56bc7bd7a71 This commit updates the EE repository reference after PR #882 was merged in windmill-ee-private. Previous ee-repo-ref: a5d4fd2b21ffd0a6ced604c34d39a5747d9ea940 New ee-repo-ref: 0253ffdd6c0b0f1ba162a43d19aed56bc7bd7a71 Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 (1M context) Co-authored-by: windmill-internal-app[bot] Co-authored-by: Ruben Fiszel --- backend/ee-repo-ref.txt | 2 +- .../src/lib/components/home/HomeAIChat.svelte | 21 +++++++++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/backend/ee-repo-ref.txt b/backend/ee-repo-ref.txt index 6a195a07d1..ec48fc9a62 100644 --- a/backend/ee-repo-ref.txt +++ b/backend/ee-repo-ref.txt @@ -1 +1 @@ -455f98540fb042d4f624dcec681dab88b2c8df22 +0253ffdd6c0b0f1ba162a43d19aed56bc7bd7a71 diff --git a/frontend/src/lib/components/home/HomeAIChat.svelte b/frontend/src/lib/components/home/HomeAIChat.svelte index 83e940602d..fdc76a1a00 100644 --- a/frontend/src/lib/components/home/HomeAIChat.svelte +++ b/frontend/src/lib/components/home/HomeAIChat.svelte @@ -50,6 +50,7 @@ import Button from '../common/button/Button.svelte' import { Badge } from '../common' import CloseButton from '../common/CloseButton.svelte' + import { logFeatureUsage } from '$lib/utils/featureUsage' import { startSessionWithPrompt } from '../sessions/sessionSwitch.svelte' import { copilotInfo, copilotWorkspace } from '$lib/aiStore' import { loadCopilot } from '$lib/components/copilot/loadCopilot' @@ -113,7 +114,9 @@ let pulsing = $state(false) let pulseEndTimer: ReturnType | undefined - function removeComposer() { + // `no_ai` is the overlay's button, shown only while AI is unusable here. + function removeComposer(source: 'close' | 'no_ai') { + logFeatureUsage('home', 'ai_hero_remove', { key: source }) setCollapsed(true) if (reducedMotion.val) return clearTimeout(pulseEndTimer) @@ -234,7 +237,12 @@
- + removeComposer('close')} + />
{/if}
@@ -325,7 +333,9 @@ {freeTierExhausted ? 'Add your own API key' : 'Configure AI'} {/if} - +
{/if} @@ -420,7 +430,10 @@ { displayName: 'Pin session hero to homepage', icon: WandSparkles, - action: () => setCollapsed(false) + action: () => { + logFeatureUsage('home', 'ai_hero_pin') + setCollapsed(false) + } } ] : []),