diff --git a/packages/editor-ui/src/components/ParameterInputFull.vue b/packages/editor-ui/src/components/ParameterInputFull.vue index 4d015a8294..7bb4d22f4a 100644 --- a/packages/editor-ui/src/components/ParameterInputFull.vue +++ b/packages/editor-ui/src/components/ParameterInputFull.vue @@ -89,8 +89,9 @@ import { INodeParameters, INodeProperties, INodePropertyMode, IParameterLabel } import { BaseTextKey } from '@/plugins/i18n'; import { mapStores } from 'pinia'; import { useNDVStore } from '@/stores/ndv'; +import { externalHooks } from '@/mixins/externalHooks'; -export default mixins(showMessage).extend({ +export default mixins(showMessage, externalHooks).extend({ name: 'parameter-input-full', components: { ParameterOptions, @@ -326,6 +327,8 @@ export default mixins(showMessage).extend({ hasExpressionMapping(prevValue), success: true, }); + + this.$externalHooks().run('parameterInputFull.mappedData'); } this.forceShowExpression = false; }, 200); diff --git a/packages/editor-ui/src/constants.ts b/packages/editor-ui/src/constants.ts index b97ba14864..f058b7a2ab 100644 --- a/packages/editor-ui/src/constants.ts +++ b/packages/editor-ui/src/constants.ts @@ -515,7 +515,7 @@ export const ASSUMPTION_EXPERIMENT = { }; export const ONBOARDING_EXPERIMENT = { - name: 'onboarding-checklist', + name: 'checklist_001', control: 'control', variant: 'variant', }; diff --git a/packages/editor-ui/src/stores/posthog.ts b/packages/editor-ui/src/stores/posthog.ts index d476bb64d7..0523a76c44 100644 --- a/packages/editor-ui/src/stores/posthog.ts +++ b/packages/editor-ui/src/stores/posthog.ts @@ -6,6 +6,8 @@ import { useSettingsStore } from './settings'; import { FeatureFlags } from 'n8n-workflow'; import { EXPERIMENTS_TO_TRACK } from '@/constants'; import { useTelemetryStore } from './telemetry'; +import { runExternalHook } from '@/mixins/externalHooks'; +import { useWebhooksStore } from './webhooks'; export const usePostHogStore = defineStore('posthog', () => { const usersStore = useUsersStore(); @@ -104,6 +106,10 @@ export const usePostHogStore = defineStore('posthog', () => { }); trackedDemoExp.value[name] = variant; + runExternalHook('posthog.featureFlagsUpdated', useWebhooksStore(), { + name, + variant, + }); }; watch(