-
Notifications
You must be signed in to change notification settings - Fork 350
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
Add indicator for invalid node properties #752
Conversation
Adds a small red caret to nodes with invalid properties. Only checks for having a runtime image chosen for now.
One thing here is the question of using As for the icon, how about something more like a Note that the icon is more like a suggestion. |
Allows for using different types of message 'severity', i.e. error, warning, success, info. Also adds behavior of dismissing the message when a new node is created on the canvas.
Co-authored-by: Karla Spuldaro <karla.spuldaro@ibm.com>
Change the icon used and reposition it
updated the icon used and its position.
|
The update location of the icon is better, but looking at the carbon icons I think a "filled" icon would be slightly easier to see at that size, like "error filled" or "warning filled" I'll do a more detailed review soon |
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.
I ran this locally and feature-wise it works great, but I do have a couple of UX comments.
In addition to my previous comment about using a "filled" icon I also found myself trying to click on the error icon in an attempt to figure out what's wrong. Currently this doesn't do anything, perhaps we should try to tie some functionality into clicking the icon, maybe have it open the tool tip which displays the error? Currently you have to mouse over the node for a couple second for the tooltip to show up, but clicking the node (including the icon) will cause the tooltip to not show until you move the mouse off and onto the node again.
@ajbozarth Hovering on the node should show you the properties and what is wrong there. |
@lresende that is correct, but if a user clicks on it before the tooltip appears it selects the node instead and the tooltip will not appear at that point until a user mouses off and on the node again |
Options for icon: |
Of those three options I would choose the first one (red dot). Is a "filled" version of the second one not an option though? (Edit: I'm thinking specifically if the Error Filled carbon icon) |
since the icon is small i would vote to keep it simple and go with the red dot. |
@vabarbosa @ajbozarth I've been playing around with the different options this morning - thoughts? |
very nice! |
Only shows indicator when the run button is pressed or a property has been updated. Only shows the error message when the run button is pressed.
This PR now depends on #744 for the error alert at the top of the pipeline. After pressing the run button, they look like this: After fixing the properties for one of the nodes, it removes the error indicator for just that node: After updating any of the properties of the nodes, it shows indicators for all nodes without the needed properties. |
Discussion: |
The screenshots and error message look great! Yes, I believe this should apply to export as well. Anything that saves the user time is helpful. |
looks great! a couple points. perhaps the message should read
or something along those lines (other may have better suggestions for the phrasing). i would agree and say similar checks should be done on exporting. however (unless it will cause errors in the backend), i don't believe it should prevent the user from exporting. just warn them so they are aware before they continue. |
Last commit changes name of validation functions to |
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.
just made couple comments
Co-authored-by: Alex Bozarth <ajbozart@us.ibm.com>
Looks good. thanks. |
New feature based on case brought up in #744 - checks for circular references on startup and adds an indicator for all links in a cycle, as well as an error message. Code changesAdds a function Behavior changesHere's what it looks like when there are both invalid links and invalid nodes and you try to run, export, or just open the pipeline: After fixing the cycle, it automatically removes the style from other links: |
@marthacryan this looks great! thank you for the quick turn around. |
Changes the node edge line color to red and add a small red circle to nodes with invalid properties. Currently, it checks for invalid runtime images and circular/recursive pipelines. Co-authored-by: va barbosa <vabarbosa@users.noreply.github.com>
Fixes #653. Adds a small red caret to nodes with invalid properties. Only checks


for having a runtime image chosen for now. Looks like this:
Developer's Certificate of Origin 1.1