-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmarketplace-ui.ts
More file actions
95 lines (91 loc) · 3.24 KB
/
Copy pathmarketplace-ui.ts
File metadata and controls
95 lines (91 loc) · 3.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
/**
* Marketplace — plugin-owned Setup navigation (cloud ADR-0009: cloud
* functionality ships as plugins carrying their FULL UI surface).
*
* Ownership moved here from `@objectstack/platform-objects`'
* setup-nav.contributions.ts (ADR-0029 K2's standing direction): the nav
* entry now lives and dies with the capability —
*
* - no MarketplaceProxyPlugin mounted (`OS_CLOUD_URL=off`) → no
* "Browse Marketplace" entry → no dead page.
* - no MarketplaceInstallLocalPlugin → no "Installed Apps" entry.
*
* The URLs still point at the console's existing marketplace routes; the
* pages themselves migrate to plugin-carried metadata in later ADR-0009
* stages (Installed Apps first).
*/
/** "Browse Marketplace" — owned by the browse capability (the proxy). */
export const MARKETPLACE_BROWSE_UI_BUNDLE = {
id: 'com.objectstack.cloud-connection.marketplace-browse-ui',
namespace: 'sys',
version: '0.1.0',
type: 'plugin',
scope: 'system',
name: 'Marketplace Browse UI',
description: 'Setup navigation for the public marketplace catalog (browse).',
navigationContributions: [
{
app: 'setup',
group: 'group_apps',
priority: 100,
items: [
{ id: 'nav_marketplace_browse', type: 'url', label: 'Browse Marketplace', url: '/apps/setup/system/marketplace', icon: 'store' },
],
},
],
};
/** "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.2.0',
type: 'plugin',
scope: 'system',
name: 'Marketplace Installed UI',
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: 'page', pageName: 'marketplace_installed', label: 'Installed Apps', icon: 'package-check' },
],
},
],
};