|
| 1 | +// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license. |
| 2 | + |
| 3 | +/** |
| 4 | + * Marketplace — plugin-owned Setup navigation (cloud ADR-0009: cloud |
| 5 | + * functionality ships as plugins carrying their FULL UI surface). |
| 6 | + * |
| 7 | + * Ownership moved here from `@objectstack/platform-objects`' |
| 8 | + * setup-nav.contributions.ts (ADR-0029 K2's standing direction): the nav |
| 9 | + * entry now lives and dies with the capability — |
| 10 | + * |
| 11 | + * - no MarketplaceProxyPlugin mounted (`OS_CLOUD_URL=off`) → no |
| 12 | + * "Browse Marketplace" entry → no dead page. |
| 13 | + * - no MarketplaceInstallLocalPlugin → no "Installed Apps" entry. |
| 14 | + * |
| 15 | + * The URLs still point at the console's existing marketplace routes; the |
| 16 | + * pages themselves migrate to plugin-carried metadata in later ADR-0009 |
| 17 | + * stages (Installed Apps first). |
| 18 | + */ |
| 19 | + |
| 20 | +/** "Browse Marketplace" — owned by the browse capability (the proxy). */ |
| 21 | +export const MARKETPLACE_BROWSE_UI_BUNDLE = { |
| 22 | + id: 'com.objectstack.cloud-connection.marketplace-browse-ui', |
| 23 | + namespace: 'sys', |
| 24 | + version: '0.1.0', |
| 25 | + type: 'plugin', |
| 26 | + scope: 'system', |
| 27 | + name: 'Marketplace Browse UI', |
| 28 | + description: 'Setup navigation for the public marketplace catalog (browse).', |
| 29 | + navigationContributions: [ |
| 30 | + { |
| 31 | + app: 'setup', |
| 32 | + group: 'group_apps', |
| 33 | + priority: 100, |
| 34 | + items: [ |
| 35 | + { id: 'nav_marketplace_browse', type: 'url', label: 'Browse Marketplace', url: '/apps/setup/system/marketplace', icon: 'store' }, |
| 36 | + ], |
| 37 | + }, |
| 38 | + ], |
| 39 | +}; |
| 40 | + |
| 41 | +/** "Installed Apps" — owned by the local-install capability. */ |
| 42 | +export const MARKETPLACE_INSTALLED_UI_BUNDLE = { |
| 43 | + id: 'com.objectstack.cloud-connection.marketplace-installed-ui', |
| 44 | + namespace: 'sys', |
| 45 | + version: '0.1.0', |
| 46 | + type: 'plugin', |
| 47 | + scope: 'system', |
| 48 | + name: 'Marketplace Installed UI', |
| 49 | + description: 'Setup navigation for locally-installed marketplace packages.', |
| 50 | + navigationContributions: [ |
| 51 | + { |
| 52 | + app: 'setup', |
| 53 | + group: 'group_apps', |
| 54 | + priority: 110, |
| 55 | + items: [ |
| 56 | + { id: 'nav_marketplace_installed', type: 'url', label: 'Installed Apps', url: '/apps/setup/system/marketplace/installed', icon: 'package-check' }, |
| 57 | + ], |
| 58 | + }, |
| 59 | + ], |
| 60 | +}; |
0 commit comments