Commit graph

5,936 commits

Author SHA1 Message Date
Lucas Oliveira
cbbfa3517f fixed input on mobile 2023-10-25 19:48:24 -03:00
Lucas Oliveira
3d6227d881 Fixed header 2023-10-25 19:45:04 -03:00
Lucas Oliveira
0d55ce9f06 Added skeleton on store loading 2023-10-25 19:19:45 -03:00
anovazzi1
02e1f8a82e fix(tabsContext.tsx): fix component key generation to include unique identifier to avoid conflicts
fix(extraSidebarComponent/index.tsx): fix sorting of sidebar items to be case-sensitive
fix(utils.ts): update regex pattern to remove count from string and sort function to handle alphanumeric identifiers
2023-10-25 19:08:35 -03:00
anovazzi1
a718ac2f4b fix(tabsContext.tsx): change return type of saveComponent function to Promise<String | undefined> for better error handling and consistency
fix(nodeToolbarComponent/index.tsx): fix saveComponent function call to return a Promise and handle success and error cases properly
fix(types/tabs/index.ts): change return type of saveComponent function to void for consistency with implementation
feat(reactflowUtils.ts): add updateComponentNameAndType function to update component name and type
2023-10-25 18:31:45 -03:00
Gabriel Luiz Freitas Almeida
b006f11a3d 🐛 fix(service.py): simplify the filter condition for retrieving public components 2023-10-25 18:07:49 -03:00
Gabriel Luiz Freitas Almeida
bb05c6cd46 🐛 fix(service.py): increase default limit value from 10 to 15 to retrieve more components per page
🐛 fix(service.py): fix duplicate assignment in filter parameter to correctly filter public and Public components
2023-10-25 18:05:42 -03:00
Gabriel Luiz Freitas Almeida
7d4e3e2614 🐛 fix(service.py): update filter logic to include components with status "Public" in addition to "public" 2023-10-25 18:04:22 -03:00
anovazzi1
1ba97aedcb fix(market-card.tsx): fix useEffect dependency array to depend on savedFlows instead of added to ensure correct behavior
feat(index.tsx): increase the number of components fetched from the store from 10 to 1000 to improve user experience
2023-10-25 17:31:53 -03:00
anovazzi1
373551ab57 update package lock 2023-10-25 14:13:10 -03:00
anovazzi1
9ae903150a Merge branch 'bugFixes' into feature/store 2023-10-25 14:06:06 -03:00
anovazzi1
a9a1316183 chore(tabsContext.tsx): import cloneDeep function from lodash to improve code readability and maintainability
fix(tabsContext.tsx): fix comment typo
fix(tabsContext.tsx): add missing semicolon to improve code consistency
fix(tabsContext.tsx): clone edge data object to prevent mutation of original object
refactor(PageComponent/index.tsx): remove unnecessary comment
2023-10-25 13:50:43 -03:00
anovazzi1
af996b171b fix(reactflowUtils.ts): comment out the line that deselects nodes after ungrouping to keep them selected 2023-10-25 13:37:59 -03:00
anovazzi1
64bdab071d fix(tabsContext.tsx): temporarily comment out the processFlowNodes function call to prevent node update 2023-10-25 12:05:36 -03:00
Gabriel Luiz Freitas Almeida
3a21f6092a 🔧 chore(service.py): add support for filtering components by user_created field
🔧 chore(service.py): add support for filtering components by user_created field when filter_by_user flag is set to True, otherwise filter by status field
2023-10-25 11:51:40 -03:00
Gabriel Luiz Freitas Almeida
e15d38e8d2 🐛 fix(store.py): decrypt store API key before using it to improve security
 feat(store.py): add support for optional store API key to handle cases where user does not have a store API key set
🔧 chore(store.py): remove unnecessary dependency injection for settings_service in create_component, list_components, read_component, and search_endpoint functions
2023-10-25 11:51:02 -03:00
Gabriel Luiz Freitas Almeida
732fd4767f 🐛 fix(service.py): remove unused parameter 'filter_by_user' from download method to improve code readability and maintainability 2023-10-25 11:06:15 -03:00
Gabriel Luiz Freitas Almeida
d1c4af8c7d 🐛 fix(store.py): add filter_by_user parameter to list_components and read_component functions to filter components by user
 feat(store.py): add support for filtering components by user in the list_components and read_component functions
🐛 fix(service.py): add filter_by_user parameter to list_components function in StoreService class to filter components by user
2023-10-24 22:50:42 -03:00
anovazzi1
8c4b88a49a fix(market-card.tsx): remove duplicate setLoading(true) call in handleAdd function to prevent unnecessary loading state changes 2023-10-24 21:03:13 -03:00
anovazzi1
6ccb166417 fix(market-card.tsx): change import statement to include useEffect from react to fix missing dependency warning
feat(market-card.tsx): add useEffect hook to set the initial value of 'added' state based on whether the flow is already saved or not
feat(market-card.tsx): add logic to handleInstall function to check if flowData.current exists before adding flow
feat(market-card.tsx): add logic to handleInstall function to fetch component data and create a new flow if flowData.current is null
2023-10-24 21:00:11 -03:00
anovazzi1
d468f40fb6 fix(contexts/index.tsx): move import statement for StoreProvider to the correct position for better organization
fix(contexts/storeContext.tsx): change the type of savedFlows state from an object to a Set to improve data structure
fix(controllers/API/index.ts): add a new function getStoreSavedComponents to fetch saved components from the store
fix(pages/StorePage/components/market-card.tsx): use the savedFlows state from StoreContext to determine if a component is added to the store
fix(pages/StorePage/index.tsx): add a new function getSavedComponents to fetch saved components from the store and update the savedFlows state in StoreContext
fix(types/contexts/store.ts): change the type of savedFlows state in storeContextType from an object to a Set for better data structure
2023-10-24 20:47:56 -03:00
anovazzi1
768a7cd754 feat(contexts): add StoreProvider to ContextWrapper to provide store context to components
fix(storeContext.tsx): fix typo in function name, change storeProvider to StoreProvider for consistency and clarity
2023-10-24 20:10:29 -03:00
anovazzi1
5222775c56 feat(storeContext): add storeContext to manage and share user components and their updates
feat(storeContext): create storeProvider component to provide the store context to child components
feat(storeContext): define storeContextType to specify the shape of the store context data
2023-10-24 20:07:42 -03:00
anovazzi1
7c177a9930 feat(market-card.tsx): add loading state to MarketCardComponent to show loading spinner when adding flow
fix(market-card.tsx): fix typo in cloneFlowWithParent function call
fix(market-card.tsx): set loading state to false after flow is successfully saved
fix(market-card.tsx): set loading state to true when Add to Account button is clicked
fix(market-card.tsx): add animate-spin class to IconComponent when loading state is true
fix(market-card.tsx): change button text to "Install Locally" when flow is already added
feat(styleUtils.ts): add Loader2 icon from lucide-react library
2023-10-24 19:38:47 -03:00
Gabriel Luiz Freitas Almeida
ed8acfb8af 🔥 refactor(flows.py): remove unused session dependency in read_flows function 2023-10-24 18:52:44 -03:00
Gabriel Luiz Freitas Almeida
dde22bd35f 🔧 fix(store.py): add filter_by_user query parameter to read_component endpoint to allow filtering components by user
🔧 fix(service.py): modify download method in StoreService to include filter_by_user parameter in API request to filter components by user
2023-10-24 18:51:30 -03:00
anovazzi1
ba8399a0de feat(market-card.tsx): add useContext, useRef, and useState imports to improve code readability and maintainability
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support
2023-10-24 18:27:14 -03:00
anovazzi1
7411435924 fix(modals): change single quotes to double quotes for consistency in StoreApiKeyModal component
feat(modals): add support for storing API key in StoreApiKeyModal component
fix(pages): add missing imports and state hook in MarketCardComponent
feat(pages): update button text and functionality in MarketCardComponent
fix(pages): update label text in StorePage component
fix(utils): add missing imports for GitBranchPlus and BookmarkPlus icons in styleUtils
2023-10-24 18:11:09 -03:00
cristhianzl
af54fa3cca refactor(StorePage): replace console.log with setSearchData to update search data in the component state
The console.log statement was replaced with setSearchData to update the search data in the component state. This change improves the functionality of the StorePage component by correctly updating the search data when a search is performed.
2023-10-24 17:57:47 -03:00
anovazzi1
e59d20e3f2 chore(SidebarDraggableComponent): remove unused "Share" option from the select dropdown
The "Share" option was removed from the select dropdown in the SidebarDraggableComponent component. This option was not being used and was unnecessary, so it was removed to improve code cleanliness and remove potential confusion for developers working on this component.
2023-10-24 16:24:41 -03:00
Gabriel Luiz Freitas Almeida
d02a5abb45 🔧 chore(launch.json): add "envFile" configuration to specify the path to the .env file for environment variable loading during debugging 2023-10-24 16:11:53 -03:00
Gabriel Luiz Freitas Almeida
6d6b2ed826 🔧 fix(base.py): add DOWNLOAD_WEBHOOK_URL setting to support webhook integration for component downloads
🔧 fix(service.py): call webhook after downloading a component to trigger webhook integration
2023-10-24 16:10:33 -03:00
Gabriel Luiz Freitas Almeida
78544c9469 🔧 chore(service.py): refactor teardown_superuser function to improve code readability and maintainability 2023-10-24 09:32:32 -03:00
anovazzi1
4d04400309 fix(StorePage): fix typo in function name from cloneFLowWithParent to cloneFlowWithParent
fix(storeUtils): add missing type annotations to function parameters in cloneFlowWithParent function
2023-10-23 23:47:45 -03:00
Gabriel Luiz Freitas Almeida
b33878088e 🐛 fix(service.py): handle case when response is None to prevent UnboundLocalError
🐛 fix(service.py): handle case when response is None to prevent UnboundLocalError and raise ValueError with error message from response if available
2023-10-23 23:46:07 -03:00
anovazzi1
55e28bdeba fix(StorePage/index.tsx): add is_component parameter to handleFork function to properly clone flow with parent
fix(StorePage/index.tsx): pass is_component parameter to cloneFLowWithParent function when cloning flow
fix(StorePage/index.tsx): log newFlow after cloning with parent
fix(StorePage/index.tsx): log parsed response after saving cloned flow to flow store
fix(StorePage/index.tsx): pass item.is_component parameter to handleFork function when adding MarketCardComponent
fix(StorePage/index.tsx): pass item.id and item.is_component parameters to handleFork function when adding MarketCardComponent
fix(StorePage/index.tsx): pass data[0].id and data[0].is_component parameters to handleFork function when clicking test button
fix(storeUtils.ts): add is_component parameter to cloneFLowWithParent function to properly set is_component property of cloned flow
2023-10-23 23:38:24 -03:00
Gabriel Luiz Freitas Almeida
8b9267b2e8 🐛 fix(store.py): import missing schema classes in store.py to fix NameError
 feat(store.py): change response models for list_components and read_component endpoints to use new schema classes for improved consistency and clarity
🐛 fix(schema.py): add missing ListComponentResponse and DownloadComponentResponse classes to schema.py to fix NameError
 feat(service.py): change return types of list_components and download methods in StoreService to use new schema classes for improved consistency and clarity
2023-10-23 23:37:08 -03:00
Gabriel Luiz Freitas Almeida
2b9ac7c3ac 🔧 chore(store.py): add status code 201 to the response of create_component endpoint for better HTTP semantics 2023-10-23 23:07:11 -03:00
cristhianzl
3cb0231f2e Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-10-23 23:04:48 -03:00
Gabriel Luiz Freitas Almeida
e6ae03105f 🐛 fix(store.py): pass component object instead of dict to store_service.upload() to fix data type mismatch
🐛 fix(service.py): convert parent UUID to string before sending to store in upload() method to fix data type mismatch
2023-10-23 22:56:15 -03:00
anovazzi1
27bc4c5498 fix(EditNodeModal): only reset data and call onClose when modalOpen is true to prevent unnecessary side effects 2023-10-23 22:47:41 -03:00
anovazzi1
6f40a94b55 update node internals on editNodeModal 2023-10-23 22:40:55 -03:00
cristhianzl
64b1945cbc feat(StorePage): update search data when fetching store components to ensure accurate search results
fix(StorePage): set search data to an empty array when an error occurs to prevent displaying incorrect search results
2023-10-23 22:24:59 -03:00
anovazzi1
0ce19818ec feat(API): add support for saving parent information when saving a flow store
The `saveFlowStore` function in the API controller now accepts a `parent` parameter. This allows the user to specify the parent of the flow when saving it to the store. The `parent` parameter is included in the request payload sent to the server.
2023-10-23 22:10:17 -03:00
Gabriel Luiz Freitas Almeida
ab86ddc38a 🐛 fix(service.py): fix index out of range error when getting component in download method 2023-10-23 22:09:01 -03:00
cristhianzl
90853dda96 fix(modals): hardcode API key in StoreApiKeyModal to a specific value for testing purposes
refactor(pages): simplify conditional rendering logic in StorePage by removing unnecessary variables and error message display
2023-10-23 22:05:44 -03:00
anovazzi1
9f7fe0545c fix(StorePage/index.tsx): fix typo in import statement for getStoreComponents function
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
2023-10-23 21:54:09 -03:00
Gabriel Luiz Freitas Almeida
88203b9178 🐛 fix(store.py): change method name from get to download in store_service to improve clarity and consistency 2023-10-23 21:29:53 -03:00
Gabriel Luiz Freitas Almeida
464ba02de8 🔄 refactor(schema.py): rename 'user_created' field to 'user_name' for better clarity and consistency 2023-10-23 21:25:20 -03:00
Gabriel Luiz Freitas Almeida
c695a4fd61 🔧 chore(store.py): add "user_created.name" and "is_component" fields to the list of fields returned by list_components() function
🔒 refactor(store.py): refactor the logic to handle the case when store_api_Key is not provided
2023-10-23 21:19:28 -03:00