Commit graph

4,997 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
5ed7c4fbe1 Add nodeColors and nodeNames for models 2024-02-07 20:47:29 -03:00
Cristhian Zanforlin Lousa
034312d2a2
Refactor: make new flow create as "Untitled document" instead of random name (#1408) 2024-02-07 20:00:21 -03:00
anovazzi1
de854325ed Fix message type conversion in newChatView component 2024-02-07 18:14:31 -03:00
anovazzi1
36ccba9b78 Merge branch 'zustand/io/migration' of personal:logspace-ai/langflow into zustand/io/migration 2024-02-07 15:30:28 -03:00
Gabriel Luiz Freitas Almeida
b4012a80b2 Fix validationStatus data in GenericNode component 2024-02-07 14:59:39 -03:00
anovazzi1
45e24058bd feat(parameterComponent): add support for global variables in parameter input field
This commit adds support for global variables in the parameter input field of the ParameterComponent. It imports the useGlobalVariablesStore hook from the globalVariables store and uses it to access the globalVariablesEntries state. It also imports the setNoticeData function from the alert store to display a notice when a global variable is used as a parameter value.

In the onChange event handler of the input field, the commit checks if the entered value is a global variable by comparing it with the globalVariablesEntries array. If it is a global variable, the commit sets the notice data to inform the user that the real value will be updated during runtime. Additionally, the commit marks the parameter as a global variable by setting the load_from_db property of the template object to true in the setNode function.
2024-02-07 14:01:31 -03:00
anovazzi1
de00a2a1a0 Remove console.log statements 2024-02-06 17:00:19 -03:00
anovazzi1
f591c480ce update group node function to reconnect edges when create groupNode 2024-02-06 16:57:52 -03:00
anovazzi1
d0a61fb084 Fix bug in login functionality***
***Update README with new instructions***

***Refactor code for better performance***

***Add new feature for user authentication***

***Fix formatting issues in code***

***Update dependencies to latest versions***

***Remove unused variables***

***Fix broken links in documentation***

***Add error handling for edge cases***

***Optimize database queries
2024-02-06 14:39:11 -03:00
igorrCarvalho
d0865a2580 Refactor: remove flow if there is no changes 2024-02-06 14:27:23 -03:00
anovazzi1
cdbc516b85 removed animated dash edge for text 2024-02-06 14:26:16 -03:00
Gabriel Luiz Freitas Almeida
6854c25dae Merge remote-tracking branch 'origin/dev' into zustand/io/migration 2024-02-06 14:21:50 -03:00
dependabot[bot]
e617d36387
Bump vite from 4.5.1 to 4.5.2 in /src/frontend
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.5.1 to 4.5.2.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.5.2/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.5.2/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-05 22:03:43 +00:00
Gabriel Luiz Freitas Almeida
392b81b519 Reapply "Refactor state management to use Zustand, migrate components to CustomComponent and other fixes"
This reverts commit f3b3d2cf68.
2024-02-05 19:02:34 -03:00
anovazzi1
476a670eb9 Add global variables support to InputComponent 2024-02-05 18:58:37 -03:00
anovazzi1
d0dcb32a7e Refactor global variables page and add delete functionality 2024-02-05 18:50:58 -03:00
Gabriel Luiz Freitas Almeida
7b5225f857
Merge branch 'main' into dev 2024-02-05 18:34:19 -03:00
anovazzi1
ee22000c52 Fix output type separator in GenericNode component 2024-02-05 18:33:11 -03:00
anovazzi1
4a1c9f8dae Add global variable functionality and display on Global Variables page 2024-02-05 18:30:41 -03:00
Gabriel Luiz Freitas Almeida
f3b3d2cf68
Revert "Refactor state management to use Zustand, migrate components to CustomComponent and other fixes" 2024-02-05 18:29:03 -03:00
anovazzi1
911d681320 feat(addNewVariableButton.tsx): implement form logic to handle saving new global variables
feat(globalVariables.ts): add functions to add and remove global variables in the store
feat(globalVariables/index.ts): add types for the new functions in the global variables store
2024-02-05 18:07:05 -03:00
anovazzi1
6fcc754704 Update Playwright configuration and fix Select component 2024-02-05 17:32:43 -03:00
anovazzi1
e4e5b06185 fix(App.tsx): import getGlobalVariables function from API controller to fix missing import error
feat(App.tsx): add support for fetching global variables and setting them in the global variables store
feat(App.tsx): add useGlobalVariablesStore hook to access and set global variables in the component
feat(addNewVariableButton.tsx): create a new component for adding a new variable
feat(GlobalVariablesPage.tsx): create GlobalVariablesPage component to display and manage global variables
feat(routes.tsx): add route for GlobalVariablesPage component
feat(globalVariables.ts): update globalVariables store to include globalVariablesEntries array and modify setGlobalVariables function to set both globalVariables and globalVariablesEntries
feat(index.ts): add types for globalVariables store
2024-02-05 15:47:31 -03:00
igorrCarvalho
f30c1df9bf Feat: make input dropdown filter with text 2024-02-05 14:53:47 -03:00
anovazzi1
c1d9e12956 Add global variables store using Zustand 2024-02-05 14:45:47 -03:00
anovazzi1
0a0f35cdac Add global variable API functions 2024-02-05 14:16:40 -03:00
igorrCarvalho
1be52e253a Fix: arrow icon dont appear in dropdown 2024-02-05 14:09:33 -03:00
igorrCarvalho
5eef2774a2 Remove blank space 2024-02-05 11:45:35 -03:00
igorrCarvalho
ccb7947b40 Merge branch 'dropdownInput' into globalVariables 2024-02-05 11:43:19 -03:00
igorrCarvalho
86ccae87fb Feat: make text input capable of support dropdown inputs also 2024-02-05 11:42:08 -03:00
anovazzi1
8023332260
add vectara icon (#1389)
* adding vectara icon

* Add field_typing imports and source parameter to VectaraComponent

* Refactor Vectara imports and update dependencies

* Refactor VectaraSelfQueryRetriverComponent class and update field_config

* Remove None values and update template strings

* Add get_output_types_from_code method to DirectoryReader

* Refactor directory_reader.py and handle exception when getting output types from code

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@logspace.ai>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2024-02-02 18:01:29 -03:00
igorrCarvalho
f5cf73947c Remove console.log 2024-02-02 01:20:59 -03:00
igorrCarvalho
c33eec9c88 Feat: Make edges change color when hover it 2024-02-02 01:19:43 -03:00
anovazzi1
e195cb5eec fix(App.tsx): refactor the usage of useAlertStore to use the new removeFromTempNotificationList and tempNotificationList variables
fix(newChatView/index.tsx): remove console.log statement
fix(alertStore.ts): remove unused imports and refactor the usage of setErrorData, setNoticeData, and setSuccessData to update both notificationList and tempNotificationList
fix(types/zustand/alert/index.ts): add tempNotificationList variable and corresponding functions to clear and remove items from it
2024-02-01 21:02:39 -03:00
Gabriel Luiz Freitas Almeida
c0c64c99c9 Update imports to use langchain_core.documents 2024-02-01 09:37:37 -03:00
Gabriel Luiz Freitas Almeida
7efa79af69 Fix formatting issues and update code style 2024-02-01 09:35:46 -03:00
Gabriel Luiz Freitas Almeida
b05ac9e84d Merge branch 'zustand/io/migration' of https://github.com/logspace-ai/langflow into zustand/io/migration 2024-01-31 17:56:10 -03:00
cristhianzl
e855f24448 fixing arrow direction 2024-01-31 17:54:54 -03:00
Gabriel Luiz Freitas Almeida
c08b277f15 Merge remote-tracking branch 'origin/dev' into zustand/io/migration 2024-01-31 17:54:51 -03:00
cristhianzl
b42c34cdb1 Merge branch 'zustand/io/migration' of github.com:logspace-ai/langflow into zustand/io/migration 2024-01-31 17:44:57 -03:00
cristhianzl
f8dd179d97 fix arrow connection 2024-01-31 17:44:36 -03:00
Gabriel Luiz Freitas Almeida
e61e4ac51b
Update Langchain to 0.1 and migrate most components to CustomComponent (#1382)
This PR updates Langchain to 0.1.* and move components previously
created automatically to start using the CustomComponent framework.

This will improve maintainability and move Langflow to be closer to the
framework.
2024-01-31 17:43:18 -03:00
anovazzi1
f7e5eb8133 Merge branch 'zustand/io/migration' of personal:logspace-ai/langflow into zustand/io/migration 2024-01-31 17:06:54 -03:00
anovazzi1
9726defa33 fix(API): update return type of getFlowPool function to match the actual response structure
fix(EditNodeModal): remove unused setPending function call

fix(PageComponent): remove unused setFlowPool and setLoading state variables

fix(flowStore): remove unused import and updateFlowInDatabase function call, add logic to fetch flowPool data when resetting flow
2024-01-31 17:03:51 -03:00
cristhianzl
6ef92bf233 Merge branch 'zustand/io/migration' of github.com:logspace-ai/langflow into zustand/io/migration 2024-01-31 16:48:56 -03:00
cristhianzl
4d19883cc7 arrow on edge 2024-01-31 16:48:30 -03:00
Gabriel Luiz Freitas Almeida
2076f32704 Merge branch 'dev' into update_lc 2024-01-31 15:57:16 -03:00
anovazzi1
f7766118e8 Add deleteFlowPool function and useFlowsManagerStore in newChatView 2024-01-31 15:32:58 -03:00
anovazzi1
a735289476 Add FlowPoolType and getFlowPool function 2024-01-31 15:07:04 -03:00
Gabriel Luiz Freitas Almeida
9761862fee Fix code formatting and update dependencies 2024-01-31 14:59:39 -03:00