From f8636f13991213946c695ae0a78ed0e643fcf2ce Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Thu, 7 Mar 2024 15:36:31 -0300 Subject: [PATCH] Add EXAMPLES_MOCK constant to constants.ts --- src/frontend/src/constants/constants.ts | 72 +++++++++++++++++++++++ src/frontend/src/pages/MainPage/index.tsx | 3 +- 2 files changed, 74 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/constants/constants.ts b/src/frontend/src/constants/constants.ts index fc89b9890..4927e9d81 100644 --- a/src/frontend/src/constants/constants.ts +++ b/src/frontend/src/constants/constants.ts @@ -1,6 +1,7 @@ // src/constants/constants.ts import { languageMap } from "../types/components"; +import { FlowType } from "../types/flow"; /** * invalid characters for flow name @@ -739,4 +740,75 @@ export const PRIORITY_SIDEBAR_ORDER = [ "helpers", "experimental", ]; +/* +Data ingestion +Basic Prompting +Chat com memória +Working with data (file/website) +API requests +Vector Store +Assistant +*/ +export const EXAMPLES_MOCK:FlowType[] = [ + { + name: "Working with data", + id: "Working with data Description", + data: { + nodes: [], + edges: [], + viewport: { zoom: 1, x: 1, y: 1 } + }, + description: "This flow represents the first process in our application.", + folder: STARTER_FOLDER_NAME, + user_id: undefined, + }, + { + name: "Basic Prompting", + id: "Basic Prompting Description", + data: { + nodes: [], + edges: [], + viewport: { zoom: 1, x: 1, y: 1 } + }, + description: "This flow represents the first process in our application.", + folder: STARTER_FOLDER_NAME, + user_id: undefined, + }, + { + name: "Chat with memory", + id: "Chat with memory Description", + data: { + nodes: [], + edges: [], + viewport: { zoom: 1, x: 1, y: 1 } + }, + description: "This flow represents the first process in our application.", + folder: STARTER_FOLDER_NAME, + user_id: undefined, + }, + { + name: "API requests", + id: "API requests Description", + data: { + nodes: [], + edges: [], + viewport: { zoom: 1, x: 1, y: 1 } + }, + description: "This flow represents the first process in our application.", + folder: STARTER_FOLDER_NAME, + user_id: undefined, + }, + { + name: "Assistant", + id: "Assistant Description", + data: { + nodes: [], + edges: [], + viewport: { zoom: 1, x: 1, y: 1 } + }, + description: "This flow represents the first process in our application.", + folder: STARTER_FOLDER_NAME, + user_id: undefined, + }, +]; diff --git a/src/frontend/src/pages/MainPage/index.tsx b/src/frontend/src/pages/MainPage/index.tsx index e2dfe124b..91ed4066d 100644 --- a/src/frontend/src/pages/MainPage/index.tsx +++ b/src/frontend/src/pages/MainPage/index.tsx @@ -10,6 +10,7 @@ import SidebarNav from "../../components/sidebarComponent"; import { Button } from "../../components/ui/button"; import { CONSOLE_ERROR_MSG } from "../../constants/alerts_constants"; import { + EXAMPLES_MOCK, MY_COLLECTION_DESC, USER_PROJECTS_HEADER, } from "../../constants/constants"; @@ -133,7 +134,7 @@ export default function HomePage(): JSX.Element {
- {examples.map((example, idx) => { + {EXAMPLES_MOCK.map((example, idx) => { return ; })}