From fa197262ccd79c7e3c71b2452ca5731370d76a74 Mon Sep 17 00:00:00 2001 From: Guilhem Date: Wed, 12 Feb 2025 19:46:57 +0000 Subject: [PATCH] replace popup with melt popover in RegexGen --- .../lib/components/copilot/RegexGen.svelte | 133 +++++++++--------- 1 file changed, 67 insertions(+), 66 deletions(-) diff --git a/frontend/src/lib/components/copilot/RegexGen.svelte b/frontend/src/lib/components/copilot/RegexGen.svelte index c9f291b21a..fc9919019e 100644 --- a/frontend/src/lib/components/copilot/RegexGen.svelte +++ b/frontend/src/lib/components/copilot/RegexGen.svelte @@ -4,7 +4,7 @@ import { getNonStreamingCompletion } from './lib' import { sendUserToast } from '$lib/toast' - import Popup from '../common/popup/Popup.svelte' + import Popover from '$lib/components/meltComponents/Popover.svelte' import { copilotInfo } from '$lib/stores' import { autoPlacement } from '@floating-ui/core' @@ -91,7 +91,7 @@ } - - + - {/each} - + }} + disabled={funcDesc?.length <= 0} + iconOnly + startIcon={{ icon: Wand2 }} + /> - {/if} - - {:else} -

- Enable Windmill AI in the - workspace settings - -

- {/if} - -
+ {#if promptHistory.length > 0} +
+ {#each promptHistory as p} + + {/each} + +
+ {/if} + + {:else} +

+ Enable Windmill AI in the + workspace settings + +

+ {/if} + + +