From bd1bf4b16e5ad58a2a202d6650959d591009243c Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 21 Mar 2024 10:18:54 -0300 Subject: [PATCH] Remove unused code and update save debounce time --- src/frontend/src/constants/constants.ts | 73 +------------------------ 1 file changed, 1 insertion(+), 72 deletions(-) diff --git a/src/frontend/src/constants/constants.ts b/src/frontend/src/constants/constants.ts index af079c739..a8f3ab1cb 100644 --- a/src/frontend/src/constants/constants.ts +++ b/src/frontend/src/constants/constants.ts @@ -1,7 +1,6 @@ // src/constants/constants.ts import { languageMap } from "../types/components"; -import { FlowType } from "../types/flow"; /** * invalid characters for flow name @@ -750,75 +749,5 @@ export const NATIVE_CATEGORIES = [ "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, - }, -]; +export const SAVE_DEBOUNCE_TIME = 500;