Commit graph

7,638 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
aa387f89b3 🐛 fix(types.py): add error handling when building custom components to prevent crashes and log the error message 2023-07-25 11:47:21 -03:00
Gabriel Luiz Freitas Almeida
eb94b957b5 🐛 fix(endpoints.py): fix merging of custom component dictionaries from multiple paths
 feat(endpoints.py): add support for merging custom component dictionaries from multiple paths to build the final dictionary of all components
2023-07-25 11:46:57 -03:00
Gabriel Luiz Freitas Almeida
fae3250439 🔧 chore(constants.py): add 'google_cse_id' to FORCE_SHOW_FIELDS list to include it in the forced display fields 2023-07-25 10:58:39 -03:00
Gabriel Luiz Freitas Almeida
ac0aa71c10 🐛 fix(__main__.py): add support for component_path parameter to update_settings function
 feat(__main__.py): add component_path option to serve command to specify the directory containing custom components
🐛 fix(settings.py): modify update_settings function to handle list attributes correctly
2023-07-25 10:58:08 -03:00
Gabriel Luiz Freitas Almeida
17e84e4b2e 🔨 refactor(endpoints.py): rename directory_loader module to directory_reader for better naming consistency
🔨 refactor(endpoints.py): rename directory_loader import to directory_reader for better naming consistency
🔨 refactor(directory_reader.py): rename directory_loader module to directory_reader for better naming consistency
🔨 refactor(types.py): rename directory_loader import to directory_reader for better naming consistency
2023-07-25 10:58:07 -03:00
Cristhian Zanforlin Lousa
94ccb79564 🐛 fix(parameterComponent): update placeholder text for custom component to provide clearer instructions 2023-07-25 10:43:20 -03:00
Cristhian Zanforlin Lousa
f58500c89b merge fix 2023-07-25 10:41:57 -03:00
Cristhian Zanforlin Lousa
4677dcfad2 🐛 fix(parameterComponent): add fallback custom component when groupedObj is empty to prevent rendering issues 2023-07-25 10:27:45 -03:00
Lucas Oliveira
45673dcda8
Remove hard-coded colors and unnecessary dark classes (#636)
Change hard coded colors to langflow constants colors
2023-07-25 10:09:12 -03:00
Lucas Oliveira
812f5d2961 Styling fixes 2023-07-25 10:08:11 -03:00
Lucas Oliveira
bfbe66a547 Merge branch 'dev' into interceptor-dev 2023-07-25 10:07:34 -03:00
Gabriel Luiz Freitas Almeida
eece41a69a 🔨 refactor(endpoints.py): rename 'load_custom_component_from_path' module to 'directory_loader' for better clarity and consistency
🔨 refactor(types.py): rename 'load_custom_component_from_path' module to 'directory_loader' for better clarity and consistency
2023-07-25 10:06:26 -03:00
Lucas Oliveira
59ef06ab79 Fixed flow not creating after creating custom component 2023-07-25 10:01:21 -03:00
Lucas Oliveira
e6e96b6f96 Formatting fixes 2023-07-25 09:53:05 -03:00
Lucas Oliveira
07ff2cc52f Changed tooltip handler to not use PopupContext 2023-07-25 09:52:27 -03:00
Lucas Oliveira
d283ce5600 Merge branch 'dev' into python_custom_node_component 2023-07-25 09:41:01 -03:00
Lucas Oliveira
9e341fcc31 Merge branch 'dev' into fix-hardCoded-colors 2023-07-25 08:46:03 -03:00
dependabot[bot]
f57ecadfc1
build(deps): bump word-wrap from 1.2.3 to 1.2.5 in /src/frontend
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.5.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.5)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-25 11:44:58 +00:00
Cristhian Zanforlin Lousa
fb6caaa6bc 🔥 refactor(parameterComponent): remove unnecessary console.log statement 2023-07-24 18:20:12 -03:00
Cristhian Zanforlin Lousa
c05eaa5b12 🔧 fix(index.css): remove unnecessary hyphen in comment to improve readability 2023-07-24 18:09:01 -03:00
Igor Carvalho
af66bc6927 Add comments to Otávio help 2023-07-24 16:47:50 -03:00
Cristhian Zanforlin Lousa
2c32b13632 merging modal refactor 2023-07-24 16:18:45 -03:00
Igor Carvalho
d09e07e12d Formated code 2023-07-24 16:17:32 -03:00
Cristhian Zanforlin Lousa
9f3a7b9a75 📦 chore(frontend): add @types/axios package to improve type checking in the frontend
🐛 fix(typesContext.tsx): remove unnecessary retry logic and error logging in getTypes function
🚀 feat(API/api.tsx): add ApiInterceptor component to handle API response retries and error handling
🚀 feat(API/index.ts): replace axios calls with api instance from API/api.tsx for better code organization and reusability

 feat(index.tsx): add ApiInterceptor component to intercept API requests and responses for additional processing
2023-07-24 16:16:02 -03:00
Igor Carvalho
e40628a069 refactor: Remove any types 2023-07-24 16:15:29 -03:00
Lucas Oliveira
ddfb534a03 Fixed message not appearing when code is displayed 2023-07-24 15:51:28 -03:00
Cristhian Zanforlin Lousa
078626052f formatting 2023-07-24 15:30:00 -03:00
Cristhian Zanforlin Lousa
891abae528 🐛 fix(parameterComponent): fix linting issues and add missing import
 feat(parameterComponent): add support for custom components in groupByFamily function
 feat(utils): add groupByFamilyCustom function to handle custom components in groupByFamily function
2023-07-24 15:10:55 -03:00
Igor Carvalho
53a20ecccf refactor[modals]: Remove any types 2023-07-24 14:10:38 -03:00
Igor Carvalho
4fc636cb9b refactor[EditNodeModal]: Remove any types 2023-07-24 13:20:29 -03:00
Lucas Oliveira
edf570f314 Added indicator of chat thinking when message is empty. 2023-07-24 11:32:36 -03:00
Lucas Oliveira
ada32b6a48 Refactored state management from tweaks 2023-07-24 10:58:48 -03:00
Cristhian Zanforlin Lousa
530d416735 🔧 fix(parameterComponent): import 'flow' function from lodash to fix missing reference error
🔧 fix(parameterComponent): add 'flows' to the list of destructured variables from TabsContext to fix missing reference error
🔧 fix(parameterComponent): remove unused console.log statements to clean up code
2023-07-24 10:09:53 -03:00
Lucas Oliveira
169a20ab97 Fixed all bugs with tweaks on API modal 2023-07-24 09:55:42 -03:00
Lucas Oliveira
b6ee0ff800 Merge branch 'modalRefactor' into python_custom_node_component 2023-07-23 19:50:51 -03:00
Lucas Oliveira
66cec7d545 Formatting on merge 2023-07-23 19:49:13 -03:00
Lucas Oliveira
7239223481 Merge branch 'dev' into modalRefactor 2023-07-23 19:48:41 -03:00
Cristhian Zanforlin Lousa
97045a3bc0 Merge branch 'modalRefactor' into input-refactor 2023-07-22 09:43:49 -03:00
Cristhian Zanforlin Lousa
c21cf4bb56 🐛 fix(inputListComponent): import useContext from react to fix missing import error
🐛 fix(inputListComponent): import set from lodash to fix missing import error
 feat(inputListComponent): add PopUpContext import to use closeEdit function
🐛 fix(inputListComponent): add useEffect to update inputList state when value prop changes
🐛 fix(EditNodeModal): import getRandomKeyByssmm from utils to fix missing import error
 feat(EditNodeModal): add PopUpContext import to use setCloseEdit function
🐛 fix(EditNodeModal): add useEffect to reset myData state when modalOpen prop changes
2023-07-22 09:43:17 -03:00
Cristhian Zanforlin Lousa
c218dc1d02 Merge branch 'modalRefactor' into input-refactor 2023-07-22 09:05:38 -03:00
Cristhian Zanforlin Lousa
7d91c14481 🐛 fix(inputListComponent): remove redundant useEffect that sets inputList value from props
🐛 fix(inputListComponent): fix cloning of inputList array in onChange event handler to prevent mutation of state
2023-07-22 09:05:04 -03:00
Gabriel Luiz Freitas Almeida
564b113c3a 🔧 chore(main.py): configure logger in create_app function to improve logging configuration
🔧 chore(logger.py): change default log level to DEBUG in configure function for more detailed logging
2023-07-21 23:58:28 -03:00
Gabriel Luiz Freitas Almeida
80db6b910e 🔧 fix(__main__.py): import get_number_of_workers function from langflow.utils.util module to fix NameError
🔧 fix(__main__.py): change default value of workers option to -1 to indicate automatic calculation of number of workers
🔧 fix(__main__.py): remove unused import of cpu_count from multiprocess module
🔧 fix(__main__.py): remove unused import of time module
🔧 fix(__main__.py): remove unused import of httpx module
🔧 fix(__main__.py): remove unused import of sys module
🔧 fix(__main__.py): remove unused import of os module
🔧 fix(__main__.py): remove unused import of Path class from pathlib module
🔧 fix(__main__.py): remove unused import of load_dotenv function from dotenv module
🔧 fix(__main__.py): remove unused import of typer module
🔧 fix(__main__.py): remove unused import of app object from typer module
🔧 fix(__main__.py): remove unused import of Optional type from typing module
🔧 fix(__main__.py): remove unused import of Process class from multiprocess module
🔧 fix(__main__.py): remove unused import of platform module
🔧 fix(__main__.py): remove unused import of update_settings function
🔧 fix(__main__.py): remove unused import of run_langflow function
🔧 fix(util.py): import logger from langflow.utils.logger module to fix NameError
🔧 fix(util.py): import cpu_count from multiprocess module to fix NameError
🔧 fix(util.py): add default value of None to workers parameter in get_number_of_workers function to fix TypeError
2023-07-21 23:57:52 -03:00
Gabriel Luiz Freitas Almeida
cf688adf53 🚀 feat(custom_component.py): add method list_flow_names() to retrieve a list of flow names from the database
🐛 fix(custom_component.py): remove unused build() method to improve code cleanliness and avoid confusion
2023-07-21 23:15:53 -03:00
Gabriel Luiz Freitas Almeida
67e12c425f 🔀 chore(constants.py): add "str" as a base type in LANGCHAIN_BASE_TYPES to support string values in custom interfaces 2023-07-21 23:15:26 -03:00
Gabriel Luiz Freitas Almeida
6f300ddf94 🐛 fix(custom_component.py): add missing build_config method to CustomComponent class
🐛 fix(types.py): update build_langchain_template_custom_component function to use build_config method of CustomComponent class
2023-07-21 19:09:20 -03:00
gustavoschaedler
e84aca717b 🔀 chore(endpoints.py): move merge_nested_dicts function to correct local scope
🐛 fix(endpoints.py): fix get_all endpoint to correctly merge native_components and custom_components_from_file dictionaries
2023-07-21 22:32:54 +01:00
Igor Carvalho
6113aae86f Refactor[NodeModal]: Remove unnused code (NodeModal) 2023-07-21 17:08:15 -03:00
gustavoschaedler
548383b09e 🐛 fix(endpoints.py): add missing import statement for 'settings' module
 feat(endpoints.py): add support for loading custom components from a specified path
🐛 fix(endpoints.py): fix typo in variable name 'custom_components_from_file'
🐛 fix(endpoints.py): fix typo in variable name 'filtered'
🐛 fix(base.py): fix indentation of raise statement to improve code readability
🐛 fix(component.py): fix indentation of if statements to improve code readability
🐛 fix(load_custom_component_from_path.py): fix indentation of base_path comment to improve code readability
🐛 fix(load_custom_component_from_path.py): fix indentation of base_path assignment to improve code readability
🐛 fix(load_custom_component_from_path.py): fix indentation of validate_code method to improve code readability
🐛 fix(load_custom_component_from_path.py): fix indentation of build_component_menu_list method to improve code readability
🐛 fix(types.py): fix indentation of extract_type_from_optional function to improve code readability
 feat(types.py): add support for building custom component templates
 feat(types.py): add support for building custom component templates with extra fields
 feat(types.py): add support for building custom component templates with function arguments
 feat(types.py): add support for building custom component templates with base classes
 feat(types.py): add support for building custom component templates with return type
 feat(types.py): add support for building custom component templates with exception handling
 feat(types.py): add support for building custom component templates from a specified path
🐛 fix(settings.py): fix indentation of set_env_variables method to improve code readability
 feat(settings.py): add support for specifying component path in settings

🐛 fix(test_custom_component.py): change variable names and attributes in YourComponent class for better readability and consistency
🐛 fix(test_custom_component.py): reformat code to adhere to PEP8 style guide
🐛 fix(test_custom_component.py): fix syntax error in test_component_get_code_tree_syntax_error()
🐛 fix(test_custom_component.py): fix syntax error in test_custom_component_class_template_validation_no_code()
🐛 fix(test_custom_component.py): fix syntax error in test_custom_component_get_main_class_name_no_main_class()
 feat(test_custom_component.py): add test_component_get_function_valid() to test the get_function method of the Component class with valid code and function_entrypoint_name
 feat(test_custom_component.py): add test_code_parser_parse_assign() to test the parse_assign method of the CodeParser class
 feat(test_custom_component.py): add test_custom_component_class_template_validation_no_code() to test the _class_template_validation method of the CustomComponent class when the code is None
 feat(test_custom_component.py): add test_custom_component_get_main_class_name_no_main_class() to test the get_main_class_name method of the CustomComponent class when there is no main class
 feat(test_custom_component.py): add test_custom_component_get_function_entrypoint_args_no_args() to test the get_function_entrypoint_args method of the CustomComponent class when there are no arguments
 feat(test_custom_component.py): add test_custom_component_get_function_entrypoint_return_type_none() to test the get_function_entrypoint_return_type method of the CustomComponent class when the return type is None
2023-07-21 19:13:52 +01:00
Cristhian Zanforlin Lousa
247755c118 🐛 fix(nodeToolbarComponent): wrap EditNodeModal component in a div to fix layout issue 2023-07-21 11:56:34 -03:00