From 02b7fd81f855d92ff9963f9e5a0d09b7f123eae1 Mon Sep 17 00:00:00 2001 From: Tomi Turtiainen <10324676+tomi@users.noreply.github.com> Date: Tue, 29 Oct 2024 10:18:59 +0200 Subject: [PATCH] feat(editor): Support newlines in node errors --- .../src/components/Error/NodeErrorView.vue | 5 ++-- .../MultiLineText/MultiLineText.vue | 23 +++++++++++++++++++ .../__tests__/MultiLineText.test.ts | 15 ++++++++++++ .../__snapshots__/MultiLineText.test.ts.snap | 18 +++++++++++++++ 4 files changed, 58 insertions(+), 3 deletions(-) create mode 100644 packages/editor-ui/src/components/MultiLineText/MultiLineText.vue create mode 100644 packages/editor-ui/src/components/MultiLineText/__tests__/MultiLineText.test.ts create mode 100644 packages/editor-ui/src/components/MultiLineText/__tests__/__snapshots__/MultiLineText.test.ts.snap diff --git a/packages/editor-ui/src/components/Error/NodeErrorView.vue b/packages/editor-ui/src/components/Error/NodeErrorView.vue index 76965f0632..a3eace5e1c 100644 --- a/packages/editor-ui/src/components/Error/NodeErrorView.vue +++ b/packages/editor-ui/src/components/Error/NodeErrorView.vue @@ -24,6 +24,7 @@ import InlineAskAssistantButton from 'n8n-design-system/components/InlineAskAssi import { useUIStore } from '@/stores/ui.store'; import { isCommunityPackageName } from '@/utils/nodeTypesUtils'; import { useAIAssistantHelpers } from '@/composables/useAIAssistantHelpers'; +import MultiLineText from '../MultiLineText/MultiLineText.vue'; type Props = { // TODO: .node can be undefined @@ -423,9 +424,7 @@ async function onAskAssistantClick() {