anovazzi1
4ec6a283f3
refactor(tabsContext.tsx): update the logic for modifying the sourceHandle property of edges in the TabsProvider component
...
The previous implementation used string manipulation to modify the sourceHandle property, but it has been refactored to use JSON parsing and stringifying for better readability and maintainability. The sourceHandle property is now parsed into an object, and the baseClasses property is updated by concatenating it with the values from the template's "base_classes" property. The modified sourceHandle object is then stringified and assigned back to the edge.sourceHandle property.
2023-08-04 14:12:01 -03:00
anovazzi1
20b28a09a0
fix(tabsContext.tsx): import Edge from reactflow to fix compilation error
...
fix(tabsContext.tsx): import sourceHandleType and targetHandleType from flow types to fix type errors
refactor(tabsContext.tsx): update usage of Edge type in forEach loop to fix type error
refactor(tabsContext.tsx): update usage of sourceHandle and targetHandle to use JSON.parse and JSON.stringify to fix type errors
refactor(tabsContext.tsx): update className and animated properties of edges to use targetHandleObject.type instead of splitting targetHandle string
refactor(tabsContext.tsx): update updateEdges function to use Edge type and targetHandleObject to fix type errors
refactor(tabsContext.tsx): update sourceHandle in forEach loop to use JSON.stringify instead of splitting and joining the string
refactor(tabsContext.tsx): update sourceHandle in forEach loop to use JSON.stringify instead of splitting and joining the string
2023-08-04 14:08:51 -03:00
anovazzi1
10a22197a4
Merge branch 'dev' into newHandleId
2023-08-04 13:30:39 -03:00
anovazzi1
4aa6810af6
fix(exportModal/index.tsx): add state for invalidName to handle invalid flow names in the export modal
...
feat(exportModal/index.tsx): pass invalidName state and setInvalidName function as props to EditFlowSettings component to handle invalid flow names in the export modal
2023-08-03 18:40:17 -03:00
anovazzi1
2cc74f2360
refactor(ModalField): remove unused 'id' prop to improve code readability and maintainability
2023-08-02 22:45:26 -03:00
anovazzi1
c1fc501e62
refactor(NodeModal): remove unnecessary id attribute from input element
...
The id attribute was not being used and was unnecessary, so it was removed to simplify the code.
2023-08-02 22:44:41 -03:00
anovazzi1
5afc10f721
update validateNode function to use handle id as JSON
2023-08-02 22:39:42 -03:00
anovazzi1
3a185d915d
fix(reactflowUtils.ts): import Edge from reactflow to fix type error
...
refactor(reactflowUtils.ts): update updateIds function to handle changes in edge sourceHandle and targetHandle properties
2023-08-02 22:31:47 -03:00
anovazzi1
db473f6f0d
migrate isValidConnection to handle in JSON format
2023-08-02 22:23:16 -03:00
anovazzi1
32bcb08bdb
fix(reactflowUtils.ts): refactor cleanEdges function to use JSON.parse and JSON.stringify for targetHandle and sourceHandle variables to improve readability and maintainability
2023-08-02 21:41:30 -03:00
anovazzi1
19b5a05af0
fix(reactflowUtils.ts): import Edge from reactflow to fix type error and improve code semantics
...
feat(reactflowUtils.ts): add getConnectedNodes function to retrieve connected nodes based on an edge
fix(styleUtils.ts): remove unused getConnectedNodes function
2023-08-02 21:27:13 -03:00
Gabriel Luiz Freitas Almeida
81f195e8da
🔧 chore(constants.py): remove unused classes "Runnable" and "Generic" from CLASSES_TO_REMOVE list
...
🔇 chore(test_chains_template.py): comment out unused test_chains_settings test function
2023-08-02 15:57:45 -03:00
Gabriel Luiz Freitas Almeida
22f75bf804
🔺 chore(pyproject.toml): update langchain dependency version to ^0.0.250 for compatibility and bug fixes
2023-08-02 15:55:26 -03:00
Gabriel Luiz Freitas Almeida
5d75d46aef
🐛 fix(loading.py): handle invalid JSON strings in kwargs by removing the key from params
2023-08-02 15:54:57 -03:00
Lucas Oliveira
214aef76bf
Fixed formModal
2023-08-02 12:07:45 -03:00
Lucas Oliveira
3733743da3
Revert "Fixed bug of fastavro version and form modal memory keys"
...
This reverts commit f5cb771018 .
2023-08-02 12:07:21 -03:00
Lucas Oliveira
4254d5d751
Revert "poetry lock fixed"
...
This reverts commit aa33cbd6cf .
2023-08-02 12:07:16 -03:00
Lucas Oliveira
dbcd613251
Revert "Removed unused console log"
...
This reverts commit da7391e783 .
2023-08-02 12:07:08 -03:00
Lucas Oliveira
da7391e783
Removed unused console log
2023-08-02 11:44:35 -03:00
Lucas Oliveira
aa33cbd6cf
poetry lock fixed
2023-08-02 11:40:35 -03:00
Lucas Oliveira
f5cb771018
Fixed bug of fastavro version and form modal memory keys
2023-08-02 11:39:17 -03:00
Gabriel Luiz Freitas Almeida
968fef6dfa
⬆️ chore(pyproject.toml): add fastavro as a dependency in the project
...
📦 feat(pyproject.toml): add fastavro as a new dependency to enable working with Avro data format
2023-08-02 10:58:07 -03:00
anovazzi1
44686dda06
fix(GenericNode/index.tsx): fix indentation of Tooltip component to improve code readability
2023-08-01 22:19:47 -03:00
anovazzi1
fbca8497d6
refactor(reactflowUtils.ts): improve variable names and add type checking for source and target nodes in updateEdgesHandleIds function
...
fix(reactflowUtils.ts): fix assignment of newTarget in updateEdgesHandleIds function to correctly set type, fieldName, id, and inputTypes properties
fix(reactflowUtils.ts): fix assignment of newSource in updateEdgesHandleIds function to correctly set dataType, id, and baseClasses properties
fix(reactflowUtils.ts): fix assignment of sourceHandle and targetHandle in updateEdgesHandleIds function to correctly stringify newSource and newTarget objects
2023-08-01 22:09:32 -03:00
anovazzi1
75c4d3e85c
refactor(reactflowUtils.ts): add type definitions for updateEdgesHandleIdsType to improve code readability and maintainability
...
feat(reactflowUtils.ts): implement updateEdgesHandleIds function to update handle ids in edges based on node changes
2023-08-01 22:09:32 -03:00
anovazzi1
1e3c918880
update old handle as string to json format and types to easily use the new id as json
2023-08-01 22:09:07 -03:00
anovazzi1
6604ef5351
created type for HandleIds
2023-08-01 22:08:01 -03:00
Gabriel Luiz Freitas Almeida
3a76d2de59
🐛 fix(parameterComponent): change default value for unknown node family to "Other" for better clarity
2023-08-01 19:27:08 -03:00
anovazzi1
ba1fe2c815
Merge branch 'dev' of personal:logspace-ai/langflow into dev
2023-08-01 18:55:30 -03:00
anovazzi1
1d20a91b6e
fix csv file upload bug
2023-08-01 18:53:47 -03:00
Gabriel Luiz Freitas Almeida
9f97ecba25
🐛 fix(__main__.py): fix default value of components_path option to point to the correct directory
...
✨ feat(__main__.py): add support for LANGFLOW_COMPONENTS_PATH environment variable to specify the directory containing custom components
2023-08-01 18:12:02 -03:00
Gabriel Luiz Freitas Almeida
f4271ba4d9
🔧 chore(settings.py): add debug logs to track the behavior of components_path configuration
...
✨ feat(settings.py): add support for LANGFLOW_COMPONENTS_PATH environment variable to add custom components path to components_path
2023-08-01 18:09:01 -03:00
Gabriel Luiz Freitas Almeida
3e465f6df3
📝 docs(flow-runner.mdx): update example code formatting and fix indentation for better readability
...
🖼️ chore(flow_runner_code.png): update flow_runner_code.png image
2023-08-01 17:49:58 -03:00
Gabriel Luiz Freitas Almeida
11854ccdb3
🔧 chore(constants.py): update default custom component code to improve readability and remove unnecessary imports
...
✨ feat(constants.py): update display name and description of the custom component to improve clarity and user experience
🔧 chore(custom_components.py): update display name of the custom component to improve clarity and user experience
2023-08-01 17:44:02 -03:00
Lucas Oliveira
6450ec0e7b
Changed Display Name from custom_components
2023-08-01 16:41:16 -03:00
Gabriel Luiz Freitas Almeida
c112a42292
Merge branch 'main' into dev
2023-08-01 16:02:03 -03:00
Gabriel Luiz Freitas Almeida
7e8495efc2
formatting
2023-08-01 15:45:06 -03:00
Gabriel Luiz Freitas Almeida
6c872bf4ac
🐛 fix(custom_component.py): remove unnecessary return type annotation from _class_template_validation method
...
🐛 fix(custom_component.py): handle case when code is empty in is_check_valid method to avoid potential error
🐛 fix(types.py): change field_value parameter type from str to Any in add_new_custom_field function to allow any value type
2023-08-01 15:44:23 -03:00
Gabriel Luiz Freitas Almeida
535e13ca8a
🔖 chore(pyproject.toml): update package version from 0.3.3 to 0.4.0
...
⬆️ chore(pyproject.toml): update langchain dependency from version 0.0.240 to 0.0.249
2023-08-01 15:38:30 -03:00
Gustavo Schaedler
7853749884
Python custom node component ( #610 )
2023-08-01 19:32:49 +01:00
Gabriel Luiz Freitas Almeida
d7a13755b3
Merge branch 'dev' into python_custom_node_component
2023-08-01 15:31:44 -03:00
Gabriel Luiz Freitas Almeida
70f8199287
🐛 fix(types.py): set default value of boolean custom field to False if value is None to prevent potential errors
2023-08-01 11:09:04 -03:00
Lucas Oliveira
baf86152db
Minor bug fixes
2023-08-01 10:55:20 -03:00
Gabriel Luiz Freitas Almeida
2f9ffd1d48
🐛 fix(flow-runner.mdx): handle case where document is a list and extract the first element to ensure compatibility with the flow
...
🔨 refactor(flow-runner.mdx): remove unnecessary comment and unused variable to improve code readability and maintainability
2023-07-31 21:42:08 -03:00
Gabriel Luiz Freitas Almeida
8a6a953179
📝 docs(custom.mdx): add description of the 'repr_value' attribute in the CustomComponent class
...
📝 docs(custom-component.mdx): update example code and description of the 'repr_value' attribute in the DocumentProcessor class
2023-07-31 21:23:15 -03:00
Gabriel Luiz Freitas Almeida
99ed85c03c
🐛 fix(directory_reader.py): handle SyntaxError when checking if type hint is used but not imported
...
🔍 refactor(directory_reader.py): improve error handling when checking if type hint is used but not imported
2023-07-31 21:11:41 -03:00
gustavoschaedler
267d543420
🐛 fix(custom_component.py): update error message to include the specific type hint that is used but not imported in the code
...
🐛 fix(directory_reader.py): update error message to include the specific type hint that is used but not imported in the code
2023-07-31 23:22:12 +01:00
gustavoschaedler
082a61eadd
🐛 fix(custom_component.py): fix error message typo in CustomComponent class
...
🐛 fix(directory_reader.py): fix error message typo in DirectoryReader class
2023-07-31 23:07:02 +01:00
Gabriel Luiz Freitas Almeida
15643263a8
🔧 chore(docusaurus.config.js): update remarkCodeHike configuration to use the "github-light" theme for better code highlighting aesthetics
2023-07-31 18:58:51 -03:00
Gabriel Luiz Freitas Almeida
f1f1759f02
📝 docs(multiple-vectorstores.mdx): fix code block language from 'txt' to 'text' for clarity and consistency
2023-07-31 18:54:46 -03:00