Commit graph

11,619 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
054c6d8900 🔧 chore(constants.py): add 'google_cse_id' to FORCE_SHOW_FIELDS list to include it in the forced display fields 2023-07-21 17:47:48 -03: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
Cristhian Zanforlin Lousa
19b874b591 🔧 chore(genericModal/index.tsx): refactor useEffect hook to set input value when 'value' prop changes 2023-07-21 11:34:23 -03:00
Gabriel Luiz Freitas Almeida
dff5c87c72 🐛 fix(components): remove unnecessary empty line in ToggleComponent
🐛 fix(modals): fix typo in comment in CodeAreaModal
🐛 fix(pages): remove unnecessary empty line in MainPage
🐛 fix(utils): remove unnecessary semicolons in utils.ts
2023-07-21 11:17:13 -03:00
Gabriel Luiz Freitas Almeida
a21345ff44 Merge branch 'main' into dev 2023-07-21 11:16:27 -03:00
Cristhian Zanforlin Lousa
f67c0ff509 🐛 fix(EditFlowSettingsComponent): update flows array type to include description property to fix type error
🔧 chore(EditFlowSettingsComponent): refactor handleDescriptionChange to update description in flows array and setDesc state variable
🔧 chore(EditFlowSettingsComponent): update value prop of description textarea to use desc state variable instead of description prop
2023-07-21 11:09:35 -03:00
Cristhian Zanforlin Lousa
ff97f45a72 🔧 fix(codeTabsComponent): remove commented out console.log statement
🔧 fix(codeTabsComponent): add keyValue prop to AccordionComponent to fix missing key warning
2023-07-21 10:35:53 -03:00
Cristhian Zanforlin Lousa
df14fd0d58 🔨 refactor(inputListComponent): extract classNames function to improve code readability and reusability
🐛 fix(inputListComponent): add conditional styling to the parent div based on the length of inputList and the presence of editNode to fix layout issues
2023-07-21 10:27:50 -03:00
Gabriel Luiz Freitas Almeida
33f8b63431 🐛 fix(loading.py): refactor instantiate_custom_component function to improve readability and maintainability 2023-07-21 09:27:30 -03:00
Gabriel Luiz Freitas Almeida
e835d4a0e9 🐛 fix(types.py): change base_type from "tools" to "custom_components" for CustomComponentVertex to improve categorization
🔧 refactor(types.py): modify _built_object_repr method in CustomComponentVertex to handle custom representation if available in artifacts
2023-07-21 09:27:04 -03:00
Gabriel Luiz Freitas Almeida
4307c24c6d 🐛 fix(custom_component.py): fix session handling in load_flow method to ensure proper context management and avoid potential resource leaks
 feat(custom_component.py): add custom_repr method to CustomComponent class to provide a custom representation value for the component
2023-07-21 09:25:55 -03:00
Gabriel Luiz Freitas Almeida
b64d43fe22 🔀 chore(constants.py): update import statement for custom component creator in vertex type map
🔀 chore(constants.py): update vertex type map to include custom component vertices using custom_component_creator
2023-07-21 09:25:33 -03:00
Gabriel Luiz Freitas Almeida
a722fe063b 🔧 chore(base.py): import contextlib's contextmanager to improve code readability and maintainability
 feat(base.py): add session_getter context manager to handle session creation, rollback, and closure in a more robust way
🔧 chore(base.py): update get_session function to use session_getter context manager for session creation
2023-07-21 09:24:59 -03:00
Gabriel Luiz Freitas Almeida
9811b97908 🐛 fix(base.py): fix validation logic in _validate_nodes method to handle case when there is only one node in the graph 2023-07-21 08:56:34 -03:00
Gabriel Luiz Freitas Almeida
a0748e1093 🐛 fix(base.py): fix validation logic in _validate_nodes method to handle case when there is only one node in the graph 2023-07-21 08:55:31 -03:00
gustavoschaedler
7b22e0780f 🐛 fix(endpoints.py): handle CustomComponentPathValueError and raise HTTPException with error details
🐛 fix(chat/manager.py): rename exception variable from e to exc for clarity
🐛 fix(load_custom_component_from_path.py): handle case when file_path does not exist and return None
🐛 fix(load_custom_component_from_path.py): raise CustomComponentPathValueError if directory path is invalid
🐛 fix(load_custom_component_from_path.py): handle case when file_content is None and return error message
2023-07-20 23:35:02 +01:00
Cristhian Zanforlin Lousa
207ed3b0f0 formatting 2023-07-20 18:58:29 -03:00
Cristhian Zanforlin Lousa
25235a0d11 🔧 chore(textarea.tsx): refactor textarea component class names for improved readability and maintainability
🔧 chore(index.css): refactor input-primary class to remove unnecessary styles and improve readability
🔧 chore(index.css): add new textarea-primary class for textarea component with similar styles as input-primary but without truncation
🔧 chore(chatInput/index.tsx): replace textarea element with Textarea component for consistency and reusability
2023-07-20 18:40:24 -03:00
Igor Carvalho
76a0a40656 refactor[modals]: Add types to functions that didnt have it 2023-07-20 18:24:04 -03:00
Cristhian Zanforlin Lousa
7ff40f40a4 🔧 chore(index.css): adjust width of dropdown component options to improve layout consistency 2023-07-20 18:10:13 -03:00
Cristhian Zanforlin Lousa
3e99fa431b 🔧 fix(floatComponent): replace input element with custom Input component for consistency and reusability
🔧 fix(inputComponent): replace input element with custom Input component for consistency and reusability
🔧 fix(inputListComponent): replace input element with custom Input component for consistency and reusability
🔧 fix(intComponent): replace input element with custom Input component for consistency and reusability
🔧 fix(textAreaComponent): replace input element with custom Input component for consistency and reusability
🔧 fix(ui/input): update Input component styles to match the design requirements
🔧 fix(index.css): update styles for Input component to match the design requirements
🔧 fix(extraSidebarComponent): replace input element with custom Input component for consistency and reusability
2023-07-20 18:09:46 -03:00
Igor Carvalho
3a055b7411 refactor[alerts]: Add types to functions that didnt have it 2023-07-20 18:01:06 -03:00
Igor Carvalho
b5c6b06b3c refactor[components]: Add types to functions that didnt have it 2023-07-20 17:58:48 -03:00
Cristhian Zanforlin Lousa
c6157cf12a 🎨 style(index.css): update width of dropdown component options to be responsive on larger screens 2023-07-20 17:40:10 -03:00
gustavoschaedler
5f8439ae7e 🔧 chore(.gitignore): add /tmp/* to the gitignore file to exclude temporary files from version control
 feat(endpoints.py): add new endpoint to load custom components from a specified path
📦 feat(load_custom_component_from_path.py): add new module to load custom components from a directory path
🔧 chore(types.py): add function to build and validate custom components from a directory path
2023-07-20 21:39:07 +01:00
Lucas Oliveira
01a473d73b Merge branch 'dev' into modalRefactor 2023-07-20 17:24:35 -03:00
Lucas Oliveira
6242d80635 Merge branch 'modalRefactor' into python_custom_node_component 2023-07-20 17:22:25 -03:00
Lucas Oliveira
ab185f57bd Fixed copy paste on all components 2023-07-20 17:17:48 -03:00
Igor Carvalho
84b2fb8aae refactor[CustomNodes]: Add types to functions that didnt have it 2023-07-20 17:12:50 -03:00
Lucas Oliveira
b2a7fe174c Disable copy paste removed in favor of class wrapping 2023-07-20 17:07:54 -03:00
Lucas Oliveira
4c834ab239 Fixed undoing nodes on modal 2023-07-20 17:01:34 -03:00
Lucas Oliveira
a63dcfa109 Fixed undo of nodes when on input 2023-07-20 17:00:37 -03:00
Igor Carvalho
fff6e494db refactor[src/pages]: Add types to pages functions that didnt have it 2023-07-20 16:50:32 -03:00
Lucas Oliveira
7b1b028364 Fixed node dragging and selecting text on input 2023-07-20 16:49:41 -03:00
Gabriel Luiz Freitas Almeida
30968e089f 🐛 fix(callback.py): improve error logging by including the specific error message
🐛 fix(chat.py): improve error logging by including the specific error message
🐛 fix(manager.py): improve error logging by including the specific error message
🐛 fix(base.py): improve error logging by including the specific error message
🐛 fix(processing/base.py): improve error logging by including the specific error message
2023-07-20 16:34:25 -03:00
Igor Carvalho
54f1f5c504 refactor[utils.ts]: Add type to functions that didnt have it 2023-07-20 16:02:09 -03:00
Gabriel Luiz Freitas Almeida
7193bb4488 🐛 fix(custom_component.py): fix session context and add error handling for flow not found 2023-07-20 15:38:22 -03:00
Rodrigo Nader
7d84ed41e8 feat(docs): add "ZONE UNDER CONSTRUCTION" message to components
The commit adds a cautionary message to the agents, chains, embeddings, and LLMs documentation pages, indicating that the documentation is still under construction. The message encourages users to provide feedback and report any issues to help improve the documentation.
2023-07-20 15:12:30 -03:00
Gabriel Luiz Freitas Almeida
c5bf15a2c4 🔧 fix(custom_component.py): fix import statements and refactor load_flow method to use UUID and improve code readability
🔀 merge(custom_component.py): merge changes from langflow.processing.process module to load_flow method to improve performance and data retrieval
2023-07-20 15:09:51 -03:00
gustavoschaedler
eb7158ad26 🔨 refactor(custom_component.py): remove unused imports and unused load_flow method parameters for better code cleanliness
🔨 refactor(custom_component.py): update load_flow method to use the process_flow function from the api endpoints module for improved modularity and separation of concerns
2023-07-20 18:56:46 +01:00
gustavoschaedler
a4cfe9e1e4 🔧 chore(custom_component.py): reformat code for better readability and maintainability
🔧 chore(custom_component.py): reformat code to improve code style and adhere to PEP 8 guidelines
2023-07-20 18:44:32 +01:00
gustavoschaedler
df77c25138 Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component 2023-07-20 18:42:04 +01:00
gustavoschaedler
2513cbcdd9 🔧 chore(custom_component.py): reformat code for better readability and maintainability
🚀 feat(custom_component.py): add `load_flow` method to load a flow from the database using session and flow_id
2023-07-20 18:35:53 +01:00
Lucas Oliveira
fae76a4a5e Changed placeholder and text placement on prompt component 2023-07-20 14:04:03 -03:00
Lucas Oliveira
08c63dbd73 Removed cleanEdges on handleClick 2023-07-20 14:00:00 -03:00
Igor Carvalho
33ea356eba Merge dev into types_refactor 2023-07-20 13:31:18 -03:00
Gabriel Luiz Freitas Almeida
d5577c78a4
build(deps): bump aiohttp from 3.8.4 to 3.8.5 (#664) 2023-07-20 13:23:49 -03:00
dependabot[bot]
608445eb73
build(deps): bump aiohttp from 3.8.4 to 3.8.5
Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.8.4 to 3.8.5.
- [Release notes](https://github.com/aio-libs/aiohttp/releases)
- [Changelog](https://github.com/aio-libs/aiohttp/blob/v3.8.5/CHANGES.rst)
- [Commits](https://github.com/aio-libs/aiohttp/compare/v3.8.4...v3.8.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-20 16:19:32 +00:00