@orchestrator-ui/orchestrator-ui-components 0.3.0 → 0.4.0

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 (159) hide show
  1. package/.turbo/turbo-build.log +9 -8
  2. package/.turbo/turbo-lint.log +4 -1
  3. package/.turbo/turbo-test.log +14 -8
  4. package/CHANGELOG.md +24 -0
  5. package/dist/index.d.ts +624 -241
  6. package/dist/index.js +4774 -3116
  7. package/package.json +31 -26
  8. package/src/api/axios.ts +2 -8
  9. package/src/api/index.ts +4 -4
  10. package/src/components/WfoBadges/WfoBadge/WfoBadge.tsx +4 -1
  11. package/src/components/WfoBadges/index.ts +1 -0
  12. package/src/components/WfoError/WfoError.stories.tsx +26 -0
  13. package/src/components/WfoError/WfoError.tsx +19 -0
  14. package/src/components/WfoError/index.ts +1 -0
  15. package/src/components/WfoFilterTabs/WfoFilterTabs.tsx +4 -2
  16. package/src/components/WfoForms/UserInputForm.tsx +14 -2
  17. package/src/components/WfoForms/formFields/OrganisationField.tsx +1 -1
  18. package/src/components/WfoForms/formFields/SplitPrefix.tsx +12 -4
  19. package/src/components/WfoForms/formFields/SubscriptionField.tsx +9 -4
  20. package/src/components/WfoForms/formFields/utils.spec.ts +88 -9
  21. package/src/components/WfoKeyValueTable/WfoValueCell.tsx +2 -2
  22. package/src/components/WfoOptionalLink/WfoOptionalLink.tsx +20 -0
  23. package/src/components/WfoOptionalLink/index.ts +1 -0
  24. package/src/components/WfoPageTemplate/WfoBreadcrumbs/WfoBreadcrumbs.tsx +5 -2
  25. package/src/components/WfoPageTemplate/WfoPageHeader/WfoAppLogo.tsx +28 -0
  26. package/src/components/WfoPageTemplate/WfoPageHeader/WfoPageHeader.tsx +19 -16
  27. package/src/components/WfoPageTemplate/WfoPageHeader/styles.ts +29 -0
  28. package/src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts +12 -0
  29. package/src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.ts +5 -0
  30. package/src/components/WfoPageTemplate/WfoSidebar/WfoCopyright.tsx +22 -0
  31. package/src/components/WfoPageTemplate/WfoSidebar/WfoSidebar.tsx +10 -6
  32. package/src/components/WfoPageTemplate/WfoSidebar/WfoStartCreateWorkflowButtonComboBox.tsx +0 -3
  33. package/src/components/WfoPageTemplate/WfoSidebar/styles.ts +17 -0
  34. package/src/components/WfoProcessList/{WfoProcessList.tsx → WfoProcessesList.tsx} +79 -36
  35. package/src/components/WfoProcessList/index.ts +1 -1
  36. package/src/components/WfoProcessList/processListObjectMappers.ts +5 -1
  37. package/src/components/WfoSettings/WfoFlushSettings.tsx +16 -6
  38. package/src/components/WfoSettings/WfoModifySettings.tsx +1 -1
  39. package/src/components/WfoSettingsModal/WfoSubmitModal.tsx +61 -0
  40. package/src/components/WfoSettingsModal/index.tsx +1 -0
  41. package/src/components/WfoStartTaskButtonComboBox/WfoStartTaskButtonComboBox.tsx +0 -3
  42. package/src/components/WfoSubscription/WfoRelatedSubscriptions.tsx +4 -1
  43. package/src/components/WfoSubscription/WfoSubscription.tsx +41 -66
  44. package/src/components/WfoSubscription/WfoSubscriptionDetailTree.tsx +3 -6
  45. package/src/components/WfoSubscription/WfoSubscriptionGeneral.tsx +1 -1
  46. package/src/components/WfoSubscription/WfoSubscriptionProductBlock.tsx +2 -1
  47. package/src/components/WfoSubscription/subscriptionDetailTabs.tsx +59 -0
  48. package/src/components/WfoSubscription/utils/utils.ts +5 -5
  49. package/src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx +69 -24
  50. package/src/components/WfoSubscriptionsList/index.ts +1 -1
  51. package/src/components/WfoSubscriptionsList/subscriptionListTabs.ts +8 -30
  52. package/src/components/WfoSubscriptionsList/{mapGrapghQlSubscriptionsResultToSubscriptionListItems.ts → subscriptionResultMappers.ts} +14 -1
  53. package/src/components/WfoSummary/WfoSummaryCardHeader/WfoSummaryCardHeader.tsx +55 -0
  54. package/src/components/WfoSummary/WfoSummaryCardHeader/index.ts +1 -0
  55. package/src/components/WfoSummary/WfoSummaryCardHeader/styles.ts +26 -0
  56. package/src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardList.tsx +86 -0
  57. package/src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardListItem.tsx +59 -0
  58. package/src/components/WfoSummary/WfoSummaryCardList/index.ts +2 -0
  59. package/src/components/WfoSummary/WfoSummaryCardList/styles.ts +52 -0
  60. package/src/components/WfoSummary/WfoSummaryCards.tsx +111 -0
  61. package/src/components/WfoSummary/getNumberOfColumns.ts +14 -0
  62. package/src/components/WfoSummary/index.ts +4 -0
  63. package/src/components/WfoSummary/styles.ts +13 -0
  64. package/src/components/WfoTable/WfoBasicTable/WfoBasicTable.tsx +18 -16
  65. package/src/components/WfoTable/WfoBasicTable/WfoTableHeaderCell.tsx +2 -2
  66. package/src/components/WfoTable/WfoBasicTable/index.ts +1 -0
  67. package/src/components/WfoTable/WfoBasicTable/styles.ts +28 -2
  68. package/src/components/WfoTable/WfoFirstPartUUID/WfoFirstPartUUID.tsx +12 -3
  69. package/src/components/WfoTable/WfoFirstPartUUID/styles.ts +12 -0
  70. package/src/components/WfoTable/WfoTableWithFilter/WfoTableWithFilter.tsx +24 -4
  71. package/src/components/WfoTable/index.ts +2 -0
  72. package/src/components/WfoTable/utils/columns.ts +21 -15
  73. package/src/components/WfoTable/utils/constants.ts +4 -2
  74. package/src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.ts +5 -3
  75. package/src/components/WfoTree/WfoTreeNode.tsx +3 -4
  76. package/src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx +4 -3
  77. package/src/components/WfoWorkflowSteps/index.ts +1 -0
  78. package/src/components/index.ts +3 -1
  79. package/src/configuration/constants.ts +1 -0
  80. package/src/contexts/ApiClientContext.tsx +5 -1
  81. package/src/contexts/OrchestratorConfigContext.tsx +0 -3
  82. package/src/contexts/ToastContext.tsx +1 -1
  83. package/src/contexts/TreeContext.tsx +1 -1
  84. package/src/graphqlQueries/customersQuery.ts +3 -2
  85. package/src/graphqlQueries/processListQuery.ts +46 -6
  86. package/src/graphqlQueries/productBlocksQuery.ts +3 -1
  87. package/src/graphqlQueries/productsQuery.ts +40 -9
  88. package/src/graphqlQueries/resourceTypesQuery.ts +3 -1
  89. package/src/graphqlQueries/subscriptionDetailQuery.ts +5 -2
  90. package/src/graphqlQueries/subscriptionsDropdownOptionsQuery.ts +3 -2
  91. package/src/graphqlQueries/subscriptionsListQuery.ts +41 -4
  92. package/src/graphqlQueries/workflows/workflowsQuery.ts +3 -1
  93. package/src/graphqlQueries/workflows/workflowsQueryForDropdownList.ts +3 -6
  94. package/src/hooks/DataFetchHooks.ts +17 -63
  95. package/src/hooks/surf/useGetSubscriptionDropdownOptions.ts +1 -0
  96. package/src/hooks/surf/useIsTaggedPort.ts +1 -2
  97. package/src/hooks/useOrchestratorConfig.ts +0 -3
  98. package/src/hooks/useQueryWithGraphql.ts +47 -13
  99. package/src/hooks/useSessionWithToken.ts +3 -5
  100. package/src/hooks/useSubscriptionActions.ts +8 -2
  101. package/src/icons/WfoBell.tsx +34 -0
  102. package/src/icons/WfoCogFill.tsx +23 -25
  103. package/src/icons/WfoContactEnvelopeFill.tsx +29 -0
  104. package/src/icons/WfoCubeSolid.tsx +33 -0
  105. package/src/icons/WfoPencil.tsx +21 -0
  106. package/src/icons/WfoPlayCircle.tsx +35 -0
  107. package/src/icons/WfoShare.tsx +35 -0
  108. package/src/icons/WfoSideMenu.stories.tsx +13 -0
  109. package/src/icons/WfoSideMenu.tsx +39 -0
  110. package/src/icons/WfoStatistic.tsx +3 -3
  111. package/src/icons/WfoViewList.tsx +24 -0
  112. package/src/icons/index.ts +9 -0
  113. package/src/messages/en-GB.json +37 -4
  114. package/src/messages/nl-NL.json +38 -5
  115. package/src/pages/index.ts +2 -1
  116. package/src/pages/metadata/WfoProductBlocksPage.tsx +45 -15
  117. package/src/pages/metadata/WfoProductsPage.tsx +45 -19
  118. package/src/pages/metadata/WfoResourceTypesPage.tsx +40 -13
  119. package/src/pages/metadata/WfoWorkflowsPage.tsx +46 -18
  120. package/src/pages/processes/WfoProcessDetail.tsx +5 -1
  121. package/src/pages/processes/WfoProcessDetailPage.tsx +31 -15
  122. package/src/pages/processes/WfoStartProcessPage.tsx +41 -17
  123. package/src/pages/startPage/WfoStartPage.tsx +239 -0
  124. package/src/pages/startPage/index.ts +1 -0
  125. package/src/pages/subscriptions/WfoSubscriptionsListPage.tsx +22 -26
  126. package/src/pages/tasks/{WfoTaskListPage.tsx → WfoTasksListPage.tsx} +67 -44
  127. package/src/pages/tasks/getTasksListTabTypeFromString.ts +19 -0
  128. package/src/pages/tasks/index.ts +3 -1
  129. package/src/pages/tasks/tabConfig.ts +51 -0
  130. package/src/pages/{workflow/WfoWorkflowListPage.tsx → workflows/WfoWorkflowsListPage.tsx} +18 -19
  131. package/src/pages/workflows/getWorkflowsListTabTypeFromString.ts +19 -0
  132. package/src/pages/workflows/index.ts +1 -0
  133. package/src/pages/{workflow → workflows}/tabConfig.ts +9 -9
  134. package/src/theme/defaultOrchestratorTheme.ts +8 -0
  135. package/src/types/types.ts +10 -55
  136. package/src/utils/csvDownload.ts +87 -0
  137. package/src/utils/date.ts +39 -0
  138. package/src/utils/getDefaultTableConfig.ts +20 -12
  139. package/src/utils/getQueryVariablesForExport.spec.ts +19 -0
  140. package/src/utils/getQueryVariablesForExport.ts +11 -0
  141. package/src/utils/index.ts +1 -0
  142. package/src/utils/sortObjectKeys.spec.ts +34 -0
  143. package/src/utils/sortObjectKeys.ts +33 -0
  144. package/tsconfig.json +4 -4
  145. package/src/components/WfoStartPage/WfoFrequentlyUsed.stories.tsx +0 -16
  146. package/src/components/WfoStartPage/WfoFrequentlyUsed.tsx +0 -21
  147. package/src/components/WfoStartPage/WfoListItemStartPage.stories.tsx +0 -40
  148. package/src/components/WfoStartPage/WfoListItemStartPage.tsx +0 -95
  149. package/src/components/WfoStartPage/WfoListStartPage.stories.tsx +0 -98
  150. package/src/components/WfoStartPage/WfoListStartPage.tsx +0 -45
  151. package/src/components/WfoStartPage/WfoMultiListSection.stories.tsx +0 -90
  152. package/src/components/WfoStartPage/WfoMultiListSection.tsx +0 -25
  153. package/src/components/WfoStartPage/WfoNewProcessPanel.stories.tsx +0 -13
  154. package/src/components/WfoStartPage/WfoNewProcessPanel.tsx +0 -45
  155. package/src/components/WfoStartPage/WfoStatCards.stories.tsx +0 -13
  156. package/src/components/WfoStartPage/WfoStatCards.tsx +0 -75
  157. package/src/components/WfoStartPage/index.ts +0 -6
  158. package/src/pages/workflow/getWorkflowListTabTypeFromString.ts +0 -19
  159. package/src/pages/workflow/index.ts +0 -1
@@ -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.4.0 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
7
  CLI tsup v8.0.1
6
- CLI Target: node16
8
+ CLI Target: es6
7
9
  ESM Build start
8
10
  DTS Build start
9
- ESM dist/index.js 1.88 MB
10
- ESM ⚡️ Build success in 697ms
11
- DTS ⚡️ Build success in 9754ms
12
- DTS dist/index.d.ts 87.74 KB
13
- Done in 10.95s.
11
+ ESM dist/index.js 1.94 MB
12
+ ESM ⚡️ Build success in 732ms
13
+ DTS ⚡️ Build success in 10524ms
14
+ DTS dist/index.d.ts 103.05 KB
@@ -1 +1,4 @@
1
- $ eslint "src/**/*.ts*"
1
+
2
+ > @orchestrator-ui/orchestrator-ui-components@0.4.0 lint
3
+ > eslint "src/**/*.ts*"
4
+
@@ -1,6 +1,9 @@
1
- $ jest
2
- PASS Orchestrator UI Components Tests src/components/WfoForms/formFields/utils.spec.ts
1
+
2
+ > @orchestrator-ui/orchestrator-ui-components@0.4.0 test
3
+ > jest
4
+
3
5
  PASS Orchestrator UI Components Tests src/pages/processes/timelineUtils.spec.ts
6
+ PASS Orchestrator UI Components Tests src/components/WfoForms/formFields/utils.spec.ts
4
7
  PASS Orchestrator UI Components Tests src/utils/date.spec.ts
5
8
  PASS Orchestrator UI Components Tests src/components/WfoSubscription/utils/utils.spec.ts
6
9
  PASS Orchestrator UI Components Tests src/utils/getProductNamesFromProcess.spec.ts
@@ -8,19 +11,22 @@ PASS Orchestrator UI Components Tests src/components/WfoTable/WfoDataGridTable/W
8
11
  PASS Orchestrator UI Components Tests src/components/WfoTree/treeUtils.spec.ts
9
12
  PASS Orchestrator UI Components Tests src/components/WfoTable/WfoTableWithFilter/updateQueryString.spec.ts
10
13
  PASS Orchestrator UI Components Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
11
- PASS Orchestrator UI Components Tests src/components/WfoTable/utils/tableUtils.spec.ts
12
14
  PASS Orchestrator UI Components Tests src/utils/string.spec.ts
13
- PASS Orchestrator UI Components Tests src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.spec.ts
15
+ PASS Orchestrator UI Components Tests src/components/WfoTable/utils/tableUtils.spec.ts
14
16
  PASS Orchestrator UI Components Tests src/messages/getTranslationMessages.spec.ts
17
+ PASS Orchestrator UI Components Tests src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.spec.ts
15
18
  PASS Orchestrator UI Components Tests src/components/WfoTable/utils/columns.spec.ts
19
+ PASS Orchestrator UI Components Tests src/utils/sortObjectKeys.spec.ts
16
20
  PASS Orchestrator UI Components Tests src/components/WfoWorkflowSteps/stepListUtils.spec.ts
17
21
  PASS Orchestrator UI Components Tests src/utils/getTokenName.spec.ts
18
22
  PASS Orchestrator UI Components Tests src/utils/environmentVariables.spec.ts
19
- PASS Orchestrator UI Components Tests src/utils/getTypedFieldFromObject.spec.ts
20
23
  PASS Orchestrator UI Components Tests src/utils/uuid.spec.ts
24
+ PASS Orchestrator UI Components Tests src/utils/getTypedFieldFromObject.spec.ts
25
+ PASS Orchestrator UI Components Tests src/utils/getQueryVariablesForExport.spec.ts
26
+ PASS Orchestrator UI Components Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
21
27
 
22
- Test Suites: 19 passed, 19 total
23
- Tests: 122 passed, 122 total
28
+ Test Suites: 22 passed, 22 total
29
+ Tests: 131 passed, 131 total
24
30
  Snapshots: 0 total
25
- Time: 8.692 s
31
+ Time: 12.065 s
26
32
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @orchestrator-ui/orchestrator-ui-components
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - cdc668f: 544 - Export functionality for the tables
8
+
9
+ ### Patch Changes
10
+
11
+ - e8af27c: Process table - each column width in absolute or %
12
+ - e9af205: change order tabs sub-detail-page
13
+ - 996fc9f: added border radius to wfo tree and empty PB card placeholder
14
+ - 41e0cc9: added copyright to sidebar
15
+
16
+ ## 0.3.1
17
+
18
+ ### Patch Changes
19
+
20
+ - d824a58: fix uuid in breadcrumb
21
+ - cb3142a: - expand the root product block card by default
22
+ - change tree icon of root product block
23
+ - open other subscription detail page opens in new tab
24
+ - use title of root product block in tree like the other product blocks
25
+ - e6aaef7: 598 Fixes invisible email in step list
26
+
3
27
  ## 0.3.0
4
28
 
5
29
  ### Minor Changes