mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-04 16:03:06 +00:00
small fixes
This commit is contained in:
@@ -940,7 +940,13 @@
|
||||
bind:open={metadataOpen}
|
||||
size={selectedTab === 'ui' || selectedTab === 'triggers' ? '1200px' : '800px'}
|
||||
>
|
||||
<DrawerContent noPadding title="Settings" on:close={() => (metadataOpen = false)}>
|
||||
<DrawerContent
|
||||
noPadding
|
||||
title="Settings"
|
||||
on:close={() => (metadataOpen = false)}
|
||||
aiId="script-builder-settings"
|
||||
aiDescription="Script builder settings"
|
||||
>
|
||||
<!-- svelte-ignore a11y-autofocus -->
|
||||
<div class="flex flex-col h-full">
|
||||
<Tabs bind:selected={selectedTab} wrapperClass="flex-none w-full">
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
<div class="flex justify-between w-full items-center px-4 py-2 gap-2">
|
||||
<div class="flex items-center gap-2 w-full truncate">
|
||||
<TriggerableByAI
|
||||
id={aiId}
|
||||
description={aiDescription}
|
||||
id={`close-${aiId}`}
|
||||
description={`Close ${aiDescription}`}
|
||||
onTrigger={() => {
|
||||
dispatch('close')
|
||||
}}
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
import AiChat from '../AIChat.svelte'
|
||||
import { base } from '$lib/base'
|
||||
import HideButton from '../../../apps/editor/settingsPanel/HideButton.svelte'
|
||||
import TriggerableByAi from '$lib/components/TriggerableByAI.svelte'
|
||||
|
||||
const isAdmin = $derived($userStore?.is_admin || $userStore?.is_super_admin)
|
||||
const hasCopilot = $derived($copilotInfo.enabled)
|
||||
@@ -33,14 +34,22 @@
|
||||
</div>
|
||||
|
||||
{#snippet aiChatHeaderLeft()}
|
||||
<HideButton
|
||||
hidden={false}
|
||||
direction="right"
|
||||
panelName="AI"
|
||||
shortcut="L"
|
||||
size="md"
|
||||
on:click={() => {
|
||||
<TriggerableByAi
|
||||
id="close-navigator-ai-chat"
|
||||
description="Close the navigator ai chat"
|
||||
onTrigger={() => {
|
||||
globalChatOpen.set(!$globalChatOpen)
|
||||
}}
|
||||
/>
|
||||
>
|
||||
<HideButton
|
||||
hidden={false}
|
||||
direction="right"
|
||||
panelName="AI"
|
||||
shortcut="L"
|
||||
size="md"
|
||||
on:click={() => {
|
||||
globalChatOpen.set(!$globalChatOpen)
|
||||
}}
|
||||
/>
|
||||
</TriggerableByAi>
|
||||
{/snippet}
|
||||
|
||||
@@ -39,12 +39,10 @@ GENERAL PRINCIPLES:
|
||||
|
||||
IMPORTANT CONSIDERATIONS:
|
||||
- If you navigate to a script creation page, consider this:
|
||||
- The user will need to select a language for the script. If provided, select the one he mentioned, else do not do anything.
|
||||
- If he provides any other information but its script settings, do the changes.
|
||||
- Close the settings once the changes are done.
|
||||
- Then if the user have described what he wanted the script to do, search for the script ai chat in the page and input it's request in it.
|
||||
- The page opens with the settings drawer open. After doing the changes mentioned by the user, close the settings drawer.
|
||||
- Then if the user have described what he wanted the script to do, search for the script ai chat in the page and input it's request in it. Do not specify the language, just input the request. Then close the navigator ai chat.
|
||||
- If you navigate to a flow creation page, consider this:
|
||||
- If the user have described what he wanted the flow to do, search for the flow ai chat in the page and input it's request in it.
|
||||
- If the user have described what he wanted the flow to do, search for the flow ai chat in the page and input it's request in it. Then close the navigator ai chat.
|
||||
|
||||
Always use the provided tools purposefully and appropriately to achieve the user's goals.
|
||||
Your actions only allow you to navigate the application through the provided tools.
|
||||
|
||||
Reference in New Issue
Block a user