Skip to content

Allow upload of custom node files; display node docs/errors in tooltips#72

Merged
reelmatt merged 9 commits intomasterfrom
feature/upload-custom-nodes
Apr 28, 2020
Merged

Allow upload of custom node files; display node docs/errors in tooltips#72
reelmatt merged 9 commits intomasterfrom
feature/upload-custom-nodes

Conversation

@reddigari
Copy link
Collaborator

Matt was right about being able to reuse the FileUpload functionality, but the details were just different enough that it was easier to copy/paste/change into a new component than refactor well. So CustomNodeUpload is mostly duplicated code from FileUpload.

Upon successful upload, the app hits the endpoint for the list of available nodes to show the new one. This GIF shows the functionality, but it failed to capture the file dialog. So the random click in the middle of the screen is actually selecting the file.

2020-04-25 17 31 24

Also in this PR are tooltips to show either the node docstring when hovering over a node menu item, or the missing packages error. I went with @reelmatt's suggestion in #71 and used a warning icon for these failed custom nodes.

2020-04-25 19 03 02

Also made some slight style changes to the node menu items to better match the wireframes, just let me know if we want to go back.

Copy link
Member

@reelmatt reelmatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there's an easy way to get the newlines from the docstring formatted in the tooltip, I think that could help a lot visually. But don't worry about it if it's not a simple change.

Really like the tooltips in general though, and the warning icon is 👍

@reelmatt reelmatt linked an issue Apr 26, 2020 that may be closed by this pull request
@reddigari
Copy link
Collaborator Author

Pushed a commit that pretties up the tooltips (left-aligned, newlines displayed)

Copy link
Collaborator

@diegostruk diegostruk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great!

@reelmatt reelmatt merged commit 647a720 into master Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI: Adding custom Nodes

3 participants