Commit graph

2,427 commits

Author SHA1 Message Date
Cristhian Zanforlin Lousa
144fdbd098 🐛 fix(parameterComponent): fix data mutation by cloning data object before updating it
🐛 fix(parameterComponent): fix data mutation by cloning data object before updating it
🐛 fix(genericModal): remove unnecessary cloning of nodeClass object
🐛 fix(genericModal): fix validation logic for PROMPT type modal
🐛 fix(reactflowUtils): remove console.log statement in handleKeyDown function
2023-09-14 14:18:30 -03:00
Gabriel Luiz Freitas Almeida
70d9742d16 🐛 fix(parameterComponent): fix type comparison for "NestedDict" to improve accuracy and consistency
🐛 fix(EditNodeModal): fix type comparison for "NestedDict" to improve accuracy and consistency
2023-09-14 14:09:06 -03:00
Guangya Liu
888ded02f9 Fixed format pre-check error 2023-09-14 10:17:13 -04:00
Gabriel Luiz Freitas Almeida
63d1e82c80 fix: 🐛 fixes Infinity icon crashing the frontend
There's an issue with the exported Infinity variable, InfinityIcon is an alias and fixes that
2023-09-14 09:36:34 -03:00
Cristhian Zanforlin Lousa
9c4c8f1cf7 🔨 refactor(promptComponent): rename TextAreaComponentType to PromptAreaComponentType for better naming consistency and clarity
🔨 refactor(genericModal): import cloneDeep from lodash to improve code readability and maintainability
🔨 refactor(genericModal): add type annotations to validatePrompt function parameters for better code documentation
🔨 refactor(genericModal): add null check for nodeClass before modifying it in validatePrompt function
🔨 refactor(genericModal): setNodeClass and setModalOpen only if frontend_node is not an empty object in validatePrompt function
🔨 refactor(genericModal): remove console.log statement in catch block of validatePrompt function
🔨 refactor(genericModal): add type annotations to catch block of validatePrompt function for better code documentation
🔨 refactor(types): add PromptAreaComponentType to define the type of PromptAreaComponent props
2023-09-14 09:12:18 -03:00
Gabriel Luiz Freitas Almeida
57cba4233a
Fixed format errors (#903) 2023-09-14 01:29:26 +00:00
Cristhian Zanforlin Lousa
e1bb4b4a24
🐛 fix(genericModal/index.tsx): close modal when template has no varia… (#911)
…bles to prevent user confusion
2023-09-13 22:26:38 -03:00
Cristhian Zanforlin Lousa
887bfb8ee7 🐛 fix(genericModal/index.tsx): close modal when template has no variables to prevent user confusion 2023-09-13 21:42:26 -03:00
Gabriel Luiz Freitas Almeida
c6be7cdecd Merge remote-tracking branch 'origin/main' into dev 2023-09-13 21:32:51 -03:00
igorrCarvalho
21009761f0 Refactor: adjust icon size when node are minimized 2023-09-13 18:23:52 -03:00
igorrCarvalho
b1f874ca03 Fix: Minimize working after add a new handle with promptTemplate 2023-09-13 18:17:01 -03:00
anovazzi1
95767c6594 fix(formModal): import processFlow function from reactflowUtils to fix compilation error
refactor(formModal): replace the usage of processFLow function with processFlow function to correctly process the flow object
2023-09-13 17:57:00 -03:00
anovazzi1
6d04f49443 fix(reactflowUtils.ts): fix nullability issues and improve variable names for better readability
refactor(reactflowUtils.ts): update targetHandle and sourceHandle to use JSON stringified values for better compatibility
2023-09-13 17:50:51 -03:00
igorrCarvalho
c70de1e881 Refactor: Minimize only works with 1 handle node and change minimized node UI 2023-09-13 17:23:35 -03:00
anovazzi1
8e03d95df5 feat(GenericNode): add support for Proxy field in GenericNode component to enable customization of Proxy component for each template field 2023-09-13 17:21:51 -03:00
anovazzi1
07f5342aa8 migrate old edges id format to new edges id fromat on ungroup node 2023-09-13 17:04:07 -03:00
anovazzi1
a7b9cf2cc9 update position on node 2023-09-13 16:17:59 -03:00
anovazzi1
04f2941a7d fix(GenericNode): import XYPosition from reactflow to fix type error
feat(GenericNode): add position prop to GenericNode component to pass the position of the node
fix(nodeToolbarComponent): import updateFlowPosition from reactflowUtils to fix reference error
feat(nodeToolbarComponent): add position prop to NodeToolbarComponent to pass the position of the node
fix(components): import XYPosition from reactflow to fix type error
feat(components): add position prop to nodeToolbarPropsType to pass the position of the node
feat(reactflowUtils): add expandGroupNode function to expand a group node and update the flow
2023-09-13 10:53:43 -03:00
anovazzi1
7de65ed709 feat(nodeToolbarComponent): add "Ungroup" button to the node toolbar when the node is a group
fix(styleUtils.ts): import the "Ungroup" icon from lucide-react to use it in the node toolbar component
2023-09-12 22:13:06 -03:00
anovazzi1
f33acd4685 fix(EditNodeModal): fix incorrect property name in template rendering logic
The property name `display_name` was incorrectly used instead of `name` in the template rendering logic. This has been fixed to correctly display the name of the template parameter.
2023-09-12 21:28:01 -03:00
anovazzi1
9d510e3e4b fix output string of custom component and truncate long Ids on display name 2023-09-12 21:00:42 -03:00
igorrCarvalho
602c12282d Refactor: Change how minimize displays on screen 2023-09-12 20:19:05 -03:00
anovazzi1
e4471886e4 feat(types/api): add 'dynamic' and 'proxy' properties to TemplateVariableType to support dynamic and proxy fields in templates
feat(utils/reactflowUtils): add 'toTitleCase' function to convert strings to title case

refactor(utils/reactflowUtils): update function names and comments

refactor(utils/reactflowUtils): update 'updateGroupNodeTemplate' function to handle 'dynamic' property

refactor(utils/reactflowUtils): update 'mergeNodeTemplates' function to handle 'display_name' and 'dynamic' properties

refactor(utils/reactflowUtils): update 'isHandleConnected' function to handle 'proxy' property

refactor(utils/reactflowUtils): update 'generateNodeFromFlow' function to set 'type' as 'genericNode' instead of 'groupNode'
2023-09-12 18:15:32 -03:00
anovazzi1
42f7821002 fix(parameterComponent/index.tsx): remove unnecessary ts-ignore comments
fix(reactflowUtils.ts): add input_types variable to prevent error when checking for advanced types
2023-09-12 17:17:36 -03:00
Cristhian Zanforlin Lousa
8121dc0a8b 🔨 refactor(dialog.tsx): remove unused IconComponent import and replace it with Cross2Icon from @radix-ui/react-icons
🎨 style(dialog.tsx): update DialogContent className to improve positioning and animation effects
2023-09-12 16:56:53 -03:00
anovazzi1
492ca19fff text update 2023-09-12 16:35:04 -03:00
anovazzi1
90c864fafc refactor(parameterComponent): update text displayed based on the value of the 'left' prop for better clarity and consistency 2023-09-12 16:35:04 -03:00
igorrCarvalho
cd28ae2c59 Refactor: Add header to node tooltips 2023-09-12 16:35:04 -03:00
igorrCarvalho
c03b11ab70 Refactor: Remove description space whem node does not have a space 2023-09-12 16:35:04 -03:00
igorrCarvalho
e38b904af2 Refactor: Remove blank space when node has no description 2023-09-12 16:35:04 -03:00
igorrCarvalho
0c3c7276f1 Feat: Add function to handle minimize 2023-09-12 14:55:02 -03:00
igorrCarvalho
a0c7712b70 Merge branch 'nodesImprovements' into minimizeNode 2023-09-12 14:28:54 -03:00
igorrCarvalho
b06cb9507f Feat: Add minimize icon and conditional render 2023-09-12 14:25:04 -03:00
Guangya Liu
48586fc3e6 Fix format errors 2023-09-12 11:17:11 -04:00
anovazzi1
249cf833fa fix(AdminPage/index.tsx): fix asynchronous handling of updateUser function to properly reset filter and set success data after user update
fix(styleUtils.ts): fix import statement for GradientSparkles component to use curly braces for named import
2023-09-11 18:46:50 -03:00
anovazzi1
732c140fb7 Merge remote-tracking branch 'origin/dev' into feature/profilePage 2023-09-11 18:36:11 -03:00
anovazzi1
22a7f37efb fix(GradientSparkles/index.tsx): remove unnecessary import of Infinity component from lucide-react
fix(GradientSparkles/index.tsx): replace usage of imported Infinity component with inline SVG code to avoid crashing the UI
2023-09-11 18:33:04 -03:00
Lucas Oliveira
64bb977045 Fixed isActive and isSuperuser not changing when creating user 2023-09-11 18:09:22 -03:00
Lucas Oliveira
d09df8a497 Formatting Fixes 2023-09-11 16:07:40 -03:00
Lucas Oliveira
f8ab2f12be Merge branch 'dev' into feature/profilePage 2023-09-11 16:07:17 -03:00
Lucas Oliveira
77e9e79332 Fix on api button 2023-09-11 16:06:27 -03:00
Lucas Oliveira
268906fe49 Minor bug fixes to clean console 2023-09-11 16:05:25 -03:00
igorrCarvalho
c18536d1ff Refactor: Add header to node tooltips 2023-09-11 15:50:18 -03:00
Gabriel Luiz Freitas Almeida
6a477d2dd8
Fix lint error (#886) 2023-09-11 17:27:04 +00:00
Gabriel Luiz Freitas Almeida
327cb0771f 🐛 fix(inputListComponent): handle conversion from string to array for value prop to ensure smooth operation and prevent potential errors 2023-09-11 14:23:35 -03:00
Cristhian Zanforlin Lousa
4c0874ee83 🐛 fix(intComponent): fix comparison bug in onInput event handler to correctly compare input value with min value 2023-09-11 09:22:21 -03:00
Cristhian Zanforlin Lousa
a2eadbedb1 🐛 fix(api.tsx): add conditional check before calling login function to prevent errors when response data is missing access_token or refresh_token 2023-09-11 09:10:44 -03:00
Cristhian Zanforlin Lousa
b832e0844e 🐛 fix(API/index.ts): add condition to check if token exists before making the request to renew access token to prevent errors 2023-09-11 09:08:32 -03:00
anovazzi1
772bfbf1d3 fix(reactflowUtils.ts): fix null pointer error when accessing nested properties in connectedInputNodesOnHandle function 2023-09-10 23:57:22 -03:00
anovazzi1
5933c2cefc fix(PageComponent/index.tsx): fix typo in import statement for scapeJSONParse function
feat(PageComponent/index.tsx): add functionality to generate a new flow and node from a selection and update the nodes and edges accordingly
feat(PageComponent/index.tsx): add validation for selection and display error message if selection is invalid
2023-09-10 23:37:13 -03:00