From d7b84747f8327bdbb659dd702bc1ee7569aceec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20G=C3=B3mez=20Morales?= Date: Fri, 12 Sep 2025 13:01:31 +0200 Subject: [PATCH] feat(editor): Add toggle viewport sync to workflow diffs & UI improvements (#19373) --- .../workflow-diff/WorkflowDiffModal.vue | 27 ++++++++++++++----- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/packages/frontend/editor-ui/src/features/workflow-diff/WorkflowDiffModal.vue b/packages/frontend/editor-ui/src/features/workflow-diff/WorkflowDiffModal.vue index d7e5ca8027..8d2dd96b5b 100644 --- a/packages/frontend/editor-ui/src/features/workflow-diff/WorkflowDiffModal.vue +++ b/packages/frontend/editor-ui/src/features/workflow-diff/WorkflowDiffModal.vue @@ -14,7 +14,14 @@ import { useNodeTypesStore } from '@/stores/nodeTypes.store'; import { useSourceControlStore } from '@/stores/sourceControl.store'; import { useWorkflowsStore } from '@/stores/workflows.store'; import { removeWorkflowExecutionData } from '@/utils/workflowUtils'; -import { N8nButton, N8nHeading, N8nIconButton, N8nRadioButtons, N8nText } from '@n8n/design-system'; +import { + N8nButton, + N8nCheckbox, + N8nHeading, + N8nIconButton, + N8nRadioButtons, + N8nText, +} from '@n8n/design-system'; import type { BaseTextKey } from '@n8n/i18n'; import { useI18n } from '@n8n/i18n'; import type { EventBus } from '@n8n/utils/event-bus'; @@ -30,7 +37,7 @@ const props = defineProps<{ data: { eventBus: EventBus; workflowId: string; direction: 'push' | 'pull' }; }>(); -const { selectedDetailId, onNodeClick } = useProvideViewportSync(); +const { selectedDetailId, onNodeClick, syncIsEnabled } = useProvideViewportSync(); const telemetry = useTelemetry(); const $style = useCssModule(); @@ -427,6 +434,12 @@ const modifiers = [
+ - +
{{ changesCount }}
@@ -567,16 +579,17 @@ const modifiers = [ + /> + />