diff --git a/frontend/src/lib/components/ArgInput.svelte b/frontend/src/lib/components/ArgInput.svelte index 501c347ffe..d89495b351 100644 --- a/frontend/src/lib/components/ArgInput.svelte +++ b/frontend/src/lib/components/ArgInput.svelte @@ -46,7 +46,11 @@ import { workspaceStore } from '$lib/stores' import { getJsonSchemaFromResource } from './schema/jsonSchemaResource.svelte' import AIProviderPicker from './AIProviderPicker.svelte' - import TextInput, { inputBaseClass, inputBorderClass } from './text_input/TextInput.svelte' + import TextInput, { + inputBaseClass, + inputBorderClass, + inputSizeClasses + } from './text_input/TextInput.svelte' import FileInput from './common/fileInput/FileInput.svelte' interface Props { @@ -1401,7 +1405,12 @@ use:autosize onkeydown={onKeyDown} {disabled} - class={twMerge('w-full', inputBaseClass, inputBorderClass({ error: !!error }))} + class={twMerge( + 'w-full', + inputBaseClass, + inputSizeClasses.md, + inputBorderClass({ error: !!error }) + )} placeholder={placeholder ?? defaultValue ?? ''} bind:value > diff --git a/frontend/src/lib/components/AuthSettings.svelte b/frontend/src/lib/components/AuthSettings.svelte index 6e9ea3b533..0959970b8c 100644 --- a/frontend/src/lib/components/AuthSettings.svelte +++ b/frontend/src/lib/components/AuthSettings.svelte @@ -169,7 +169,7 @@ {/if} {/each} -
{schema.properties[argName].description}
+ {/if}
+
- {schema.properties[argName].description}
-
+ {schema.properties[argName].description}
+
+ {schema.properties[argName].description}
+
+ {schema.properties[argName].description}
+ label={argName}
+ bind:editor={monaco}
+ bind:description={schema.properties[argName].description}
+ bind:value={arg.value}
+ type={schema.properties[argName].type}
+ oneOf={schema.properties[argName].oneOf}
+ required={schema.required?.includes(argName)}
+ bind:pattern={schema.properties[argName].pattern}
+ bind:valid={inputCheck}
+ defaultValue={schema.properties[argName].default}
+ bind:enum_={schema.properties[argName].enum}
+ bind:format={schema.properties[argName].format}
+ contentEncoding={schema.properties[argName].contentEncoding}
+ bind:itemsType={schema.properties[argName].items}
+ properties={schema.properties[argName].properties}
+ nestedRequired={schema.properties[argName].required}
+ displayHeader={false}
+ extra={argExtra}
+ {variableEditor}
+ {itemPicker}
+ bind:pickForField
+ showSchemaExplorer
+ nullable={schema.properties[argName].nullable}
+ bind:title={schema.properties[argName].title}
+ bind:placeholder={schema.properties[argName].placeholder}
+ {helperScript}
+ otherArgs={Object.fromEntries(
+ Object.entries(otherArgs).map(([key, transform]) => [
+ key,
+ transform?.type === 'static' ? transform.value : transform?.expr
+ ])
+ )}
+ >
+ {#snippet innerBottomSnippet()}
+ {#if shouldShowS3ArrayHelper}
+ {schema.properties[argName].description}
+