-
Notifications
You must be signed in to change notification settings - Fork 8
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
plugin: Add plugin catalog plugin #35
Conversation
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.
Thanks for the video. I took a quick look at the code but may have more comments later when I look again in more detail.
I also think that for the UX, instead of a dialog showing that the plugin is installing, we should have a progress bar with a cancel button which replace the install button in the plugin view.
const headlampPlugin = runCommand('electron-node', [ | ||
'plugin-management.js', | ||
'update', | ||
pluginName, | ||
'-j', | ||
]); |
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 think this should be rather a new Headlamp.
API call that does this transparently for the plugin.
plugin-store/src/index.tsx
Outdated
|
||
registerSidebarEntry({ | ||
name: 'store', | ||
url: '/plugin_store', |
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.
Let's use the route as plugin-catalog
.
4a3abc9
to
3afef29
Compare
Hrmm. There's a problem with the build command, which is causing the failure in CI. Which I think is unrelated to this PR. |
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.
Nice one.
I did a first pass review, and left a few notes for your consideration.
A few more component stories would be appreciated for ones without.
I didn't run it myself and test locally yet.
I guess it makes sense to add artifact hub badges as well? (as app-catalog did recently) |
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.
Nice one.
Could you please add a "How to test" section in the PR description?
I was thinking the "Store" part doesn't fit. Because it's not a store really. What do you think? /cc @joaquimrocha @blixtra Just "Plugins" or "Plugin Catalog" ? |
Maybe it's this error: |
Add this to your env before running backend |
I guess this needs to be a default when the app is run? Or at least |
I usually run the backend separately when developing and add the env there, I am not sure if this should be added in the |
Hrmm. I'm still getting an error with the proxy added. ps. I made a PR for adding artifact hub proxy URL by default in the dev mode for 'make run-backend' headlamp-k8s/headlamp#2130 |
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.
Left a few comments about the UX. The functionality worked fine for me when I tried it.
I have now tried this:
|
The plugin installation isn't dependent on the backend. the backend is used only for the externalproxy to get plugin info from ArtifactHub. |
The error I'm getting is coming from PluginManager.list inside InstallList.tsx So I guess it has something to do with plugins I have installed (or not installed).
|
49b1e8e
to
0ccfdfa
Compare
btw. The DCO check is failing, and probably those fixup commits should be applied. |
421adcc
to
2db6573
Compare
dd776d2
to
5c7b842
Compare
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.
Noticed a lint issue, and a required dependency update.
Plugin catalog is a plugin that helps install and manage headlamp plugins from artifacthub Signed-off-by: yolossn <sannagaraj@microsoft.com>
…Card Passing an object's members as props to a component is not a good practice. So these changes instead pass the package itself. Signed-off-by: Joaquim Rocha <joaquim.rocha@microsoft.com>
Signed-off-by: Joaquim Rocha <joaquim.rocha@microsoft.com>
…tory Signed-off-by: Joaquim Rocha <joaquim.rocha@microsoft.com>
Signed-off-by: Joaquim Rocha <joaquim.rocha@microsoft.com>
Now instead of showing Learn More, we have the link for the repo in the repo name. Signed-off-by: Joaquim Rocha <joaquim.rocha@microsoft.com>
Signed-off-by: Joaquim Rocha <joaquim.rocha@microsoft.com>
This patch adds links to the repo and org of the plugin and renames some of the labels to be more descriptive to what they do. Signed-off-by: Joaquim Rocha <joaquim.rocha@microsoft.com>
Signed-off-by: Joaquim Rocha <joaquim.rocha@microsoft.com>
Signed-off-by: Joaquim Rocha <joaquim.rocha@microsoft.com>
Signed-off-by: Joaquim Rocha <joaquim.rocha@microsoft.com>
Signed-off-by: Joaquim Rocha <joaquim.rocha@microsoft.com>
Signed-off-by: Joaquim Rocha <joaquim.rocha@microsoft.com>
This goes to the whole plugin settings list instead of the actual individual plugin settings until we have a way to do that more easily. Signed-off-by: Joaquim Rocha <joaquim.rocha@microsoft.com>
When one plugin was installed, they were higher than others. Signed-off-by: Joaquim Rocha <joaquim.rocha@microsoft.com>
Signed-off-by: Joaquim Rocha <joaquim.rocha@microsoft.com>
Signed-off-by: Joaquim Rocha <joaquim.rocha@microsoft.com>
With npm run lint -- --fix. Signed-off-by: Joaquim Rocha <joaquim.rocha@microsoft.com>
69406b3
to
1559c8e
Compare
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.
👍
Plugin catalog is a plugin that helps
install and manage headlamp plugins
from artifacthub
For headlamp-k8s/headlamp#1654
Video.Project.1.mp4
How to use
From headlamp repo current main branch:
From plugins repo:
Now the Plugin Catalog link appears in the sidebar.