mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(editor): Search by node name (no-changelog) (#17831)
This commit is contained in:
@@ -114,6 +114,7 @@ export interface ITemplatesQuery {
|
|||||||
categories: string[];
|
categories: string[];
|
||||||
search: string;
|
search: string;
|
||||||
apps?: string[];
|
apps?: string[];
|
||||||
|
nodes?: string[];
|
||||||
sort?: string;
|
sort?: string;
|
||||||
combineWith?: string;
|
combineWith?: string;
|
||||||
}
|
}
|
||||||
@@ -160,6 +161,7 @@ export async function getWorkflows(
|
|||||||
search: string;
|
search: string;
|
||||||
sort?: string;
|
sort?: string;
|
||||||
apps?: string[];
|
apps?: string[];
|
||||||
|
nodes?: string[];
|
||||||
combineWith?: string;
|
combineWith?: string;
|
||||||
},
|
},
|
||||||
headers?: RawAxiosRequestHeaders,
|
headers?: RawAxiosRequestHeaders,
|
||||||
@@ -168,11 +170,12 @@ export async function getWorkflows(
|
|||||||
workflows: ITemplatesWorkflow[];
|
workflows: ITemplatesWorkflow[];
|
||||||
filters: TemplateSearchFacet[];
|
filters: TemplateSearchFacet[];
|
||||||
}> {
|
}> {
|
||||||
const { apps, sort, combineWith, categories, ...restQuery } = query;
|
const { apps, sort, combineWith, categories, nodes, ...restQuery } = query;
|
||||||
const finalQuery = {
|
const finalQuery = {
|
||||||
...restQuery,
|
...restQuery,
|
||||||
category: stringifyArray(categories),
|
category: stringifyArray(categories),
|
||||||
...(apps && { app: stringifyArray(apps) }),
|
...(apps && { apps: stringifyArray(apps) }),
|
||||||
|
...(nodes && { nodes: stringifyArray(nodes) }),
|
||||||
...(sort && { sort }),
|
...(sort && { sort }),
|
||||||
...(combineWith && { combineWith }),
|
...(combineWith && { combineWith }),
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -17,14 +17,14 @@ import { computed, ref, watch } from 'vue';
|
|||||||
const SIMPLE_TEMPLATES = [6270, 5271, 2178];
|
const SIMPLE_TEMPLATES = [6270, 5271, 2178];
|
||||||
|
|
||||||
const PREDEFINED_TEMPLATES_BY_NODE = {
|
const PREDEFINED_TEMPLATES_BY_NODE = {
|
||||||
gmail: [5678, 4722, 5694],
|
'n8n-nodes-base.gmail': [5678, 4722, 5694],
|
||||||
googleSheets: [5694, 5690, 5906],
|
'n8n-nodes-base.googleSheets': [5694, 5690, 5906],
|
||||||
telegram: [5626, 2114, 4875],
|
'n8n-nodes-base.telegram': [5626, 2114, 4875],
|
||||||
openAi: [2462, 2722, 2178],
|
'@n8n/n8n-nodes-langchain.openAi': [2462, 2722, 2178],
|
||||||
googleGemini: [5993, 6270, 5677],
|
'@n8n/n8n-nodes-langchain.googleGemini': [5993, 6270, 5677],
|
||||||
googleCalendar: [2328, 3393, 2110],
|
'n8n-nodes-base.googleCalendar': [2328, 3393, 2110],
|
||||||
youTube: [3188, 4846, 4506],
|
'n8n-nodes-base.youTube': [3188, 4846, 4506],
|
||||||
airtable: [3053, 2700, 2579],
|
'n8n-nodes-base.airtable': [3053, 2700, 2579],
|
||||||
};
|
};
|
||||||
|
|
||||||
function getPredefinedFromSelected(selectedApps: string[]) {
|
function getPredefinedFromSelected(selectedApps: string[]) {
|
||||||
@@ -139,7 +139,7 @@ export const usePersonalizedTemplatesStore = defineStore(STORES.PERSONALIZED_TEM
|
|||||||
categories: [],
|
categories: [],
|
||||||
search: '',
|
search: '',
|
||||||
sort: 'rank:desc',
|
sort: 'rank:desc',
|
||||||
apps: selectedApps.length > 0 ? selectedApps : undefined,
|
nodes: selectedApps.length > 0 ? selectedApps : undefined,
|
||||||
combineWith: 'or',
|
combineWith: 'or',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user