feat(StorePage/index.tsx): add support for saving flow store and searching for a component in API controller
feat(StorePage/index.tsx): add support for cloning a flow with parent and saving it to flow store
feat(StorePage/index.tsx): add support for adding a cloned flow to tabs context
feat(StorePage/index.tsx): add test button to test cloning and saving flow
feat(types/flow/index.ts): add parent property to FlowType to track parent flow
feat(utils/storeUtils.ts): add utility function to clone a flow with parent
feat(authContext.tsx): add storeApiKey function to store API key in cookies and update apiKey state
fix(StoreApiKeyModal/index.tsx): update usage of setApiKey to storeApiKey from AuthContext
feat(StorePage/index.tsx): add error handling for missing or invalid API key and display appropriate error message
fix(StoreApiKeyModal/index.tsx): set API key in the auth context when it is saved
fix(StorePage/index.tsx): display a message to add an API key if it is not present in the auth context
fix(StorePage/index.tsx): display a loading message while fetching data if API key is present in the auth context
feat(extraSidebarComponent): add support for exporting flow and sharing flow functionalities
fix(StorePage): remove unnecessary useContext dependencies to improve performance
fix(StorePage): fix error message title
feat(ConfirmationModal/index.tsx): add support for open and onClose props to control modal visibility
fix(nodeToolbarComponent/index.tsx): import set function from lodash to fix missing set function error
feat(nodeToolbarComponent/index.tsx): add confirmation modal for sharing component functionality
fix(types/components/index.ts): add optional open and onClose props to ConfirmationModalType
The changes were made to improve the functionality and user experience of the ConfirmationModal and NodeToolbarComponent components.
In ConfirmationModal/index.tsx, the missing dependencies were added to the useEffect hook to prevent unnecessary re-renders. Additionally, support for the open and onClose props was added to control the visibility of the modal.
In NodeToolbarComponent/index.tsx, the set function was imported from lodash to fix the missing set function error. A confirmation modal was also added for the "Share" functionality, allowing users to share a component. The handleShareComponent function was implemented to handle the sharing logic.
In types/components/index.ts, the open and onClose props were added as optional to the ConfirmationModalType to reflect the changes made in the ConfirmationModal component.
fix(nodeToolbarComponent/index.tsx): remove unused imports and variables, update saveComponent logic to handle authentication and error handling
fix(types/tabs/index.ts): remove unnecessary id parameter from saveComponent function
✨ feat(store.py): add support for fetching specific fields when listing components
✨ feat(store.py): add support for forking components from the store
✨ feat(store.py): add support for searching components with various filters and sorting options
🐛 fix(schema.py): add missing parent field to ComponentResponse and StoreComponentCreate models
fix(nodeToolbarComponent/index.tsx): fix downloadNode function call to pass a deep clone of data instead of the original data object
fix(reactflowUtils.ts): remove unnecessary line that sets official property to false on nodeData.node
fix(tabsContext.tsx): add skipUpdate parameter to processFlows function to control whether to update state or not
fix(tabsContext.tsx): remove setErrorData call in processFlows function to prevent unnecessary error logging
fix(tabsContext.tsx): remove unused error handling in processFlows function
fix(tabsContext.tsx): remove unused saveFlowToDatabase and addFlowToLocalState calls in deleteFlowFromDatabase function
fix(tabsContext.tsx): remove unused saveComponent function and addFlowToLocalState call in deleteComponent function
fix(tabsContext.tsx): remove unused increment variable in saveComponent function
fix(tabsContext.tsx): remove unused res parameter in saveComponent function
fix(tabsContext.tsx): remove unused console.error call in saveComponent function
feat(tabsContext.tsx): add support for skipping node update in processFlows function
feat(tabsContext.tsx): add support for removing component from data when deleting a flow if it is a custom component
feat(tabsContext.tsx): add support for adding new flow to local state and processing it in addFlowToLocalState function
feat(tabsContext.tsx): set component node official property to false in saveComponent function before saving to database
feat(tabsContext.tsx): remove addFlowToLocalState call and addFlow function call in saveComponent function
fix(tabsContext): remove commented out code for getting locally saved tabs data to improve code readability
fix(tabsContext): make removeFlow function asynchronous to ensure proper flow deletion from the database
fix(tabsContext): await the deleteFlowFromDatabase function before updating the flows state to prevent race conditions
fix(tabsContext): handle errors when saving flow to the database and log them to the console
fix(tabsContext): handle errors when deleting a component flow and log them to the console
fix(MainPage): remove unused removeFlow function import to improve code cleanliness
In this commit, a redirect from the root path ("/") to the "/flows" path was added in the routes.tsx file. This change was made to improve the user experience by automatically redirecting users to the "/flows" page when they visit the root URL. The redirect is implemented using the useNavigate hook from the react-router-dom library.
refactor(extraSidebarComponent): simplify handleSearchInput dependency array to only include 'data' variable
refactor(extraSidebarComponent): simplify official property condition in JSX element
feat(tabsContext.tsx): add saveComponent and deleteComponent functions to TabsContext to handle saving and deleting custom components
fix(typesContext.tsx): remove saveComponent and deleteComponent functions from typesContext as they are now handled in TabsContext
fix(sideBarDraggableComponent/index.tsx): remove unused imports and variables to improve code cleanliness
feat(sideBarDraggableComponent/index.tsx): add deleteComponent function from TabsContext to handle deleting custom components
fix(nodeToolbarComponent/index.tsx): remove unused imports and variables to improve code cleanliness
feat(nodeToolbarComponent/index.tsx): add saveComponent function from TabsContext to handle saving custom components
fix(types/index.ts): import NodeDataType from flow to fix type error in TabsContextType
fix(tabsContext.tsx): move setData function call outside of try-catch block to ensure it always executes
fix(MainPage/index.tsx): filter out component flows from the list of flows to be rendered
- Added new functions `getStoreComponents`, `postStoreComponents`, `getComponent`, and `searchComponent` to the `API` controller module.
- `getStoreComponents` function retrieves a list of store components from the API.
- `postStoreComponents` function posts a new store component to the API.
- `getComponent` function retrieves a specific store component by its ID from the API.
- `searchComponent` function searches for store components based on various parameters such as query, page, limit, status, and tags.
fix(AdminPage): remove unnecessary line
- Removed an unnecessary line of code in the `AdminPage` component.
feat(StorePage): add functionality to get and search store components
- Added functionality to the `StorePage` component to get store components and perform a search.
- Added a new import statement for the `getStoreComponents` and `searchComponent` functions from the `API` controller module.
- Added a new state variable `searchData` to store the search results.
- Added a new state variable `inputText` to store the search input text.
- Added a new function `handleGetComponents` to fetch store components from the API.
- Added a new function `handleSearch` to perform a search based on the input text.
- Modified the `onChange` event handler of the search input to update the `inputText` state and trigger the search.
- Added a call to `handleGetComponents` in the `StoreApiKeyModal` component's `onCloseModal` event handler to refresh the store components after closing the modal.
🔒 chore(store.py): add dependency injection for store API key retrieval to improve code modularity and testability
🔒 chore(store.py): add error handling for missing store API key to provide better user feedback
🔒 chore(store.py): refactor create_component, read_component, and list_components to use store API key from dependency injection instead of user object