Commit graph

11,619 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
6546e2f543 🔧 chore(docker-compose.yml): update flower service image to "ogabrielluiz/langflow:latest" for consistency and reliability
🔧 chore(docker-compose.yml): add build configuration to flower service to use base.Dockerfile for building the image
🔧 chore(docker-compose.yml): update command for flower service to use the correct broker URL and set the port to 5555
🔧 chore(docker-compose.yml): remove unnecessary comment at the end of the file
2023-09-11 11:50:12 -03:00
Cristhian Zanforlin Lousa
4c0874ee83 🐛 fix(intComponent): fix comparison bug in onInput event handler to correctly compare input value with min value 2023-09-11 09:22:21 -03:00
Cristhian Zanforlin Lousa
a2eadbedb1 🐛 fix(api.tsx): add conditional check before calling login function to prevent errors when response data is missing access_token or refresh_token 2023-09-11 09:10:44 -03:00
Cristhian Zanforlin Lousa
b832e0844e 🐛 fix(API/index.ts): add condition to check if token exists before making the request to renew access token to prevent errors 2023-09-11 09:08:32 -03:00
anovazzi1
772bfbf1d3 fix(reactflowUtils.ts): fix null pointer error when accessing nested properties in connectedInputNodesOnHandle function 2023-09-10 23:57:22 -03:00
anovazzi1
5933c2cefc fix(PageComponent/index.tsx): fix typo in import statement for scapeJSONParse function
feat(PageComponent/index.tsx): add functionality to generate a new flow and node from a selection and update the nodes and edges accordingly
feat(PageComponent/index.tsx): add validation for selection and display error message if selection is invalid
2023-09-10 23:37:13 -03:00
anovazzi1
7bdaa1bca6 copy package-lock from dev to avoid dependencie erro 2023-09-10 21:23:18 -03:00
anovazzi1
b72558db7c added coma 2023-09-10 19:54:39 -03:00
anovazzi1
db4bb0c822 Merge remote-tracking branch 'origin/dev' into newGroupNode 2023-09-10 19:54:28 -03:00
Gabriel Luiz Freitas Almeida
a1d888ce19
Adds Langfuse integration and Support for Document output in the API (#890) 2023-09-09 12:34:31 +00:00
Gabriel Luiz Freitas Almeida
de6b9d119a
Merge branch 'main' into release 2023-09-09 12:33:56 +00:00
Gabriel Luiz Freitas Almeida
e89251ef98 📦 chore(pyproject.toml): update package version from 0.4.17 to 0.4.18
🔧 chore(pyproject.toml): add markupsafe package as a dependency
2023-09-09 09:30:07 -03:00
Gabriel Luiz Freitas Almeida
f379d54686 🐛 fix(process.py): add support for processing Document objects in process_graph_cached function 2023-09-09 08:28:29 -03:00
Gabriel Luiz Freitas Almeida
4d0531d0cd 🐛 fix(users.py): fix variable name in if condition to correctly check for password update 2023-09-08 18:41:44 -03:00
anovazzi1
e22f3acf8c fix(DisclosureComponent): remove commented out code and fix missing icon bug
feat(PageComponent): add selection menu component and onClick event handler for debugging purposes
2023-09-08 17:48:44 -03:00
igorrCarvalho
c21583e13b Refactor: Remove description space whem node does not have a space 2023-09-08 17:42:57 -03:00
Lucas Oliveira
f4186840fb Changed error handling 2023-09-08 17:07:27 -03:00
Lucas Oliveira
c180b3c302 Changed error handling and conditions 2023-09-08 17:07:08 -03:00
anovazzi1
30ac706de1 feat(PageComponent): add SelectionMenu component to PageComponent to enable selection of nodes
feat(SelectionMenuComponent): create SelectionMenu component to display a toolbar with a "Group" button for node selection
fix(styleUtils): import Group icon from lucide-react to use in SelectionMenuComponent
2023-09-08 17:05:08 -03:00
Lucas Oliveira
dfe459ce1d Fixed changing password not working 2023-09-08 16:47:53 -03:00
Lucas Oliveira
705dd6acea Fixed gradient not saving correctly 2023-09-08 16:47:53 -03:00
Gabriel Luiz Freitas Almeida
ea11b16f58 🔒 chore(users.py): refactor reset_password function to improve password verification logic 2023-09-08 16:44:25 -03:00
Gabriel Luiz Freitas Almeida
a68535cbe4 🐛 fix(users.py): prevent users from changing their password in the patch_user endpoint to ensure security
🐛 fix(users.py): prevent users from using their current password when resetting their password to ensure security
2023-09-08 16:42:56 -03:00
anovazzi1
4d5447ed65 feat(reactflowUtils.ts): add functions to handle connected input nodes and ungroup nodes
The `connectedInputNodesOnHandle` function is added to retrieve the nodes connected to the input handle of a given node. It takes the `nodeId`, `handleId`, `nodes`, and `edges` as parameters and returns an array of connected nodes.

The `ungroupNode` function is added to ungroup a group node. It takes the `groupNode` and `BaseFlow` as parameters and updates the edges and nodes in the `BaseFlow` to redirect the edges to the correct proxy node.

The `processFLow` function is added to process the flow object recursively. It clones the flow object and iterates through the nodes to ungroup any group nodes and update the edges and nodes accordingly.

Note: No newline at the end of the file.
2023-09-08 16:16:01 -03:00
Gabriel Luiz Freitas Almeida
01a289dd9a 🐛 fix(users.py): assign the hashed new password to a variable before updating the user's password to ensure consistency
 test(test_user.py): add test to verify if the new password works after resetting it
2023-09-08 14:28:32 -03:00
Gabriel Luiz Freitas Almeida
f95a38a4b5 🐛 fix(crud.py): change HTTP status code from 304 to status.HTTP_304_NOT_MODIFIED for better readability and consistency
 feat(crud.py): add support for updating user profile image in the update_user function
 feat(test_user.py): add test case for updating user profile image in the test_patch_user function
2023-09-08 14:23:19 -03:00
Gabriel Luiz Freitas Almeida
75f03b17f4 🔧 chore(67cc006d50bf_add_profile_image_column.py): refactor upgrade and downgrade functions to check if "user" table exists and if "profile_image" column is already present before adding or dropping the column respectively 2023-09-08 14:19:28 -03:00
Gabriel Luiz Freitas Almeida
071ad8621b 🔧 chore(user.py): add optional profile_image field to UserRead model for improved user profile functionality 2023-09-08 14:13:54 -03:00
Lucas Oliveira
bd44500508 Added gradient chooser and success messages 2023-09-08 13:08:39 -03:00
anovazzi1
056cf6f66d refactor(api/index.ts): remove unused variable property from APITemplateType
fix(utils/reactflowUtils.ts): import TemplateVariableType from types/api
feat(utils/reactflowUtils.ts): add mergeNodeTemplates function to merge node templates and update display names
feat(utils/reactflowUtils.ts): add isHandleConnected function to check if a handle is connected to an edge
refactor(utils/reactflowUtils.ts): remove TODO comments and update comments for mergeNodeTemplates and isHandleConnected functions
feat(utils/reactflowUtils.ts): add generateNodeTemplate function to generate node templates from a flow
2023-09-08 12:24:04 -03:00
anovazzi1
8cdfb00af6 chore(reactflowUtils.ts): add TODO comment to update to new types
feat(reactflowUtils.ts): add function to update group node template to set visibility of basic types to advanced true
feat(reactflowUtils.ts): add function to generate node template for group node based on flow data
feat(reactflowUtils.ts): add function to generate node from flow data
2023-09-08 12:17:28 -03:00
anovazzi1
e129b3c9f4 refactor(reactflowUtils.ts): extract validation logic into a separate function for better code organization and reusability
feat(reactflowUtils.ts): add validateSelection function to validate the selection of nodes and edges in the React Flow instance
2023-09-08 12:13:40 -03:00
anovazzi1
0df8427e3f refactor(api/index.ts): add FlowType import to improve code readability and maintainability
feat(reactflowUtils.ts): add concatFlows function to concatenate nodes and edges from a FlowType object to a ReactFlowInstance

feat(reactflowUtils.ts): add generateNodeFromFlow function to generate a NodeType object from a FlowType object
2023-09-08 12:11:06 -03:00
anovazzi1
2e7f362867 feat(reactflowUtils.ts): add findLastNodeType type to represent the input for findLastNode function
feat(reactflowUtils.ts): add filterFlow function to filter out selected nodes and edges from the flow
feat(reactflowUtils.ts): add updateFlowPosition function to update the position of nodes in the flow based on a new position
fix(reactflowUtils.ts): fix return type of generateFlow function to use generateFlowType type instead of inline type definition
2023-09-08 12:02:41 -03:00
anovazzi1
67e364ef35 fix(reactflowUtils.ts): import missing FlowType from "../flow" in reactflowUtils.ts
feat(reactflowUtils.ts): add generateFlow function to generate a new flow based on selected nodes and edges
2023-09-08 11:37:35 -03:00
anovazzi1
ccb8b0d323 feat(reactflowUtils.ts): add getMiddlePoint function to calculate the average position of multiple nodes
The getMiddlePoint function calculates the average position of multiple nodes by summing up the x and y coordinates of each node and dividing them by the total number of nodes. This allows us to find the middle point or center of a group of nodes. This function can be used to determine the position of a new node based on the average position of existing nodes.
2023-09-08 11:27:04 -03:00
Lucas Oliveira
b770622603 Added gradient and changed types of patch user 2023-09-08 11:23:57 -03:00
Cristhian Zanforlin Lousa
e6afd6704f 🐛 fix(floatComponent): fix typo in max variable assignment to remove unnecessary plus sign 2023-09-08 10:46:09 -03:00
Cristhian Zanforlin Lousa
ec7a5fdbd6 🐛 fix(floatComponent): update min and max values to -2 and +2 respectively for better range
🔧 chore(floatComponent): update placeholder text to reflect the new range of -2 to 2
2023-09-08 10:45:43 -03:00
Cristhian Zanforlin Lousa
0aa39d8a8e 🐛 fix(parameterComponent): import DictComponent from correct path to fix module not found error
🐛 fix(parameterComponent): remove unused import of CodeAreaComponent to improve code readability
🐛 fix(parameterComponent): remove unused import of TabsContext to improve code readability
🐛 fix(parameterComponent): remove unused import of typesContext to improve code readability
🐛 fix(parameterComponent): remove unused import of TabsState to improve code readability
🐛 fix(parameterComponent): remove unused import of nodeColors to improve code readability
🐛 fix(parameterComponent): remove unused import of nodeIconsLucide to improve code readability
🐛 fix(parameterComponent): remove unused import of nodeNames to improve code readability
🐛 fix(parameterComponent): remove unused import of classNames to improve code readability
🐛 fix(parameterComponent): remove unused import of groupByFamily to improve code readability
🐛 fix(parameterComponent): remove unused import of useUpdateNodeInternals to improve code readability
🐛 fix(parameterComponent): remove unused import of Position from reactflow to improve code readability
🐛 fix(parameterComponent): remove unused import of Handle from reactflow to improve code readability
🐛 fix(parameterComponent): remove unused import of types from reactflow to improve code readability
🐛 fix(parameterComponent): remove unused import of React from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useEffect from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useContext from react to improve code readability
🐛 fix(parameterComponent): remove unused import of ReactNode from react to improve code readability
🐛 fix(parameterComponent): remove unused import of forwardRef from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useEffect from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
🐛 fix(parameterComponent): remove unused import of useState from react to improve code readability
2023-09-08 10:11:32 -03:00
Cristhian Zanforlin Lousa
afc1888d73 🎨 style(dictAreaModal): update BaseModal size prop value to "medium-h-full" for better UI layout 2023-09-08 10:00:59 -03:00
Gabriel Luiz Freitas Almeida
04544b172f 🚀 feat(alembic): add migration to add profile_image column to user table
🔧 chore(user.py): add profile_image field to User model for storing user profile images
2023-09-08 07:36:56 -03:00
Guangya Liu
86cf771d00 Fix lint error 2023-09-07 14:57:37 -04:00
Matheus Jacques
87339b9442 Fix images and remove depends_on 2023-09-07 16:47:08 +02:00
dependabot[bot]
9a5dbb59fc
chore(deps): bump gitpython from 3.1.32 to 3.1.34
Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.32 to 3.1.34.
- [Release notes](https://github.com/gitpython-developers/GitPython/releases)
- [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES)
- [Commits](https://github.com/gitpython-developers/GitPython/compare/3.1.32...3.1.34)

---
updated-dependencies:
- dependency-name: gitpython
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-06 18:37:56 +00:00
igorrCarvalho
5cae58dead Refactor: Remove blank space when node has no description 2023-09-06 14:44:13 -03:00
Lucas Oliveira
512db102fa Change password implemented, but not working 2023-09-06 14:16:07 -03:00
Niklas
8bde788d37 updated Makefile to use langflow run 2023-09-05 23:41:17 +02:00
igorrCarvalho
f44b0e33b1 remove unnused imports 2023-09-05 18:31:30 -03:00
igorrCarvalho
25949b97a7 Fix: user not having icon when id starts with a letter 2023-09-05 18:31:30 -03:00