Commit graph

4,942 commits

Author SHA1 Message Date
Cristhian Zanforlin Lousa
a6c80a8780 🐛 fix(reactflowUtils.ts): improve error message for empty key in validateNode function 2023-09-18 22:32:11 -03:00
Cristhian Zanforlin Lousa
52a8e6eeb5 🐛 fix(reactflowUtils.ts): fix validation logic for nested dictionaries in validateNode function
 feat(reactflowUtils.ts): add hasEmptyKey function to check for empty keys in dictionaries in validateNode function
2023-09-18 22:27:08 -03:00
Cristhian Zanforlin Lousa
b30f9ddf7f 🐛 fix(parameterComponent): convert parameter values to numbers before assigning them to improve data consistency
🔧 chore(reactflowUtils): add utility function to convert values to numbers in an array of objects
2023-09-18 21:51:22 -03:00
Cristhian Zanforlin Lousa
7d3f2377a5 🔧 fix(dictAreaModal/index.tsx): add useEffect hook to update dictObj state when value prop changes
🔧 fix(dictAreaModal/index.tsx): initialize dictObj state with value prop on component mount
2023-09-18 21:16:10 -03:00
Cristhian Zanforlin Lousa
71dd9821ea 🐛 fix(parameterComponent): handleOnNewValue now accepts Object[] as a valid parameter type to support dict and NestedDict types
🐛 fix(parameterComponent): remove unused state variables obj and dictArr
 feat(parameterComponent): add support for dict and NestedDict types in ParameterComponent
🐛 fix(dictComponent): call onChange when value prop changes to ensure proper synchronization
🐛 fix(keypairListComponent): call onChange when value prop changes to ensure proper synchronization
🐛 fix(dialog.tsx): add missing classes to prevent panning, dragging, undoing, and copying in DialogPortal and DialogOverlay components
2023-09-18 20:47:04 -03:00
Gabriel Luiz Freitas Almeida
3ae51da36e 🔧 chore(UpdateRequest.py): change field_type from "code" to "NestedDict" to improve clarity and semantics
🔧 chore(base.py): handle "dict" and "NestedDict" types in params parsing to ensure correct conversion from frontend data
🔧 chore(llms.py): change field_type from "code" to "dict" for model_kwargs field to improve semantics
🔧 chore(utilities.py): remove field_type "code" for fields with dict values to improve consistency
🔧 chore(constants.py): add "dict" and "NestedDict" to DIRECT_TYPES list to reflect available field types
🔧 chore(util.py): remove replace_dict_type_with_code function as it is no longer needed
2023-09-18 18:44:02 -03:00
Cristhian Zanforlin Lousa
6521152184 🐛 fix(dialog.tsx): remove unnecessary CSS classes 'noundo' and 'nocopy' from DialogOverlay component to improve code readability and maintainability
🐛 fix(index.tsx): remove unnecessary CSS classes 'nopan', 'nodrag', 'noundo', and 'nocopy' from CodeMirror component to improve code readability and maintainability
2023-09-18 14:23:20 -03:00
Cristhian Zanforlin Lousa
d39685e9f5 🔧 chore(codeAreaModal): add additional class names to CodeArea component for better control and customization
🎨 style(codeAreaModal): add class names 'nopan', 'nodrag', 'noundo', and 'nocopy' to CodeArea component to disable specific behaviors
2023-09-18 13:51:42 -03:00
Cristhian Zanforlin Lousa
bdd79fc6f6 📝 chore(constants.ts): update CODE_DICT_DIALOG_SUBTITLE to improve clarity and remove unnecessary information 2023-09-18 11:36:14 -03:00
Cristhian Zanforlin Lousa
4b61a582ba 🔧 fix(constants.ts): fix indentation issue in CODE_DICT_DIALOG_SUBTITLE constant
🔧 fix(constants.ts): update CODE_DICT_DIALOG_SUBTITLE constant to include information about using eval() function
🔧 fix(reactflowUtils.ts): add check to convertObjToArray function to return the input if it is already an array
2023-09-18 11:25:18 -03:00
Cristhian Zanforlin Lousa
46601245e1 🐛 fix(EditNodeModal/index.tsx): import convertObjToArray function from reactflowUtils to fix undefined reference error
🐛 fix(EditNodeModal/index.tsx): fix incorrect usage of convertObjToArray function to correctly convert object to array
2023-09-17 11:09:15 -03:00
Cristhian Zanforlin Lousa
0838baa50a merge dev 2023-09-17 10:32:45 -03:00
Cristhian Zanforlin Lousa
ddda46f6d6 🐛 fix(parameterComponent): convert object to array in data.node!.template[name].value to fix rendering issue 2023-09-17 10:31:42 -03:00
Cristhian Zanforlin Lousa
4a03e81314 🐛 fix(parameterComponent): remove redundant conditional statement and set dictionary array and node template value directly
The conditional statement checking for duplicate keys and setting the dictionary array was redundant. Instead, the dictionary array is now always set to the new value. Additionally, the node template value is now always updated with the new value.
2023-09-15 16:07:08 -03:00
Cristhian Zanforlin Lousa
55001b98c8 🔥 refactor(parameterComponent): remove console.log statement for newValue in ParameterComponent 2023-09-15 15:49:47 -03:00
Cristhian Zanforlin Lousa
ef5a3fb355 🔧 fix(parameterComponent): remove unused imports and variables to improve code cleanliness and readability
🔧 fix(parameterComponent): update useState initial value for dictArr to be an array of objects instead of an empty array
🔧 fix(parameterComponent): update value prop in ParameterInputListComponent to handle cases where data.node!.template[name].value is null or an empty array
🔧 fix(parameterComponent): update onChange prop in ParameterInputListComponent to handle any type of newValue instead of just string[]
🔧 fix(keypairListComponent): update className condition to check if value is null or undefined before checking its length
🔧 fix(editNodeModal): remove unused imports and variables to improve code cleanliness and readability
🔧 fix(editNodeModal): update useState initial value for dictArr to be an array of objects instead of an empty array
🔧 fix(editNodeModal): update value prop in KeypairListComponent to handle cases where myData.node.template[templateParam].value is null or an empty array
🔧 fix(editNodeModal): update onChange prop in KeypairListComponent to handle any type of newValue instead of just string[]
🔧 fix(types): update onChange type in KeyPairListComponentType to accept an array of objects instead of an array of strings
🔧 fix(reactflowUtils): remove unused convertArrayToObj function
2023-09-15 15:49:37 -03:00
Cristhian Zanforlin Lousa
c6122980ad 🐛 fix(reactflowUtils.ts): remove unnecessary space in key assignment to maintain consistent object key order 2023-09-15 14:50:27 -03:00
Cristhian Zanforlin Lousa
321024fd4c 🔥 refactor(keypairListComponent): remove commented out code and unused imports for cleaner code
🐛 fix(reactflowUtils.ts): add space before key in flattenedObject to prevent ordering when adding new keys to the object
2023-09-15 14:02:21 -03:00
Cristhian Zanforlin Lousa
55513a34a3 🐛 fix(parameterComponent): fix logic for setting default value in ParameterComponent
🐛 fix(dictComponent): fix class name for disabled input in DictComponent
🐛 fix(keypairListComponent): remove unnecessary disabled prop from Input component in KeypairListComponent
2023-09-15 09:27:48 -03:00
Cristhian Zanforlin Lousa
a6751d4a17 🐛 fix(parameterComponent): fix nullish coalescing operator usage to prevent potential error when accessing nested object properties 2023-09-15 08:48:23 -03:00
Cristhian Zanforlin Lousa
dd556c518d 🐛 fix(parameterComponent): remove unnecessary useEffect hook that sets dictArr state
🐛 fix(parameterComponent): update value prop of KeypairListComponent to use convertObjToArray(dict) instead of dict
2023-09-15 08:47:51 -03:00
Gabriel Luiz Freitas Almeida
44466dc2d1 🐛 fix(RecursiveCharacterTextSplitter.py): uncomment line to assign repr_value to separators variable
 feat(util.py): add build_loader_repr_from_documents function to generate a representation string from a list of documents
2023-09-14 21:38:10 -03:00
Gabriel Luiz Freitas Almeida
329d779b6e
Fixed Lint error and no module error (#918) 2023-09-15 00:35:36 +00:00
Guangya Liu
03a71b1fe8 use optional for user 2023-09-14 19:48:48 -04:00
Gabriel Luiz Freitas Almeida
5ac3208c8a Merge remote-tracking branch 'origin/main' into dev 2023-09-14 20:02:52 -03:00
Gabriel Luiz Freitas Almeida
fa94ae3350
🔧 chore(render.yaml): add disk configuration for langflow-data to pro… (#919) 2023-09-14 23:02:26 +00:00
Gabriel Luiz Freitas Almeida
ff18b32aeb 🔀 chore(README.md): update Railway deployment button link to use a different template 2023-09-14 20:01:51 -03:00
Cristhian Zanforlin Lousa
83e48f0728 🐛 fix(parameterComponent): fix issue with undefined values in DictComponent and KeypairListComponent 2023-09-14 19:57:33 -03:00
Cristhian Zanforlin Lousa
1c1d6d2c02 🔧 fix(parameterComponent): remove unused longString variable to improve code readability and reduce unnecessary code
🔧 fix(parameterComponent): move DictComponent and KeypairListComponent rendering logic to the correct position to fix rendering issues
🔧 fix(keypairListComponent): remove unused imports and fix formatting to improve code readability
🔧 fix(keypairListComponent): fix handleChangeKey function name to improve code clarity
🔧 fix(keypairListComponent): fix className prop in Input component to improve code readability
🔧 fix(keypairListComponent): remove unused GenericModal component and fix formatting to improve code readability
🔧 fix(reactflowUtils.ts): fix formatting and remove unnecessary whitespace to improve code readability
🔧 fix(reactflowUtils.ts): fix function names and formatting to improve code readability
🔧 fix(reactflowUtils.ts): fix formatting and remove unnecessary whitespace to improve code readability
🔧 fix(reactflowUtils.ts): fix formatting and remove unnecessary whitespace to improve code readability
2023-09-14 19:53:39 -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
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
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
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