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
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.
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
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
### Pull Request for Issue #1246
**Description**,
This pull request addresses issue #1246, which proposes the addition of
a self-query retriever according to the LangChain Vectara integration.
The self-query retriever aims to empower users with the ability to
perform queries directly within the Vectara component(vector store).
**Changes Made**
I have added one more file under
`src\backend\langflow\components\retrievers` which contains a new
VectaraSelfQueryRetriverComponent class
**Files Added:** VectaraSelfQueryRetriever.py
**langchain documentation for this component:**
https://python.langchain.com/docs/integrations/retrievers/self_query/vectara_self_query