Commit graph

2,527 commits

Author SHA1 Message Date
Lucas Oliveira
dff58ee29e Fixed naming 2023-11-16 18:22:07 -03:00
Lucas Oliveira
4babb19614 Added checking on Like Component if the request is valid 2023-11-16 18:02:29 -03:00
anovazzi1
7bd79d8302 feat(API): add support for saving last tested version of a flow in the flow store
The `saveFlowStore` function in the API controller now accepts an optional `last_tested_version` parameter. This parameter allows the user to specify the last tested version of a flow when saving it to the flow store. The value of `last_tested_version` is now included in the request payload when creating a new flow in the flow store.
2023-11-16 17:57:14 -03:00
Lucas Oliveira
ebae35bf66 Refactored API Key state to update components when updating API key 2023-11-16 17:54:38 -03:00
anovazzi1
7f55da1df9 fix(flowsContext.tsx): add version property to FlowsContextInitialValue to prevent undefined errors
feat(flowsContext.tsx): add support for version property in FlowsProvider to store and retrieve the version of the app
fix(exportModal/index.tsx): change version property to last_tested_version to match FlowType definition
fix(extraSidebarComponent/index.tsx): add version property to saveFlowStore function call to match FlowType definition
fix(extraSidebarComponent/sideBarDraggableComponent/index.tsx): add version property to downloadNode function call to match FlowType definition
fix(nodeToolbarComponent/index.tsx): add version property to saveFlowStore function call to match FlowType definition
fix(FlowPage/index.tsx): add version property to useContext to prevent undefined errors
fix(ViewPage/index.tsx): add version property to useContext to prevent undefined errors
fix(flow/index.ts): change version property to last_tested_version to match FlowType definition
fix(tabs/index.ts): add version property to FlowsContextType to prevent undefined errors
fix(reactflowUtils.ts): change createFlowComponent function signature to include version parameter
2023-11-16 17:47:34 -03:00
Lucas Oliveira
0f034b9a2e Added message when API key is not valid or is not existent 2023-11-16 17:45:09 -03:00
Lucas Oliveira
ffadcf5cf0 added validation on fetch store data 2023-11-16 17:22:27 -03:00
anovazzi1
15c4532e5b feat(exportModal): add version field to exported flow data
The version field is added to the exported flow data in order to keep track of the version of the flow. This allows for better management and identification of different versions of the flow.

fix(exportModal): fetch and set version from API

The version is fetched from the API using the `getVersion` function and then set in the state variable `version` using the `setVersion` function. This ensures that the correct version is used when exporting the flow.

feat(flow): add version field to FlowType

The `FlowType` interface is updated to include a `version` field. This allows for storing and retrieving the version of the flow when needed.
2023-11-16 17:19:44 -03:00
Lucas Oliveira
68dc2fa53d removed from-store 2023-11-16 17:18:01 -03:00
Lucas Oliveira
dcde9b7ae3 Refactored API Key handling 2023-11-16 17:17:04 -03:00
Gabriel Luiz Freitas Almeida
fa68c4e678 Refactor store component filters 2023-11-16 16:27:41 -03:00
cristhianzl
111ddb1d8c feat(API): add postStoreComponents function to handle POST request for storing components in the API 2023-11-16 15:33:51 -03:00
cristhianzl
7673402a0c feat(storeContext.tsx): modify getStoreComponents function to accept an object with optional parameters for better readability and maintainability
fix(API/index.ts): remove unused import and modify getStoreComponents function to accept an object with optional parameters for better readability and maintainability

fix(from-store/index.tsx): modify handleGetComponents function to pass an object with optional parameters to getStoreComponents for better readability and maintainability

fix(StorePage/index.tsx): modify handleGetComponents function to pass an object with optional parameters to getStoreComponents for better readability and maintainability
2023-11-16 15:33:24 -03:00
Lucas Oliveira
72f8d1987f Fixed total rows count when error 2023-11-16 12:16:16 -03:00
Lucas Oliveira
219d8803b8 Added condition to filter by user and likes when unauthorized 2023-11-16 12:10:09 -03:00
Lucas Oliveira
9c78d0afd9 Fixed filterByUser 2023-11-16 12:03:15 -03:00
Lucas Oliveira
5bf969f8b4 Added distinction between components and flows 2023-11-16 11:51:34 -03:00
cristhianzl
8803e944ee fix(market-card.tsx): add conditional rendering for username to prevent error when data.user_created.username is undefined 2023-11-16 11:47:39 -03:00
Gabriel Luiz Freitas Almeida
c7ceb43979 Update user_created field to use username instead
of first_name
2023-11-16 11:33:25 -03:00
Lucas Oliveira
d1f0076988 Added author 2023-11-16 11:14:51 -03:00
Lucas Oliveira
5d145bd15a Fixed search width 2023-11-16 11:09:11 -03:00
Gabriel Luiz Freitas Almeida
ccd851cad0 🐛 fix(store.py): add filter_by_user parameter to get_components function to enable filtering components by user
🐛 fix(service.py): add filter_by_user parameter to StoreService's get_components method to enable filtering components by user
🐛 fix(index.ts): add filterByUser parameter to getStoreComponents function to enable filtering components by user
2023-11-16 11:03:45 -03:00
Lucas Oliveira
36cb4c31a0 Added liked and created by me filter, liked not working and created not implemented at backend 2023-11-16 11:02:14 -03:00
Lucas Oliveira
4d0baef491 fixed combobox and formatting 2023-11-16 10:47:58 -03:00
Lucas Oliveira
93df6b0a8b Added combobox and command 2023-11-16 10:46:29 -03:00
cristhianzl
24e9693c53 Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-11-16 10:27:23 -03:00
cristhianzl
12277dae67 feat(market-card.tsx): add display of user who created the market card for better user experience and context
fix(index.ts): add user_created property to storeComponent type to match the API response structure
2023-11-16 10:27:14 -03:00
Gabriel Luiz Freitas Almeida
0f7c4861f4 🐛 fix(API/index.ts): change 'public' property to 'status' and set it to "public" or "private" based on the value of publicFlow to improve clarity and consistency 2023-11-16 09:44:21 -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
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
60f6d08fc3 Merge remote-tracking branch 'origin/dev' into feature/store 2023-11-14 21:41:58 -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
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
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
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
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