diff --git a/packages/frontend/editor-ui/src/components/CredentialEdit/CredentialConfig.vue b/packages/frontend/editor-ui/src/components/CredentialEdit/CredentialConfig.vue index 1281fc407b..a104c6cc01 100644 --- a/packages/frontend/editor-ui/src/components/CredentialEdit/CredentialConfig.vue +++ b/packages/frontend/editor-ui/src/components/CredentialEdit/CredentialConfig.vue @@ -15,7 +15,6 @@ import { useI18n } from '@/composables/useI18n'; import { useTelemetry } from '@/composables/useTelemetry'; import { BUILTIN_CREDENTIALS_DOCS_URL, - CREDENTIAL_DOCS_EXPERIMENT, DOCS_DOMAIN, EnterpriseEditionFeature, NEW_ASSISTANT_SESSION_MODAL, @@ -32,9 +31,6 @@ import CopyInput from '../CopyInput.vue'; import CredentialInputs from './CredentialInputs.vue'; import GoogleAuthButton from './GoogleAuthButton.vue'; import OauthButton from './OauthButton.vue'; -import CredentialDocs from './CredentialDocs.vue'; -import { CREDENTIAL_MARKDOWN_DOCS } from './docs'; -import { usePostHog } from '@/stores/posthog.store'; import { useAssistantStore } from '@/stores/assistant.store'; import InlineAskAssistantButton from '@n8n/design-system/components/InlineAskAssistantButton/InlineAskAssistantButton.vue'; @@ -186,13 +182,6 @@ const assistantAlreadyAsked = computed(() => { return assistantStore.isCredTypeActive(props.credentialType); }); -const docs = computed(() => CREDENTIAL_MARKDOWN_DOCS[props.credentialType.name]); -const showCredentialDocs = computed( - () => - usePostHog().getVariant(CREDENTIAL_DOCS_EXPERIMENT.name) === - CREDENTIAL_DOCS_EXPERIMENT.variant && docs.value, -); - function onDataChange(event: IUpdateInformation): void { emit('update', event); } @@ -304,10 +293,7 @@ watch(showOAuthSuccessBanner, (newValue, oldValue) => { /> - - @@ -414,18 +392,6 @@ watch(showOAuthSuccessBanner, (newValue, oldValue) => { > * { margin-bottom: var(--spacing-l); } - - &:has(+ .docs) { - padding-right: 320px; - } -} - -.docs { - position: absolute; - right: 0; - bottom: 0; - top: 0; - max-width: 320px; } .googleReconnectLabel { diff --git a/packages/frontend/editor-ui/src/components/CredentialEdit/CredentialDocs.vue b/packages/frontend/editor-ui/src/components/CredentialEdit/CredentialDocs.vue deleted file mode 100644 index 7a468e8e07..0000000000 --- a/packages/frontend/editor-ui/src/components/CredentialEdit/CredentialDocs.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - diff --git a/packages/frontend/editor-ui/src/components/CredentialEdit/docs.ts b/packages/frontend/editor-ui/src/components/CredentialEdit/docs.ts deleted file mode 100644 index 62f4ab51d0..0000000000 --- a/packages/frontend/editor-ui/src/components/CredentialEdit/docs.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { i18n } from '../../plugins/i18n'; - -export const CREDENTIAL_MARKDOWN_DOCS: Record = { - aws: i18n.baseText('credentialEdit.docs.aws'), - gmailOAuth2: i18n.baseText('credentialEdit.docs.gmailOAuth2'), - openAiApi: i18n.baseText('credentialEdit.docs.openAiApi'), -}; diff --git a/packages/frontend/editor-ui/src/constants.ts b/packages/frontend/editor-ui/src/constants.ts index c87d334f0e..8199908144 100644 --- a/packages/frontend/editor-ui/src/constants.ts +++ b/packages/frontend/editor-ui/src/constants.ts @@ -746,12 +746,6 @@ export const KEEP_AUTH_IN_NDV_FOR_NODES = [ export const MAIN_AUTH_FIELD_NAME = 'authentication'; export const NODE_RESOURCE_FIELD_NAME = 'resource'; -export const CREDENTIAL_DOCS_EXPERIMENT = { - name: '024_credential_docs', - control: 'control', - variant: 'variant', -}; - export const EASY_AI_WORKFLOW_EXPERIMENT = { name: '026_easy_ai_workflow', control: 'control', @@ -771,7 +765,6 @@ export const WORKFLOW_BUILDER_EXPERIMENT = { }; export const EXPERIMENTS_TO_TRACK = [ - CREDENTIAL_DOCS_EXPERIMENT.name, EASY_AI_WORKFLOW_EXPERIMENT.name, AI_CREDITS_EXPERIMENT.name, WORKFLOW_BUILDER_EXPERIMENT.name, diff --git a/packages/frontend/editor-ui/src/plugins/i18n/locales/en.json b/packages/frontend/editor-ui/src/plugins/i18n/locales/en.json index 7ada67925d..93487d58fc 100644 --- a/packages/frontend/editor-ui/src/plugins/i18n/locales/en.json +++ b/packages/frontend/editor-ui/src/plugins/i18n/locales/en.json @@ -611,9 +611,6 @@ "credentialEdit.credentialSharing.list.delete.confirm.confirmButtonText": "Remove", "credentialEdit.credentialSharing.list.delete.confirm.cancelButtonText": "Cancel", "credentialEdit.credentialSharing.role.user": "User", - "credentialEdit.docs.aws": "Configure this credential:\n\n- Select your AWS **Region**.\n- Log in to your AWS account.\n- Generate your access key pair:\n - Open the AWS IAM console and open your user menu.\n - Select **Security credentials**.\n - Create a new access key pair in the **Access Keys** section.\n - Reveal the **Access Key ID** and **Secret Access Key** and enter them in n8n.\n- To use a **temporary security credential**, turn this option on and add a **Session token**.\n- If you use Amazon Virtual Private Cloud VPC to host n8n, you can establish a connection between your VPC and some apps. Use **Custom Endpoints** to enter relevant custom endpoint(s) for this connection.\n\nClick the docs link above for more detailed instructions.", - "credentialEdit.docs.gmailOAuth2": "Configure this credential:\n\n- Log in to your Google Cloud account.\n- Go to Google Cloud Console / APIs and services and choose the project you want to use from the select at the top left (or create a new one and select it).\n- If you haven't used OAuth in this Google Cloud project before, configure the OAuth consent screen.\n- In Credentials, select **+ CREATE CREDENTIALS > OAuth client ID**.\n- In the **Application type** dropdown, select **Web application**.\n- Under **Authorized redirect URIs**, select **+ ADD URI**. Paste in the OAuth redirect URL from n8n.\n- Select **Create**.\n- In Enabled APIs and services, select **+ ENABLE APIS AND SERVICES**.\n- Select and enable the Gmail API.\n- Back to Credentials, click on the credential in OAuth 2.0 Client IDs, and on the credential page, you will find the Client ID and Client Secret.\n\nClick the docs link above for more detailed instructions.", - "credentialEdit.docs.openAiApi": "Configure this credential:\n\n- Log in to your OpenAI account.\n- Open your OpenAI API keys page to create an **API key**.\n- Enter an **Organization ID** if you belong to multiple organizations; otherwise, leave blank. Open your OpenAI Organization Settings page to get your Organization ID.\n\nClick the docs link above for more detailed instructions.", "credentialSelectModal.addNewCredential": "Add new credential", "credentialSelectModal.continue": "Continue", "credentialSelectModal.searchForApp": "Search for app...",