Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

N8N-2679 Templates search #2596

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
74f9623
feat: tempaltes route and view
saintsebastian Dec 22, 2021
a3e7aae
feat: templates header
saintsebastian Dec 23, 2021
0d32f54
feat: basic view layout
saintsebastian Dec 23, 2021
a527e01
chore: set up mocks
saintsebastian Dec 23, 2021
49d97dd
feat: filter component
saintsebastian Jan 3, 2022
8ca6ce2
feat: initial graphql query
saintsebastian Jan 4, 2022
8185b34
feat: api data in store
saintsebastian Jan 4, 2022
26a71e6
feat: basic carousel
saintsebastian Jan 5, 2022
bb9a3b4
feat: basic template list
saintsebastian Jan 6, 2022
d01cae1
feat: basic search and query params
saintsebastian Jan 6, 2022
f95c66a
feat: category query param
saintsebastian Jan 10, 2022
a386fe4
feat: simple infinite scroll
saintsebastian Jan 11, 2022
e53e553
feat: update query
saintsebastian Jan 13, 2022
6054d8f
feat: node list component
saintsebastian Jan 13, 2022
c71c8c1
feat: cards handle long names, dates and numbers
saintsebastian Jan 13, 2022
8074e95
feat: card hover state
saintsebastian Jan 13, 2022
fd314b6
chore: adjust query
saintsebastian Jan 14, 2022
9554bd2
feat: handle empty collections
saintsebastian Jan 14, 2022
fe850c2
feat: loading states
saintsebastian Jan 17, 2022
c04e179
N8N-2679 Updated GraphQl Query After changes in API
SchnapsterDog Jan 18, 2022
fe168c5
N8N-2679 Updated Templates.vue component, Updated Stylesheets, Make M…
SchnapsterDog Jan 18, 2022
d282bc9
N8N-2679 Added Breakpoints/Responsive Design, Updated Stylesheets for…
SchnapsterDog Jan 19, 2022
fde9fb6
N8N-2679 Rework TemplateList, CollectionCarousel, CollectionCard Comp…
SchnapsterDog Jan 20, 2022
73a63bd
N8N-2679 Updated all padings, font-size, spacing in the components, r…
SchnapsterDog Jan 20, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/design-system/.storybook/font-awesome-icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import {
faCalendar,
faCheck,
faChevronDown,
faChevronLeft,
faChevronRight,
faChevronUp,
faCode,
faCodeBranch,
Expand Down Expand Up @@ -99,6 +101,8 @@ library.add(faBug);
library.add(faCalendar);
library.add(faCheck);
library.add(faChevronDown);
library.add(faChevronLeft);
library.add(faChevronRight);
library.add(faChevronUp);
library.add(faCode);
library.add(faCodeBranch);
Expand Down
1 change: 1 addition & 0 deletions packages/editor-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"n8n-design-system": "~0.9.0",
"timeago.js": "^4.0.2",
"v-click-outside": "^3.1.2",
"vue-agile": "^2.0.0",
"vue-fragment": "^1.5.2",
"vue-i18n": "^8.26.7"
},
Expand Down
62 changes: 62 additions & 0 deletions packages/editor-ui/src/Interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -746,3 +746,65 @@ export interface IBounds {
maxX: number;
maxY: number;
}

export interface IZoomConfig {
scale: number;
offset: XYPosition;
}

export interface ISearchPayload {
data: ISearchResults;
}

export interface ISearchResults{
categories: ITemplateCategory[];
collections: ITemplateCollection[];
totalWorkflows: number;
workflows: IN8nTemplate[];
}

export interface ITemplateCategory {
id: string;
name: string;
selected?: boolean;
}

export interface ITemplateCollection {
id: string;
name: string;
workflowsCount: number;
nodes: ITemplateNode[];
}

export interface ITemplateNode {
displayName: string;
name: string;
icon: string;
defaults: {
color: string;
};
iconData: {
fileBuffer: string,
type: string,
};

}

export interface IN8nTemplate {
id: string;
name: string;
createdAt: string;
description: string;
nodes: ITemplateNode[];
totalViews: number;
user: {
username: string;
};
}

export interface ITemplateState {
template: {};
categories: ITemplateCategory[];
collections: ITemplateCollection[];
workflows: IN8nTemplate[];
}
Loading