The checkEdgesHandles function is added to the reactflowUtils.ts file. This function takes an array of edges as input and returns true if any of the handles in the edges are not a JSON string. It checks each edge in the array and verifies if the sourceHandle and targetHandle properties exist and contain a JSON string. If any of the handles are not a JSON string, the function returns true. This function is useful for validating the integrity of the handles in the edges before further processing.
fix(tabsContext.tsx): update processFlowEdges function to call updateEdgesHandleIds and update the edges in the flow data
refactor(reactflowUtils.ts): update updateEdgesHandleIds function to return the updated edges instead of using setEdges function
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent key
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent name
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent info
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent color
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent key
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent data
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent setData
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent key
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent data
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent setData
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent color
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent key
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent data
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent setData
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent color
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent key
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent data
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent setData
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent color
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent key
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent data
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent setData
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent color
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent key
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent data
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent setData
fix(GenericNode/index.tsx): fix indentation in map function for
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.
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
feat(exportModal/index.tsx): pass invalidName state and setInvalidName function as props to EditFlowSettings component to handle invalid flow names in the export modal
feat(reactflowUtils.ts): add getConnectedNodes function to retrieve connected nodes based on an edge
fix(styleUtils.ts): remove unused getConnectedNodes 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
✨ 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
🐛 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