Commit graph

6,039 commits

Author SHA1 Message Date
anovazzi1
7837de5343 update satus logic to comprehend group component 2023-09-14 17:44:21 -03:00
Gabriel Luiz Freitas Almeida
40969d905a 🐛 fix(render.yaml): fix indentation of value for LANGFLOW_DATABASE_URL environment variable to match the key 2023-09-14 17:19:13 -03:00
Gabriel Luiz Freitas Almeida
502b520782 🔧 chore(render.yaml): add LANGFLOW_DATABASE_URL environment variable with sqlite database path to improve configuration
The LANGFLOW_DATABASE_URL environment variable is added with the value `sqlite:////home/user/.cache/langflow/langflow.db` to specify the path to the SQLite database file for the Langflow service. This improves the configuration by providing a specific location for the database file.
2023-09-14 17:18:22 -03:00
Gabriel Luiz Freitas Almeida
2a947e33a7 🔧 chore(render.yaml): remove unnecessary 'plan' field from langflow service configuration
📝 docs(render.yaml): update langflow service configuration to remove 'plan' field for better clarity and consistency
2023-09-14 15:39:46 -03:00
Gabriel Luiz Freitas Almeida
54776687f1 🔧 chore(render.yaml): add disk configuration for langflow-data to provide persistent storage for langflow cache 2023-09-14 15:38:45 -03:00
Cristhian Zanforlin Lousa
81bd366654 🔨 refactor(parameterComponent): update initial state of dict to include a default key-value pair for better clarity and consistency
🔨 refactor(EditNodeModal): update initial state of dict to include a default key-value pair for better clarity and consistency
2023-09-14 14:39:07 -03:00
Guangya Liu
c710c1ce82 Fixed lint error 2023-09-14 13:33:48 -04:00
Cristhian Zanforlin Lousa
dc2ff9a91c Merge branch 'feat-dict' of https://github.com/logspace-ai/langflow into feat-dict 2023-09-14 14:32:26 -03:00
Cristhian Zanforlin Lousa
9e4f30f774 🔀 refactor(parameterComponent): remove initial values from dict state and dictArr state to improve code readability and maintainability 2023-09-14 14:32:11 -03:00
Cristhian Zanforlin Lousa
6b129b4d44 🐛 fix(dictComponent): fix placeholder text in input field to improve clarity and user experience
🔀 refactor(dictComponent): reorganize imports for better readability and maintainability
2023-09-14 14:32:03 -03:00
Cristhian Zanforlin Lousa
144fdbd098 🐛 fix(parameterComponent): fix data mutation by cloning data object before updating it
🐛 fix(parameterComponent): fix data mutation by cloning data object before updating it
🐛 fix(genericModal): remove unnecessary cloning of nodeClass object
🐛 fix(genericModal): fix validation logic for PROMPT type modal
🐛 fix(reactflowUtils): remove console.log statement in handleKeyDown function
2023-09-14 14:18:30 -03:00
Gabriel Luiz Freitas Almeida
fbedf7f734 feat(field_typing): add NestedDict type alias to improve code readability and maintainability 2023-09-14 14:09:18 -03:00
Gabriel Luiz Freitas Almeida
70d9742d16 🐛 fix(parameterComponent): fix type comparison for "NestedDict" to improve accuracy and consistency
🐛 fix(EditNodeModal): fix type comparison for "NestedDict" to improve accuracy and consistency
2023-09-14 14:09:06 -03:00
Guangya Liu
888ded02f9 Fixed format pre-check error 2023-09-14 10:17:13 -04:00
Guangya Liu
9b9a84f81f Fixed Bug 916: No module named 'langflow.settings' error 2023-09-14 10:14:56 -04:00
Gabriel Luiz Freitas Almeida
63d1e82c80 fix: 🐛 fixes Infinity icon crashing the frontend
There's an issue with the exported Infinity variable, InfinityIcon is an alias and fixes that
2023-09-14 09:36:34 -03:00
Cristhian Zanforlin Lousa
9c4c8f1cf7 🔨 refactor(promptComponent): rename TextAreaComponentType to PromptAreaComponentType for better naming consistency and clarity
🔨 refactor(genericModal): import cloneDeep from lodash to improve code readability and maintainability
🔨 refactor(genericModal): add type annotations to validatePrompt function parameters for better code documentation
🔨 refactor(genericModal): add null check for nodeClass before modifying it in validatePrompt function
🔨 refactor(genericModal): setNodeClass and setModalOpen only if frontend_node is not an empty object in validatePrompt function
🔨 refactor(genericModal): remove console.log statement in catch block of validatePrompt function
🔨 refactor(genericModal): add type annotations to catch block of validatePrompt function for better code documentation
🔨 refactor(types): add PromptAreaComponentType to define the type of PromptAreaComponent props
2023-09-14 09:12:18 -03:00
Gabriel Luiz Freitas Almeida
57cba4233a
Fixed format errors (#903) 2023-09-14 01:29:26 +00:00
Cristhian Zanforlin Lousa
e1bb4b4a24
🐛 fix(genericModal/index.tsx): close modal when template has no varia… (#911)
…bles to prevent user confusion
2023-09-13 22:26:38 -03:00
Cristhian Zanforlin Lousa
887bfb8ee7 🐛 fix(genericModal/index.tsx): close modal when template has no variables to prevent user confusion 2023-09-13 21:42:26 -03:00
Gabriel Luiz Freitas Almeida
c6be7cdecd Merge remote-tracking branch 'origin/main' into dev 2023-09-13 21:32:51 -03:00
igorrCarvalho
21009761f0 Refactor: adjust icon size when node are minimized 2023-09-13 18:23:52 -03:00
igorrCarvalho
b1f874ca03 Fix: Minimize working after add a new handle with promptTemplate 2023-09-13 18:17:01 -03:00
anovazzi1
95767c6594 fix(formModal): import processFlow function from reactflowUtils to fix compilation error
refactor(formModal): replace the usage of processFLow function with processFlow function to correctly process the flow object
2023-09-13 17:57:00 -03:00
anovazzi1
6d04f49443 fix(reactflowUtils.ts): fix nullability issues and improve variable names for better readability
refactor(reactflowUtils.ts): update targetHandle and sourceHandle to use JSON stringified values for better compatibility
2023-09-13 17:50:51 -03:00
igorrCarvalho
c70de1e881 Refactor: Minimize only works with 1 handle node and change minimized node UI 2023-09-13 17:23:35 -03:00
anovazzi1
8e03d95df5 feat(GenericNode): add support for Proxy field in GenericNode component to enable customization of Proxy component for each template field 2023-09-13 17:21:51 -03:00
anovazzi1
07f5342aa8 migrate old edges id format to new edges id fromat on ungroup node 2023-09-13 17:04:07 -03:00
anovazzi1
a7b9cf2cc9 update position on node 2023-09-13 16:17:59 -03:00
anovazzi1
04f2941a7d fix(GenericNode): import XYPosition from reactflow to fix type error
feat(GenericNode): add position prop to GenericNode component to pass the position of the node
fix(nodeToolbarComponent): import updateFlowPosition from reactflowUtils to fix reference error
feat(nodeToolbarComponent): add position prop to NodeToolbarComponent to pass the position of the node
fix(components): import XYPosition from reactflow to fix type error
feat(components): add position prop to nodeToolbarPropsType to pass the position of the node
feat(reactflowUtils): add expandGroupNode function to expand a group node and update the flow
2023-09-13 10:53:43 -03:00
anovazzi1
7de65ed709 feat(nodeToolbarComponent): add "Ungroup" button to the node toolbar when the node is a group
fix(styleUtils.ts): import the "Ungroup" icon from lucide-react to use it in the node toolbar component
2023-09-12 22:13:06 -03:00
anovazzi1
f33acd4685 fix(EditNodeModal): fix incorrect property name in template rendering logic
The property name `display_name` was incorrectly used instead of `name` in the template rendering logic. This has been fixed to correctly display the name of the template parameter.
2023-09-12 21:28:01 -03:00
anovazzi1
9d510e3e4b fix output string of custom component and truncate long Ids on display name 2023-09-12 21:00:42 -03:00
igorrCarvalho
602c12282d Refactor: Change how minimize displays on screen 2023-09-12 20:19:05 -03:00
anovazzi1
e4471886e4 feat(types/api): add 'dynamic' and 'proxy' properties to TemplateVariableType to support dynamic and proxy fields in templates
feat(utils/reactflowUtils): add 'toTitleCase' function to convert strings to title case

refactor(utils/reactflowUtils): update function names and comments

refactor(utils/reactflowUtils): update 'updateGroupNodeTemplate' function to handle 'dynamic' property

refactor(utils/reactflowUtils): update 'mergeNodeTemplates' function to handle 'display_name' and 'dynamic' properties

refactor(utils/reactflowUtils): update 'isHandleConnected' function to handle 'proxy' property

refactor(utils/reactflowUtils): update 'generateNodeFromFlow' function to set 'type' as 'genericNode' instead of 'groupNode'
2023-09-12 18:15:32 -03:00
anovazzi1
42f7821002 fix(parameterComponent/index.tsx): remove unnecessary ts-ignore comments
fix(reactflowUtils.ts): add input_types variable to prevent error when checking for advanced types
2023-09-12 17:17:36 -03:00
Cristhian Zanforlin Lousa
8121dc0a8b 🔨 refactor(dialog.tsx): remove unused IconComponent import and replace it with Cross2Icon from @radix-ui/react-icons
🎨 style(dialog.tsx): update DialogContent className to improve positioning and animation effects
2023-09-12 16:56:53 -03:00
anovazzi1
492ca19fff text update 2023-09-12 16:35:04 -03:00
anovazzi1
90c864fafc refactor(parameterComponent): update text displayed based on the value of the 'left' prop for better clarity and consistency 2023-09-12 16:35:04 -03:00
igorrCarvalho
cd28ae2c59 Refactor: Add header to node tooltips 2023-09-12 16:35:04 -03:00
igorrCarvalho
c03b11ab70 Refactor: Remove description space whem node does not have a space 2023-09-12 16:35:04 -03:00
igorrCarvalho
e38b904af2 Refactor: Remove blank space when node has no description 2023-09-12 16:35:04 -03:00
igorrCarvalho
0c3c7276f1 Feat: Add function to handle minimize 2023-09-12 14:55:02 -03:00
igorrCarvalho
a0c7712b70 Merge branch 'nodesImprovements' into minimizeNode 2023-09-12 14:28:54 -03:00
igorrCarvalho
b06cb9507f Feat: Add minimize icon and conditional render 2023-09-12 14:25:04 -03:00
Guangya Liu
f0ba05c9cc rollback the test error with python 3.10 2023-09-12 11:52:14 -04:00
Guangya Liu
48586fc3e6 Fix format errors 2023-09-12 11:17:11 -04:00
Guangya Liu
36aee971c4 fix test errors 2023-09-12 11:16:11 -04:00
Matheus Jacques
4f6aeefd96 🔧 chore(main.tf): add label to a random worker node to ensure data volume is created
🔧 chore(main.tf): deploy the langflow_stack using docker stack
2023-09-12 11:42:58 +02:00
Matheus Jacques
1ca839899a 🔧 chore(main.tf): use variable for AWS region to improve flexibility and reusability
🔧 chore(main.tf): use variables for instance type, manager count, and worker count to improve configurability and scalability
2023-09-12 11:40:33 +02:00