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) <noreply@anthropic.com>

* 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) <noreply@anthropic.com>
Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com>
Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
This commit is contained in:
Guilhem
2026-10-15 16:38:56 +02:00
committed by GitHub
co-authored by Claude Opus 5.5 windmill-internal-app[bot] Ruben Fiszel
parent 3bee9c9401
commit 3ce2f653c9
2 changed files with 18 additions and 5 deletions
+1 -1
View File
@@ -1 +1 @@
455f98540fb042d4f624dcec681dab88b2c8df22
0253ffdd6c0b0f1ba162a43d19aed56bc7bd7a71
@@ -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<typeof setTimeout> | 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 @@
<!-- The one dismiss control while the composer is usable; the overlay below carries its
own once it takes over, so the two never show at the same time. -->
<div class="absolute right-0 top-0 z-20">
<CloseButton small noBg title="Remove session chat" onClick={removeComposer} />
<CloseButton
small
noBg
title="Remove session chat"
onClick={() => removeComposer('close')}
/>
</div>
{/if}
<div class="flex items-center justify-center gap-2 mb-4">
@@ -325,7 +333,9 @@
{freeTierExhausted ? 'Add your own API key' : 'Configure AI'}
</Button>
{/if}
<Button unifiedSize="sm" variant="default" onClick={removeComposer}>Remove</Button>
<Button unifiedSize="sm" variant="default" onClick={() => removeComposer('no_ai')}
>Remove</Button
>
</div>
</div>
{/if}
@@ -420,7 +430,10 @@
{
displayName: 'Pin session hero to homepage',
icon: WandSparkles,
action: () => setCollapsed(false)
action: () => {
logFeatureUsage('home', 'ai_hero_pin')
setCollapsed(false)
}
}
]
: []),