Package manager UI-related tweaks (#4382)

* Add Plugins Path setting
* Fix/improve cache invalidation
* Hide load error when collapsing package source
* Package manager style tweaks
* Show error if installed packages query failed
* Prevent "No packages found" flicker
* Show <unknown> if empty version
* Always show latest version, highlight if new version available
* Fix issues with non-unique cross-source package ids
* Don't wrap id, version and date
* Decrease collapse button padding
* Display description for scraper packages
* Fix default packages population
* Change default package path to community
---------
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
DingDongSoLong4
2023-12-22 05:05:53 +02:00
committed by GitHub
parent 23b4d4f1e0
commit a1bd7cf817
16 changed files with 611 additions and 500 deletions

View File

@@ -138,7 +138,7 @@ const (
PluginsSettingPrefix = PluginsSetting + "."
DisabledPlugins = "plugins.disabled"
sourceDefaultPath = "stable"
sourceDefaultPath = "community"
sourceDefaultName = "Community (stable)"
PluginPackageSources = "plugins.package_sources"
@@ -1666,16 +1666,16 @@ func (i *Config) setDefaultValues() {
i.main.SetDefault(NoProxy, noProxyDefault)
// set default package sources
i.main.SetDefault(PluginPackageSources, map[string]string{
"name": sourceDefaultName,
"url": pluginPackageSourcesDefault,
"local_path": sourceDefaultPath,
})
i.main.SetDefault(ScraperPackageSources, map[string]string{
"name": sourceDefaultName,
"url": scraperPackageSourcesDefault,
"local_path": sourceDefaultPath,
})
i.main.SetDefault(PluginPackageSources, []map[string]string{{
"name": sourceDefaultName,
"url": pluginPackageSourcesDefault,
"localpath": sourceDefaultPath,
}})
i.main.SetDefault(ScraperPackageSources, []map[string]string{{
"name": sourceDefaultName,
"url": scraperPackageSourcesDefault,
"localpath": sourceDefaultPath,
}})
}
// setExistingSystemDefaults sets config options that are new and unset in an existing install,