From 8a484077af3d3e1fe2d1b90b1ea9edf4ba41fcb6 Mon Sep 17 00:00:00 2001 From: Michael Kret <88898367+michael-radency@users.noreply.github.com> Date: Tue, 5 Nov 2024 20:47:52 +0200 Subject: [PATCH] feat(AI Transform Node): UX improvements (#11280) Co-authored-by: Shireen Missi <94372015+ShireenMissi@users.noreply.github.com> --- .../src/components/N8nInput/Input.vue | 3 +- .../src/components/ButtonParameter.test.ts | 2 +- .../ButtonParameter/ButtonParameter.vue | 98 ++++++++++--------- .../src/components/ButtonParameter/utils.ts | 47 ++++++++- .../src/components/NodeExecuteButton.vue | 97 +++++++++++++++++- .../editor-ui/src/components/NodeSettings.vue | 1 + .../src/components/ParameterOptions.test.ts | 12 +++ .../src/components/ParameterOptions.vue | 13 ++- .../src/plugins/i18n/locales/en.json | 5 + .../nodes/AiTransform/AiTransform.node.ts | 29 +++--- packages/workflow/src/Constants.ts | 2 + 11 files changed, 237 insertions(+), 72 deletions(-) diff --git a/packages/design-system/src/components/N8nInput/Input.vue b/packages/design-system/src/components/N8nInput/Input.vue index 776b0bf7c8..7df719728a 100644 --- a/packages/design-system/src/components/N8nInput/Input.vue +++ b/packages/design-system/src/components/N8nInput/Input.vue @@ -32,7 +32,7 @@ const props = withDefaults(defineProps(), { readonly: false, clearable: false, rows: 2, - maxlength: Infinity, + maxlength: undefined, title: '', name: () => uid('input'), autocomplete: 'off', @@ -81,6 +81,7 @@ defineExpose({ focus, blur, select }); :clearable="clearable" :rows="rows" :title="title" + :maxlength="maxlength" v-bind="$attrs" >