Commit graph

6,351 commits

Author SHA1 Message Date
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
Gabriel Luiz Freitas Almeida
60747870a6 Refactored code to improve performance and
readability.
2023-11-13 12:31:10 -03:00
Gabriel Luiz Freitas Almeida
805ec1570d Add typing to get_components function and refactor
count_components to accept filter_conditions
2023-11-13 12:31:10 -03:00
Gabriel Luiz Freitas Almeida
b972e1a2de 🔀 refactor(utils.py): import List from typing module to improve code readability and maintainability
🔀 refactor(utils.py): update type hint for components parameter to use List instead of "ListComponentResponse" to improve code clarity and consistency
2023-11-13 12:31:09 -03:00
anovazzi1
83bb20d8f3 fix(StorePage): fix sorting order in API request to use "downloads" instead of "liked_by" for popular pages
The sorting order in the API request for popular pages was using the "liked_by" field instead of the correct "downloads" field. This commit fixes the sorting order to use the correct field, ensuring that popular pages are sorted based on the number of downloads.
2023-11-13 12:18:45 -03:00
anovazzi1
66972ad489 fix(StorePage): change initial value of tabActive state from "Flows" to "All" for better default behavior 2023-11-13 12:16:08 -03:00
anovazzi1
6e065ddb28 update chain process to remove code if if there is any 2023-11-13 11:45:24 -03:00
Gabriel Luiz Freitas Almeida
0f894da75e 🐛 fix(store.py): handle HTTPStatusError when querying components and raise appropriate exceptions
 feat(store.py): add support for user_data_context to fetch and set user data to the context variable
🐛 fix(store.py): handle HTTPStatusError when fetching user data and raise ValueError for invalid API key
🐛 fix(service.py): handle HTTPStatusError when fetching user data and raise ValueError for invalid API key
🐛 fix(service.py): return count as int in count_components method
2023-11-13 11:31:07 -03:00
cristhianzl
af29139af3 fix(StorePage): update totalRowsCount logic to consider filteredCategories length
The logic for setting the totalRowsCount in the StorePage component has been updated. Previously, it was only considering the count returned from the API response. Now, it takes into account the length of the filteredCategories array as well. If the filteredCategories array is empty, the totalRowsCount is set to the count returned from the API response. Otherwise, it is set to the length of the results array in the API response. This change ensures that the totalRowsCount accurately reflects the number of rows in the search results, taking into account any applied filters.

Also, the condition for rendering the PaginatorComponent has been updated. Previously, it was checking if the loading state is false or the searchData array is not empty. Now, it only checks if the loading state is false and the searchData array is not empty. This change ensures that the PaginatorComponent is only rendered when the loading state is false and there are search results available.
2023-11-13 10:24:07 -03:00
anovazzi1
d4017af18f fix(tabsContext.tsx): remove unnecessary code that deletes component data from state
refactor(tabsContext.tsx): update processFlows function to handle removing flows from state
fix(extraSidebarComponent/index.tsx): remove unused code that caused bugs
fix(extraSidebarComponent/sideBarDraggableComponent/index.tsx): update deleteComponent function to remove count from item name
2023-11-10 21:26:58 -03:00
anovazzi1
0edf105607 fix(buildTrigger/index.tsx): add saveFlow function to TabsContext to save flow data before making a POST request
fix(buildTrigger/index.tsx): pass saved flow data to postBuildInit function instead of reactFlowInstance data
2023-11-10 20:32:56 -03:00
anovazzi1
aa833ee6d0 fix(from-store): remove unnecessary console.log statement
fix(from-store): fix incorrect argument in getStoreComponents function call
2023-11-10 20:18:53 -03:00
anovazzi1
e9d9891d75 fix(StorePage/index.tsx): fix key prop in MarketCardComponent to use unique identifier from item instead of index to avoid rendering issues
feat(StorePage/index.tsx): add conditional check to getSavedComponents() if hasApiKey is true to only fetch saved components when API key is available
2023-11-10 20:02:51 -03:00
anovazzi1
630fabc328 style(StorePage): refactor button element to improve readability and maintainability
fix(StorePage): fix className prop on Button component to correctly apply error styling
fix(StorePage): fix className prop on IconComponent to correctly apply loading animation
fix(StorePage): fix onClick event on IconComponent to correctly update searchText state
2023-11-10 19:38:19 -03:00
anovazzi1
e123b753e7 fix(StoreApiKeyModal): remove unnecessary description about signing up for an API key
fix(StoreApiKeyModal): remove the "Sign up" button and replace it with a text link to langflow.store
fix(StoreApiKeyModal): change the position and styling of the text link to langflow.store
fix(StoreApiKeyModal): change the "Cancel" button to be aligned with the "Save" button
fix(StoreApiKeyModal): wrap the "Save" button in a Form.Submit component for better form handling
2023-11-10 18:32:54 -03:00
Gabriel Luiz Freitas Almeida
341310003f
Release 0.6.0a0
Bump version to 0.6.0a0
2023-11-10 12:27:25 -03:00
Gabriel Luiz Freitas Almeida
c1d62d62b9 🔖 chore(pyproject.toml): bump version from 0.5.6 to 0.6.0a0 to indicate a pre-release version 2023-11-10 12:25:59 -03:00
Gabriel Luiz Freitas Almeida
babccd16e5 Delete ZepMemory component. 2023-11-10 12:22:04 -03:00
Gabriel Luiz Freitas Almeida
ee17f9edfb
Update to Pydantic V2 (#1112) 2023-11-10 12:21:10 -03:00
Gabriel Luiz Freitas Almeida
9483e9d28e Add imports and update settings in auth.py 2023-11-10 12:05:24 -03:00
Gabriel Luiz Freitas Almeida
229210d46e 🔀 chore(pyproject.toml): update sqlmodel dependency URL to use the correct repository
🔀 chore(pyproject.toml): update ruff dependency version to 0.1.5 for compatibility and bug fixes
🔀 chore(pyproject.toml): add pydantic dependency version 2.4.0 for improved functionality and bug fixes
2023-11-10 12:04:43 -03:00
Gabriel Luiz Freitas Almeida
12ddc635db Update Poetry version in lint.yml and
base.Dockerfile
2023-11-10 11:15:09 -03:00
Gabriel Luiz Freitas Almeida
4208e3f961 Add support for None documents in
PostgresqlVectorComponent
2023-11-10 10:46:57 -03:00
Gabriel Luiz Freitas Almeida
682e51bf6a Fix documents parameter type in
PostgresqlVectorComponent constructor
2023-11-10 09:31:07 -03:00
Gabriel Luiz Freitas Almeida
746f61473f Merge remote-tracking branch 'origin/dev' into v2 2023-11-10 09:22:26 -03:00
Gabriel Luiz Freitas Almeida
bfbc7c6238 chore: New lock 2023-11-10 09:16:29 -03:00
Gabriel Luiz Freitas Almeida
27d5cb5c64 Remove unused function
get_type_from_union_literal() from util.py
2023-11-10 09:12:28 -03:00
Gabriel Luiz Freitas Almeida
454b56fe59 Update pandas toolkit import in custom agent 2023-11-10 09:08:44 -03:00
Gabriel Luiz Freitas Almeida
8d4aae479c 🐛 fix(pgvector.py): improve error message when failing to build PGVector component
The error message when failing to build the PGVector component was not clear and did not provide useful information. This commit changes the error message to be more descriptive and concise, providing only the relevant information about the failure.
2023-11-10 09:07:45 -03:00
Gabriel Luiz Freitas Almeida
e63d9f96dc
feat: add pgvector client (#1131) 2023-11-10 09:07:12 -03:00
Gabriel Luiz Freitas Almeida
413eb5419c
Merge branch 'dev' into feat/vectorstore-pgvector 2023-11-10 09:07:01 -03:00
Lanznx
3e6e6b44b5 put try/except block 2023-11-10 18:39:24 +08:00
Lanznx
f567a33883 feat: add pgvector client 2023-11-10 10:38:50 +08:00
Lucas Oliveira
0e9cf8e797 Refactored card component on components and flows 2023-11-09 20:52:45 -03:00
Lucas Oliveira
b3327f5ed5 Installing flows and components done 2023-11-09 20:16:27 -03:00
Lucas Oliveira
49cfbab715 Changed icons based on wether we are at the main or at the store page 2023-11-09 20:08:01 -03:00
Lucas Oliveira
8f0348a147 Removed unused API callouts and get saved components transplanted into context 2023-11-08 18:16:01 -03:00
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