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
Improve Catalogue visibility #4248
Conversation
packages/node_modules/@node-red/editor-client/src/js/ui/palette-editor.js
Outdated
Show resolved
Hide resolved
packages/node_modules/@node-red/editor-client/src/js/ui/palette-editor.js
Outdated
Show resolved
Hide resolved
packages/node_modules/@node-red/editor-client/src/js/ui/palette-editor.js
Outdated
Show resolved
Hide resolved
I really like the indicator in the module row that shows which catalog it belongs too, but when you switch between the two private catalogs, it's not completely clear that the list has updated. May be worth including the catalog label in all views? That way, you'll see the label change when switching catalog? |
@joepavitt thanks for the feedback.
At first I thought, why waste (white)space - you can see which catalog is selected by the dropdown - however, you are totally right to say it is not obvious the list refreshed if the search results are identical 🤔 - I'll do it 😄 Question(s):Display catalog info regardless?If there is only one catalog:
May be sensible since a user could rightly think they are installing from their own internal curated/own nodes list when in fact, Node-RED was misconfigured and it is showing them the public catalog Should there be an obvious "catalog change visual"?Perhaps also, the list should also be cleared (and replaced with a loading animation) BEFORE even attempting to repopulate? That way, any hiccups dont leave the list populated with incorrect entries. |
I'd say not required to show if only one catalogue.
I like showing off functionality that's available to the user. It hints its a thing, encourages users to look it up and find out more about it. Assists with value-add and feature-discovery, whilst per above, not showing the label if you have only one catalogue, means it's not too crowded if you're not utilising the feature.
Sensible. Assuming the switch is an async change? If so, would be a good move |
Following @joepavitt responses Keep dropdown visible so that users know which catalog they are usingAlways show catalog source when more than 1 catalog to chose from3-catalogs-new.mp4 |
Types of changes
Proposed changes
Notes:
absolute
styling and changed sort texts to icons (see justifications below)absolute
positioning caused scrolling of node lists to reveal empty panel in the vertical tab list - see also: justifications below)Justification:
Due to addition of filter and possibility of longish catalogue names (e.g. "Node-RED Community catalogue") pushing the sorting / refresh buttons down a row AND the editable list having
absolute
positioning, some restructuring was necessary to avoid the search box being pushed below the list. The sort option texts "a-z" and "recent" were updated tofa
icons (like the other sort option), the toolbar buttons were re-jigged into a flexbox to avoid individual buttons wrapping to the next line & a hand full of other unsightly artefacts (thanks @joepavitt)Demos
Before
After
Themed
No catalogues specified in settings.js (i.e. using default Node-RED catalog)
Apart from all the sort buttons now being icons, there is no visible difference - the dropdown catalog selection is not shown
no-catalogs.mp4
3 working catalogues (Node-RED community catalog + 2 custom ones)
Here you can see new catalogue selector in operation
3catalogs.mp4
2 custom catalogues, 1 dead catalogue
Note how the new catalog selection excludes the failed library listing
2ok-1dead-exclude-comunity.mp4
Checklist
grunt
to verify the unit tests pass