Repository navigation
Conversation
This branch was successfully deployed
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.
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.
/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.Try Url(the install URL for now) is looked up in the site config, in thelibrarysheet forType"Plugin" and theappssheet otherwise, bypath. 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.Try Url, it isn't installed, and the config response grantswrite. It adds{ title, path, image }toapps, or{ title, path, icon }tolibrary, and saves the config withconfig.save(DA and hlx6). Success shows a toast and "Installed"; failure shows an error toast and the button stays.Try Url(the apps) get install UI; more are coming via the sheet.Safety
:privateare preserved. A single-sheet config is converted to multi-sheet the same way da-live's config editor does it.Test URLs (branch)
Known limitations / follow-ups
api.js), so read-only users see the button and get an error toast.pathvalues in the config are not matched against the absoluteTry Url.appsuntil the sheet is cleaned up.Config editor (da-live)
No new option: rows use the existing
apps(title, path, image) andlibrary(title, path, icon) columns, so no da-live change should be needed.