Commit graph

6,933 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
cdbf7b05eb Merge remote-tracking branch 'origin/dev' into bug/component_share 2023-12-10 11:58:13 -03:00
Gabriel Luiz Freitas Almeida
49d715814e
Remove to_dict method in favor or pydantic implementation (#1190) 2023-12-10 11:57:07 -03:00
Gabriel Luiz Freitas Almeida
e440e73714 Update frontend node with raw frontend data 2023-12-10 10:08:43 -03:00
Gabriel Luiz Freitas Almeida
8625a29dc3 Remove unused variable and update API call 2023-12-10 10:07:57 -03:00
Gabriel Luiz Freitas Almeida
05f3faa055 Update display_name in CustomComponent 2023-12-10 09:33:31 -03:00
Lucas Oliveira
091ef74a75 formatting 2023-12-10 01:48:50 -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
81a04d0243 Fixed state not being saved on connect 2023-12-10 00:59:04 -03:00
Gabriel Luiz Freitas Almeida
f275471285 Remove redundant code and update default values
for template fields
2023-12-10 00:08:28 -03:00
Gabriel Luiz Freitas Almeida
61673d7bf9 Add field serializer for display name in
CustomComponentFrontendNode
2023-12-10 00:08:21 -03:00
Gabriel Luiz Freitas Almeida
af7c1c614d 🐛 fix(custom_components.py): change display_name attribute type from str to Optional[str] to allow for None value
🔀 refactor(custom_components.py): remove unused to_dict_nameless method and update to_dict method signature to specify return type
2023-12-09 23:37:52 -03:00
Gabriel Luiz Freitas Almeida
27b274c7ac 🔧 chore(types.py): remove unused import statement for logger to improve code cleanliness
🔧 chore(types.py): reformat import statements to improve readability and adhere to PEP8 guidelines
🔧 chore(types.py): remove unused optional parameter 'nameless' from build_frontend_node function
2023-12-09 23:37:44 -03:00
Gabriel Luiz Freitas Almeida
67fc507a96 🔨 refactor(endpoints.py): remove unnecessary 'nameless' parameter from build_custom_component_template function calls 2023-12-09 23:37:32 -03:00
Gabriel Luiz Freitas Almeida
628855c50d Update template files with new fileTypes field 2023-12-09 23:23:14 -03:00
Gabriel Luiz Freitas Almeida
72a16ef607 Refactor code by removing unused to_dict() methods 2023-12-09 23:23:06 -03:00
Gabriel Luiz Freitas Almeida
53a0566f8c Refactor code to use model_dump method for adding
new custom field
2023-12-09 23:22:49 -03:00
Lucas Oliveira
9cfcdbad9e Added nameless to dict 2023-12-09 22:50:34 -03:00
Lucas Oliveira
14efa160f1 Fixed node name not changing on Share modal 2023-12-09 22:10:27 -03:00
Lucas Oliveira
06e17ada01 Fixed name and description for Custom Component when they are empty 2023-12-09 21:58:20 -03:00
Lucas Oliveira
66428b730e Changed naming on share modal 2023-12-09 20:22:06 -03:00
Lucas Oliveira
abf58c5224 Fixed group description edit message and removed ability to change name on Share modal and fixed Saving on custom component 2023-12-09 20:09:04 -03:00
Gabriel Luiz Freitas Almeida
3c955de5e3 Refactor field serialization and add model
serialization in Template and FrontendNode classes
2023-12-09 18:11:51 -03:00
Gabriel Luiz Freitas Almeida
0cca8efebd Update agent field types in agents.py 2023-12-09 18:11:38 -03:00
cristhianzl
e269fdf986 fix(shareModal/index.tsx): fix typo in variable name 'unavaliableNames' to 'unavailableNames' for better readability
feat(shareModal/index.tsx): add confirmation modal to prompt user to replace existing component with current one if name already exists
2023-12-09 11:41:04 -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
cristhianzl
3b988da630 fix(shareModal/index.tsx): fix typo in unavailableNames variable name to unavailableNames for better readability
refactor(shareModal/index.tsx): update ConfirmationModal title to "Replace" and remove titleHeader prop for consistency
refactor(shareModal/index.tsx): update ConfirmationModal confirmationText to "Replace" for better clarity
refactor(shareModal/index.tsx): update ConfirmationModal icon to "SaveAll" for better visual representation
refactor(shareModal/index.tsx): update ConfirmationModal size to "x-small" for better UI consistency
refactor(shareModal/index.tsx): update ConfirmationModal index to 6 for proper positioning in the modal stack
refactor(shareModal/index.tsx): update ConfirmationModal onCancel prop to an empty function for consistency
2023-12-09 10:43:50 -03:00
Lucas Oliveira
7d833b1f97 Fixed not being able to delete more than one component on the sidebar 2023-12-09 01:05:20 -03:00
Lucas Oliveira
31c40cbe19 Cleaned search bar when filtering by edge 2023-12-09 01:01:45 -03:00
Lucas Oliveira
eee8a4591f Fixed overflow at card description 2023-12-09 00:53:40 -03:00
Lucas Oliveira
82ef6bc72a Fixed state handling of Prompt Component, undo working 2023-12-09 00:33:51 -03:00
Lucas Oliveira
fb3c1df882 added is_component field to allow store component overwrite 2023-12-08 23:28:25 -03:00
Lucas Oliveira
47ba7bbc6a Change onMove to set tabs state 2023-12-08 23:23:41 -03:00
cristhianzl
2ecadca58f fix(components): fix loading screen logic and add delay to improve user experience
The loading screen was not working correctly due to incorrect logic. The variable `loadingScreen` was not being properly set to `false` when the data was loaded. This has been fixed by changing the condition in the JSX code from `isLoading` to `loadingScreen`.

Additionally, a delay of 600 milliseconds has been added to the loading screen using the `useEffect` hook. This delay gives the user a better visual experience by showing the loading screen for a short period of time before displaying the data.

These changes improve the user experience by providing a more accurate loading screen and a smoother transition when loading data.
2023-12-08 19:59:29 -03:00
cristhianzl
c6eb90c00c fix(GenericNode/index.tsx): import alertContext from correct file path to fix compilation error
feat(alertContext.tsx): add modalContextOpen state and setModalContextOpen function to manage modal context open state
fix(genericModal/index.tsx): add useEffect to update modalContextOpen state when modalOpen prop changes
feat(typesContext/index.ts): add modalContextOpen state and setModalContextOpen function to typesContext
2023-12-08 19:45:25 -03:00
Lucas Oliveira
8e4c701ff3 Save Flow - update name and description for actual flow too 2023-12-08 19:19:54 -03:00
Lucas Oliveira
6bb94faeb4 Merge branch 'bug/minimize_handle' into dev 2023-12-08 19:14:06 -03:00
Lucas Oliveira
d6ea72cbea Fixed Flows state not being updated always 2023-12-08 19:10:32 -03:00
cristhianzl
6470a46008 refactor(flowsContext.tsx): remove unnecessary console.log statement
The console.log statement was removed as it was not providing any useful information and was cluttering the code.
2023-12-08 18:25:24 -03:00
cristhianzl
37f434426f feat(API): add updateFlowStore function to update an existing flow in the Store
fix(shareModal): fix handleShareComponent function to update a component instead of sharing it
2023-12-08 18:18:02 -03:00
cristhianzl
1f81f1a057 fix(flowsContext.tsx): remove unnecessary console.log statement
fix(shareModal/index.tsx): remove unused state variable and update saveFlow function call to use flow variable instead of finding flow by id
2023-12-08 18:17:06 -03:00
Lucas Oliveira
154d77b579 Removed unused console log 2023-12-08 17:11:02 -03:00
Lucas Oliveira
02f68b63a0 Added check when is_component equals null 2023-12-08 17:09:43 -03:00
Lucas Oliveira
5b2ad174f3 Merge remote-tracking branch 'origin/dev' into bug/minimize_handle 2023-12-08 17:01:57 -03:00
Lucas Oliveira
f83a8568a0 Removed minimize transition to fix handle position 2023-12-08 16:57:56 -03:00
anovazzi1
d11719b66a
update an existing flow/component in the Store is now possible (#1189)
feat(API): add updateFlowStore function to update an existing flow in
the Store

feat(shareModal): add functionality to update a shared component or flow
2023-12-08 16:52:20 -03:00
anovazzi1
75e7f7ab46 Merge branch 'dev' into update_component 2023-12-08 16:49:05 -03:00
Lucas Oliveira
d3e6a27d88 Fixed name of component and flow not being the same 2023-12-08 16:43:07 -03:00
anovazzi1
b88968f859 feat(API): add updateFlowStore function to update an existing flow in the Store
feat(shareModal): add functionality to update a shared component or flow
2023-12-08 16:28:51 -03:00
cristhianzl
80c6f7cec6 fix(shareModal/index.tsx): fix conditional rendering of button text to display loader when loadingNames is true
feat(shareModal/index.tsx): add loader animation to button when loadingNames is true to provide visual feedback to the user
2023-12-08 16:05:14 -03:00
cristhianzl
79d7d4ad4b fix(shareModal/index.tsx): make handleShareComponent function asynchronous to ensure proper flow saving before saving flow store 2023-12-08 15:51:42 -03:00