mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(editor): Add WFD telemetry (no-changelog) (#17544)
Co-authored-by: Csaba Tuncsik <csaba@n8n.io> Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> Co-authored-by: Csaba Tuncsik <csaba.tuncsik@gmail.com>
This commit is contained in:
committed by
GitHub
parent
77de3cd078
commit
c790f7e047
@@ -1,5 +1,6 @@
|
||||
<script lang="ts" setup>
|
||||
import { useLoadingService } from '@/composables/useLoadingService';
|
||||
import { useTelemetry } from '@/composables/useTelemetry';
|
||||
import { useToast } from '@/composables/useToast';
|
||||
import { SOURCE_CONTROL_PULL_MODAL_KEY, VIEWS, WORKFLOW_DIFF_MODAL_KEY } from '@/constants';
|
||||
import { sourceControlEventBus } from '@/event-bus/source-control';
|
||||
@@ -31,6 +32,7 @@ const props = defineProps<{
|
||||
data: { eventBus: EventBus; status: SourceControlledFile[] };
|
||||
}>();
|
||||
|
||||
const telemetry = useTelemetry();
|
||||
const loadingService = useLoadingService();
|
||||
const uiStore = useUIStore();
|
||||
const toast = useToast();
|
||||
@@ -108,6 +110,10 @@ async function pullWorkfolder() {
|
||||
const workflowDiffEventBus = createEventBus();
|
||||
|
||||
function openDiffModal(id: string) {
|
||||
telemetry.track('User clicks compare workflows', {
|
||||
workflow_id: id,
|
||||
context: 'source_control_pull',
|
||||
});
|
||||
uiStore.openModalWithData({
|
||||
name: WORKFLOW_DIFF_MODAL_KEY,
|
||||
data: { eventBus: workflowDiffEventBus, workflowId: id, direction: 'pull' },
|
||||
|
||||
Reference in New Issue
Block a user