main
4
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
ef146bc62d |
Browse, install and manage plugins from a built-in gallery (#9752)
* feat(app): browse, install and manage plugins from a built-in gallery Settings → Host → Plugins becomes a gallery with two tabs. Installed lists the host's plugins with on/off switches and pending updates. Browse lists the plugin directory with featured cards, categories, sorting and search. Each plugin has its own page with its screenshots, overview, details, install or on/off controls, and its own settings screens inline. Every install asks first, in a sheet naming the source and version, because installing runs the plugin's code on the host. Uninstalling also asks first; its confirm says what is deleted. The daemon fetches the directory from its configured registry (plugin.registry.list/get, gated by server_info.features.pluginRegistry). The app never fetches from the registry itself, so a host with a private registry shows that registry. README overviews render with the registry's overview contract (the same one the website uses): only https links and images work, and nothing is read as a workspace file. Before this, a word like "Node.js" became a broken relative link. * fix(app): refresh plugin failures and leave Settings cleanly from a plugin page The Installed row read the app-side evaluation error without subscribing to the registry, so a plugin fixed by Reload kept its "failed" badge. Rows and the plugin page now subscribe through usePluginEvaluationError. Leaving Settings with no remembered workspace replaced only the top stack entry; with a plugin page pushed on top, the Plugins list stayed mounted underneath and reopening Settings stacked a second copy. Dismiss the Settings entries first. * fix(app): keep Browse working as the registry grows, and test it end to end Registry listings now reach apps through an open wire schema (plugin.registry.list/get carry PluginListing*), and the daemon drops a listing it cannot read instead of failing the whole index. A registry that adds an artifact kind or bumps schemaVersion no longer breaks Browse on older apps. The gallery picks its opening tab once, so installing the first plugin keeps the user on Browse. README links open only https: the parser still autolinks bare http, www and email text, so a press checks the URL again. Adds a Browse e2e test against a local registry and Git repository: install from a row through the confirm sheet, stay on Browse, open the listing page, uninstall from it. * test(server): give the oversized-sibling diff refresh the same time budget as its siblings expect.poll defaults to one second, which a Windows git diff refresh can exceed. * test(server): wait as long as the other observer tests for native watcher events expect.poll defaults to one second; macOS FSEvents can deliver later than that on CI. * fix(app): keep a listed plugin's page usable after uninstalling it, and fetch the directory less An installed plugin's page finds its listing through the plugin, so uninstalling a directory plugin from the Installed tab left "not installed or listed" with no way back. The page now becomes the listing's page, offering Install again. Updates are re-checked when the host's plugins change and after a failed update, whose proposal named a revision that no longer exists. The directory, listing and update queries refetch on mount only once stale, so opening a plugin's page no longer refetches the whole directory and every update check. * test(app): install the plugin before opening Plugins in the busy-queue reload test Plugins opens on Browse when the host has no plugins and stays there after the first install, so a plugin installed through the daemon after the page opened never showed on Installed. * test(website): wait for hydration before scrolling to the hero in a short window The router resets the scroll position when the page hydrates. Scrolling to the mockup before that left it below the window, so its start line never came on screen and the opening scene never played. It failed 7 of 10 runs on webkit. * fix(server): show the registry setup error on Browse instead of asking to retry The registry's request headers were built inside the try around fetch, so a setup error such as credentials over plain HTTP came back as "Could not reach plugin registry. Retry later." Install already built them first. * fix(app): show plugin errors without the request details meant for logs A daemon RPC error's message ends with requestType=… code=…; the daemon's own text is in userMessage. Gallery alerts and toasts now show that text. * fix(app): show why an update failed on the plugin's page The update operation's failure was recorded under the plugin ID, but the page only read it to show the spinner, so a failed update looked as if nothing happened. The page now shows the error in its own alert, without the plugin's Failed badge, because the installed version keeps running. While an update is still available the button reads Retry. * fix(app): show a plugin page's update error only while the update is offered The failed update stayed in the operations store after the plugin was updated elsewhere or uninstalled, so the page kept saying the update failed. The page now shows it with the Update button it belongs to, as the Installed tab's Updates row does, and uninstalling forgets it. |
||
|
|
6740d41fab |
Open plugin settings from a cog, with a tab per settings screen (#8675)
* feat(app): open plugin settings from a cog with a tab per screen The plugin row shows a settings button next to its switch when the plugin registers settings screens. The actions menu keeps Logs, Reload and Remove. The settings page shows one tab per registered screen; a plugin with one screen shows no tabs. Tabs swap screenId in place, so existing plugins/[pluginId]/[screenId] links and openSettings keep working. * fix(app): render settings tab icons inside the plugin's runtime Component icons now mount under the installation provider, so plugin SDK hooks such as useTranslation work. Each icon has its own error boundary; an icon that throws leaves its tab with the label alone. * feat(app): name only the plugin in its settings page header The header shows the plugin's manifest name, or its id when it has none, for single- and multi-screen plugins alike. The selected tab names the screen. The Plugins page and the header share one plugin list query. * feat(app): show plugin display names and a Settings tooltip on the cog Plugin rows on Settings → Plugins show the manifest name, falling back to the id; when a name is set, the id stays visible beneath it. The row's controls, logs sheet, confirmations and feedback use the same name. The cog is a ToolbarButton labeled Settings, with a matching tooltip. |
||
|
|
b9ac1d4982 |
fix(app): add a Back to plugins link to plugin settings screens on desktop (#5620)
On the wide settings layout, a plugin settings screen showed only its title and the plugin's content, so getting back to the Plugins page meant finding Plugins in the sidebar again. The compact layout already had a Back header and project settings already had a desktop "Back to projects" link. Plugin settings screens now render a "Back to plugins" link on desktop the same way, including when the screen is offline or unavailable. Closes #5518 Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> |
||
|
|
ae80ec4252 |
Let plugins contribute settings screens (#4357)
* feat(plugins): contribute settings screens and shared controls * fix(plugins): localize settings and verify shared UI consumers * test(composer): unmount draft test roots after each case * test(app): keep launch terminals alive until cleanup The fixed ten-second profile lifetime could expire before a busy CI browser attached or finished revisiting the composer. Keep the real process waiting for input until project teardown terminates it. * test(server): await the initial snapshot before a buffered ref event Watcher setup can read checkout facts before the initial refresh publishes a snapshot. Wait for publication before injecting the event so the test consistently exercises a second refresh. |