mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
feat(core, editor-ui): Introduce node deprecation (#4103)
⚡ Introduce node deprecation
This commit is contained in:
parent
f40ae501b4
commit
98ed207607
|
@ -27,7 +27,6 @@ import Vue from 'vue';
|
||||||
import { ICategoriesWithNodes, INodeCreateElement } from '@/Interface';
|
import { ICategoriesWithNodes, INodeCreateElement } from '@/Interface';
|
||||||
import { INodeTypeDescription } from 'n8n-workflow';
|
import { INodeTypeDescription } from 'n8n-workflow';
|
||||||
import SlideTransition from '../transitions/SlideTransition.vue';
|
import SlideTransition from '../transitions/SlideTransition.vue';
|
||||||
import { HIDDEN_NODES } from '@/constants';
|
|
||||||
|
|
||||||
import MainPanel from './MainPanel.vue';
|
import MainPanel from './MainPanel.vue';
|
||||||
import { getCategoriesWithNodes, getCategorizedList } from './helpers';
|
import { getCategoriesWithNodes, getCategorizedList } from './helpers';
|
||||||
|
@ -53,7 +52,7 @@ export default Vue.extend({
|
||||||
return this.$store.getters['nodeTypes/allLatestNodeTypes'];
|
return this.$store.getters['nodeTypes/allLatestNodeTypes'];
|
||||||
},
|
},
|
||||||
visibleNodeTypes(): INodeTypeDescription[] {
|
visibleNodeTypes(): INodeTypeDescription[] {
|
||||||
return this.allLatestNodeTypes.filter((nodeType) => !HIDDEN_NODES.includes(nodeType.name));
|
return this.allLatestNodeTypes.filter((nodeType) => !nodeType.hidden);
|
||||||
},
|
},
|
||||||
categoriesWithNodes(): ICategoriesWithNodes {
|
categoriesWithNodes(): ICategoriesWithNodes {
|
||||||
return getCategoriesWithNodes(this.visibleNodeTypes, this.personalizedNodeTypes as string[]);
|
return getCategoriesWithNodes(this.visibleNodeTypes, this.personalizedNodeTypes as string[]);
|
||||||
|
|
|
@ -140,7 +140,6 @@ export const ALL_NODE_FILTER = 'All';
|
||||||
export const UNCATEGORIZED_CATEGORY = 'Miscellaneous';
|
export const UNCATEGORIZED_CATEGORY = 'Miscellaneous';
|
||||||
export const UNCATEGORIZED_SUBCATEGORY = 'Helpers';
|
export const UNCATEGORIZED_SUBCATEGORY = 'Helpers';
|
||||||
export const PERSONALIZED_CATEGORY = 'Suggested Nodes';
|
export const PERSONALIZED_CATEGORY = 'Suggested Nodes';
|
||||||
export const HIDDEN_NODES = [START_NODE_TYPE];
|
|
||||||
|
|
||||||
export const REQUEST_NODE_FORM_URL = 'https://n8n-community.typeform.com/to/K1fBVTZ3';
|
export const REQUEST_NODE_FORM_URL = 'https://n8n-community.typeform.com/to/K1fBVTZ3';
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ export class Start implements INodeType {
|
||||||
version: 1,
|
version: 1,
|
||||||
description: 'Starts the workflow execution from this node',
|
description: 'Starts the workflow execution from this node',
|
||||||
maxNodes: 1,
|
maxNodes: 1,
|
||||||
|
hidden: true,
|
||||||
defaults: {
|
defaults: {
|
||||||
name: 'Start',
|
name: 'Start',
|
||||||
color: '#00e000',
|
color: '#00e000',
|
||||||
|
|
|
@ -1097,6 +1097,12 @@ export interface INodeTypeBaseDescription {
|
||||||
subtitle?: string;
|
subtitle?: string;
|
||||||
defaultVersion?: number;
|
defaultVersion?: number;
|
||||||
codex?: CodexData;
|
codex?: CodexData;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether the node must be hidden in the node creator panel,
|
||||||
|
* due to deprecation or as a special case (e.g. Start node)
|
||||||
|
*/
|
||||||
|
hidden?: true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface INodePropertyRouting {
|
export interface INodePropertyRouting {
|
||||||
|
|
Loading…
Reference in a new issue