-
Notifications
You must be signed in to change notification settings - Fork 4
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-catalog: Rework installed list to include all plugins #117
base: main
Are you sure you want to change the base?
Conversation
766ca37
to
89374b5
Compare
Signed-off-by: Vincent T <[email protected]>
89374b5
to
774d8ce
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.
Thanks. Left some comments.
}} | ||
> | ||
<Typography variant="h6" components="h2"> | ||
Installed from the Plugin Catalog |
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 title of the section is already "Installed". So here we could just have Plugins from the Catalog
.
}} | ||
> | ||
<Typography variant="h6" components="h2"> | ||
Other Installed Plugins |
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.
And here we could use Other Plugins
getter: otherInstalledPlugins => ( | ||
<Box> | ||
<Link | ||
routeName={`pluginDetails`} |
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.
This lliteral is not replacing any var, so it may be "pluginDetails"
instead (no {}
needed either).
@@ -81,8 +152,25 @@ export function PluginInstalledList() { | |||
} | |||
} | |||
|
|||
function fetchOtherInstalledPlugins() { | |||
const storedPlugins = localStorage.getItem('headlampPluginSettings'); |
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.
Is this the correct way to get the plugins? I think there's currently an issue related to this, since it mentions plugins settings but we have the package.json stored there, although it's likely a bug.
See #this comment.
<Box> | ||
<Link | ||
routeName={`pluginDetails`} | ||
params={{ name: otherInstalledPlugins.name }} |
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.
We should (in a different commit) make sure that the names of plugins are separated into org+name. We can use the org as the author. See:
headlamp-k8s/headlamp#2572
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.
pending: retrieve plugin info from backend instead of local storage
pending: plugin origin changes merged
Description
Solves Issue: #2586
This PR addresses the issue observed during our ContribuFest at KubeCon, where users expressed confusion about the
Installed
view in the Plugin Catalog. Specifically, users were expecting to find their development plugins in theInstalled
view, but only plugins installed via the Plugin Catalog were listed.To resolve this, this PR proposes the following updates:
Installed
view in the Plugin Catalog will now display all installed plugins, regardless of their installation source.Installed from the Plugin Catalog
.Other Installed Plugins
.These changes aim to improve user experience by consolidating plugin information in one view while maintaining clarity about their source and functionality.
Image
Changes Made
Installed
view to:Installed from the Plugin Catalog
andOther Installed Plugins
.Steps to Test
Installed
view and confirm:Installed from the Plugin Catalog
orOther Plugins
.Notes
Other Plugins
will not include uninstall functionality if they were not installed via the Plugin Catalog.