Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/installed-page-metadata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@objectstack/cloud-connection": minor
---

The Installed Apps page ships as metadata with `MarketplaceInstallLocalPlugin` (cloud ADR-0009 P2a): `marketplace_installed` page (page:header + `marketplace:installed-list` widget) and the Setup nav entry switches to `type:'page'`.
43 changes: 39 additions & 4 deletions packages/cloud-connection/src/marketplace-ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,57 @@ export const MARKETPLACE_BROWSE_UI_BUNDLE = {
],
};

/** "Installed Apps" — owned by the local-install capability. */
/** "Installed Apps" — owned by the local-install capability (ADR-0009 P2a:
* the page itself is now metadata; the console provides only the
* `marketplace:installed-list` widget). */
export const MarketplaceInstalledPage = {
name: 'marketplace_installed',
label: 'Installed Apps',
type: 'app' as const,
template: 'default',
kind: 'full' as const,
isDefault: false,
regions: [
{
name: 'header',
width: 'full' as const,
components: [
{
type: 'page:header',
properties: {
title: 'Installed Apps',
subtitle: 'Marketplace packages currently installed into this runtime\'s kernel.',
icon: 'package-check',
},
},
],
},
{
name: 'main',
width: 'large' as const,
components: [
{ type: 'marketplace:installed-list', properties: {} },
],
},
],
};

export const MARKETPLACE_INSTALLED_UI_BUNDLE = {
id: 'com.objectstack.cloud-connection.marketplace-installed-ui',
namespace: 'sys',
version: '0.1.0',
version: '0.2.0',
type: 'plugin',
scope: 'system',
name: 'Marketplace Installed UI',
description: 'Setup navigation for locally-installed marketplace packages.',
description: 'Installed Apps page + Setup navigation for locally-installed marketplace packages.',
pages: [MarketplaceInstalledPage],
navigationContributions: [
{
app: 'setup',
group: 'group_apps',
priority: 110,
items: [
{ id: 'nav_marketplace_installed', type: 'url', label: 'Installed Apps', url: '/apps/setup/system/marketplace/installed', icon: 'package-check' },
{ id: 'nav_marketplace_installed', type: 'page', pageName: 'marketplace_installed', label: 'Installed Apps', icon: 'package-check' },
],
},
],
Expand Down
Loading