Add an add-ons control panel and update the control panels overview#123
Open
richardbenedikt wants to merge 12 commits into
Open
Add an add-ons control panel and update the control panels overview#123richardbenedikt wants to merge 12 commits into
richardbenedikt wants to merge 12 commits into
Conversation
New /controlpanel/addons route backed by controlpanelAddons.tsx (loader + action), with unit tests and a Storybook story. Lists installed/available site add-ons and a searchable marketplace catalog fetched from the backend @addon-marketplace-search endpoint; the full catalog is always requested. Also adds cmsui.addons.* locale strings (en/de/it), a zod dependency for marketplace response validation, and restyles the control-panels overview as an icon grid.
Member
|
@richardbenedikt the /controlpanels route is not wired, right? Also, we will need to introduce the "settings" button, decide on the icon (the icon had some controversy in the past) and wire it up. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
This PR does two things: it adds an add-ons control panel to
@plone/cmsuiat/controlpanel/addons, and it updates the control-panels overview page itself.The add-ons view lists the add-ons installed on the site and the ones available to install, with install, uninstall and upgrade actions, plus a small banner for add-ons that have an update waiting. A search box at the top filters the list as you type. Everything it needs comes from the standard
@addonsREST API, so there's no extra backend to set up.Alongside that, the control-panels overview (
/controlpanel) was reworked into an icon grid, and the new add-ons view slots into it through the existing/addonsentry.What's in here
routes/controlpanelAddons.tsx, loader + action), registered inconfig/routes.tscomponents/ControlPanel/ControlPanelsList.tsx,routes/controlpanels.tsx)cmsui.addons.*)A couple of notes for reviewers
Contributors
Thanks to @redram404, @veyxos and @richardbenedikt.