Commit graph

285 commits

Author SHA1 Message Date
cristhianzl
0f0488e59a fix(parameterComponent): update id and data-testid for textarea component to use the name of the parameter instead of index
fix(EditNodeModal): update id and data-testid for textarea component to use the name of the template parameter instead of index
fix(promptModalComponent.spec): update data-testid for textarea components to use the name of the prompt instead of index
fix(group.spec): update data-testid for textarea component to use a more descriptive name instead of index
fix(saveComponents.spec): update data-testid for textarea component to use a more descriptive name instead of index
2024-01-18 18:18:18 -03:00
cristhianzl
a6f25e97b8 fix(parameterComponent): add isMinimized prop to ParameterComponent to control the display of a component when minimized
feat(GenericNode): add isMinimized state to control the display of components when the node is minimized
fix(nodeToolbarComponent): set isMinimized state based on showNode prop to control the display of components when the node is minimized
2024-01-17 20:40:39 -03:00
anovazzi1
84160ce86e Fix formatting and remove unused code 2024-01-17 17:29:15 -03:00
Lucas Oliveira
c3a0dfbd97 Fixed handles not showing when changing the output of the custom code 2024-01-17 19:27:58 +01:00
anovazzi1
cbea369c2c Update setFilterEdge references in code 2024-01-17 19:27:26 +01:00
anovazzi1
e9f5ad4017 Refactor code formatting 2024-01-08 15:35:40 -03:00
anovazzi1
6aaad2d2cd Revert "code format"
This reverts commit 8a0b240a7f.
2024-01-08 15:00:42 -03:00
anovazzi1
8a0b240a7f code format 2024-01-08 13:51:22 -03:00
anovazzi1
c7435c0c49 Revert "Refactor code and fix formatting issues"
This reverts commit 334ec24addf783990850b835d911ac778dfce6a2.
2024-01-08 13:39:32 -03:00
anovazzi1
f8f71fb603 Refactor code and fix formatting issues 2024-01-08 13:39:32 -03:00
Lucas Oliveira
6abac9782d Fixed ctrl+z not working inside input 2024-01-06 11:45:33 -03:00
Lucas Oliveira
b4f7285b33 Implemented undoRedo on Zustand 2024-01-06 11:34:36 -03:00
Lucas Oliveira
d44648d6c1 added saveFlow function to Zustand state and implemented it on the project 2024-01-06 00:27:36 -03:00
Lucas Oliveira
118e425d68 added flows variable and current flow and state to zustand 2024-01-05 23:05:32 -03:00
Lucas Oliveira
03d7020185 Implemented types context at Zustand and at the whole project 2024-01-05 21:07:18 -03:00
Lucas Oliveira
6a6d11447b Get types done at App.tsx and fixed handle position 2024-01-05 18:13:51 -03:00
anovazzi1
ac448bdd09 code refactor 2024-01-05 17:08:12 -03:00
Lucas Oliveira
de5e464e99 Removed AlertContext from all files 2024-01-05 13:16:01 -03:00
Lucas Oliveira
cc776b3196 Implemented Zustand Alert and changed all the usages 2024-01-05 13:14:00 -03:00
Lucas Oliveira
a75d70b49c Fixed typing and naming of zustand functions 2024-01-05 12:17:52 -03:00
Lucas Oliveira
503e7766ba changed useFlow declaration from destructuring to selector to improve performance 2024-01-05 11:49:07 -03:00
Lucas Oliveira
75326cad27 Changed every flowsContext to useFlow 2024-01-05 11:20:02 -03:00
anovazzi1
c32a7f9f11 Fix formatting and remove unused imports 2024-01-04 15:58:29 -03:00
Lucas Oliveira
8728e4a0ea removed dataRef 2023-12-30 21:10:05 -03:00
Lucas Oliveira
f6bd5a4e4a Removed all reactFlowInstance nodes and edges settings. Centralized flow saving. 2023-12-30 20:50:51 -03:00
Lucas Oliveira
6e2673e1d5 Fix handleNodeClass and handleOnNewValue to use interceptor saving, added cleanEdges on interceptor 2023-12-30 19:31:13 -03:00
Lucas Oliveira
5c1c613c76 Removed reactFlowInstance and changed to the interceptor function, validate connection not working 2023-12-29 23:21:53 -03:00
Lucas Oliveira
54064737e8 Merge branch 'bug/component_share' into dev 2023-12-10 22:35:20 -03:00
Gabriel Luiz Freitas Almeida
f4628db481 Fix range_spec to rangeSpec 2023-12-10 16:50:38 -03:00
Gabriel Luiz Freitas Almeida
154205b0cd Add rangeSpec to FloatComponent 2023-12-10 11:18:25 -03:00
Lucas Oliveira
3f0b999266 added setTimeout to fix state not being updated at Prompt 2023-12-10 01:47:53 -03:00
Lucas Oliveira
06e17ada01 Fixed name and description for Custom Component when they are empty 2023-12-09 21:58:20 -03:00
cristhianzl
76adfda7fe fix(parameterComponent): fix missing dependency in useEffect hook causing stale data reference
fix(parameterComponent): update data reference when value changes to ensure consistency
fix(EditNodeModal): set modal context open state when modal opens to trigger re-rendering
2023-12-09 11:29:14 -03:00
Lucas Oliveira
82ef6bc72a Fixed state handling of Prompt Component, undo working 2023-12-09 00:33:51 -03:00
cristhianzl
9a92a291ca fix(parameterComponent): add data-testid attribute to textarea and input elements for easier testing
fix(GenericNode): add data-testid attribute to div element for easier testing
fix(textAreaComponent): add data-testid attribute to div element for easier testing
fix(EditNodeModal): add data-testid attribute to textarea element for easier testing
fix(genericModal): add data-testid attribute to span element for easier testing
fix(flowPage.spec): comment out unnecessary code
fix(keyPairListComponent.spec): add click event to div element for easier testing
fix(nestedComponent.spec): comment out unnecessary code
fix(promptModalComponent.spec): comment out unnecessary code
fix(inputComponent.spec): add click event to div element for easier testing
fix(toggleComponent.spec): add click event to div element for easier testing
2023-12-07 15:42:26 -03:00
Lucas Oliveira
0fc773ecee Update node state when changing something, updated back button to act like one 2023-12-04 17:38:38 -03:00
cristhianzl
c8c899d1ad fix(parameterComponent): import cloneDeep from lodash to fix missing import error
feat(parameterComponent): add support for process.env.PORT environment variable to be able to run app on a configurable port
fix(PageComponent): add conditional logic to fit the view based on the number of nodes in the flow
2023-12-01 16:44:37 -03:00
Lucas Oliveira
a0c5887d9a Fixed custom component only updating when dragging it 2023-11-29 18:00:24 -03:00
Lucas Oliveira
47885cd5f0 Removed unused console.log and fixed takeSnapshot logic 2023-11-29 16:42:45 -03:00
Lucas Oliveira
5e3bdfbb24 fixed parameterComponent with the new state management 2023-11-29 14:04:16 -03:00
anovazzi1
0f9827564e refactor(parameterComponent): remove unused 'suffixes' prop from ParameterComponent
refactor(codeTabsComponent): remove unused 'suffixes' prop from CodeTabsComponent
refactor(inputFileComponent): remove unused 'suffixes' prop from InputFileComponent
refactor(editNodeModal): remove unused 'suffixes' prop from EditNodeModal
refactor(types): remove unused 'suffixes' prop from FileComponentType
2023-11-29 10:12:40 -03:00
Lucas Oliveira
7ee1ad03f4 Merge remote-tracking branch 'origin/feature/store' into bug/undo-copy 2023-11-28 10:59:04 -03:00
cristhianzl
ea5ddc0ed5 fix(components): fix dropdown component id attribute to include index for uniqueness
fix(components): fix dict component id attribute to include index for uniqueness
fix(components): fix code area component id attribute to include id for uniqueness
fix(modals): fix edit node modal dict component id attribute to include id for uniqueness
fix(modals): fix dict area modal save button data-testid attribute for testing
fix(pages): fix node toolbar component class name for more options button
fix(types): add id property to dropdown component type
fix(types): add id property to dict component type
feat(tests): add end-to-end test for dropdown component
feat(tests): add end-to-end test for dict component
feat(tests): add end-to-end test for node toolbar component
feat(tests): add end-to-end test for nested component
feat(tests): add input component test
feat(tests): add toggle component test
2023-11-27 16:29:43 -03:00
Gabriel Luiz Freitas Almeida
42bd345162 Merge branch 'dynamic_field' into feature/store 2023-11-24 12:51:41 -03:00
igorrCarvalho
7e4dd16881 Feat: Add option to replace saved component or create a new one using confirmation modal 2023-11-23 22:06:07 -03:00
anovazzi1
037f7f5b1b refactor for field types 2023-11-23 21:33:30 -03:00
Lucas Oliveira
807ea46464 Merge branch 'feature/store' into bug/undo-copy and fixed edit node modal 2023-11-23 14:39:53 -03:00
anovazzi1
3db17aa7b6 fix(parameterComponent): update disabled logic to include proxy property in the comparison
fix(sideBarDraggableComponent): remove unnecessary line breaks and update deleteComponent function call
2023-11-22 22:07:33 -03:00
Gabriel Luiz Freitas Almeida
c84d93fa5c 🎨 style(parameterComponent): improve CSS for dropdown and refresh button in ParameterComponent
🐛 fix(parameterComponent): add conditional rendering for refresh button based on data.node.template[name].refresh value
2023-11-21 16:42:56 -03:00
Gabriel Luiz Freitas Almeida
df5175f746 🐛 fix(parameterComponent/index.tsx): add error handling when updating custom component values
 feat(parameterComponent/index.tsx): add refresh button to update custom component values
2023-11-21 16:09:13 -03:00