Commit graph

2,427 commits

Author SHA1 Message Date
anovazzi1
b656efba7d fix(tabsContext.tsx): add checkOldEdgesHandles function to ensure that only old edges with invalid handles are updated
fix(reactflowUtils.ts): rename checkEdgesHandles function to checkOldEdgesHandles for clarity
2023-08-04 16:04:52 -03:00
Cristhian Zanforlin Lousa
e2f0f2069e 🐛 fix(reactflowUtils.ts): prevent default behavior and stop propagation of keyboard event when pressing Ctrl + Backspace on input value that matches block or ends with a space character to improve user experience 2023-08-04 16:04:15 -03:00
anovazzi1
d6168cabde feat(reactflowUtils.ts): add checkEdgesHandles function to validate if any of the handles in an array of edges are not a JSON string
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.
2023-08-04 15:39:14 -03:00
anovazzi1
d7516e17e4 update json stringy and parse procces to scape some characters 2023-08-04 15:22:30 -03:00
anovazzi1
ee196210f2 fix(tabsContext.tsx): add missing import statement for updateEdgesHandleIds function
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
2023-08-04 14:52:44 -03:00
anovazzi1
736bbf93f2 fix(GenericNode/index.tsx): fix indentation in map function for validationStatus.params
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
2023-08-04 14:33:42 -03:00
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
Lucas Oliveira
87a2e63f79 Fixed chat message size 2023-08-04 12:47:21 -03:00
Lucas Oliveira
b9d433b37c Fixed break words on all code 2023-08-04 12:34:25 -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
d2c2fe6db0 added some types in problematic points 2023-08-03 18:35:13 -03:00
Igor Carvalho
1c74ad7a65 Fix more type errors 2023-08-03 17:46:55 -03:00
Cristhian Zanforlin Lousa
75e25ad67f Merge branch 'dev' into bugfix-eventprop 2023-08-03 15:30:39 -03:00
Cristhian Zanforlin Lousa
9d3018ed62 Merge branch 'dev' into bugfix-eventprop 2023-08-03 15:29:59 -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
Igor Carvalho
565a62d87c remove console.log 2023-08-02 19:09:14 -03:00
Igor Carvalho
5e65397773 refactor: Reduce errors on types 2023-08-02 19:08:39 -03:00
Igor Carvalho
a4319eaa43 Merge dev into types_refactor 2023-08-02 14:30:10 -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
dbcd613251 Revert "Removed unused console log"
This reverts commit da7391e783.
2023-08-02 12:07:08 -03:00
Cristhian Zanforlin Lousa
4f2fc11045 🔥 refactor(App.tsx): remove unused code related to preventing control+backspace event
The code related to preventing the control+backspace event in the application was removed as it was no longer needed.
2023-08-02 11:52:33 -03:00
Lucas Oliveira
da7391e783 Removed unused console log 2023-08-02 11:44:35 -03:00
Lucas Oliveira
f5cb771018 Fixed bug of fastavro version and form modal memory keys 2023-08-02 11:39:17 -03:00
Cristhian Zanforlin Lousa
89671a8859 🐛 fix(App.tsx): add support for preventing control+backspace event on the application to improve user experience 2023-08-01 23:21:58 -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
Cristhian Zanforlin Lousa
8c2ce3f209 🔀 merge(frontend): resolve merge conflict in reactflowUtils.ts file
🐛 fix(frontend): remove unnecessary merge conflict markers in reactflowUtils.ts file
2023-08-01 20:21:06 -03:00
Cristhian Zanforlin Lousa
2f1f3ee9d8 🐛 fix(App.tsx): prevent default behavior of Ctrl+Backspace key combination to improve user experience
🐛 fix(AccordionComponent/index.tsx): prevent default behavior of Backspace key to improve user experience

🐛 fix(floatComponent/index.tsx): prevent default behavior of Backspace key to improve user experience

🐛 fix(inputComponent/index.tsx): prevent default behavior of Backspace key to improve user experience

🐛 fix(inputListComponent/index.tsx): prevent default behavior of Ctrl+Backspace key combination to improve user experience

🐛 fix(intComponent/index.tsx): prevent default behavior of Backspace key to improve user experience

🐛 fix(genericModal/index.tsx): prevent default behavior of Backspace key to improve user experience
2023-08-01 20:15:54 -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
1d20a91b6e fix csv file upload bug 2023-08-01 18:53:47 -03:00
Gabriel Luiz Freitas Almeida
7e8495efc2 formatting 2023-08-01 15:45:06 -03:00
Gabriel Luiz Freitas Almeida
d7a13755b3
Merge branch 'dev' into python_custom_node_component 2023-08-01 15:31:44 -03:00
Lucas Oliveira
baf86152db Minor bug fixes 2023-08-01 10:55:20 -03:00
Gabriel Luiz Freitas Almeida
68bd9ce4da 🐛 fix(styleUtils.ts): update the label for the 'unknown' node to 'Other' for better clarity and consistency 2023-07-31 18:32:24 -03:00
Lucas Oliveira
af083f24d3 Fixed modal saving changes when not supposed to 2023-07-31 17:44:55 -03:00
Lucas Oliveira
1687824453 Optimized code 2023-07-31 14:01:54 -03:00
Lucas Oliveira
ac46fff761 Formattef code 2023-07-31 10:53:42 -03:00
Lucas Oliveira
2720d27e30 Fixed error showing when not supposed to 2023-07-31 10:53:03 -03:00
Lucas Oliveira
ce2f750626 Optimized code 2023-07-31 10:50:51 -03:00