-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: parameterComponent in GenericNode #3220
Conversation
The `isUserChange` parameter in the `setNode` function of the `FlowStoreType` interface has been updated to be optional. This change improves the flexibility and usability of the function.
The NodeInputField component has been added to the GenericNode component. This component is responsible for rendering input fields for nodes in the UI. It improves the functionality and user experience of the GenericNode component.
Pull Request Validation ReportThis comment is automatically generated by Conventional PR Whitelist Report
Result Pull request does not satisfy any enabled whitelist criteria. Pull request will be validated. Validation Report
Result Pull request is invalid. Reason
Last Modified at 06 Aug 24 21:50 UTC |
This pull request is automatically being deployed by Amplify Hosting (learn more). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only some suggestions for improvement. I'm aware the code has just been transfered from one component to two, but these changes should be easy to make and should make the code a lot more readable.
src/frontend/src/CustomNodes/GenericNode/components/NodeInputField/index.tsx
Show resolved
Hide resolved
src/frontend/src/CustomNodes/GenericNode/components/NodeInputField/index.tsx
Show resolved
Hide resolved
src/frontend/src/CustomNodes/GenericNode/components/NodeOutputfield/index.tsx
Outdated
Show resolved
Hide resolved
src/frontend/src/CustomNodes/GenericNode/components/NodeOutputfield/index.tsx
Outdated
Show resolved
Hide resolved
src/frontend/src/CustomNodes/GenericNode/components/NodeOutputfield/index.tsx
Show resolved
Hide resolved
src/frontend/src/CustomNodes/GenericNode/components/NodeOutputfield/index.tsx
Show resolved
Hide resolved
src/frontend/src/CustomNodes/GenericNode/components/NodeOutputfield/index.tsx
Show resolved
Hide resolved
The NodeOutputField component in the GenericNode component has been refactored to improve code organization and maintainability. This refactor enhances the functionality and user experience of the GenericNode component.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
this refactor deletes the parameter component and creates a NodeInputComponent and a NodeOutputComponent