Skip to content

Commit 433b69e

Browse files
authored
feat(namespace): add content configuration for account namespace view (#90)
On-behalf-of: @SAP <[email protected]> Signed-off-by: Bastian Echterhölter <[email protected]>
1 parent 308cf34 commit 433b69e

File tree

1 file changed

+111
-0
lines changed

1 file changed

+111
-0
lines changed
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
apiVersion: ui.platform-mesh.io/v1alpha1
2+
kind: ContentConfiguration
3+
metadata:
4+
labels:
5+
ui.platform-mesh.io/entity: core_platform-mesh_io_account
6+
name: account-namespace
7+
spec:
8+
inlineConfiguration:
9+
content: |-
10+
{
11+
"name": "namespaces",
12+
"creationTimestamp": "2022-05-17T11:37:17Z",
13+
"luigiConfigFragment": {
14+
"data": {
15+
"nodes": [
16+
{
17+
"pathSegment": "core_namespaces",
18+
"navigationContext": "core_namespaces",
19+
"label": "Namespaces",
20+
"entityType": "main.core_platform-mesh_io_account",
21+
"icon": "group-2",
22+
"order": 110,
23+
"loadingIndicator": {
24+
"enabled": false
25+
},
26+
"keepSelectedForChildren": true,
27+
"url": "/assets/platform-mesh-portal-ui-wc.js#generic-list-view",
28+
"webcomponent": {
29+
"selfRegistered": true
30+
},
31+
"context": {
32+
"resourceDefinition": {
33+
"group": "core",
34+
"plural": "namespaces",
35+
"singular": "namespace",
36+
"kind": "Namespace",
37+
"scope": "Cluster",
38+
"namespace": null,
39+
"ui": {
40+
"listView": {
41+
"fields": [
42+
{
43+
"label": "Name",
44+
"property": "metadata.name"
45+
}
46+
]
47+
},
48+
"detailView": {
49+
"fields": [
50+
{
51+
"label": "Name",
52+
"property": "metadata.name"
53+
}
54+
]
55+
},
56+
"createView": {
57+
"fields": [
58+
{
59+
"label": "Name",
60+
"property": "metadata.name",
61+
"required": true
62+
}
63+
]
64+
}
65+
}
66+
}
67+
},
68+
"children": [
69+
{
70+
"pathSegment": ":namespaceId",
71+
"hideFromNav": true,
72+
"keepSelectedForChildren": false,
73+
"defineEntity": {
74+
"id": "core_namespace",
75+
"contextKey": "namespaceId",
76+
"graphqlEntity": {
77+
"group": "core",
78+
"kind": "Namespace",
79+
"query": "{ metadata { name } }"
80+
}
81+
},
82+
"context": {
83+
"accountId": ":accountId",
84+
"namespaceId": ":namespaceId",
85+
"resourceId": ":namespaceId"
86+
}
87+
}
88+
]
89+
},
90+
{
91+
"entityType": "main.core_platform-mesh_io_account.core_namespace",
92+
"pathSegment": "dashboard",
93+
"label": "Dashboard",
94+
"order": 100,
95+
"url": "/assets/platform-mesh-portal-ui-wc.js#generic-detail-view",
96+
"webcomponent": {
97+
"selfRegistered": true
98+
},
99+
"defineEntity": {
100+
"id": "dashboard"
101+
},
102+
"compound": {
103+
"children": []
104+
}
105+
}
106+
107+
]
108+
}
109+
}
110+
}
111+
contentType: json

0 commit comments

Comments
 (0)