Skip to content

feat(marketplace): show installed state and install extensions from details page - #1091

Open
mhaack wants to merge 4 commits into
mrdfrom
mrd-install
Open

mhaack wants to merge 4 commits into
mrdfrom
mrd-install

Conversation

@mhaack

@mhaack mhaack commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Stacked on #1086 (base: mrd).

What

The marketplace details page now shows whether an extension is installed on the current site, and lets users with write access install it.

  • Details URL changes to /marketplace/details?ext=<Doc Url>#/org/site. The hash is the site, like everywhere else in the app (hashChange, sidenav, cards). The list's "View details" keeps the current #/org/site, and so does the details "Back" link. Old #<Doc Url> links still work.
  • Installed: the extension's Try Url (the install URL for now) is looked up in the site config, in the library sheet for Type "Plugin" and the apps sheet otherwise, by path. A row with the same title also counts, since the config editor uses the title as the row id. Shown as "✓ Installed" in the info column.
  • Install button (accent) when there's a site in the hash, the extension has a Try Url, it isn't installed, and the config response grants write. It adds { title, path, image } to apps, or { title, path, icon } to library, and saves the config with config.save (DA and hlx6). Success shows a toast and "Installed"; failure shows an error toast and the button stays.
  • Today only extensions with a Try Url (the apps) get install UI; more are coming via the sheet.

Safety

  • The config is saved as a whole, so it's re-read right before saving. Edits made since the page loaded are kept, and nothing is written if the extension got installed in the meantime. A remaining lost-update window of milliseconds is the same exposure as the da-live config editor.
  • Other sheets, sheet metadata and :private are preserved. A single-sheet config is converted to multi-sheet the same way da-live's config editor does it.
  • The install targets the site it was clicked on, even if the user switches sites during the save.

Test URLs (branch)

Known limitations / follow-ups

  • Only the site config is checked, not the org config.
  • On hlx6 sites the API reports write access for everyone (existing TODO in api.js), so read-only users see the button and get an error toast.
  • Site-relative or comma-separated path values in the config are not matched against the absolute Try Url.
  • "App & Plugin" rows go to apps until the sheet is cleaned up.
  • Not verified against a real site yet (tests mock DA admin) — please try on a test site.

Config editor (da-live)

No new option: rows use the existing apps (title, path, image) and library (title, path, icon) columns, so no da-live change should be needed.

@aem-code-sync

aem-code-sync Bot commented Dec 1, 2026

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-sync branch
Commits

@mhaack
mhaack added this pull request to stack #1092 December 1, 2026 10:07

This branch was successfully deployed

1 active deployment
mrd-install — db56daee Deployed Dec 1, 2026 by aem-code-sync[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant