diff --git a/packages/builder/src/components/integration/QueryParameterBuilder.svelte b/packages/builder/src/components/integration/QueryParameterBuilder.svelte index 5daf6774c9..29711177ec 100644 --- a/packages/builder/src/components/integration/QueryParameterBuilder.svelte +++ b/packages/builder/src/components/integration/QueryParameterBuilder.svelte @@ -52,22 +52,32 @@ placeholder="Parameter Name" thin disabled={bindable} - bind:value={parameter.name} /> + bind:value={parameter.name} + /> + bind:value={parameter.default} + /> {#if bindable} onBindingChange(parameter.name, evt.detail)} - value={runtimeToReadableBinding(bindings, customParams?.[parameter.name])} - {bindings} /> + on:change={(evt) => onBindingChange(parameter.name, evt.detail)} + value={runtimeToReadableBinding( + bindings, + customParams?.[parameter.name] + )} + {bindings} + /> {:else} - deleteQueryParameter(idx)} /> + deleteQueryParameter(idx)} + /> {/if} {/each} @@ -90,16 +100,5 @@ grid-template-columns: 1fr 1fr 5%; grid-gap: 10px; align-items: center; - margin-bottom: var(--spacing-xl); - } - - .delete { - transition: all 0.2s; - } - - .delete:hover { - transform: scale(1.1); - font-weight: 500; - cursor: pointer; } diff --git a/packages/builder/src/components/integration/QueryViewer.svelte b/packages/builder/src/components/integration/QueryViewer.svelte index ca8d5036b9..956ab1b158 100644 --- a/packages/builder/src/components/integration/QueryViewer.svelte +++ b/packages/builder/src/components/integration/QueryViewer.svelte @@ -6,6 +6,7 @@ Button, Body, Label, + Layout, Input, Heading, Spacer, @@ -110,46 +111,33 @@ } - - + Query {integrationInfo?.friendlyName} - - Config - Provide a name for your query and select its function. - - - Query Name - - - - {#if queryConfig} + - Function - - queryConfig[verb]?.displayName || capitalise(verb)} - /> + Query Name + - + {#if queryConfig} + + Function + + queryConfig[verb]?.displayName || capitalise(verb)} + /> + + + {/if} + + {#if shouldShowQueryConfig} - - - - - {/if} - - -{#if shouldShowQueryConfig} - - Fields Fill in the fields specific to this query. - - - - - Results - - - Save Query - - - Run Query - + + + Results + + + Save Query + + + Run Query - + Below, you can preview the results from your query and change the schema. - {#if data} @@ -213,12 +198,14 @@ {/if} - - -{/if} - + {/if} +