Commit graph

7,638 commits

Author SHA1 Message Date
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
anovazzi1
bf016801db fix(exportModal/index.tsx): add missing import statement for typesContext to fix compilation error
feat(exportModal/index.tsx): modify downloadFlow function to pass an object with id, data, description, and name properties instead of directly passing flow object to improve code readability and maintainability
2023-10-31 18:45:26 -03:00
anovazzi1
bd26be7ff2 Merge remote-tracking branch 'origin/dev' into bugFixes 2023-10-31 18:17:37 -03:00
Gabriel Luiz Freitas Almeida
c5df63baeb 🔧 chore(Chroma.py): update display_name of ChromaComponent to improve clarity and remove unnecessary information
🔧 chore(config.yaml): comment out Chroma vectorstore configuration to disable it temporarily
2023-10-31 15:27:49 -03:00
Gabriel Luiz Freitas Almeida
ddf14638e5 Format 2023-10-31 15:22:26 -03:00
Gabriel Luiz Freitas Almeida
8221079a32 Merge remote-tracking branch 'origin/main' into dev 2023-10-31 15:21:29 -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
Gabriel Luiz Freitas Almeida
2f21eb2141
[New feature] Add support for Amazon Bedrock, Amazon Kendra (#1053) 2023-10-31 10:04:05 -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
Gabriel Luiz Freitas Almeida
79bd78613b 🔥 refactor(service.py): remove redundant assignment to params["fields"] in StoreService class 2023-10-30 20:57:21 -03:00
Gabriel Luiz Freitas Almeida
5ebd298463 🔥 refactor(service.py): remove unnecessary code that pops "page" and "limit" parameters from params dictionary
The code was removing "page" and "limit" parameters from the params dictionary, but these parameters were not being used afterwards. Removing this unnecessary code improves code readability and maintainability.
2023-10-30 20:42:33 -03:00
Gabriel Luiz Freitas Almeida
c49d0c7faf 🐛 fix(loading.py): fix issue with search_kwargs assignment in instantiate_vectorstore function
🔧 chore(loading.py): refactor instantiate_vectorstore function to clean up docs or texts to have only documents
2023-10-30 20:32:48 -03:00
Gabriel Luiz Freitas Almeida
127721e986 🐛 fix(schema.py): handle empty list case in tags_to_list method to prevent potential errors
🐛 fix(service.py): add validation for missing API key when filter_by_user is True to avoid unauthorized access
2023-10-30 19:50:39 -03:00
martins0n
21c38aaa01 fix: patched csv agent 2023-10-30 23:02:13 +03:00
cristhianzl
5f2bfba9e3 Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-10-30 15:04:18 -03:00
cristhianzl
f17d95f246 refactor(StorePage): remove unnecessary code and update placeholder text in Select component
The code in the Select component was unnecessarily filtering the data based on the selected value. This logic was removed as it was not needed. Additionally, the placeholder text in the Select component was updated from "Flows" to "Both" to better reflect the options available.
2023-10-30 15:04:11 -03:00
anovazzi1
79894fd78e chore(StorePage/index.tsx): remove unused code to improve code readability and maintainability 2023-10-30 14:58:53 -03:00
anovazzi1
125d5c5152 chore(stackedComponents): update transform value in ElementStack component to improve visual positioning
refactor(market-card): remove unused code and console.log statements

fix(market-card): update saveFlowStore function to pass an array of tag ids instead of tag names

refactor(market-card): sort tags in ascending order of name length in the MarketCardComponent

refactor(market-card): update tag rendering in MarketCardComponent to use tag names instead of tag objects

refactor(market-card): remove commented out code and unused imports

refactor(market-card): update tag rendering in ShadTooltip component to use tag names instead of tag objects

refactor(market-card): update tag rendering in Button component to use tag names instead of tag objects

refactor(market-card): remove commented out code and unused imports

refactor(store/index): update tags property in storeComponent type to be an array of objects with id and name properties
2023-10-30 14:53:10 -03:00
Gabriel Luiz Freitas Almeida
bf775eaaad 🔍 chore(store.py): add support for filtering by is_component parameter in search_endpoint function
🔍 chore(service.py): add support for filtering by is_component parameter in StoreService class
2023-10-30 11:17:22 -03:00
Yuki Sekiya
3d35d34544 Fix wrong text 2023-10-29 14:15:49 +09:00
anovazzi1
8e032b930b fix(StorePage): set errorApiKey to true when there is an error fetching data to display an error message to the user 2023-10-28 17:31:10 -03:00
Lucas Oliveira
b925e42e4a added condition to show disclosure 2023-10-27 20:06:57 -03:00
Gabriel Luiz Freitas Almeida
07e8e318ee 🔥 refactor(store.py): remove unused code for creating component metadata
The code was previously responsible for creating metadata for a component based on the nodes it contains. However, this functionality is no longer needed and has been removed to simplify the code and improve maintainability.
2023-10-27 19:52:56 -03:00
anovazzi1
b0492f3adc refactor(stackedComponents): change grid columns to 1 to improve layout
refactor(market-card): remove unnecessary blur effect and add opacity on hover to improve visual feedback
refactor(market-card): add condition to prevent adding to cart while loading to prevent multiple requests
2023-10-27 18:07:12 -03:00
anovazzi1
664c5c4ffb fix(market-card.tsx): change tooltip side from top to right for better visibility and alignment
fix(market-card.tsx): add hover effect to the container div to indicate interactivity
2023-10-27 17:59:55 -03:00
anovazzi1
2911f8751a refactor(stackedComponents): update ElementStack component to use CSS grid for layout instead of flexbox
fix(market-card.tsx): fix variable name in MarketCardComponent to correctly display tags in ElementStack component
2023-10-27 17:56:23 -03:00
anovazzi1
695f219460 fix(storeContext.tsx): change hasStore initial value to true to reflect correct initial state
fix(API/index.ts): update API endpoint for checkHasStore function to match backend route
feat(StorePage/index.tsx): add functionality to fetch and display store tags from backend
2023-10-27 17:36:49 -03:00
Gabriel Luiz Freitas Almeida
7b946cef70 🔀 refactor(store.py): rename route from "/" to "/check" to improve clarity and specificity 2023-10-27 16:28:53 -03:00
anovazzi1
9a7def7c48 feat(extraSidebarComponent): add import statement for getTagsIds function from storeUtils
The import statement for the `getTagsIds` function from `storeUtils` was added to the `extraSidebarComponent` file. This function is used to retrieve the IDs of tags based on their names.

fix(extraSidebarComponent): remove duplicate getTagsIds function

The duplicate `getTagsIds` function in the `extraSidebarComponent` file was removed to avoid conflicts and improve code organization.

feat(extraSidebarComponent): update saveFlowStore function call to use getTagsIds function

The `saveFlowStore` function call in the `extraSidebarComponent` file was updated to use the `getTagsIds` function instead of directly passing the selected tags array. This change ensures that the IDs of the selected tags are used in the function call.

feat(nodeToolbarComponent): add import statement for getTagsIds function from storeUtils

The import statement for the `getTagsIds` function from `storeUtils` was added to the `nodeToolbarComponent` file. This function is used to retrieve the IDs of tags based on their names.

fix(nodeToolbarComponent): remove duplicate getTagsIds function

The duplicate `getTagsIds` function in the `nodeToolbarComponent` file was removed to avoid conflicts and improve code organization.

feat(nodeToolbarComponent): update saveFlowStore function call to use getTagsIds function

The `saveFlowStore` function call in the `nodeToolbarComponent` file was updated to use the `getTagsIds` function instead of directly passing the selected tags array. This change ensures that the IDs of the selected tags are used in the function call.

feat(storeUtils): add getTagsIds function

The `getTagsIds` function was added to the `storeUtils` file. This function takes an array of tag names and a reference to the tag list with IDs, and returns an array of tag IDs based on the names. This function is used in the `extraSidebarComponent` and `nodeToolbarComponent` files to retrieve the IDs of selected tags.
2023-10-27 16:25:37 -03:00
igorrCarvalho
b48c813550 Refactor: Change tabsContext name to FlowsContext 2023-10-27 16:22:12 -03:00
anovazzi1
761bbc5fd0 code format 2023-10-27 16:21:56 -03:00
anovazzi1
1d57800892 feat(API): add new function getStoreTags to fetch store tags from API
fix(extraSidebarComponent): fix saveFlowStore function call to pass tag ids instead of tag names for selected tags
2023-10-27 16:21:09 -03:00
anovazzi1
cb03095860 feat(stackedComponents): add ElementStack component to create a stacked effect for child components
fix(market-card): refactor tagsPopUp to use ElementStack component for a stacked effect
2023-10-27 15:55:03 -03:00
anovazzi1
278e48c1a8 chore(market-card.tsx): add missing type declaration for tagsPopUp useRef
feat(market-card.tsx): add tooltip with tags information to the MarketCardComponent
2023-10-27 15:55:03 -03:00
Gabriel Luiz Freitas Almeida
e621243288 🔧 refactor(store.py): modify create_component function to include total count of each type in the metadata dictionary
The `create_component` function in `store.py` has been modified to include the total count of each type in the metadata dictionary. This change improves the structure of the metadata and provides more comprehensive information about the types and their counts in the nodes.
2023-10-27 14:04:15 -03:00
Gabriel Luiz Freitas Almeida
6f3172bc33 🔧 refactor(store.py): remove duplicate fields list and use default_fields from StoreService class
🔧 refactor(service.py): move default_fields list to StoreService class and use it in query_components method
2023-10-27 13:07:09 -03:00
Gabriel Luiz Freitas Almeida
bfc74367b5 🔧 fix(store.py): modify metadata structure to include count for each name and total count to improve data analysis capabilities 2023-10-27 13:03:27 -03:00
Gabriel Luiz Freitas Almeida
4016c28573 🔧 fix(store.py): add metadata to component before uploading to improve data integrity and analysis capabilities 2023-10-27 11:43:12 -03:00
Gabriel Luiz Freitas Almeida
5716ca21dc 🔧 fix(store.py): import missing module 'langflow.api' to resolve NameError
🔧 fix(store.py): add missing metadata comment to clarify the purpose of the code block
 feat(store.py): add 'has_api_key' field to the response of 'check_if_store_is_enabled' endpoint to indicate if the user has an API key
🔧 fix(store.py): add missing metadata using the Component.data in the 'create_component' endpoint to properly handle component metadata
2023-10-27 11:37:54 -03:00
Gabriel Luiz Freitas Almeida
dfabb80567 🐛 fix(schema.py): fix the transformation of tags in ListComponentResponse to return a list of TagResponse objects
🔥 chore(service.py): remove unnecessary code that flattens the tags in ListComponentResponse
2023-10-27 11:05:02 -03:00
Gabriel Luiz Freitas Almeida
f69917f4b0 🔥 refactor(store.py): remove unnecessary "user_created.id" field from list_components function
🔥 refactor(service.py): remove unnecessary "user_created.id" field from StoreService class
2023-10-27 10:32:33 -03:00
anovazzi1
acb957fadf fix(market-card.tsx): remove unnecessary code related to Badge component
feat(index.tsx): add tags state and fetch tags from API to display as badges in the StorePage
2023-10-27 09:19:18 -03:00
anovazzi1
6b4c964d20 fix(nodeToolbarComponent): fix saveFlowStore function call to include selectedTags and sharePublic parameters 2023-10-27 08:55:18 -03:00
anovazzi1
b97c25d3c7 fix(extraSidebarComponent): remove unnecessary dependency from useEffect hook
feat(extraSidebarComponent): add support for tags selection in the extra sidebar component
fix(nodeToolbarComponent): add missing import statements for new components
feat(nodeToolbarComponent): add support for tags selection and public/private toggle in the node toolbar component
2023-10-27 08:52:50 -03:00