-
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
Elyra launcher #782
Elyra launcher #782
Conversation
This seems to be working now, it would be nice to have the icon on |
packages/theme/src/launcher.tsx
Outdated
categories.push(cat); | ||
} | ||
if (cat.key === 'Elyra') { | ||
// change the icon here... |
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.
the category icon is taken from the first item in a category hence the default to the pipeline editor icon.
one possible option to change the icon is to use the iconClass
(property of the command) and set the image accordingly via CSS rather than try to search & replace via the children props
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 am ok with that, are you volunteering to help on the css side?
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 can take a look
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.
would it be worth adding a |
packages/theme/src/launcher.tsx
Outdated
/** | ||
* The known categories of launcher items and their default ordering. | ||
*/ | ||
const KNOWN_CATEGORIES = ['Notebook', 'Console', 'Elyra', 'Other']; |
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.
any reason Elyra
shouldn't immediately follow the Notebook
category (i.e., making it the second category)?
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 thought about even disabling the Console
category, but I am not sure how popular it is. The only reason they are together (Notebook and Console) is because they have a 1:1 relationship in terms of cards/tiles.
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 agree Console
doesn't appear very useful to me. I suppose it might provide a better "scratchpad" kind of experience. I think moving Elyra
up one slot would be good - although when there are lots of kernel types (which typically won't be the case) it could look a little odd since Elyra
will break the 1:1 parallelism that folks are used to. (But that shouldn't be a reason for making the Launcher more useful.)
Co-authored-by: va barbosa <vabarbosa@users.noreply.github.com>
Not a bad idea, as long as the extension creates it, it will show up properly here on the launcher. |
Show the Elyra icon in the Elyra section of the launcher
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 tried this locally and it works great! I agree about the ordering of the sections (Elyra higher than console) but other than that, LGTM.
i wouldn't recommend removing Console but rather just placing it lower in the order (below Elrya). |
After some discussion, looks like it's better just to move the |
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.
With the changes I just committed, this LGTM
@vabarbosa I replaced your fix for the elyra icon with another solution I figured out. |
We should also revisit the launcher interface on the lab side to make it more extensible I guess. |
unless i am misunderstanding, it is are those comments incorrect? is |
@vabarbosa Ah I see where you're confused.
But then when |
Also if you want help with understanding how the code in your second link handle all three cases (really deprecated |
thanks for the clarification |
I guess we are in consensus here. Note that there is still a need to make this area a little more flexible on core and I will follow up with that later on. |
Use our own Launcher implementation to properly order Elyra category/section and display project logo
Todos:
Developer's Certificate of Origin 1.1