Commit graph

6,293 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
79acc81c76 Refactor read_component to download_component 2023-11-16 09:09:28 -03:00
cristhianzl
c477db5cac Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-11-16 08:57:40 -03:00
Gabriel Luiz Freitas Almeida
33e0c4b645 Add Langflow version check and update components
with user data function
2023-11-15 22:22:22 -03:00
cristhianzl
c939da5ed4 fix(parameterComponent): refactor code to handle both item.display_name and item.type in rendering parameter component
fix(extraSidebarComponent): fix useEffect dependency warning by adding getFilterEdge to the dependency array
fix(utils): refactor groupByFamily function to use nodeGroupedObjType type for tempInputs and tempOutputs arrays
2023-11-14 23:48:58 -03:00
cristhianzl
817eb77335 fix(extraSidebarComponent): remove unused code related to filtering data
fix(sideBarDraggableComponent): update import statement for FlowsContext
2023-11-14 22:24:26 -03:00
cristhianzl
90bf92b2dc fix(extraSidebarComponent/index.tsx): fix bug causing issues with filtering data
feat(extraSidebarComponent/index.tsx): add support for filtering data based on selected filter edges
fix(components/index.tsx): fix import statement for FlowsContext in order to use the correct context
2023-11-14 22:15:39 -03:00
cristhianzl
8b0a1ccd5f Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-11-14 22:09:30 -03:00
Gabriel Luiz Freitas Almeida
71300ba42e Refactored code by removing unused imports and
adding import statements inside functions.
2023-11-14 22:07:12 -03:00
Gabriel Luiz Freitas Almeida
d93df82607 Refactor dependencies and imports in
custom_component.py and add new deps.py file
2023-11-14 22:01:37 -03:00
Gabriel Luiz Freitas Almeida
c36e901a74 Refactor imports and reformat code in
test_setup_superuser.py
2023-11-14 22:00:46 -03:00
cristhianzl
2ef03b56b8 Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-11-14 21:59:52 -03:00
cristhianzl
a81ed4df52 refactor(flows): update import statement in FlowsComponent to use FlowsContext instead of TabsContext
refactor(market-card): update import statement in MarketCardComponent to use FlowsContext instead of TabsContext
refactor(store-page): remove unused setTabId function from StorePage component
2023-11-14 21:59:43 -03:00
Gabriel Luiz Freitas Almeida
2def762831 📦 chore(getters.py): add getters for various services and session in langflow backend
🔨 refactor(test_setup_superuser.py): refactor imports and replace deprecated dependencies in test_setup_superuser.py
2023-11-14 21:57:48 -03:00
Gabriel Luiz Freitas Almeida
60f6d08fc3 Merge remote-tracking branch 'origin/dev' into feature/store 2023-11-14 21:41:58 -03:00
Gabriel Luiz Freitas Almeida
c89e4bc422 Add Object field type to constants.py 2023-11-14 21:01:19 -03:00
Gabriel Luiz Freitas Almeida
c88d63546f 🔧 fix(field_typing): import Object class in __init__.py to fix missing import error
🔧 fix(constants.py): add Object class to CUSTOM_COMPONENT_SUPPORTED_TYPES to support object type in field typing
2023-11-14 21:00:43 -03:00
Gabriel Luiz Freitas Almeida
cfdc2da77b 🔧 fix(store.py): change get_components, read_component, get_tags, get_list_of_components_liked_by_user, and like_component functions to be asynchronous to improve performance and avoid blocking the event loop
🚀 feat(store.py): update get_components function to use async/await syntax for querying and counting components to improve readability and maintainability
🚀 feat(store.py): update read_component function to use async/await syntax for downloading component from the store to improve performance and avoid blocking the event loop
🚀 feat(store.py): update get_tags function to use async/await syntax for getting tags from the store to improve performance and avoid blocking the event loop
🚀 feat(store.py): update get_list_of_components_liked_by_user function to use async/await syntax for getting user likes from the store to improve performance and avoid blocking the event loop
🚀 feat(store.py): update like_component function to use async/await syntax for liking a component and getting the updated likes count from the store to improve performance and avoid blocking the event loop

🐛 fix(service.py): change _get method to async to make it compatible with async requests
 feat(service.py): change call_webhook method to async to make it compatible with async requests
🐛 fix(service.py): change count_components method to async to make it compatible with async requests
 feat(service.py): change query_components method to async to make it compatible with async requests
🐛 fix(service.py): change get_liked_by_user_components method to async to make it compatible with async requests
 feat(service.py): change get_components_in_users_collection method to async to make it compatible with async requests
🐛 fix(service.py): change download method to async to make it compatible with async requests
 feat(service.py): change upload method to async to make it compatible with async requests
🐛 fix(service.py): change get_tags method to async to make it compatible with async requests
 feat(service.py): change get_user_likes method to async to make it compatible with async requests
🐛 fix(service.py): change get_component_likes_count method to async to make it compatible with async requests
 feat(service.py): change like_component method to async to make it compatible with async requests
🐛 fix(utils.py): change update_components_with_user_data method to async to make it compatible with async requests
2023-11-14 16:26:02 -03:00
anovazzi1
775dec574f fix(StorePage): change the label of the "Most Popular" option in the select dropdown to "Popular" for brevity and consistency 2023-11-14 16:01:43 -03:00
anovazzi1
19887d6887 refactor(StorePage): remove unnecessary call to getSavedComponents() in getAllStore() function
fix(StorePage): remove redundant call to getSavedComponents() in onCloseModal() function
2023-11-14 16:00:26 -03:00
anovazzi1
6515cc9e06 fix(StorePage): change authorized prop value from !loadingSaved to hasApiKey for better clarity and consistency 2023-11-14 15:58:37 -03:00
Gabriel Luiz Freitas Almeida
6c18822368 New lock 2023-11-14 15:22:39 -03:00
Gabriel Luiz Freitas Almeida
a7c86f1d1e 🐛 fix(store.py): fix build_filter_conditions method to correctly build filter conditions for querying components
 feat(store.py): add build_liked_filter method to build filter conditions for querying liked components
 feat(store.py): add build_tags_filter method to build filter conditions for querying components with specific tags
 feat(store.py): add build_filter_conditions method to build filter conditions for querying components with various filters
 feat(store.py): modify query_components method to accept filter_conditions parameter for querying components with filters
🔧 chore(utils.py): reorder imports in get_factories_and_deps function
🔧 chore(utils.py): reorder imports in initialize_session_service function
2023-11-14 15:22:12 -03:00
Gabriel Luiz Freitas Almeida
8b6940f1c8 🔀 refactor(API/index.ts): rename 'filter_by_user' parameter to 'liked' for better clarity and consistency 2023-11-14 14:53:46 -03:00
Gabriel Luiz Freitas Almeida
887badcf72 🔧 chore(service.py): remove unused code and add logging for webhook failures in StoreService class 2023-11-14 14:53:39 -03:00
Gabriel Luiz Freitas Almeida
dfcee85374 🔥 refactor(store.py): remove unused imports and commented out code
🔒 chore(store.py): pass 'liked' parameter to 'update_components_with_user_data' function to improve code readability and maintainability
2023-11-14 14:53:32 -03:00
Gabriel Luiz Freitas Almeida
bd4e88273b 🐛 fix(store.py): change filter_by_user parameter name to liked to improve semantics and clarity
 feat(store.py): add support for filtering components by liked status to get_components function
🐛 fix(store.py): remove in_user_collection attribute from ListComponentResponse schema as it is not used
🐛 fix(service.py): change _get method signature to accept Optional parameters and add type hints
 feat(service.py): add build_tags_filter method to build the tags filter for get_components function
🐛 fix(service.py): remove filter_by_user parameter from count_components function and adjust logic accordingly
 feat(service.py): add liked parameter to get_components function to filter components by liked status
🐛 fix(service.py): change get_components_in_users_collection method parameter type from List[UUID] to List[str]
🐛 fix(service.py): change download method parameter type from str to UUID
🐛 fix(utils.py): change update_components_with_user_data function parameter type from List["ListComponentResponse"] to List[ListComponentResponse]
2023-11-14 14:47:02 -03:00
Gabriel Luiz Freitas Almeida
3e04ea2d38 Refactor code for improved readability and
efficiency.
2023-11-14 12:41:02 -03:00
Gabriel Luiz Freitas Almeida
3eec2e1a28 Update daisyui version to 4.0.4 and add culori
dependency
2023-11-14 11:32:24 -03:00
anovazzi1
3935292892 fix(extraSidebarComponent): reset filter when search input is empty or contains "search" to improve user experience
refactor(utils): remove unnecessary empty line
2023-11-13 21:27:39 -03:00
anovazzi1
756fd9c0b2 fix(market-card.tsx): change loading variable name to loadingLike for better clarity and semantics 2023-11-13 20:33:05 -03:00
anovazzi1
fec102b6e7 fix(storeContext.tsx): add console.log statement to log the response from checkHasApiKey() function
fix(StoreApiKeyModal/index.tsx): initialize apiKeyValue state with a fake API key if hasApiKey is true
2023-11-13 19:33:56 -03:00
cristhianzl
7a15fb7a0d Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-11-13 19:26:05 -03:00
cristhianzl
75e144dd26 refactor(flows): reverse the order of flows to display the latest ones first
refactor(MainPage): comment out code that adds "From Store" sidebar navigation item
feat(flow): add date_created property to FlowType to track the creation date of flows
2023-11-13 19:25:56 -03:00
Gabriel Luiz Freitas Almeida
9c9c0b27d2 Exclude alembic directory from Ruff checks. 2023-11-13 18:33:54 -03:00
Gabriel Luiz Freitas Almeida
1e32526880 Update Makefile with formatting and linting
changes
2023-11-13 18:33:28 -03:00
Gabriel Luiz Freitas Almeida
e4d8687a09 ruff format 2023-11-13 18:32:34 -03:00
Gabriel Luiz Freitas Almeida
6a1cbd93cc Update dependencies and formatting 2023-11-13 18:19:32 -03:00
Gabriel Luiz Freitas Almeida
0cd1fcdcbd 🔧 fix(store.py): add type hints to improve code readability and maintainability
🚀 feat(store.py): add support for pagination in get_components endpoint to limit the number of results returned
🔧 fix(store.py): fix count_components endpoint to handle cases where the number of results is less than the limit
2023-11-13 18:04:48 -03:00
Gabriel Luiz Freitas Almeida
564eef87c9 Refactor main.py to include middleware for
flattening query string lists.
2023-11-13 18:04:29 -03:00
Gabriel Luiz Freitas Almeida
ef0d4e6f87 Refactor schema.py to import List and Optional
from typing.
2023-11-13 18:04:02 -03:00
Gabriel Luiz Freitas Almeida
29409aec51 Refactored tag filtering in StoreService 2023-11-13 18:03:13 -03:00
anovazzi1
7b19cce2f7 fix(market-card.tsx): set loading state to true when handleLike function is called to provide visual feedback to the user
fix(market-card.tsx): set loading state to false after postLikeComponent promise is resolved or rejected to stop the loading state
fix(market-card.tsx): disable the like button when loading state is true or authorized state is false to prevent multiple requests and provide visual feedback to the user
2023-11-13 16:26:06 -03:00
anovazzi1
19a6ba79b3 fix(StorePage/index.tsx): fix indentation and formatting issues for better code readability
feat(StorePage/index.tsx): add disabled attribute to buttons and input when loading to prevent user interaction
2023-11-13 16:20:15 -03:00
anovazzi1
34c6ce86f0 refactor(StorePage): extract getAllStore function to improve code readability and reusability
feat(StorePage): call getAllStore function when search text is entered or search button is clicked to update store components
2023-11-13 15:44:07 -03:00
anovazzi1
3a87f7fa4c refactor(market-card.tsx): wrap market card title with ShadTooltip component to add tooltip functionality for long names
feat(market-card.tsx): add support for handling installation of components when already added and installable
2023-11-13 15:30:57 -03:00
anovazzi1
58e5c179a0 fix(StoreApiKeyModal/index.tsx): fix typo in import statement for StoreContext
feat(StoreApiKeyModal/index.tsx): add support for checking if an API key exists in the StoreContext
fix(market-card.tsx): remove unnecessary code for handling installable market cards
2023-11-13 15:18:30 -03:00
Gabriel Luiz Freitas Almeida
bc9f3f20d8 Fix user_data context setting in StoreService 2023-11-13 14:58:24 -03:00
Gabriel Luiz Freitas Almeida
6067c324fb Handle HTTPStatusError in get_components function 2023-11-13 14:54:05 -03:00
Gabriel Luiz Freitas Almeida
afe9c9d1f4 Fix user_data_context function to handle missing
api_key
2023-11-13 14:53:40 -03:00
anovazzi1
f11d578efa fix(API/index.ts): encode comma in tags array to prevent issues with URL encoding 2023-11-13 14:07:19 -03:00