Repository navigation
Show Aurora add-ons in component SiteOverview - #368
silviubogan wants to merge 11 commits into
Conversation
|
@silviubogan thanks for working on this Silviu! One thing, I wanted this to take the shape of a |
|
@silviubogan btw, I merged: #363 so it has to be added and make it work well with the work there. |
Please give me some links. I'm curious.
Yes. |
The Plone registry Vite plugin generates .plone/registry.appInfo.js with the name and version of the app and of its add-ons, in add-on order, and aliases @plone/registry/app-info to it. It has no file system paths, so client code can import it. Outside of a Vite app it resolves to an empty fallback in virtual/. The site overview reads the app version from it instead of importing the Aurora app's package.json from cmsui. Assisted-by: Claude Opus 5.5
|
@silviubogan, I opened plone/aurora#403 · Add the @plone/registry/app-info… as a base for this one, and I’d like refactor this PR on top of it. Here’s why. Why a separate PR: reading the add-ons is infrastructure in @plone/registry, and the list in SiteOverview is a UI feature. Splitting them keeps each part small to review, and the registry part is useful outside the control panel too. Why we’re dropping the Volto approach (addonsInfo from the add-ons loader, stored in config.settings): It leaks local paths. addonsInfo is the whole Package record of each add-on, including modulePath, packageJson and basePath. These are absolute paths of the machine that built the site. Putting it in config.settings sends those paths to every visitor’s browser. What plone/aurora#403 · Add the @plone/registry/app-info… adds: import appInfo from '@plone/registry/app-info' gives { name, version, addons: [{ name, version }] } with no paths. In tests and Storybook it resolves to an empty app (or you can vi.mock it). SiteOverview already uses it for the Aurora version, so cmsui no longer imports apps/aurora/package.json. For this PR, after rebasing on plone/aurora#403 · Add the @plone/registry/app-info…: Read appInfo.addons in SiteOverview. Here is the mockup with how would it work with the current version of the control panel.
Add-ons Info in Control panel main.zip Thanks again! |
a255f4a to
eaf7069
Compare
Documentation build overview
|
|
@sneridagh Please review. |

Made a list of all the installed Aurora add-ons below the version information under the control panels' list.
If your pull request closes an open issue, include the exact text below, immediately followed by the issue number. When your pull request gets merged, then that issue will close automatically.
Closes #366