@orchestrator-ui/orchestrator-ui-components 0.2.7 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/.turbo/turbo-build.log +10 -9
  2. package/.turbo/turbo-lint.log +2 -5
  3. package/.turbo/turbo-test.log +15 -10
  4. package/CHANGELOG.md +17 -0
  5. package/dist/index.d.ts +1464 -337
  6. package/dist/index.js +37266 -8348
  7. package/package.json +38 -31
  8. package/src/api/axios.ts +2 -8
  9. package/src/api/index.ts +59 -4
  10. package/src/components/WfoBadges/WfoBadge/WfoBadge.tsx +4 -1
  11. package/src/components/WfoBadges/index.ts +1 -0
  12. package/src/components/WfoDiff/WfoDiff.tsx +119 -0
  13. package/src/components/WfoDiff/index.ts +1 -0
  14. package/src/components/WfoDiff/unidiff.d.ts +1 -0
  15. package/src/components/WfoError/WfoError.stories.tsx +26 -0
  16. package/src/components/WfoError/WfoError.tsx +19 -0
  17. package/src/components/WfoError/index.ts +1 -0
  18. package/src/components/WfoFilterTabs/WfoFilterTabs.tsx +4 -2
  19. package/src/components/WfoForms/AutoFieldLoader.tsx +5 -1
  20. package/src/components/WfoForms/CreateForm.tsx +1 -0
  21. package/src/components/WfoForms/UserInputForm.tsx +88 -45
  22. package/src/components/WfoForms/UserInputFormWizard.tsx +11 -4
  23. package/src/components/WfoForms/formFields/AcceptField.tsx +8 -5
  24. package/src/components/WfoForms/formFields/BoolField.tsx +1 -1
  25. package/src/components/WfoForms/formFields/ImsNodeIdField.tsx +2 -2
  26. package/src/components/WfoForms/formFields/ImsPortIdField.tsx +238 -0
  27. package/src/components/WfoForms/formFields/ImsPortIdFieldStyling.ts +17 -0
  28. package/src/components/WfoForms/formFields/ListAddField.tsx +1 -1
  29. package/src/components/WfoForms/formFields/ListDelField.tsx +1 -1
  30. package/src/components/WfoForms/formFields/OptGroupField.tsx +1 -1
  31. package/src/components/WfoForms/formFields/SplitPrefix.tsx +2 -1
  32. package/src/components/WfoForms/formFields/SubscriptionField.tsx +10 -4
  33. package/src/components/WfoForms/formFields/SummaryField.tsx +103 -0
  34. package/src/components/WfoForms/formFields/SummaryFieldStyling.ts +46 -0
  35. package/src/components/WfoForms/formFields/VlanField.tsx +10 -10
  36. package/src/components/WfoForms/formFields/index.ts +2 -0
  37. package/src/components/WfoForms/formFields/surf/types.ts +26 -0
  38. package/src/components/WfoForms/formFields/utils.spec.ts +89 -9
  39. package/src/components/WfoJsonCodeBlock/index.ts +1 -0
  40. package/src/components/WfoKeyValueTable/WfoValueCell.tsx +2 -2
  41. package/src/components/WfoOptionalLink/WfoOptionalLink.tsx +20 -0
  42. package/src/components/WfoOptionalLink/index.ts +1 -0
  43. package/src/components/WfoPageTemplate/WfoBreadcrumbs/WfoBreadcrumbs.tsx +5 -2
  44. package/src/components/WfoPageTemplate/WfoPageHeader/WfoAppLogo.tsx +28 -0
  45. package/src/components/WfoPageTemplate/WfoPageHeader/WfoPageHeader.tsx +23 -19
  46. package/src/components/WfoPageTemplate/WfoPageHeader/styles.ts +29 -0
  47. package/src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts +12 -0
  48. package/src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.ts +5 -0
  49. package/src/components/WfoPageTemplate/WfoSidebar/WfoSidebar.tsx +14 -14
  50. package/src/components/WfoPageTemplate/WfoSidebar/WfoStartCreateWorkflowButtonComboBox.tsx +15 -12
  51. package/src/components/WfoPageTemplate/paths.ts +3 -2
  52. package/src/components/{WfoProcessesList/WfoProcessList.tsx → WfoProcessList/WfoProcessesList.tsx} +46 -38
  53. package/src/components/WfoProcessList/index.ts +1 -0
  54. package/src/components/{WfoProcessesList → WfoProcessList}/processListObjectMappers.ts +5 -3
  55. package/src/components/WfoSearchBar/WfoSearchField.tsx +27 -37
  56. package/src/components/{WfoSettingsPage → WfoSettings}/WfoEngineStatusButton.tsx +7 -4
  57. package/src/components/{WfoSettingsPage → WfoSettings}/WfoFlushSettings.tsx +29 -18
  58. package/src/components/WfoSettings/WfoModifySettings.tsx +38 -0
  59. package/src/components/WfoSettings/WfoSettings.tsx +40 -0
  60. package/src/components/{WfoSettingsPage → WfoSettings}/WfoStatus.tsx +21 -14
  61. package/src/components/WfoSettingsModal/WfoSubmitModal.tsx +61 -0
  62. package/src/components/WfoSettingsModal/index.tsx +1 -0
  63. package/src/components/WfoStartTaskButtonComboBox/WfoStartTaskButtonComboBox.tsx +14 -11
  64. package/src/components/WfoSubscription/WfoProcessesTimeline.tsx +11 -18
  65. package/src/components/WfoSubscription/WfoRelatedSubscriptions.tsx +4 -1
  66. package/src/components/WfoSubscription/WfoSubscription.tsx +38 -66
  67. package/src/components/WfoSubscription/WfoSubscriptionActions.tsx +41 -33
  68. package/src/components/WfoSubscription/WfoSubscriptionDetailTree.tsx +34 -28
  69. package/src/components/WfoSubscription/WfoSubscriptionProductBlock.tsx +96 -91
  70. package/src/components/WfoSubscription/WfoTargetTypeIcon.tsx +26 -0
  71. package/src/components/WfoSubscription/subscriptionDetailTabs.tsx +29 -0
  72. package/src/components/WfoSubscription/utils/utils.spec.ts +24 -0
  73. package/src/components/WfoSubscription/utils/utils.ts +21 -5
  74. package/src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx +42 -48
  75. package/src/components/WfoSubscriptionsList/index.ts +1 -1
  76. package/src/components/WfoSubscriptionsList/{mapGrapghQlSubscriptionsResultToSubscriptionListItems.ts → mapGraphQlSubscriptionsResultToSubscriptionListItems.ts} +8 -1
  77. package/src/components/WfoSubscriptionsList/subscriptionListTabs.ts +8 -30
  78. package/src/components/WfoSummary/WfoSummaryCardHeader/WfoSummaryCardHeader.tsx +55 -0
  79. package/src/components/WfoSummary/WfoSummaryCardHeader/index.ts +1 -0
  80. package/src/components/WfoSummary/WfoSummaryCardHeader/styles.ts +26 -0
  81. package/src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardList.tsx +86 -0
  82. package/src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardListItem.tsx +59 -0
  83. package/src/components/WfoSummary/WfoSummaryCardList/index.ts +2 -0
  84. package/src/components/WfoSummary/WfoSummaryCardList/styles.ts +52 -0
  85. package/src/components/WfoSummary/WfoSummaryCards.tsx +111 -0
  86. package/src/components/WfoSummary/getNumberOfColumns.ts +14 -0
  87. package/src/components/WfoSummary/index.ts +4 -0
  88. package/src/components/WfoSummary/styles.ts +13 -0
  89. package/src/components/WfoTable/WfoBasicTable/WfoBasicTable.tsx +18 -16
  90. package/src/components/WfoTable/WfoBasicTable/WfoTableHeaderCell.tsx +2 -2
  91. package/src/components/WfoTable/WfoBasicTable/index.ts +1 -0
  92. package/src/components/WfoTable/WfoBasicTable/styles.ts +28 -2
  93. package/src/components/WfoTable/WfoFirstPartUUID/WfoFirstPartUUID.tsx +12 -3
  94. package/src/components/WfoTable/WfoFirstPartUUID/styles.ts +12 -0
  95. package/src/components/WfoTable/WfoTableWithFilter/WfoTableWithFilter.tsx +32 -23
  96. package/src/components/WfoTable/WfoTableWithFilter/updateQueryString.spec.ts +95 -0
  97. package/src/components/WfoTable/WfoTableWithFilter/updateQueryString.ts +60 -0
  98. package/src/components/WfoTable/index.ts +2 -0
  99. package/src/components/WfoTable/utils/columns.ts +21 -15
  100. package/src/components/WfoTable/utils/constants.ts +4 -2
  101. package/src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.ts +5 -3
  102. package/src/components/WfoTable/utils/tableUtils.ts +3 -3
  103. package/src/components/WfoTextAnchor/WfoTextAnchor.stories.tsx +18 -0
  104. package/src/components/WfoTextAnchor/WfoTextAnchor.tsx +22 -0
  105. package/src/components/WfoTextAnchor/index.ts +1 -0
  106. package/src/components/WfoTextAnchor/styles.ts +17 -0
  107. package/src/components/WfoTimeline/styles.ts +10 -4
  108. package/src/components/WfoTree/WfoTreeNode.tsx +1 -4
  109. package/src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx +42 -26
  110. package/src/components/WfoWorkflowSteps/WfoStep/WfoStepForm.tsx +48 -0
  111. package/src/components/WfoWorkflowSteps/WfoStepList/WfoStepList.tsx +10 -10
  112. package/src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx +22 -23
  113. package/src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx +97 -17
  114. package/src/components/WfoWorkflowSteps/index.ts +1 -0
  115. package/src/components/WfoWorkflowSteps/stepListUtils.ts +1 -28
  116. package/src/components/confirmationDialog/WfoConfirmationDialog.tsx +3 -3
  117. package/src/components/index.ts +9 -2
  118. package/src/contexts/ApiClientContext.tsx +5 -1
  119. package/src/contexts/ConfirmationDialogProvider.tsx +2 -2
  120. package/src/contexts/OrchestratorConfigContext.tsx +0 -3
  121. package/src/contexts/ToastContext.tsx +1 -1
  122. package/src/contexts/TreeContext.tsx +6 -1
  123. package/src/graphqlQueries/customersQuery.ts +2 -1
  124. package/src/graphqlQueries/index.ts +1 -0
  125. package/src/graphqlQueries/processDetailQuery.ts +8 -0
  126. package/src/graphqlQueries/processListQuery.ts +48 -7
  127. package/src/graphqlQueries/processStepsQuery.ts +22 -0
  128. package/src/graphqlQueries/productBlocksQuery.ts +11 -5
  129. package/src/graphqlQueries/productsQuery.ts +42 -7
  130. package/src/graphqlQueries/relatedSubscriptionsQuery.ts +2 -2
  131. package/src/graphqlQueries/resourceTypesQuery.ts +10 -4
  132. package/src/graphqlQueries/subscriptionDetailQuery.ts +5 -1
  133. package/src/graphqlQueries/subscriptionsDropdownOptionsQuery.ts +2 -1
  134. package/src/graphqlQueries/subscriptionsListQuery.ts +46 -7
  135. package/src/graphqlQueries/workflows/workflowsQuery.ts +10 -4
  136. package/src/graphqlQueries/workflows/workflowsQueryForDropdownList.ts +3 -6
  137. package/src/hooks/DataFetchHooks.ts +20 -61
  138. package/src/hooks/index.ts +3 -0
  139. package/src/hooks/surf/useGetSubscriptionDropdownOptions.ts +1 -0
  140. package/src/hooks/surf/useIsTaggedPort.ts +1 -2
  141. package/src/hooks/useCheckEngineStatus.ts +30 -0
  142. package/src/hooks/useDataDisplayParams.ts +3 -3
  143. package/src/hooks/useEngineStatusQuery.ts +9 -7
  144. package/src/hooks/useMutateProcess.ts +96 -0
  145. package/src/hooks/useOrchestratorConfig.ts +0 -3
  146. package/src/hooks/useQueryWithGraphql.ts +25 -13
  147. package/src/hooks/useSessionWithToken.ts +3 -5
  148. package/src/hooks/useSubscriptionActions.ts +8 -2
  149. package/src/icons/WfoBell.tsx +34 -0
  150. package/src/icons/WfoContactEnvelopeFill.tsx +29 -0
  151. package/src/icons/WfoPencil.tsx +21 -0
  152. package/src/icons/WfoSideMenu.stories.tsx +13 -0
  153. package/src/icons/WfoSideMenu.tsx +39 -0
  154. package/src/icons/WfoStatistic.tsx +3 -3
  155. package/src/icons/WfoViewList.tsx +24 -0
  156. package/src/icons/index.ts +6 -0
  157. package/src/messages/{en-US.json → en-GB.json} +117 -39
  158. package/src/messages/getTranslationMessages.spec.ts +25 -40
  159. package/src/messages/index.ts +1 -1
  160. package/src/messages/nl-NL.json +126 -49
  161. package/src/messages/useGetTranslationMessages.ts +51 -0
  162. package/src/pages/index.ts +2 -1
  163. package/src/pages/metadata/WfoProductBlocksPage.tsx +17 -19
  164. package/src/pages/metadata/WfoProductsPage.tsx +30 -34
  165. package/src/pages/metadata/WfoResourceTypesPage.tsx +16 -18
  166. package/src/pages/metadata/WfoWorkflowsPage.tsx +18 -19
  167. package/src/pages/processes/WfoProcessDetail.tsx +101 -80
  168. package/src/pages/processes/WfoProcessDetailPage.tsx +35 -17
  169. package/src/pages/processes/WfoStartProcessPage.tsx +251 -0
  170. package/src/pages/processes/index.ts +1 -3
  171. package/src/pages/settings/WfoSettingsPage.tsx +30 -0
  172. package/src/pages/settings/index.ts +1 -0
  173. package/src/pages/startPage/WfoStartPage.tsx +239 -0
  174. package/src/pages/startPage/index.ts +1 -0
  175. package/src/pages/subscriptions/WfoSubscriptionsListPage.tsx +22 -26
  176. package/src/pages/tasks/WfoTasksListPage.tsx +169 -0
  177. package/src/pages/tasks/getTasksListTabTypeFromString.ts +19 -0
  178. package/src/pages/tasks/index.ts +3 -1
  179. package/src/pages/tasks/tabConfig.ts +51 -0
  180. package/src/pages/{processes/WfoProcessListPage.tsx → workflows/WfoWorkflowsListPage.tsx} +30 -32
  181. package/src/pages/workflows/getWorkflowsListTabTypeFromString.ts +19 -0
  182. package/src/pages/workflows/index.ts +1 -0
  183. package/src/pages/{processes → workflows}/tabConfig.ts +9 -9
  184. package/src/theme/defaultOrchestratorTheme.ts +8 -0
  185. package/src/types/types.ts +38 -53
  186. package/src/utils/date.ts +39 -0
  187. package/src/utils/getDefaultTableConfig.ts +19 -9
  188. package/tsconfig.json +4 -4
  189. package/src/components/WfoSettingsPage/WfoModifySettings.tsx +0 -33
  190. package/src/components/WfoSettingsPage/WfoSettings.tsx +0 -40
  191. package/src/components/WfoStartPage/WfoFrequentlyUsed.stories.tsx +0 -16
  192. package/src/components/WfoStartPage/WfoFrequentlyUsed.tsx +0 -21
  193. package/src/components/WfoStartPage/WfoListItemStartPage.stories.tsx +0 -40
  194. package/src/components/WfoStartPage/WfoListItemStartPage.tsx +0 -95
  195. package/src/components/WfoStartPage/WfoListStartPage.stories.tsx +0 -98
  196. package/src/components/WfoStartPage/WfoListStartPage.tsx +0 -45
  197. package/src/components/WfoStartPage/WfoMultiListSection.stories.tsx +0 -90
  198. package/src/components/WfoStartPage/WfoMultiListSection.tsx +0 -25
  199. package/src/components/WfoStartPage/WfoNewProcessPanel.stories.tsx +0 -13
  200. package/src/components/WfoStartPage/WfoNewProcessPanel.tsx +0 -45
  201. package/src/components/WfoStartPage/WfoStatCards.stories.tsx +0 -13
  202. package/src/components/WfoStartPage/WfoStatCards.tsx +0 -75
  203. package/src/components/WfoStartPage/index.ts +0 -6
  204. package/src/hooks/ProcessesHooks/useDeleteProcess.ts +0 -37
  205. package/src/messages/getTranslationMessages.ts +0 -26
  206. package/src/pages/processes/getProcessListTabTypeFromString.ts +0 -19
  207. package/src/pages/tasks/WfoTaskListPage.tsx +0 -120
  208. package/src/pages/workflow/WfoStartWorkflowPage.tsx +0 -177
  209. package/src/pages/workflow/index.ts +0 -1
  210. /package/src/components/{WfoSettingsPage → WfoSettings}/index.ts +0 -0
@@ -1,17 +1,29 @@
1
1
  {
2
2
  "main": {
3
+ "metadata": "Metadata",
4
+ "metadataProducts": "Products",
5
+ "metadataProductblocks": "Product blocks",
6
+ "metadataResourceTypes": "Resource types",
7
+ "metadataWorkflows": "Workflows",
8
+ "mobileTitle": "Main menu",
9
+ "settings": "Settings",
10
+ "start": "Start",
11
+ "subscriptions": "Subscriptions",
12
+ "tasks": "Tasks",
3
13
  "title": "Welcome to example-orchestrator-ui!",
4
- "mobileTitle": "Main menu"
14
+ "welcome": "Welcome",
15
+ "workflows": "Workflows"
5
16
  },
6
17
  "common": {
7
- "addToFavorites": "Add to favorites",
8
18
  "product": "Product",
9
19
  "deselect": "Deselect",
10
20
  "close": "Close",
21
+ "editColumns": "Edit columns",
11
22
  "newSubscription": "New subscription",
12
23
  "newTask": "New task",
13
24
  "noFailedTasks": "No failed tasks!",
14
- "search": "Search"
25
+ "search": "Search",
26
+ "errorMessage": "An error occurred"
15
27
  },
16
28
  "confirmationDialog": {
17
29
  "title": "Please confirm",
@@ -26,6 +38,9 @@
26
38
  "start_workflow_title": "Start workflow"
27
39
  },
28
40
  "errors": {
41
+ "invalidQueryParts": "The query contains invalid parts",
42
+ "notAllowedWhenEngineIsNotRunningMessage": "This action is not allowed when the Workflow Engine is not running",
43
+ "notAllowedWhenEngineIsNotRunningTitle": "Workflow Engine is not running",
29
44
  "retrieve_stored_settings": "Something went wrong restoring your settings. Falling back to default settings",
30
45
  "retrieve_stored_settings_title": "Error retrieving settings"
31
46
  },
@@ -34,16 +49,12 @@
34
49
  "cancel": "Cancel",
35
50
  "submit": "Submit",
36
51
  "previous": "Previous",
37
- "runProcess": "Run Process",
38
- "cancelProcess": "Cancel Process"
39
- },
40
- "fields": {
41
- "bfd": {
42
- "description": "Bidirectional Forwarding Detection",
43
- "title": "BFD"
44
- },
45
- "esi_service_ports_add": "Add Endpoint",
46
- "esi_service_ports_del": "Delete Endpoint"
52
+ "previousQuestion": "Are you sure you want to leave this page? Any filled form data will be lost",
53
+ "startTask": "Start task",
54
+ "startWorkflow": "Start workflow",
55
+ "resumeTask": "Resume task",
56
+ "resumeWorkflow": "Resume workflow",
57
+ "inputFieldsHaveValidationErrors": "{nrOfValidationErrors} input field(s) have validation errors"
47
58
  },
48
59
  "widgets": {
49
60
  "organisation": {
@@ -83,6 +94,13 @@
83
94
  "subscription": {
84
95
  "placeholder": "Choose a subscription",
85
96
  "loading": "Loading subscriptions..."
97
+ },
98
+ "nodePort": {
99
+ "loadingNodes": "Loading Node subscriptions...",
100
+ "loadingPorts": "Loading IMS ports...",
101
+ "selectNode": "Select node",
102
+ "selectPort": "Select port",
103
+ "selectNodeFirst": "Select a node first"
86
104
  }
87
105
  }
88
106
  },
@@ -119,7 +137,7 @@
119
137
  "resourceTypes": {
120
138
  "type": "Resource type",
121
139
  "description": "Resource type description",
122
- "resourceId": "Resource Id",
140
+ "resourceId": "Resource ID",
123
141
  "usedInProductBlocks": "Used in product blocks"
124
142
  },
125
143
  "workflows": {
@@ -131,35 +149,35 @@
131
149
  }
132
150
  },
133
151
  "processes": {
134
- "tabs": {
135
- "active": "Active",
136
- "completed": "Completed"
137
- },
138
152
  "index": {
139
153
  "workflowName": "Workflow",
140
- "step": "Last step",
154
+ "step": "Current step",
141
155
  "status": "Status",
142
156
  "product": "Product",
143
157
  "customer": "Customer",
144
158
  "customerAbbreviation": "Customer abbreviation",
145
159
  "subscriptions": "Subscriptions",
146
- "createdBy": "Created By",
160
+ "createdBy": "Created by",
147
161
  "assignee": "Assignee",
148
- "processId": "PID",
162
+ "processId": "Process ID",
149
163
  "started": "Started",
150
- "lastModified": "Last Modified",
164
+ "lastModified": "Last modified",
151
165
  "workflowTarget": "Target",
152
- "productTag": "Tag"
166
+ "productTag": "Product tag"
153
167
  },
154
168
  "detail": {
155
169
  "retry": "Retry",
156
170
  "resume": "Resume",
157
171
  "abort": "Abort",
158
172
  "delete": "Delete",
159
- "deleteQuestion": "Are you sure you want to delete the task {workflowName}?",
173
+ "deleteQuestion": "Are you sure you want to delete the {workflowName} task?",
174
+ "abortTaskQuestion": "Are you sure you want to abort the {workflowName} task?",
175
+ "abortWorkflowQuestion": "Are you sure you want to abort the {workflowName} workflow?",
176
+ "retryTaskQuestion": "Are you sure you want to retry the {workflowName} task?",
177
+ "retryWorkflowQuestion": "Are you sure you want to retry the {workflowName} workflow?",
160
178
  "status": "Status",
161
179
  "startedBy": "Started by",
162
- "lastStep": "Last step",
180
+ "lastStep": "Current step",
163
181
  "startedOn": "Started on",
164
182
  "lastUpdate": "Last update",
165
183
  "relatedSubscriptions": "Related subscriptions",
@@ -167,14 +185,29 @@
167
185
  "customer": "Customer"
168
186
  },
169
187
  "steps": {
170
- "steps": "Workflow steps",
188
+ "taskSteps": "Task steps",
189
+ "workflowSteps": "Workflow steps",
171
190
  "showDelta": "Show subscription delta",
172
- "viewOptions": "View options",
173
- "expandAll": "expand all",
191
+ "hideDelta": "Hide subscription delta",
192
+ "viewOptions": "Options",
193
+ "expandAll": "Expand all",
174
194
  "collapseAll": "collapse all",
175
- "duration": "Looptijd",
176
- "userInput": "User Input",
177
- "submitFormLabel": "Please complete and submit the form below to start the workflow"
195
+ "duration": "Duration",
196
+ "userInput": "User input",
197
+ "submitTaskFormLabel": "Please submit the form to start this task",
198
+ "submitWorkflowFormLabel": "Please submit the form to start this workflow"
199
+ },
200
+ "delta": {
201
+ "title": "Subscription delta"
202
+ }
203
+ },
204
+ "workflows": {
205
+ "tabs": {
206
+ "active": "Active",
207
+ "completed": "Completed"
208
+ },
209
+ "index": {
210
+ "title": "Workflows"
178
211
  }
179
212
  },
180
213
  "subscriptions": {
@@ -191,22 +224,25 @@
191
224
  "insync": "In Sync",
192
225
  "product": "Product",
193
226
  "tag": "Tag",
194
- "startDate": "Start Date",
195
- "endDate": "End Date",
196
- "note": "Note"
227
+ "startDate": "Start date",
228
+ "endDate": "End date",
229
+ "note": "Note",
230
+ "customerFullname": "Customer",
231
+ "customerShortcode": "Customer abbreviation"
197
232
  },
198
233
  "detail": {
234
+ "title": "Subscriptions",
199
235
  "tabs": {
200
236
  "general": "General",
201
237
  "serviceConfiguration": "Service configuration",
202
- "processes": "Processes",
238
+ "workflows": "Workflows",
203
239
  "relatedSubscriptions": "Related subscriptions"
204
240
  },
205
241
  "loadingStatus": "Loading status",
206
242
  "actions": {
207
243
  "create": "Create workflow",
208
244
  "modify": "Modify workflow",
209
- "system": "System workflow",
245
+ "tasks": "Tasks",
210
246
  "terminate": "Terminate workflow",
211
247
  "actions": "Actions",
212
248
  "subscription": {
@@ -225,6 +261,7 @@
225
261
  "ownerSubscriptionId": "Owner subscription ID",
226
262
  "inUseByRelations": "In use by relation",
227
263
  "showDetails": "Show details",
264
+ "self": "Current subscription",
228
265
  "hideDetails": "Hide details",
229
266
  "subscriptionDetails": "Subscription details",
230
267
  "productName": "Product name",
@@ -253,18 +290,59 @@
253
290
  "endDate": "End date",
254
291
  "note": "Note",
255
292
  "noRelatedSubscriptions": "No related subscriptions found",
256
- "hideTerminatedRelatedSubscriptions": "Hide terminated related subscriptions",
293
+ "hideTerminatedRelatedSubscriptions": "Hide terminated subscriptions",
257
294
  "processDetail": {
258
295
  "id": "ID",
259
296
  "status": "Status",
260
297
  "startedAt": "Started at",
261
298
  "startedBy": "Started by"
262
- }
299
+ },
300
+ "showAll": "Show all",
301
+ "hideAll": "Hide all"
263
302
  }
264
303
  },
265
304
  "tasks": {
266
305
  "page": {
267
- "rerunAll": "Rerun all"
306
+ "taskName": "Task",
307
+ "rerunAll": "Rerun all",
308
+ "rerunAllQuestion": "Are you sure you want to rerun all failed tasks?"
309
+ },
310
+ "tabs": {
311
+ "active": "Active",
312
+ "completed": "Completed"
313
+ }
314
+ },
315
+ "settings": {
316
+ "page": {
317
+ "flushButton": "Flush",
318
+ "flushCacheSettingsTitle": "Flush cache settings",
319
+ "engineStatus": "Workflow engine status",
320
+ "modifyEngine": "Modify the engine settings",
321
+ "pauseEngine": "Pause workflow engine",
322
+ "runningProcesses": "Running processes",
323
+ "selectSettings": "Select cache",
324
+ "startEngine": "Start workflow engine"
325
+ }
326
+ },
327
+ "startPage": {
328
+ "activeSubscriptions": {
329
+ "buttonText": "Show all active subscriptions",
330
+ "headerTitle": "Total active subscriptions",
331
+ "listTitle": "Most recent subscriptions"
332
+ },
333
+ "activeWorkflows": {
334
+ "buttonText": "Show all active workflows",
335
+ "headerTitle": "Total active workflows",
336
+ "listTitle": "Most recent active workflows"
337
+ },
338
+ "failedTasks": {
339
+ "buttonText": "Show all failed tasks",
340
+ "headerTitle": "Total failed tasks",
341
+ "listTitle": "Most recent failed tasks"
342
+ },
343
+ "products": {
344
+ "headerTitle": "Total number of products",
345
+ "listTitle": "Total number of product instances"
268
346
  }
269
347
  }
270
348
  }
@@ -1,51 +1,36 @@
1
+ describe('getTransalationMessages', () => {
2
+ it('Makes jest stop complaining about an empty test file', () => {
3
+ expect(true).toEqual(true);
4
+ });
5
+ });
6
+
7
+ export {};
8
+ /*
9
+ These tests are disabled because of an issue described here:
10
+ https://github.com/workfloworchestrator/orchestrator-ui/issues/513
11
+
1
12
  import { Locale } from '../types';
2
- import enUS from './en-US.json';
3
- import { getTranslationMessages } from './getTranslationMessages';
13
+ import enGB from './en-GB.json';
4
14
  import nlNL from './nl-NL.json';
5
-
6
- describe('getTransalationMessages', () => {
15
+ import { useGetTranslationMessages } from './useGetTranslationMessages';
16
+ describe('useGetTranslationMessages', () => {
7
17
  it('Returns nl-NL translation when nl-NL locale is requested', () => {
8
- const translation = getTranslationMessages(Locale.nlNL);
18
+ const translation = useGetTranslationMessages(Locale.nlNL);
9
19
  expect(translation).toEqual(nlNL);
10
20
  });
11
21
 
12
- it('Returns en-US translation when en-US locale is requested', () => {
13
- const translation = getTranslationMessages(Locale.enUS);
14
- expect(translation).toEqual(enUS);
22
+ it('Returns en-GB translation when en-GB locale is requested', () => {
23
+ const translation = useGetTranslationMessages(Locale.enGB);
24
+ expect(translation).toEqual(enGB);
15
25
  });
16
26
 
17
- it('Returns en-US translation when no locale is requested', () => {
18
- const translation = getTranslationMessages(undefined);
19
- expect(translation).toEqual(enUS);
20
- });
21
- it('Returns en-US translation unknown locale is requested', () => {
22
- const translation = getTranslationMessages('UNKNOWN-LOCALE');
23
- expect(translation).toEqual(enUS);
27
+ it('Returns en-GB translation when no locale is requested', () => {
28
+ const translation = useGetTranslationMessages(undefined);
29
+ expect(translation).toEqual(enGB);
24
30
  });
25
- it('Returns custom translation when custom translations map array is provided', () => {
26
- const customEN = {
27
- metadata: {
28
- product: {
29
- name: 'CUSTOM-EN-NAME',
30
- },
31
- },
32
- };
33
-
34
- const customMap = new Map([[Locale.enUS, customEN]]);
35
- const translation = getTranslationMessages(Locale.enUS, customMap);
36
- expect(translation).toEqual(customEN);
37
- });
38
- it('Returns en-Us translation if unknown locale is requested together with custom translations map', () => {
39
- const customEN = {
40
- metadata: {
41
- product: {
42
- name: 'CUSTOM-EN-NAME',
43
- },
44
- },
45
- };
46
-
47
- const customMap = new Map([[Locale.enUS, customEN]]);
48
- const translation = getTranslationMessages('UNKNOWN-LOCALE', customMap);
49
- expect(translation).toEqual(customEN);
31
+ it('Returns en-GB translation unknown locale is requested', () => {
32
+ const translation = useGetTranslationMessages('UNKNOWN-LOCALE');
33
+ expect(translation).toEqual(enGB);
50
34
  });
51
35
  });
36
+ */
@@ -1 +1 @@
1
- export * from './getTranslationMessages';
1
+ export * from './useGetTranslationMessages';