Commit graph

11,619 commits

Author SHA1 Message Date
Lucas Oliveira
7f8f5d3f7b refactored authentication 2024-01-05 18:52:44 -03:00
Lucas Oliveira
f5ae805db1 Removed unused console.log 2024-01-05 18:15:25 -03:00
Lucas Oliveira
6a6d11447b Get types done at App.tsx and fixed handle position 2024-01-05 18:13:51 -03:00
anovazzi1
ac448bdd09 code refactor 2024-01-05 17:08:12 -03:00
anovazzi1
b105d60cc5 Refactor node creation logic in PageComponent 2024-01-05 17:04:00 -03:00
Lucas Oliveira
48e62fedea Removed alertsContext from contexts 2024-01-05 13:16:29 -03:00
Lucas Oliveira
de5e464e99 Removed AlertContext from all files 2024-01-05 13:16:01 -03:00
Lucas Oliveira
cc776b3196 Implemented Zustand Alert and changed all the usages 2024-01-05 13:14:00 -03:00
Lucas Oliveira
df12f33e86 Removed useEffects from flowsContext 2024-01-05 12:41:45 -03:00
Lucas Oliveira
a75d70b49c Fixed typing and naming of zustand functions 2024-01-05 12:17:52 -03:00
Lucas Oliveira
0dad0eb540 changed useDark to selector instead of destructuring 2024-01-05 11:55:37 -03:00
Lucas Oliveira
503e7766ba changed useFlow declaration from destructuring to selector to improve performance 2024-01-05 11:49:07 -03:00
cristhianzl
68e5454b11 feat(headerComponent): add support for storeStore in headerComponent to manage store state
refactor(headerComponent): refactor useDarkStore calls in headerComponent to improve readability and maintainability
2024-01-05 11:44:00 -03:00
cristhianzl
97d7f330ea refactor(extraSidebarComponent): remove unused context variable and import to improve code readability and maintainability 2024-01-05 11:41:47 -03:00
cristhianzl
538c7e01e9 refactor(extraSidebarComponent): refactor useContext hooks to destructure FlowsContext and typesContext for better readability
refactor(nodeToolbarComponent): refactor useContext hooks to destructure useStoreStore for better readability
2024-01-05 11:41:40 -03:00
cristhianzl
34592f87e8 merge 2024-01-05 11:38:33 -03:00
Lucas Oliveira
3d720f7f79 Fixed flowsContext to work using useFlow zustand, removed unused functions 2024-01-05 11:31:40 -03:00
Lucas Oliveira
75326cad27 Changed every flowsContext to useFlow 2024-01-05 11:20:02 -03:00
Lucas Oliveira
0bc74b5251 Formatting changes 2024-01-05 10:43:31 -03:00
Lucas Oliveira
df8912055d Implemented Zustand State of flow manager 2024-01-05 10:38:33 -03:00
Lucas Oliveira
17fd965231 Changed way of declaring Zustand functions 2024-01-05 09:47:11 -03:00
coolgo0811
ded21876e6 Fix vectorstores/PGVector missing output issue. 2024-01-05 17:44:24 +08:00
coolgo0811
b2bb23402b Add AzureOpenAIEmbeddings component 2024-01-05 11:24:07 +08:00
coolgo0811
f1b1a3919f Fix vectorstores/Redis to support output component "Chains" 2024-01-05 10:04:41 +08:00
anovazzi1
ca7193476d chore(flowManagerStore.ts): add isPending property to RFState to track pending state
chore(tabs/index.ts): keep existing properties and functions in FlowsContextType for future use
2024-01-04 18:51:32 -03:00
anovazzi1
c61c67cc7c fix(App.tsx): remove unused useContext import and hardReset function call
refactor(App.tsx): remove hardReset function call and add comment indicating any reset function
refactor(flowsContext.tsx): remove hardReset function and update comment for tabId property
refactor(flowsContext.tsx): remove hardReset function from useEffect hook
refactor(flowsContext.tsx): remove hardReset function and update comment for hardReset function
refactor(flowManagerStore.ts): add nodeId property and incrementNodeId function
refactor(tabs/index.ts): remove hardReset function from FlowsContextType
2024-01-04 18:29:35 -03:00
anovazzi1
aa44a70a02 feat(flowManagerStore.ts): add paste function to allow pasting copied nodes and edges at a specified position
feat(flowManagerStore.ts): add lastCopiedSelection object to store the last copied nodes and edges for pasting
2024-01-04 16:36:46 -03:00
anovazzi1
c32a7f9f11 Fix formatting and remove unused imports 2024-01-04 15:58:29 -03:00
anovazzi1
fb52f1368e feat(flowManagerStore.ts): add flowManagerStore to manage nodes and edges in reactflow
The flowManagerStore.ts file is added to the src/frontend/src/stores directory. This file contains the implementation of a custom store called RFState, which manages the state of nodes and edges in a reactflow component. The store provides various functions and callbacks to manipulate and update the nodes and edges.

The RFState interface defines the structure of the store, including the nodes and edges arrays, as well as callbacks for handling changes to nodes and edges.

The useStore hook is created using the create function from the zustand library. It initializes the store with an empty nodes and edges array, and defines callbacks for handling changes to nodes, edges, and connections.

The setEdges and setNodes functions are used to update the nodes and edges arrays in the store.

The deleteNode function removes a node from the nodes array and any associated edges from the edges array.

The deleteEdge function removes an edge from the edges array.

This store can be used in components to access and manipulate the nodes and edges in a reactflow component.
2024-01-04 15:22:53 -03:00
cristhianzl
851caf42b7 fix(storeStore.tsx): fix incorrect order of arguments in updateHasApiKey function
fix(storeStore.tsx): fix incorrect order of arguments in updateLoadingApiKey function
2024-01-04 15:03:34 -03:00
cristhianzl
1284329c16 fix(modals): update state variables after saving API key to reflect the correct values
fix(pages): update state variables after fetching API data to reflect the correct values
2024-01-04 14:51:00 -03:00
cristhianzl
c032a9c003 fix(cardComponent): remove unused import and update import for useStoreStore
fix(headerComponent): remove unused import and update import for useStoreStore
fix(storeGuard): remove unused import and update import for useStoreStore
fix(index): remove unused import and update import for useStoreStore
fix(StoreApiKeyModal): remove unused import and update import for useStoreStore
fix(shareModal): remove unused import and update import for useStoreStore
fix(extraSidebarComponent): remove unused import and update import for useStoreStore
fix(nodeToolbarComponent): remove unused import and update import for useStoreStore
fix(index): remove unused import and update import for useStoreStore
fix(FlowPage): remove unused import and update import for useStoreStore
fix(darkStore): create store for dark mode and update import for useStoreStore
fix(storeStore): create store for store context and update import for useStoreStore
2024-01-04 11:48:10 -03:00
cristhianzl
beb0223605 chore(package.json): add zustand package as a dependency to the frontend package.json file
fix(codeTabsComponent): remove unused imports and update import for FlowsContext

fix(headerComponent): remove unused imports and update import for FlowsContext, useDarkStore, and remove darkContext

fix(tagsSelectorComponent): remove unused import and update import for useDarkStore

refactor(darkStore): move darkContext functionality to a separate zustand store called darkStore

refactor(index.tsx): remove import for darkContext and DarkProvider

fix(codeAreaModal): remove unused imports and update import for useDarkStore

feat(darkStore): add zustand store for managing dark mode state, stars count, and gradient index

feat(darkStore): fetch and set stars count from API in darkStore

feat(darkStore): generate and set random gradient index in darkStore

feat(darkStore): add updateDark, updateStars, and updateGradientIndex actions to darkStore

feat(darkStore): initialize dark mode state, stars count, and gradient index in darkStore

feat(darkStore): fetch and set stars count from API in darkStore

feat(darkStore): generate and set random gradient index in darkStore

feat(darkStore): add updateDark, updateStars, and updateGradientIndex actions to darkStore

feat(darkStore): initialize dark mode state, stars count, and gradient index in darkStore
2024-01-04 11:17:09 -03:00
coolgo0811
1ecb97fd52 Update AzrueChatOpenAI component. Change api_version to option field and select the latest version by default. 2024-01-04 16:56:56 +08:00
abhatt
5ad13e0475 Added Elasticsearch Vector Store 2024-01-03 12:39:17 -08:00
Gabriel Luiz Freitas Almeida
7c6ee78c4a Refactor AmazonBedrockComponent cache parameter 2024-01-03 11:20:15 -03:00
Gabriel Luiz Freitas Almeida
7f37dcf7bc Refactor ChatDefinition class to use prompt_template instead of prompt 2024-01-02 23:30:57 -03:00
Gabriel Luiz Freitas Almeida
99ef882801 Refactor process_graph function to handle ChatDefinition with dict output key 2024-01-02 23:19:55 -03:00
Gabriel Luiz Freitas Almeida
c2da021cac Refactor ChatAdapter to ChatDefinition 2024-01-02 23:15:33 -03:00
Gabriel Luiz Freitas Almeida
8421e60f10 Refactor chat utils module 2024-01-02 23:15:27 -03:00
Gabriel Luiz Freitas Almeida
51fa0f22e0 Add GenericPromptTemplate class to handle different prompt template types 2024-01-02 22:36:32 -03:00
Gabriel Luiz Freitas Almeida
2312227766 Add ChatAdapter class to utils/chat.py 2024-01-02 22:36:26 -03:00
Gabriel Luiz Freitas Almeida
e69f3cfdef Add support for different types of build_result in process_graph function 2024-01-02 22:36:17 -03:00
Gabriel Luiz Freitas Almeida
5a79a343f8 Add llama-index package version 0.9.24 2024-01-02 22:36:08 -03:00
Gabriel Luiz Freitas Almeida
a901f89cd5 Refactor ChatService process_message method 2024-01-02 22:28:07 -03:00
Gabriel Luiz Freitas Almeida
5e615c0c14 Refactor AmazonBedrockComponent class in AmazonBedrock.py 2024-01-02 10:16:14 -03:00
Gabriel Luiz Freitas Almeida
c02bf47771
Update .gitignore for Pycharm (#1270)
Update .gitignore file for Pycharm IDE
2024-01-02 09:30:00 -03:00
Gabriel Luiz Freitas Almeida
e8c7bbbd39
Fix gcp walkthrough tutorial button on README.md (#1271)
With this fix the shell will be able to find the right script.
2024-01-02 09:29:44 -03:00
Lucas Oliveira
f533ab43f9 Added debouncing on node and edge change to not make unnecessary saveFlows. 2023-12-31 12:46:04 -03:00
Lucas Oliveira
20f0e758a4 Fixed Flow Settings Modal not updating when re-entering 2023-12-31 12:36:27 -03:00