Commit graph

6,051 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
5affcdf987 🔧 fix(storeContext.tsx): add missing import for checkHasApiKey function in API controller
🔧 fix(API/index.ts): add checkHasApiKey function to check if store has an API key
2023-11-07 21:10:13 -03:00
Gabriel Luiz Freitas Almeida
09ddf22d74 Add API endpoint to check if store has API key 2023-11-07 21:09:50 -03:00
Gabriel Luiz Freitas Almeida
761a2f04e3 Update storeContext and API controller 2023-11-07 21:02:30 -03:00
Gabriel Luiz Freitas Almeida
0c882cec44 🔀 refactor(routes.tsx): use useEffect hook to redirect from root to /flows for better code organization and readability 2023-11-07 21:00:48 -03:00
Gabriel Luiz Freitas Almeida
225d6da419 🐛 fix(API/index.ts): add missing type annotations and handle null values in getStoreComponents and searchComponent functions
 feat(API/index.ts): add support for additional query parameters in getStoreComponents and searchComponent functions to enable filtering and sorting of results
🐛 fix(StorePage/index.tsx): handle null values and update searchData and totalRowsCount in StorePage component to prevent errors and ensure accurate data display
 feat(StorePage/index.tsx): add support for sorting by popularity and alphabetical order in handleOrderPage function in StorePage component
2023-11-07 15:43:52 -03:00
Gabriel Luiz Freitas Almeida
f9b57f90a7 🔧 fix(store.py): rename list_components function to get_components to improve semantics and clarity
🔧 fix(service.py): add search, status, tags, and sort parameters to query_components function to enable filtering and sorting of components
 feat(service.py): add build_search_filter_conditions method to build filter conditions for search query in query_components function
2023-11-07 15:42:54 -03:00
Gabriel Luiz Freitas Almeida
c9d22071cd 🐛 fix(API/index.ts): add return type to getStoreComponents function to improve code readability and maintainability
🐛 fix(StorePage/index.tsx): fix comment syntax error to prevent code from being commented out
🐛 fix(StorePage/index.tsx): handle undefined response in getStoreComponents promise chain to prevent errors
2023-11-07 14:39:49 -03:00
Lucas Oliveira
7811999c24 Changed response structure(savedFlows not working) 2023-11-07 14:33:49 -03:00
Gabriel Luiz Freitas Almeida
e81e1c808d 🔧 fix(API/index.ts): import missing StoreComponentResponse type to fix compilation error
🔧 fix(API/index.ts): add return type annotation to getStoreSavedComponents function for better type safety and clarity
2023-11-07 13:42:52 -03:00
anovazzi1
5a5b95afa5 refactor(StorePage/index.tsx): rename variable 'result' to 'data' for clarity and consistency
refactor(StorePage/index.tsx): handle null or undefined value for 'data.results' by assigning an empty array to 'results' variable
2023-11-07 11:34:09 -03:00
anovazzi1
71b3fd4245 fix(StorePage): update setSearchData to use res.results instead of res to fix search data not being set correctly
fix(StorePage): update setErrorApiKey to true to handle error with API key
2023-11-07 11:31:06 -03:00
Gabriel Luiz Freitas Almeida
cd71943b43 Refactor API response model and add filter
conditions to list_components and count_components
methods
2023-11-06 22:39:31 -03:00
cristhianzl
4b8349d131 fix(baseModal): add "smaller-h-full" size option to improve modal size flexibility
fix(exportModal): update size prop of BaseModal to "smaller-h-full" to match the new size option
2023-11-03 10:21:08 -03:00
cristhianzl
dd63dadd51 fix(extraSidebarComponent): remove unnecessary export functionality and update tooltip content to "Import" for clarity
The export functionality was removed from the ExtraSidebar component as it was not being used. The tooltip content for the button was also updated to "Import" to accurately reflect its purpose.
2023-11-02 17:28:47 -03:00
cristhianzl
805ee58254 fix(tagsSelectorComponent): reduce the gap between tags in the TagsSelector component for better visual alignment
fix(ConfirmationModal): add top margin to the confirmation button in the ConfirmationModal component to improve spacing

fix(extraSidebarComponent): change the size prop value of the ShareFlowButton component to "small-h-full" for better visual alignment

fix(extraSidebarComponent): add cursor pointer and click event to the text indicating the sharing status in the ShareFlowButton component to toggle the sharePublic state

fix(extraSidebarComponent): reduce the gap between elements in the ConfirmationModal content for better visual alignment

fix(extraSidebarComponent): change the className of the ExportModal button to "extra-side-bar-buttons" and add an onClick event to trigger the uploadFlow function

fix(extraSidebarComponent): change the className of the ExportModal button to "extra-side-bar-buttons" and add an onClick event to trigger the uploadFlow function

fix(extraSidebarComponent): change the className of the Save button in the ExtraSidebar component to "extra-side-bar-buttons" and add an onClick event to trigger the saveFlow function

fix(StorePage): remove console.log statement in the StorePage component

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class
2023-11-02 17:24:35 -03:00
cristhianzl
192f8f061e Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-11-02 09:57:13 -03:00
cristhianzl
b3bb568526 feat(storeContext.tsx): add hasApiKey state and setHasApiKey function to storeContext to track if API key is present
fix(StorePage/index.tsx): fix useEffect dependencies and add missing handleChangeTab function
fix(API/index.ts): rename getNumberOfComponents function to getCountComponents to improve semantics
2023-11-02 09:57:03 -03:00
Gabriel Luiz Freitas Almeida
7ca750bbde 🔧 fix(store.py): add support for filtering components based on is_component parameter in count_components function
🔧 fix(service.py): add support for filtering components based on is_component parameter in StoreService.count_components method
2023-11-02 09:37:41 -03:00
Gabriel Luiz Freitas Almeida
0c90c12c94 🔍 refactor(store.py): add support for filtering components based on is_component flag in list_components function
🔍 refactor(service.py): add support for filtering components based on is_component flag in get_components function
2023-11-02 09:34:02 -03:00
Lucas Oliveira
fad72c6e2c Added new folder on My Collection 2023-11-02 00:58:46 -03:00
Lucas Oliveira
8f2ca05055 Fixed spacing 2023-11-02 00:50:01 -03:00
Lucas Oliveira
843244604d Results and order by design implemented 2023-11-02 00:40:20 -03:00
Lucas Oliveira
b59adffa27 Fixed dropdowns and spacing 2023-11-02 00:28:34 -03:00
Lucas Oliveira
0c7c50b474 Badge design changed 2023-11-02 00:08:20 -03:00
Lucas Oliveira
7f9d28c4e1 Fixed market card design 2023-11-01 23:30:33 -03:00
Lucas Oliveira
fe9ce486d4 Modularized Card Wrap and fixed name of pages 2023-11-01 21:27:06 -03:00
Gabriel Luiz Freitas Almeida
1f5ad28243 🔧 chore(schema.py): add 'last_tested_version' field to ComponentResponse and ListComponentResponse models for better tracking of component versions
🔧 chore(service.py): include 'last_tested_version' field in the list of fields to retrieve from the store API for better tracking of component versions
2023-11-01 11:44:59 -03:00
anovazzi1
c581a958e3 null handling 2023-11-01 10:19:44 -03:00
Gabriel Luiz Freitas Almeida
4e0273a9df 🐛 fix(service.py): add error handling for HTTP response in StoreService to improve reliability and prevent silent failures 2023-11-01 10:17:44 -03:00
anovazzi1
4310229c2f fix(market-card.tsx): fix logic for updating likes_count and liked_by_user state variables
The logic for updating the `likes_count` and `liked_by_user` state variables in the `handleLike` function was incorrect. This commit fixes the logic to correctly update the state variables based on the previous values. Additionally, it adds error handling for the `postLikeComponent` API call and sets the `likes_count` and `liked_by_user` state variables to their previous values in case of an error.
2023-11-01 10:14:48 -03:00
Gabriel Luiz Freitas Almeida
787a725207 🐛 fix(store.py): remove unnecessary blank line to improve code readability
🐛 fix(service.py): fix incorrect variable name in get_component_likes_count method
🐛 fix(service.py): convert likes count to integer to handle unexpected string values
🐛 fix(service.py): convert component_id to string before sending it in the request payload
2023-11-01 10:03:20 -03:00
anovazzi1
d8c133b5d2 fix(market-card.tsx): update setLikes_count and setLiked_by_user with response values to correctly display likes count and user like status
The changes were made to fix a bug where the likes count and user like status were not being displayed correctly on the market card component in the StorePage. The previous code was using the wrong variable to set the likes count and user like status. The fix updates the code to use the correct response values from the API call to set the likes count and user like status.
2023-11-01 09:54:53 -03:00
Gabriel Luiz Freitas Almeida
85647091f7 🐛 fix(store.py): change return value from dictionary to UsersLikesResponse object to improve readability and maintainability
🐛 fix(service.py): handle case when component is not found and raise ValueError to provide more informative error message
2023-11-01 09:52:58 -03:00
Gabriel Luiz Freitas Almeida
68198bfd41 🐛 fix(store.py): retrieve likes count after liking a component to update the response with the latest count
 feat(schema.py): update UsersLikesResponse model to include likes_count and liked_by_user fields
 feat(service.py): add get_component_likes_count method to retrieve the number of likes for a component
2023-11-01 09:52:57 -03:00
anovazzi1
2c3199ad0b format code 2023-11-01 09:49:10 -03:00
anovazzi1
24a7b2ca8a fix(API/index.ts): add postLikeComponent function to handle liking a component and update the liked_by_user and likes_count states accordingly
fix(market-card.tsx): add handleLike function to handle liking a component and update the liked_by_user and likes_count states accordingly
fix(market-card.tsx): update the Heart icon to be filled and have a destructive color if the component is liked by the user
fix(market-card.tsx): update the number of likes to be the likes_count state
fix(StorePage/index.tsx): set setErrorApiKey to false to clear any previous API key error
feat(types/store/index.ts): add liked_by_user property to storeComponent type to indicate if the component is liked by the user
2023-11-01 09:49:10 -03:00
Gabriel Luiz Freitas Almeida
75079731c9 🐛 fix(store.py): fix indentation issue in list_components function to improve code readability
🐛 fix(service.py): remove unused user_data parameter in get_liked_by_user_components function
🐛 fix(utils.py): rename in_users_collection attribute to in_user_collection for consistency
2023-11-01 09:45:42 -03:00
Gabriel Luiz Freitas Almeida
0339072079 🐛 fix(store.py): add missing import for user_data_context and update_components_with_user_data functions
 feat(store.py): add support for user_data_context context manager to fetch and set user data for requests made inside the context
 feat(store.py): add support for in_user_collection attribute in ListComponentResponse schema to indicate if a component is in the user's collection
🐛 fix(store.py): fix get_liked_by_user_components function to use user_data_var context variable instead of making the request multiple times
🐛 fix(store.py): fix get_components_in_users_collection function to use user_data_var context variable instead of making the request multiple times
 feat(store.py): add update_components_with_user_data function to update components with user data (liked_by_user and in_users_collection attributes)
2023-11-01 09:31:50 -03:00
cristhianzl
6799007514 Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-11-01 09:12:01 -03:00
Gabriel Luiz Freitas Almeida
7fc4d54055 🐛 fix(store.py): change type of store_api_Key parameter from str to Optional[str] to handle case when user does not provide an API key 2023-11-01 09:04:46 -03:00
Gabriel Luiz Freitas Almeida
04b047a823 🐛 fix(store.py): fix indentation issue and remove unnecessary comments
🐛 fix(schema.py): remove default value for liked_by_user attribute in ListComponentResponse

The indentation issue in `store.py` was causing the code to execute the wrong logic. The unnecessary comments were removed to improve code readability.

In `schema.py`, the default value for the `liked_by_user` attribute in the `ListComponentResponse` class was removed to ensure that it is only set when needed.
2023-11-01 08:58:21 -03:00
cristhianzl
7a9b972fb5 feat(API): add support for filtering store components by is_component flag in getStoreComponents function
feat(StorePage): add support for filtering components by type (Flow or Component) in handleGetComponents and handleChangePagination functions
2023-10-31 20:08:27 -03:00
Gabriel Luiz Freitas Almeida
0c728ea58e 🐛 fix(store.py): return result without modification if store_api_Key is not provided to prevent potential errors 2023-10-31 19:59:02 -03:00
Gabriel Luiz Freitas Almeida
e64d0fcf03 🔧 fix(store.py): set liked_by_user flag to True for components liked by the user
🔧 fix(schema.py): add liked_by_user field to ListComponentResponse schema
🔧 fix(service.py): add get_liked_by_user_components method to StoreService to retrieve liked components by user
2023-10-31 19:58:10 -03:00
Gabriel Luiz Freitas Almeida
d7e2d43409 🐛 fix(service.py): import and use process_tags_for_post function to correctly process tags for post request
 feat(utils.py): add process_tags_for_post function to handle processing of tags for post request
2023-10-31 10:44:57 -03:00
cristhianzl
02c58211cf Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-10-30 22:42:05 -03:00
cristhianzl
a7120259e0 fix(API/index.ts): change parameter types in searchComponent function to allow null values for query, page, limit, status, and tags
refactor(StorePage/index.tsx): rename filteredCategories state variable to filteredTags for better semantics
feat(StorePage/index.tsx): add functionality to filter components by tags and update search results accordingly
2023-10-30 22:41:58 -03:00
Gabriel Luiz Freitas Almeida
0f442ddb2d 🐛 fix(market-card.tsx): fix typo in button text to display "Install Locally" instead of "Install Localy" for better readability and consistency 2023-10-30 21:31:36 -03:00
cristhianzl
344d3f9888 Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-10-30 21:15:28 -03:00
cristhianzl
06595c2f16 fix(saved-components): remove unused variables and pagination component
fix(market-card): refactor totalComponentsMetadata function to improve readability
fix(StorePage): remove unused import and add logic to handle pagination rendering based on search and loading status
2023-10-30 21:15:19 -03:00