+ {{ i18n.baseText('dataMapping.schemaView.disabled') }}
+
+
+
{{ i18n.baseText('dataMapping.schemaView.emptyData') }}
@@ -421,7 +430,7 @@ watch(
scroll-margin-top: var(--header-height);
}
- .empty {
+ .notice {
padding-left: var(--spacing-l);
}
}
@@ -443,7 +452,7 @@ watch(
}
}
-.empty {
+.notice {
font-size: var(--font-size-2xs);
color: var(--color-text-light);
}
diff --git a/packages/editor-ui/src/components/__tests__/RunDataSchema.test.ts b/packages/editor-ui/src/components/__tests__/RunDataSchema.test.ts
index dd0acb3119..8ac02d2152 100644
--- a/packages/editor-ui/src/components/__tests__/RunDataSchema.test.ts
+++ b/packages/editor-ui/src/components/__tests__/RunDataSchema.test.ts
@@ -14,12 +14,21 @@ const mockNode1 = createTestNode({
name: 'Set1',
type: SET_NODE_TYPE,
typeVersion: 1,
+ disabled: false,
});
const mockNode2 = createTestNode({
name: 'Set2',
type: SET_NODE_TYPE,
typeVersion: 1,
+ disabled: false,
+});
+
+const disabledNode = createTestNode({
+ name: 'Disabled Node',
+ type: SET_NODE_TYPE,
+ typeVersion: 1,
+ disabled: true,
});
async function setupStore() {
@@ -28,7 +37,7 @@ async function setupStore() {
name: 'Test Workflow',
connections: {},
active: true,
- nodes: [mockNode1, mockNode2],
+ nodes: [mockNode1, mockNode2, disabledNode],
});
const pinia = createPinia();
@@ -162,6 +171,18 @@ describe('RunDataSchema.vue', () => {
expect(getAllByTestId('run-data-schema-empty').length).toBe(1);
});
+ it('renders disabled nodes correctly', () => {
+ const { getByTestId } = renderComponent({
+ props: {
+ nodes: [{ name: disabledNode.name, indicies: [], depth: 1 }],
+ },
+ });
+ expect(getByTestId('run-data-schema-disabled')).toBeInTheDocument();
+ expect(getByTestId('run-data-schema-node-name')).toHaveTextContent(
+ `${disabledNode.name} (Deactivated)`,
+ );
+ });
+
test.each([[[{ tx: false }, { tx: false }]], [[{ tx: '' }, { tx: '' }]], [[{ tx: [] }]]])(
'renders schema instead of showing no data for %o',
(data) => {
diff --git a/packages/editor-ui/src/components/__tests__/__snapshots__/RunDataSchema.test.ts.snap b/packages/editor-ui/src/components/__tests__/__snapshots__/RunDataSchema.test.ts.snap
index fa16085fd1..942eb55aa3 100644
--- a/packages/editor-ui/src/components/__tests__/__snapshots__/RunDataSchema.test.ts.snap
+++ b/packages/editor-ui/src/components/__tests__/__snapshots__/RunDataSchema.test.ts.snap
@@ -1382,7 +1382,8 @@ exports[`RunDataSchema.vue > renders schema with spaces and dots 1`] = `
class="title"
data-v-46dade00=""
>
- Set1
+ Set1
+
@@ -1932,7 +1933,8 @@ exports[`RunDataSchema.vue > renders schema with spaces and dots 1`] = `
class="title"
data-v-46dade00=""
>
- Set2
+ Set2
+