Add 'Req & Cap' screen for VF/PNF/Service - UI
[sdc.git] / catalog-ui / configurations / menu.js
1 const SDC_MENU_CONFIG = {
2     "roles": {
3         "ADMIN": {
4             "title": "Admin's Workspace",
5         },
6         "DESIGNER": {
7             "title": "Designer's Workspace",
8             "dashboard": {
9                 "showCreateNew": true
10             },
11             "changeLifecycleStateButtons": {
12                 "NOT_CERTIFIED_CHECKOUT": {
13                     "RESOURCE": {
14                         "certify": {
15                             "text": "Certify",
16                             "url": "lifecycleState/certify",
17                             "confirmationModal": "lifecycleState/certify"
18                         },
19                         "checkIn": {
20                             "text": "Check in",
21                             "url": "lifecycleState/CHECKIN",
22                             "confirmationModal": "lifecycleState/CHECKIN"
23                         },
24                         "deleteVersion": {
25                             "text": "Delete Version",
26                             "url": "lifecycleState/UNDOCHECKOUT",
27                             "alertModal": "lifecycleState/UNDOCHECKOUT"
28                         }
29                     },
30                     "SERVICE": {
31                         "submitForTesting": {
32                             "text": "Submit for Testing",
33                             "url": "lifecycleState/certificationRequest",
34                             "emailModal": "lifecycleState/CERTIFICATIONREQUEST"
35                         },
36                         "checkIn": {
37                             "text": "Check in",
38                             "url": "lifecycleState/CHECKIN",
39                             "confirmationModal": "lifecycleState/CHECKIN"
40                         },
41                         "deleteVersion": {
42                             "text": "Delete Version",
43                             "url": "lifecycleState/UNDOCHECKOUT",
44                             "alertModal": "lifecycleState/UNDOCHECKOUT"
45                         }
46                     }
47
48                 },
49                 "CERTIFIED": {
50                     "RESOURCE": {
51                         "checkOut": {"text": "Check Out", "url": "lifecycleState/CHECKOUT"}
52                     },
53                     "SERVICE": {
54                         "checkOut": {"text": "Check Out", "url": "lifecycleState/CHECKOUT"}
55                     }
56                 },
57                 "NOT_CERTIFIED_CHECKIN": {
58                     "RESOURCE": {
59                         "certify": {
60                             "text": "Certify",
61                             "url": "lifecycleState/certify",
62                             "confirmationModal": "lifecycleState/certify"
63                         },
64                         "checkOut": {"text": "Check Out", "url": "lifecycleState/CHECKOUT"}
65                     },
66                     "SERVICE": {
67                         "submitForTesting": {
68                             "text": "Submit for Testing",
69                             "url": "lifecycleState/certificationRequest",
70                             "emailModal": "lifecycleState/CERTIFICATIONREQUEST"
71                         },
72                         "checkOut": {"text": "Check Out", "url": "lifecycleState/CHECKOUT"}
73                     }
74                 }
75             },
76             "folder": [
77                 {"text": "Active Projects", "groupname": "IN_PROGRESS"},
78                 {"text": "Check Out", "group": "IN_PROGRESS", "state": "NOT_CERTIFIED_CHECKOUT"},
79                 {"text": "Check In", "group": "IN_PROGRESS", "state": "NOT_CERTIFIED_CHECKIN"},
80                 {"text": "Followed Projects", "groupname": "FOLLOWING"},
81                 {"text": "Ready For Testing", "group": "FOLLOWING", "state": "READY_FOR_CERTIFICATION"},
82                 {"text": "In Testing", "group": "FOLLOWING", "state": "CERTIFICATION_IN_PROGRESS"},
83                 {"text": "Certified", "group": "FOLLOWING", "state": "CERTIFIED"}
84             ]
85
86         },
87         "TESTER": {
88             "title": "Tester's Workspace",
89             "dashboard": {
90                 "showCreateNew": false
91             },
92             "changeLifecycleStateButtons": {
93                 "READY_FOR_CERTIFICATION": {
94                     "RESOURCE":{},
95                     "SERVICE":{
96                         "startTesting": {"text": "Start Testing", "url": "lifecycleState/startCertification"}
97                     }
98                 },
99                 "CERTIFICATION_IN_PROGRESS": {
100                     "RESOURCE":{},
101                     "SERVICE": {
102                         "accept": {
103                             "text": "Accept",
104                             "url": "lifecycleState/certify",
105                             "confirmationModal": "lifecycleState/certify"
106                         },
107                         "reject": {
108                             "text": "Reject",
109                             "url": "lifecycleState/failCertification",
110                             "confirmationModal": "lifecycleState/failCertification"
111                         },
112                         "cancel": {
113                             "text": "Cancel",
114                             "action": "changeLifecycleState",
115                             "url": "lifecycleState/cancelCertification",
116                             "confirmationModal": "lifecycleState/cancel"
117                         }
118                     }
119                 }
120             },
121             "folder": [
122                 {"text": "Active Projects", "groupname": "FOLLOWING"},
123                 {"text": "Ready For Testing", "group": "FOLLOWING", "state": "READY_FOR_CERTIFICATION"},
124                 {"text": "In Testing", "group": "FOLLOWING", "state": "CERTIFICATION_IN_PROGRESS"}
125             ]
126         },
127         "OPS": {
128             "title": "Operations Workspace",
129             "dashboard": {
130                 "showCreateNew": false
131             },
132             "changeLifecycleStateButtons": {
133                 "DISTRIBUTION_APPROVED": {
134                     "RESOURCE":{},
135                     "SERVICE": {
136                         "distribute": {
137                             "text": "Distribute",
138                             "url": "distribution/PROD/activate",
139                             "conformanceLevelModal": {
140                                 "url": "distribution-state/reject",
141                                 "confirmationModal": "distribution-state/reject"
142                             }
143                         },
144                         "monitor": {"text": "Monitor", "disabled": true}
145                     }
146                 },
147                 "DISTRIBUTED": {
148                     "RESOURCE":{},
149                     "SERVICE": {
150                         "redistribute": {
151                             "text": "Redistribute",
152                             "url": "distribution/PROD/activate",
153                             "conformanceLevelModal": {
154                                 "url": "distribution-state/reject",
155                                 "confirmationModal": "distribution-state/reject"
156                             }
157                         },
158                         "monitor": {"text": "Monitor", "url": "distribution-state/monitor"}
159                     }
160                 }
161             },
162             "folder": [
163                 {"text": "Active Projects", "groupname": "FOLLOWING"},
164                 {
165                     "text": "Waiting For Distribution",
166                     "group": "FOLLOWING",
167                     "state": "CERTIFIED",
168                     "dist": "DISTRIBUTION_APPROVED"
169                 },
170                 {"text": "Distributed", "group": "FOLLOWING", "state": "CERTIFIED", "dist": "DISTRIBUTED"}
171             ]
172         },
173         "GOVERNOR": {
174             "title": "Governance Rep's Workspace",
175             "dashboard": {
176                 "showCreateNew": false
177             },
178             "changeLifecycleStateButtons": {
179                 "DISTRIBUTION_NOT_APPROVED": {
180                 "RESOURCE":{},
181                 "SERVICE": {                   
182                         "approve": {
183                             "text": "Approve",
184                             "url": "distribution-state/approve",
185                             "confirmationModal": "distribution-state/approve",
186                             "conformanceLevelModal": {
187                                 "url": "distribution-state/reject",
188                                 "confirmationModal": "distribution-state/reject"
189                             }
190                         },
191                         "reject": {
192                             "text": "Reject",
193                             "url": "distribution-state/reject",
194                             "confirmationModal": "distribution-state/reject"
195                         }
196                     }
197                 },
198                 "DISTRIBUTION_APPROVED": {
199                     "RESOURCE":{},
200                     "SERVICE": {
201                         "reject": {
202                             "text": "Reject",
203                             "url": "distribution-state/reject",
204                             "confirmationModal": "distribution-state/reject"
205                         }
206                     }
207                 },
208                 "DISTRIBUTED": {
209                     "RESOURCE":{},
210                     "SERVICE": {
211                         "reject": {
212                             "text": "Reject",
213                             "url": "distribution-state/reject",
214                             "confirmationModal": "distribution-state/reject"
215                         }
216                     }
217                 },
218                 "DISTRIBUTION_REJECTED": {
219                     "RESOURCE":{},
220                     "SERVICE": {
221                         "approve": {
222                             "text": "Approve",
223                             "url": "distribution-state/approve",
224                             "confirmationModal": "distribution-state/approve",
225                             "conformanceLevelModal": {
226                                 "url": "distribution-state/reject",
227                                 "confirmationModal": "distribution-state/reject"
228                             }
229                         }
230                     }
231                 }
232             },
233             "folder": [
234                 {"text": "Active Projects", "groupname": "FOLLOWING"},
235                 {
236                     "text": "Waiting For Approval",
237                     "group": "FOLLOWING",
238                     "state": "CERTIFIED",
239                     "dist": "DISTRIBUTION_NOT_APPROVED"
240                 },
241                 {
242                     "text": "Distribution Rejected",
243                     "group": "FOLLOWING",
244                     "state": "CERTIFIED",
245                     "dist": "DISTRIBUTION_REJECTED"
246                 },
247                 {
248                     "text": "Distribution Approved",
249                     "group": "FOLLOWING",
250                     "state": "CERTIFIED",
251                     "dist": "DISTRIBUTION_APPROVED,DISTRIBUTED"
252                 }
253
254             ]
255         }
256     },
257     "confirmationMessages": {
258         "lifecycleState/CHECKIN": {
259             "showComment": true,
260             "title": "Check in confirmation",
261             "message": "Please add comment and confirm the check in."
262         },
263         "lifecycleState/CHECKOUT": {
264             "showComment": true,
265             "title": "Check out confirmation",
266             "message": "Please add comment and confirm the check out."
267         },
268         "lifecycleState/certify": {
269             "showComment": true,
270             "title": "Certification confirmation",
271             "message": "Please add comment and confirm test results."
272         },
273         "lifecycleState/cancel": {
274             "showComment": true,
275             "title": "Cancel test",
276             "message": "Please add comment and cancel test."
277         },
278         "lifecycleState/failCertification": {
279             "showComment": true,
280             "title": "Rejection confirmation",
281             "message": "Please add comment and confirm test results."
282         },
283         "lifecycleState/CERTIFICATIONREQUEST": {
284             "showComment": true,
285             "title": "Submit for testing",
286             "message": "Please add comment and submit for testing."
287         },
288         "distribution-state/approve": {
289             "showComment": true,
290             "title": "Distribution confirmation",
291             "message": "Please add comment and confirm %1 approval for distribution."
292         },
293         "distribution-state/reject": {
294             "showComment": true,
295             "title": "Rejection confirmation",
296             "message": "Please add comment and confirm %1 rejection for distribution."
297         },
298         "updateTemplate": {
299             "showComment": false,
300             "title": "Update Template Confirmation",
301             "message": "Modifying the Template might cause losing of previous information"
302         }
303     },
304     "alertMessages": {
305         "lifecycleState/UNDOCHECKOUT": {
306             "title": "Delete Version Confirmation",
307             "message": "Are you sure you want to delete this version?"
308         },
309         "exitWithoutSaving": {
310             "title": "Exit Without Saving Confirmation",
311             "message": "All unsaved changes will be lost. Are you sure you want to exit this page?"
312         },
313         "upgradeInstance": {
314             "title": "Switch Versions",
315             "message": "Switching versions will erase service paths: %1. Are you sure you want to proceed?"
316         },
317         "deleteInstance": {"title": "Delete Confirmation", "message": "Are you sure you would like to delete %1?"},
318         "deleteInput": {"title": "Delete Confirmation", "message": "Are you sure you would like to delete %1?"}
319     },
320     "statuses": {
321         "inDesign": {
322             "name": "In Design",
323             "values": [
324                 "NOT_CERTIFIED_CHECKOUT",
325                 "NOT_CERTIFIED_CHECKIN"
326             ]
327         },
328         "readyForCertification": {
329             "name": "Ready For Testing",
330             "values": ["READY_FOR_CERTIFICATION"]
331         },
332         "inCertification": {
333             "name": "In Testing",
334             "values": ["CERTIFICATION_IN_PROGRESS"]
335         },
336         "certified": {
337             "name": "Certified",
338             "values": ["CERTIFIED"]
339         },
340         "distributed": {
341             "name": "Distributed",
342             "values": ["DISTRIBUTED"]
343         }
344     },
345     "categoriesDictionary": {
346         "Mobility": "Application Layer 4+",
347         "Network L1-3": "Network Layer 2-3",
348         "Network L4": "Network Layer 4+",
349         "VoIP Call Control": "Application Layer 4+"
350     },
351     "catalogMenuItem": {
352         "DESIGNER": {
353             "states": {
354                 "NOT_CERTIFIED_CHECKOUT": {
355                     "ANY": [
356                         {
357                             "text": "Submit for Testing",
358                             "action": "changeLifecycleState",
359                             "url": "lifecycleState/certificationRequest",
360                             "emailModal": "lifecycleState/CERTIFICATIONREQUEST"
361                         }
362                     ],
363                     "NOT_OWNER": []
364                 },
365                 "NOT_CERTIFIED_CHECKIN": {
366                     "ANY": [
367                         {
368                             "text": "Submit for Testing",
369                             "action": "changeLifecycleState",
370                             "url": "lifecycleState/certificationRequest",
371                             "emailModal": "lifecycleState/CERTIFICATIONREQUEST"
372                         }
373                     ]
374                 },
375                 "READY_FOR_CERTIFICATION": {
376                     "ANY": []
377                 },
378                 "CERTIFICATION_IN_PROGRESS": {
379                     "ANY": []
380                 },
381                 "CERTIFIED": {
382                     "ANY": []
383                 }
384
385             }
386         },
387         "OTHER": {
388             "states": {
389                 "ANY": {
390                     "ANY": []
391                 }
392             }
393         }
394     },
395     "LifeCycleStatuses": {
396         "NOT_CERTIFIED_CHECKOUT": {"text": "In Design Check Out", "icon": "checkout-editable-status-icon"},
397         "NOT_CERTIFIED_CHECKIN": {"text": "In Design Check In", "icon": "checkin-status-icon "},
398         "READY_FOR_CERTIFICATION": {"text": "Ready for testing"},
399         "CERTIFICATION_IN_PROGRESS": {"text": "In Testing"},
400         "CERTIFIED": {"text": "Certified", "icon": "checkin-status-icon "}
401     },
402     "DistributionStatuses": {
403         "DISTRIBUTION_NOT_APPROVED": {"text": "Waiting For Distribution"},
404         "DISTRIBUTION_APPROVED": {"text": "Distribution Approved"},
405         "DISTRIBUTION_REJECTED": {"text": "Distribution Rejected"},
406         "DISTRIBUTED": {"text": "Distributed"}
407     },
408     "canvas_buttons": {
409         "checkIn": {
410             "text": "Check in",
411             "action": "changeLifecycleState",
412             "url": "lifecycleState/CHECKIN",
413             "confirmationModal": "lifecycleState/CHECKIN"
414         },
415         "submitForTesting": {
416             "text": "Submit for Testing",
417             "action": "changeLifecycleState",
418             "url": "lifecycleState/certificationRequest",
419             "emailModal": "lifecycleState/CERTIFICATIONREQUEST"
420         },
421         "deleteVersion": {
422             "text": "Delete Version",
423             "action": "changeLifecycleState",
424             "url": "lifecycleState/UNDOCHECKOUT",
425             "alertModal": "lifecycleState/UNDOCHECKOUT"
426         }
427     },
428
429     "component_workspace_menu_option": {
430         "VFC": [
431             {"text": "General", "action": "onMenuItemPressed", "state": "workspace.general"},
432             {"text": "Deployment Artifact", "action": "onMenuItemPressed", "state": "workspace.deployment_artifacts"},
433             {"text": "Information Artifact", "action": "onMenuItemPressed", "state": "workspace.information_artifacts"},
434             {"text": "TOSCA Artifacts", "action": "onMenuItemPressed", "state": "workspace.tosca_artifacts"},
435             {"text": "Properties", "action": "onMenuItemPressed", "state": "workspace.properties"},
436             {"text": "Attributes", "action": "onMenuItemPressed", "state": "workspace.attributes"},
437             {"text": "Req. & Capabilities", "action": "onMenuItemPressed", "state": "workspace.reqAndCap"},
438             {"text": "Activity Log", "action": "onMenuItemPressed", "state": "workspace.activity_log"}
439         ],
440         "VL": [
441             {"text": "General", "action": "onMenuItemPressed", "state": "workspace.general"},
442             {"text": "Deployment Artifact", "action": "onMenuItemPressed", "state": "workspace.deployment_artifacts"},
443             {"text": "Information Artifact", "action": "onMenuItemPressed", "state": "workspace.information_artifacts"},
444             {"text": "TOSCA Artifacts", "action": "onMenuItemPressed", "state": "workspace.tosca_artifacts"},
445             {"text": "Properties", "action": "onMenuItemPressed", "state": "workspace.properties"},
446             {"text": "Attributes", "action": "onMenuItemPressed", "state": "workspace.attributes"},
447             {"text": "Req. & Capabilities", "action": "onMenuItemPressed", "state": "workspace.reqAndCap"},
448             {"text": "Activity Log", "action": "onMenuItemPressed", "state": "workspace.activity_log"}
449         ],
450         "CP": [
451             {"text": "General", "action": "onMenuItemPressed", "state": "workspace.general"},
452             {"text": "Deployment Artifact", "action": "onMenuItemPressed", "state": "workspace.deployment_artifacts"},
453             {"text": "Information Artifact", "action": "onMenuItemPressed", "state": "workspace.information_artifacts"},
454             {"text": "TOSCA Artifacts", "action": "onMenuItemPressed", "state": "workspace.tosca_artifacts"},
455             {"text": "Properties", "action": "onMenuItemPressed", "state": "workspace.properties"},
456             {"text": "Attributes", "action": "onMenuItemPressed", "state": "workspace.attributes"},
457             {"text": "Req. & Capabilities", "action": "onMenuItemPressed", "state": "workspace.reqAndCap"},
458             {"text": "Activity Log", "action": "onMenuItemPressed", "state": "workspace.activity_log"}
459         ],
460         "VF": [
461             {"text": "General", "action": "onMenuItemPressed", "state": "workspace.general"},
462             {"text": "Deployment Artifact", "action": "onMenuItemPressed", "state": "workspace.deployment_artifacts"},
463             {"text": "Information Artifact", "action": "onMenuItemPressed", "state": "workspace.information_artifacts"},
464             {"text": "TOSCA Artifacts", "action": "onMenuItemPressed", "state": "workspace.tosca_artifacts"},            
465             {"text": "Composition", "action": "onMenuItemPressed", "state": "workspace.composition.details"},
466             {"text": "Operation", "action":"onMenuItemPressed", "state": "workspace.interface_operation"},
467             {"text": "Activity Log", "action": "onMenuItemPressed", "state": "workspace.activity_log"},
468             {"text": "Deployment", "action": "onMenuItemPressed", "state": "workspace.deployment"},
469             {
470                 "text": "Properties Assignment",
471                 "action": "onMenuItemPressed",
472                 "state": "workspace.properties_assignment"
473             },
474             {"text": "Req. & Capabilities", "action": "onMenuItemPressed", "state": "workspace.reqAndCapEditable"}
475         ],
476         "PNF": [
477             {"text": "General", "action": "onMenuItemPressed", "state": "workspace.general"},
478             {"text": "Information Artifact", "action": "onMenuItemPressed", "state": "workspace.information_artifacts"},
479             {"text": "TOSCA Artifacts", "action": "onMenuItemPressed", "state": "workspace.tosca_artifacts"},
480             {"text": "Composition", "action": "onMenuItemPressed", "state": "workspace.composition.details"},
481             {"text": "Operation", "action": "onMenuItemPressed", "state": "workspace.interface_operation"},
482             {"text": "Activity Log", "action": "onMenuItemPressed", "state": "workspace.activity_log"},
483             {
484                 "text": "Properties Assignment",
485                 "action": "onMenuItemPressed",
486                 "state": "workspace.properties_assignment"
487             },
488             {"text": "Req. & Capabilities", "action": "onMenuItemPressed", "state": "workspace.reqAndCapEditable"}
489         ],
490         "CR": [
491             {"text": "General", "action": "onMenuItemPressed", "state": "workspace.general"},
492             {"text": "Deployment Artifact", "action": "onMenuItemPressed", "state": "workspace.deployment_artifacts"},
493             {"text": "Information Artifact", "action": "onMenuItemPressed", "state": "workspace.information_artifacts"},
494             {"text": "TOSCA Artifacts", "action": "onMenuItemPressed", "state": "workspace.tosca_artifacts"},
495             {"text": "Composition", "action": "onMenuItemPressed", "state": "workspace.composition.details"},
496             {"text": "Activity Log", "action": "onMenuItemPressed", "state": "workspace.activity_log"},
497             {"text": "Properties Assignment", "action": "onMenuItemPressed", "state": "workspace.properties_assignment"}
498         ],
499         "SERVICE": [
500             {"text": "General", "action": "onMenuItemPressed", "state": "workspace.general"},
501             {"text": "TOSCA Artifacts", "action": "onMenuItemPressed", "state": "workspace.tosca_artifacts"},
502             {"text": "Composition", "action": "onMenuItemPressed", "state": "workspace.composition.details"},
503             {"text": "Operation", "action":"onMenuItemPressed", "state": "workspace.interface_operation"},
504             {"text": "Activity Log", "action": "onMenuItemPressed", "state": "workspace.activity_log"},
505             {"text": "Management Workflow", "action": "onMenuItemPressed", "state": "workspace.management_workflow"},
506             {"text": "Network Call Flow ", "action": "onMenuItemPressed", "state": "workspace.network_call_flow"},
507             {"text": "Distribution","action": "onMenuItemPressed","state": "workspace.distribution","disabledRoles": ["ADMIN", "TESTER", "GOVERNOR", "DESIGNER"]},
508             {"text": "Deployment", "action": "onMenuItemPressed", "state": "workspace.deployment"},
509             {
510                 "text": "Properties Assignment",
511                 "action": "onMenuItemPressed",
512                 "state": "workspace.properties_assignment"
513             },
514             {"text": "Req. & Capabilities", "action": "onMenuItemPressed", "state": "workspace.reqAndCapEditable"}
515         ]
516     }
517
518 }
519
520 module.exports = SDC_MENU_CONFIG;