mirror of
https://github.com/n8n-io/n8n
synced 2026-04-21 15:47:20 +00:00
refactor(editor): Extract remaining runData code into features/ndv/runData (no-changelog) (#21283)
This commit is contained in:
parent
8cc4a2660d
commit
956dd09fcc
9 changed files with 11 additions and 11 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import type { NodeExecuteAfterData } from '@n8n/api-types/push/execution';
|
||||
import { useSchemaPreviewStore } from '@/stores/schemaPreview.store';
|
||||
import { useSchemaPreviewStore } from '@/features/ndv/runData/schemaPreview.store';
|
||||
import { useWorkflowsStore } from '@/stores/workflows.store';
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ import { waitFor } from '@testing-library/vue';
|
|||
import type { INodeExecutionData, ITaskData, ITaskMetadata } from 'n8n-workflow';
|
||||
import { setActivePinia } from 'pinia';
|
||||
import { useNodeTypesStore } from '@/stores/nodeTypes.store';
|
||||
import { useSchemaPreviewStore } from '@/stores/schemaPreview.store';
|
||||
import { useSchemaPreviewStore } from '@/features/ndv/runData/schemaPreview.store';
|
||||
import { useNDVStore } from '@/features/ndv/shared/ndv.store';
|
||||
|
||||
const MOCK_EXECUTION_URL = 'execution.url/123';
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ import isEqual from 'lodash/isEqual';
|
|||
import isObject from 'lodash/isObject';
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { useRoute, useRouter } from 'vue-router';
|
||||
import { useSchemaPreviewStore } from '@/stores/schemaPreview.store';
|
||||
import { useSchemaPreviewStore } from '@/features/ndv/runData/schemaPreview.store';
|
||||
import { asyncComputed } from '@vueuse/core';
|
||||
import ViewSubExecution from '@/features/execution/executions/components/ViewSubExecution.vue';
|
||||
import RunDataItemCount from './RunDataItemCount.vue';
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ import { setActivePinia } from 'pinia';
|
|||
import { mock } from 'vitest-mock-extended';
|
||||
import { defaultSettings } from '@/__tests__/defaults';
|
||||
import { usePostHog } from '@/stores/posthog.store';
|
||||
import { useSchemaPreviewStore } from '@/stores/schemaPreview.store';
|
||||
import { useSchemaPreviewStore } from '@/features/ndv/runData/schemaPreview.store';
|
||||
import { useSettingsStore } from '@/stores/settings.store';
|
||||
|
||||
const mockNode1 = createTestNode({
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ import MappingPill from './MappingPill.vue';
|
|||
|
||||
import { EnterpriseEditionFeature, PLACEHOLDER_FILLED_AT_EXECUTION_TIME } from '@/constants';
|
||||
import useEnvironmentsStore from '@/features/settings/environments.ee/environments.store';
|
||||
import { useSchemaPreviewStore } from '@/stores/schemaPreview.store';
|
||||
import { useSchemaPreviewStore } from '@/features/ndv/runData/schemaPreview.store';
|
||||
import { useSettingsStore } from '@/stores/settings.store';
|
||||
import { isEmpty } from '@/utils/typesUtils';
|
||||
import { asyncComputed } from '@vueuse/core';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { getSchemaPreview } from './schemaPreview';
|
||||
import { getSchemaPreview } from './schemaPreview.api';
|
||||
import * as apiUtils from '@n8n/rest-api-client';
|
||||
|
||||
vi.mock('@n8n/rest-api-client');
|
||||
|
|
@ -1,14 +1,14 @@
|
|||
import { createPinia, setActivePinia } from 'pinia';
|
||||
import { useSchemaPreviewStore } from './schemaPreview.store';
|
||||
import * as schemaPreviewApi from '@/api/schemaPreview';
|
||||
import * as schemaPreviewApi from './schemaPreview.api';
|
||||
import type { JSONSchema7 } from 'json-schema';
|
||||
import { mock } from 'vitest-mock-extended';
|
||||
import type { PushPayload } from '@n8n/api-types';
|
||||
import { useTelemetry } from '../composables/useTelemetry';
|
||||
import { useTelemetry } from '@/composables/useTelemetry';
|
||||
import type { INode } from 'n8n-workflow';
|
||||
import { useWorkflowsStore } from './workflows.store';
|
||||
import { useWorkflowsStore } from '@/stores/workflows.store';
|
||||
|
||||
vi.mock('@/api/schemaPreview');
|
||||
vi.mock('./schemaPreview.api');
|
||||
vi.mock('@/composables/useTelemetry', () => {
|
||||
const track = vi.fn();
|
||||
return {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import * as schemaPreviewApi from '@/api/schemaPreview';
|
||||
import * as schemaPreviewApi from './schemaPreview.api';
|
||||
import { createResultError, createResultOk, type Result } from 'n8n-workflow';
|
||||
import { defineStore } from 'pinia';
|
||||
import { reactive } from 'vue';
|
||||
Loading…
Reference in a new issue