From c3455a4ad82d965c41267fea173feaad4800c43f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milorad=20FIlipovi=C4=87?= Date: Wed, 19 Jul 2023 16:51:49 +0200 Subject: [PATCH] feat(editor): Removing `ph-no-capture` class from some elements (#6674) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(editor): Remove `.ph-no-capture` class from some of the fields * ✔️ Updating test snapshots * ⚡ Redacting expressions preview in credentials form * 🔧 Disable posthog input masking * 🚨 Testing PostHog iFrame settings * Reverting iframe test * ⚡ Hiding API key in PostHog recordings * ✅ Added tests for redacted values * ✔️ Updating checkbox snapshots after label component update * ✔️ Updating test snapshots in editor-ui * 👕 Fix lint errors --- .../__snapshots__/Checkbox.spec.ts.snap | 2 + .../src/components/N8nInput/Input.vue | 9 ++-- .../N8nInput/__tests__/Input.spec.ts | 18 +++++++ .../components/N8nInputLabel/InputLabel.vue | 2 +- .../src/components/N8nMarkdown/Markdown.vue | 1 - .../src/components/N8nSticky/Sticky.vue | 10 +--- .../src/components/N8nUserInfo/UserInfo.vue | 2 +- .../src/components/N8nUsersList/UsersList.vue | 1 - packages/editor-ui/src/Interface.ts | 4 ++ .../CodeNodeEditor/CodeNodeEditor.vue | 2 +- .../editor-ui/src/components/CopyInput.vue | 11 +++- .../src/components/CredentialCard.vue | 2 +- .../CredentialEdit/CredentialConfig.vue | 3 +- .../src/components/ExecutionFilter.vue | 2 +- .../src/components/ExecutionsList.vue | 2 +- .../src/components/ExpressionEdit.vue | 13 +++-- .../ExpressionEditorModalInput.vue | 2 +- .../ExpressionEditorModalOutput.vue | 2 +- .../src/components/HtmlEditor/HtmlEditor.vue | 2 +- .../InlineExpressionEditorInput.vue | 2 +- .../InlineExpressionEditorOutput.vue | 2 +- .../src/components/InlineNameEdit.vue | 2 +- .../editor-ui/src/components/InputPanel.vue | 2 +- packages/editor-ui/src/components/Node.vue | 2 +- .../editor-ui/src/components/NodeTitle.vue | 2 +- .../src/components/ParameterInput.vue | 19 ++++--- .../src/components/ParameterInputWrapper.vue | 3 +- .../ResourceLocatorDropdown.vue | 1 - .../editor-ui/src/components/RunDataHtml.vue | 2 +- .../editor-ui/src/components/RunDataJson.vue | 5 +- .../src/components/RunDataSchemaItem.vue | 2 +- .../editor-ui/src/components/RunDataTable.vue | 9 ++-- .../EventDestinationCard.ee.vue | 2 +- .../src/components/SqlEditor/SqlEditor.vue | 2 +- .../src/components/VariableSelector.vue | 3 +- .../src/components/VariableSelectorItem.vue | 5 +- .../editor-ui/src/components/WorkflowCard.vue | 8 +-- .../components/__tests__/CopyInput.test.ts | 51 +++++++++++++++++++ .../components/__tests__/RunDataJson.test.ts | 13 ----- .../PersonalizationModal.spec.ts.snap | 10 ++-- .../__snapshots__/RunDataJson.test.ts.snap | 30 ++++------- .../__snapshots__/RunDataSchema.test.ts.snap | 12 ++--- .../__snapshots__/VariablesRow.spec.ts.snap | 4 +- .../editor-ui/src/stores/posthog.store.ts | 3 ++ .../editor-ui/src/views/SettingsApiView.vue | 3 +- .../src/views/SettingsPersonalView.vue | 2 +- 46 files changed, 173 insertions(+), 118 deletions(-) create mode 100644 packages/editor-ui/src/components/__tests__/CopyInput.test.ts diff --git a/packages/design-system/src/components/N8nCheckbox/__tests__/__snapshots__/Checkbox.spec.ts.snap b/packages/design-system/src/components/N8nCheckbox/__tests__/__snapshots__/Checkbox.spec.ts.snap index 9a7a248acc..73f5989d6f 100644 --- a/packages/design-system/src/components/N8nCheckbox/__tests__/__snapshots__/Checkbox.spec.ts.snap +++ b/packages/design-system/src/components/N8nCheckbox/__tests__/__snapshots__/Checkbox.spec.ts.snap @@ -27,6 +27,7 @@ exports[`components > N8nCheckbox > should render with both child and label 1`]