Commit graph

6,064 commits

Author SHA1 Message Date
Lucas Oliveira
00c7ff8cd3 Removed ability to clone component and flow from store 2023-11-08 17:02:38 -03:00
Lucas Oliveira
03106a3dad Added key to badge list 2023-11-08 16:25:02 -03:00
Lucas Oliveira
1e5a6d84b4 Fixed requests refreshing when updating API key 2023-11-08 16:21:47 -03:00
Lucas Oliveira
5875196594 Changed opacity of loading components 2023-11-08 16:17:54 -03:00
Lucas Oliveira
f1e197ea97 Changed tooltip when component added 2023-11-08 16:12:18 -03:00
Lucas Oliveira
e6289478f2 Fixed authorization on Add and Heart buttons 2023-11-08 16:12:18 -03:00
Gabriel Luiz Freitas Almeida
f6bc5c82a9 🔧 chore(store.py): add temporary code to handle exception and set comp_count to 0 until bug is fixed 2023-11-08 16:09:20 -03:00
Gabriel Luiz Freitas Almeida
f323bc4d8a 🐛 fix(store.py): handle exception when counting components to prevent potential errors and set comp_count to 0 in case of exception 2023-11-08 16:08:50 -03:00
Gabriel Luiz Freitas Almeida
955ba95eb3 🐛 fix(store.py): fix variable name to improve code readability and semantics
The variable `result` is updated with the value of `updated_result` after calling the `update_components_with_user_data` function. This change improves code readability and makes the intention clearer.
2023-11-08 16:05:33 -03:00
Lucas Oliveira
c8dc529ac3 Fixed display of paginator and results 2023-11-08 15:52:56 -03:00
Lucas Oliveira
abc708b933 Refactored Store Page (search, tags working) 2023-11-08 15:41:05 -03:00
Lucas Oliveira
066a1a263b Fixed padding on store page 2023-11-08 15:41:05 -03:00
Gabriel Luiz Freitas Almeida
086681312e 🔄 refactor(store.py): change the type of the 'search' query parameter from List[str] to str for consistency and clarity 2023-11-08 15:34:58 -03:00
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