@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,13 +1,14 @@
1
- yarn run v1.22.21
2
- $ tsup src/index.ts --format esm --dts --tsconfig tsconfig.build.json
1
+
2
+ > @orchestrator-ui/orchestrator-ui-components@0.3.1 build
3
+ > tsup src/index.ts --format esm --dts --tsconfig tsconfig.build.json
4
+
3
5
  CLI Building entry: src/index.ts
4
6
  CLI Using tsconfig: tsconfig.build.json
5
- CLI tsup v7.2.0
6
- CLI Target: node16
7
+ CLI tsup v8.0.1
8
+ CLI Target: es6
7
9
  ESM Build start
8
- ESM dist/index.js 808.65 KB
9
- ESM ⚡️ Build success in 515ms
10
10
  DTS Build start
11
- DTS ⚡️ Build success in 9948ms
12
- DTS dist/index.d.ts 60.30 KB
13
- Done in 10.82s.
11
+ ESM dist/index.js 1.92 MB
12
+ ESM ⚡️ Build success in 723ms
13
+ DTS ⚡️ Build success in 10252ms
14
+ DTS dist/index.d.ts 98.49 KB
@@ -1,7 +1,4 @@
1
- $ eslint "src/**/*.ts*"
2
1
 
3
- /home/runner/work/orchestrator-ui/orchestrator-ui/packages/orchestrator-ui-components/src/components/WfoForms/formFields/SubscriptionField.tsx
4
- 253:21 warning Do not use "@ts-ignore" because it alters compilation errors @typescript-eslint/ban-ts-comment
5
-
6
- ✖ 1 problem (0 errors, 1 warning)
2
+ > @orchestrator-ui/orchestrator-ui-components@0.3.1 lint
3
+ > eslint "src/**/*.ts*"
7
4
 
@@ -1,25 +1,30 @@
1
- $ jest
1
+
2
+ > @orchestrator-ui/orchestrator-ui-components@0.3.1 test
3
+ > jest
4
+
5
+ PASS Orchestrator UI Components Tests src/utils/date.spec.ts
2
6
  PASS Orchestrator UI Components Tests src/pages/processes/timelineUtils.spec.ts
3
7
  PASS Orchestrator UI Components Tests src/components/WfoForms/formFields/utils.spec.ts
4
- PASS Orchestrator UI Components Tests src/utils/date.spec.ts
5
- PASS Orchestrator UI Components Tests src/utils/getProductNamesFromProcess.spec.ts
6
8
  PASS Orchestrator UI Components Tests src/components/WfoSubscription/utils/utils.spec.ts
9
+ PASS Orchestrator UI Components Tests src/utils/getProductNamesFromProcess.spec.ts
7
10
  PASS Orchestrator UI Components Tests src/components/WfoTable/WfoDataGridTable/WfodataGridColumns.spec.ts
8
- PASS Orchestrator UI Components Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
11
+ PASS Orchestrator UI Components Tests src/components/WfoTable/WfoTableWithFilter/updateQueryString.spec.ts
9
12
  PASS Orchestrator UI Components Tests src/components/WfoTree/treeUtils.spec.ts
10
- PASS Orchestrator UI Components Tests src/utils/string.spec.ts
11
- PASS Orchestrator UI Components Tests src/messages/getTranslationMessages.spec.ts
13
+ PASS Orchestrator UI Components Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
12
14
  PASS Orchestrator UI Components Tests src/components/WfoTable/utils/tableUtils.spec.ts
15
+ PASS Orchestrator UI Components Tests src/utils/string.spec.ts
13
16
  PASS Orchestrator UI Components Tests src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.spec.ts
14
- PASS Orchestrator UI Components Tests src/components/WfoTable/utils/columns.spec.ts
17
+ PASS Orchestrator UI Components Tests src/messages/getTranslationMessages.spec.ts
15
18
  PASS Orchestrator UI Components Tests src/components/WfoWorkflowSteps/stepListUtils.spec.ts
19
+ PASS Orchestrator UI Components Tests src/components/WfoTable/utils/columns.spec.ts
16
20
  PASS Orchestrator UI Components Tests src/utils/getTokenName.spec.ts
17
21
  PASS Orchestrator UI Components Tests src/utils/environmentVariables.spec.ts
18
22
  PASS Orchestrator UI Components Tests src/utils/uuid.spec.ts
23
+ PASS Orchestrator UI Components Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
19
24
  PASS Orchestrator UI Components Tests src/utils/getTypedFieldFromObject.spec.ts
20
25
 
21
- Test Suites: 18 passed, 18 total
22
- Tests: 114 passed, 114 total
26
+ Test Suites: 20 passed, 20 total
27
+ Tests: 128 passed, 128 total
23
28
  Snapshots: 0 total
24
- Time: 9.588 s
29
+ Time: 11.523 s
25
30
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @orchestrator-ui/orchestrator-ui-components
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - d824a58: fix uuid in breadcrumb
8
+ - cb3142a: - expand the root product block card by default
9
+ - change tree icon of root product block
10
+ - open other subscription detail page opens in new tab
11
+ - use title of root product block in tree like the other product blocks
12
+ - e6aaef7: 598 Fixes invisible email in step list
13
+
14
+ ## 0.3.0
15
+
16
+ ### Minor Changes
17
+
18
+ - ef5eace: Updates all major dependencies including Typescript to version 5 and NextJS to version 14
19
+
3
20
  ## 0.2.7
4
21
 
5
22
  ### Patch Changes