@orchestrator-ui/orchestrator-ui-components 0.2.1 → 0.2.3

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 (212) hide show
  1. package/.storybook/main.js +28 -0
  2. package/.storybook/preview.js +14 -0
  3. package/.turbo/turbo-build.log +11 -0
  4. package/.turbo/turbo-lint.log +10 -0
  5. package/.turbo/turbo-test.log +17 -0
  6. package/CHANGELOG.md +12 -0
  7. package/dist/index.d.ts +751 -0
  8. package/dist/index.js +7019 -0
  9. package/package.json +18 -4
  10. package/src/components/{Badges/Badge/Badge.stories.tsx → WFOBadges/WFOBadge/WFOBadge.stories.tsx} +4 -4
  11. package/src/components/{Badges/Badge/Badge.tsx → WFOBadges/WFOBadge/WFOBadge.tsx} +2 -2
  12. package/src/components/WFOBadges/WFOBadge/index.ts +1 -0
  13. package/src/components/{Badges/EngineStatusBadge/EngineStatusBadge.stories.tsx → WFOBadges/WFOEngineStatusBadge/WFOEngineStatusBadge.stories.tsx} +4 -4
  14. package/src/components/{Badges/EngineStatusBadge/EngineStatusBadge.tsx → WFOBadges/WFOEngineStatusBadge/WFOEngineStatusBadge.tsx} +6 -6
  15. package/src/components/WFOBadges/WFOEngineStatusBadge/index.ts +1 -0
  16. package/src/components/{Badges/EnvironmentBadge/EnvironmentBadge.stories.tsx → WFOBadges/WFOEnvironmentBadge/WFOEnvironmentBadge.stories.tsx} +4 -4
  17. package/src/components/{Badges/EnvironmentBadge/EnvironmentBadge.tsx → WFOBadges/WFOEnvironmentBadge/WFOEnvironmentBadge.tsx} +6 -6
  18. package/src/components/WFOBadges/WFOEnvironmentBadge/index.ts +1 -0
  19. package/src/components/WFOBadges/WFOFailedTasksBadge/WFOFailedTasksBadge.stories.tsx +12 -0
  20. package/src/components/{Badges/FailedTasksBadge/FailedTasksBadge.tsx → WFOBadges/WFOFailedTasksBadge/WFOFailedTasksBadge.tsx} +6 -6
  21. package/src/components/WFOBadges/WFOFailedTasksBadge/index.ts +1 -0
  22. package/src/components/{Badges/HeaderBadge/HeaderBadge.stories.tsx → WFOBadges/WFOHeaderBadge/WFOHeaderBadge.stories.tsx} +4 -4
  23. package/src/components/{Badges/HeaderBadge/HeaderBadge.tsx → WFOBadges/WFOHeaderBadge/WFOHeaderBadge.tsx} +4 -4
  24. package/src/components/WFOBadges/WFOHeaderBadge/index.ts +1 -0
  25. package/src/components/WFOBadges/WFOProcessStatusBadge/WFOProcessStatusBadge.tsx +71 -0
  26. package/src/components/WFOBadges/WFOProcessStatusBadge/index.ts +1 -0
  27. package/src/components/{Badges → WFOBadges}/WFOProductBlockBadge/WFOProductBlockBadge.stories.tsx +1 -1
  28. package/src/components/{Badges → WFOBadges}/WFOProductBlockBadge/WFOProductBlockBadge.tsx +3 -3
  29. package/src/components/{Badges → WFOBadges}/WFOStatusBadge/WFOStatusBadge.stories.tsx +1 -1
  30. package/src/components/{Badges → WFOBadges}/WFOStatusBadge/WFOStatusBadge.tsx +3 -3
  31. package/src/components/WFOBadges/index.ts +8 -0
  32. package/src/components/{Breadcrumbs/Breadcrumbs.tsx → WFOBreadcrumbs/WFOBreadcrumbs.tsx} +1 -1
  33. package/src/components/WFOBreadcrumbs/index.ts +1 -0
  34. package/src/components/WFOFilterTabs/WFOFilterTabs.tsx +43 -0
  35. package/src/components/WFOFilterTabs/index.ts +1 -0
  36. package/src/components/WFOLoading/WFOLoading.tsx +2 -0
  37. package/src/components/WFOLoading/index.ts +1 -0
  38. package/src/components/{OrchestratorPageTemplate/OrchestratorPageHeader/OrchestratorPageHeader.stories.tsx → WFOPageTemplate/WFOPageHeader/WFOPageHeader.stories.tsx} +5 -14
  39. package/src/components/{OrchestratorPageTemplate/OrchestratorPageHeader/OrchestratorPageHeader.tsx → WFOPageTemplate/WFOPageHeader/WFOPageHeader.tsx} +10 -10
  40. package/src/components/WFOPageTemplate/WFOPageHeader/index.ts +1 -0
  41. package/src/components/WFOPageTemplate/WFOPageTemplate/WFOPageTemplate.stories.tsx +24 -0
  42. package/src/components/{OrchestratorPageTemplate/OrchestratorPageTemplate/OrchestratorPageTemplate.tsx → WFOPageTemplate/WFOPageTemplate/WFOPageTemplate.tsx} +6 -6
  43. package/src/components/WFOPageTemplate/WFOPageTemplate/index.ts +1 -0
  44. package/src/components/{OrchestratorPageTemplate/OrchestratorSidebar/OrchestratorSidebar.stories.tsx → WFOPageTemplate/WFOSidebar/WFOSidebar.stories.tsx} +4 -4
  45. package/src/components/{OrchestratorPageTemplate/OrchestratorSidebar/OrchestratorSidebar.tsx → WFOPageTemplate/WFOSidebar/WFOSidebar.tsx} +2 -14
  46. package/src/components/WFOPageTemplate/WFOSidebar/index.ts +1 -0
  47. package/src/components/WFOPageTemplate/index.ts +3 -0
  48. package/src/components/{SearchBar/SearchField.tsx → WFOSearchBar/WFOSearchField.tsx} +3 -3
  49. package/src/components/WFOSearchBar/index.ts +1 -0
  50. package/src/components/WFOSettingsModal/index.tsx +1 -0
  51. package/src/components/{SettingsPage/EngineStatusButton.tsx → WFOSettingsPage/WFOEngineStatusButton.tsx} +2 -2
  52. package/src/components/{SettingsPage/FlushSettings.tsx → WFOSettingsPage/WFOFlushSettings.tsx} +1 -1
  53. package/src/components/{SettingsPage/ModifySettings.tsx → WFOSettingsPage/WFOModifySettings.tsx} +4 -4
  54. package/src/components/{SettingsPage/Settings.tsx → WFOSettingsPage/WFOSettings.tsx} +7 -7
  55. package/src/components/{SettingsPage/Status.tsx → WFOSettingsPage/WFOStatus.tsx} +4 -4
  56. package/src/components/WFOSettingsPage/index.ts +1 -0
  57. package/src/components/{StartPage/FrequentlyUsed.stories.tsx → WFOStartPage/WFOFrequentlyUsed.stories.tsx} +4 -4
  58. package/src/components/{StartPage/FrequentlyUsed.tsx → WFOStartPage/WFOFrequentlyUsed.tsx} +2 -2
  59. package/src/components/{StartPage/ListItemStartPage.stories.tsx → WFOStartPage/WFOListItemStartPage.stories.tsx} +4 -4
  60. package/src/components/{StartPage/ListItemStartPage.tsx → WFOStartPage/WFOListItemStartPage.tsx} +10 -7
  61. package/src/components/{StartPage/ListStartPage.stories.tsx → WFOStartPage/WFOListStartPage.stories.tsx} +4 -4
  62. package/src/components/{StartPage/ListStartPage.tsx → WFOStartPage/WFOListStartPage.tsx} +9 -4
  63. package/src/components/{StartPage/MultiListSection.stories.tsx → WFOStartPage/WFOMultiListSection.stories.tsx} +4 -4
  64. package/src/components/{StartPage/MultiListSection.tsx → WFOStartPage/WFOMultiListSection.tsx} +5 -5
  65. package/src/components/WFOStartPage/WFONewProcessPanel.stories.tsx +12 -0
  66. package/src/components/{StartPage/NewProcessPanel.tsx → WFOStartPage/WFONewProcessPanel.tsx} +3 -3
  67. package/src/components/WFOStartPage/WFOStatCards.stories.tsx +12 -0
  68. package/src/components/{StartPage/StatCards.tsx → WFOStartPage/WFOStatCards.tsx} +1 -1
  69. package/src/components/WFOStartPage/index.ts +6 -0
  70. package/src/components/{Subscription/FixedInputBlock.tsx → WFOSubscription/WFOFixedInputBlock.tsx} +2 -2
  71. package/src/components/{Subscription/ProcessesTimeline.tsx → WFOSubscription/WFOProcessesTimeline.tsx} +4 -4
  72. package/src/components/{Subscription/ProductBlock.tsx → WFOSubscription/WFOProductBlock.tsx} +4 -1
  73. package/src/components/{Subscription/SubscriptionActions.tsx → WFOSubscription/WFOSubscriptionActions.tsx} +1 -1
  74. package/src/components/{Subscription/SubscriptionBlock.tsx → WFOSubscription/WFOSubscriptionBlock.tsx} +5 -5
  75. package/src/components/{Subscription/SubscriptionDetailTree.tsx → WFOSubscription/WFOSubscriptionDetailTree.tsx} +5 -5
  76. package/src/components/{Subscription/SubscriptionGeneral.tsx → WFOSubscription/WFOSubscriptionGeneral.tsx} +9 -6
  77. package/src/components/WFOSubscription/index.ts +7 -0
  78. package/src/components/{Table/DataGridTable/DataGridTable.stories.tsx → WFOTable/WFODataGridTable/WFODataGridTable.stories.tsx} +6 -6
  79. package/src/components/{Table/DataGridTable/DataGridTable.tsx → WFOTable/WFODataGridTable/WFODataGridTable.tsx} +13 -13
  80. package/src/components/{Table/DataGridTable/dataGridColumns.spec.ts → WFOTable/WFODataGridTable/WFOdataGridColumns.spec.ts} +6 -6
  81. package/src/components/{Table/DataGridTable/dataGridColumns.ts → WFOTable/WFODataGridTable/WFOdataGridColumns.ts} +6 -6
  82. package/src/components/{Table/SortDirectionIcon.tsx → WFOTable/WFOSortDirectionIcon.tsx} +6 -6
  83. package/src/components/{Table/Table.tsx → WFOTable/WFOTable.tsx} +13 -13
  84. package/src/components/{Table/TableHeaderCell.tsx → WFOTable/WFOTableHeaderCell.tsx} +4 -4
  85. package/src/components/{Table/TableSettingsModal/TableSettingsModal.tsx → WFOTable/WFOTableSettingsModal/WFOTableSettingsModal.tsx} +1 -1
  86. package/src/components/WFOTable/WFOTableSettingsModal/index.ts +1 -0
  87. package/src/components/{Table/TableWithFilter/TableWithFilter.tsx → WFOTable/WFOTableWithFilter/WFOTableWithFilter.tsx} +31 -24
  88. package/src/components/WFOTable/WFOTableWithFilter/index.ts +1 -0
  89. package/src/components/WFOTable/index.ts +14 -0
  90. package/src/components/{Table → WFOTable}/utils/columns.ts +10 -10
  91. package/src/components/WFOTable/utils/constants.ts +15 -0
  92. package/src/components/{Tree/Tree.tsx → WFOTree/WFOTree.tsx} +4 -4
  93. package/src/components/{Tree/TreeBranch.tsx → WFOTree/WFOTreeBranch.tsx} +9 -5
  94. package/src/components/{Tree/TreeNode.tsx → WFOTree/WFOTreeNode.tsx} +6 -2
  95. package/src/components/index.ts +11 -11
  96. package/src/graphqlQueries/index.ts +2 -0
  97. package/src/graphqlQueries/processListQuery.ts +53 -0
  98. package/src/graphqlQueries/productBlocksQuery.ts +0 -5
  99. package/src/graphqlQueries/productsQuery.ts +47 -0
  100. package/src/graphqlQueries/resourceTypesQuery.ts +35 -0
  101. package/src/graphqlQueries/workflowsQuery.ts +37 -0
  102. package/src/hooks/useProcessStatusCountsQuery.ts +1 -0
  103. package/src/hooks/useSubscriptionProcesses.ts +2 -1
  104. package/src/icons/{ArrowNarrowDown.tsx → WFOArrowNarrowDown.tsx} +2 -2
  105. package/src/icons/{ArrowNarrowUp.tsx → WFOArrowNarrowUp.tsx} +2 -2
  106. package/src/icons/WFOCheckmarkCircleFill.stories.tsx +12 -0
  107. package/src/icons/{CheckmarkCircleFill.tsx → WFOCheckmarkCircleFill.tsx} +2 -2
  108. package/src/icons/{ChevronDown.tsx → WFOChevronDown.tsx} +2 -2
  109. package/src/icons/{IconProps.ts → WFOIconProps.ts} +1 -1
  110. package/src/icons/WFOLogoutIcon.stories.tsx +12 -0
  111. package/src/icons/{LogoutIcon.tsx → WFOLogoutIcon.tsx} +2 -2
  112. package/src/icons/WFOMinusCircleOutline.stories.tsx +12 -0
  113. package/src/icons/{MinusCircleOutline.tsx → WFOMinusCircleOutline.tsx} +2 -2
  114. package/src/icons/WFOPlusCircleFill.stories.tsx +12 -0
  115. package/src/icons/{PlusCircleFill.tsx → WFOPlusCircleFill.tsx} +2 -2
  116. package/src/icons/WFOStatusDotIcon.stories.tsx +12 -0
  117. package/src/icons/{StatusDotIcon.tsx → WFOStatusDotIcon.tsx} +2 -2
  118. package/src/icons/WFOXCircleFill.stories.tsx +12 -0
  119. package/src/icons/{XCircleFill.tsx → WFOXCircleFill.tsx} +2 -2
  120. package/src/icons/index.ts +10 -10
  121. package/src/messages/en-US.json +34 -2
  122. package/src/messages/nl-NL.json +67 -3
  123. package/src/pages/index.ts +2 -0
  124. package/src/pages/metadata/WFOMetadataPageLayout.tsx +0 -5
  125. package/src/pages/metadata/WFOProductBlocksPage.tsx +13 -16
  126. package/src/pages/metadata/WFOProductsPage.tsx +169 -0
  127. package/src/pages/metadata/WFOResourceTypesPage.tsx +120 -0
  128. package/src/pages/metadata/WFOWorkflowsPage.tsx +251 -0
  129. package/src/pages/metadata/index.ts +3 -0
  130. package/src/pages/processes/WFOProcessListPage.tsx +209 -0
  131. package/src/pages/processes/WFOProcessesListSubscriptionsCell.tsx +28 -0
  132. package/src/pages/processes/getProcessListTabTypeFromString.ts +19 -0
  133. package/src/pages/processes/index.ts +4 -0
  134. package/src/pages/processes/tabConfig.ts +33 -0
  135. package/src/pages/processes/tableConfig.ts +22 -0
  136. package/src/pages/subscriptions/index.ts +2 -0
  137. package/src/pages/subscriptions/subscriptionListTabs.ts +71 -0
  138. package/src/pages/subscriptions/types.ts +13 -0
  139. package/src/stories/Button.jsx +54 -0
  140. package/src/stories/Button.stories.js +45 -0
  141. package/src/stories/Configure.mdx +446 -0
  142. package/src/stories/Header.jsx +59 -0
  143. package/src/stories/Header.stories.js +23 -0
  144. package/src/stories/Page.jsx +68 -0
  145. package/src/stories/Page.stories.js +24 -0
  146. package/src/stories/assets/accessibility.png +0 -0
  147. package/src/stories/assets/accessibility.svg +5 -0
  148. package/src/stories/assets/addon-library.png +0 -0
  149. package/src/stories/assets/assets.png +0 -0
  150. package/src/stories/assets/context.png +0 -0
  151. package/src/stories/assets/discord.svg +15 -0
  152. package/src/stories/assets/docs.png +0 -0
  153. package/src/stories/assets/figma-plugin.png +0 -0
  154. package/src/stories/assets/github.svg +3 -0
  155. package/src/stories/assets/share.png +0 -0
  156. package/src/stories/assets/styling.png +0 -0
  157. package/src/stories/assets/testing.png +0 -0
  158. package/src/stories/assets/theming.png +0 -0
  159. package/src/stories/assets/tutorials.svg +12 -0
  160. package/src/stories/assets/youtube.svg +4 -0
  161. package/src/stories/button.css +30 -0
  162. package/src/stories/header.css +32 -0
  163. package/src/stories/page.css +69 -0
  164. package/src/types.ts +60 -11
  165. package/tsconfig.json +2 -4
  166. package/src/components/Badges/Badge/index.ts +0 -1
  167. package/src/components/Badges/EngineStatusBadge/index.ts +0 -1
  168. package/src/components/Badges/EnvironmentBadge/index.ts +0 -1
  169. package/src/components/Badges/FailedTasksBadge/FailedTasksBadge.stories.tsx +0 -12
  170. package/src/components/Badges/FailedTasksBadge/index.ts +0 -1
  171. package/src/components/Badges/HeaderBadge/index.ts +0 -1
  172. package/src/components/Badges/ProcessStatusBadge/ProcessStatusBadge.tsx +0 -46
  173. package/src/components/Badges/ProcessStatusBadge/index.ts +0 -1
  174. package/src/components/Badges/index.ts +0 -8
  175. package/src/components/Breadcrumbs/index.ts +0 -1
  176. package/src/components/Loading/Loading.tsx +0 -2
  177. package/src/components/Loading/index.ts +0 -1
  178. package/src/components/OrchestratorPageTemplate/OrchestratorPageHeader/index.ts +0 -1
  179. package/src/components/OrchestratorPageTemplate/OrchestratorPageTemplate/OrchestratorPageTemplate.stories.tsx +0 -33
  180. package/src/components/OrchestratorPageTemplate/OrchestratorPageTemplate/index.ts +0 -1
  181. package/src/components/OrchestratorPageTemplate/OrchestratorSidebar/index.ts +0 -1
  182. package/src/components/OrchestratorPageTemplate/index.ts +0 -3
  183. package/src/components/SearchBar/index.ts +0 -1
  184. package/src/components/SettingsModal/index.tsx +0 -1
  185. package/src/components/SettingsPage/index.ts +0 -1
  186. package/src/components/StartPage/NewProcessPanel.stories.tsx +0 -12
  187. package/src/components/StartPage/StatCards.stories.tsx +0 -12
  188. package/src/components/StartPage/index.ts +0 -6
  189. package/src/components/Subscription/index.ts +0 -7
  190. package/src/components/SubscriptionsTabs/SubscriptionsTabs.tsx +0 -90
  191. package/src/components/SubscriptionsTabs/getSubscriptionsTabTypeFromString.spec.ts +0 -34
  192. package/src/components/SubscriptionsTabs/getSubscriptionsTabTypeFromString.ts +0 -23
  193. package/src/components/SubscriptionsTabs/index.ts +0 -2
  194. package/src/components/Table/TableSettingsModal/index.ts +0 -1
  195. package/src/components/Table/TableWithFilter/index.ts +0 -1
  196. package/src/components/Table/index.ts +0 -14
  197. package/src/components/Table/utils/constants.ts +0 -5
  198. package/src/icons/CheckmarkCircleFill.stories.tsx +0 -12
  199. package/src/icons/LogoutIcon.stories.tsx +0 -12
  200. package/src/icons/MinusCircleOutline.stories.tsx +0 -12
  201. package/src/icons/PlusCircleFill.stories.tsx +0 -12
  202. package/src/icons/StatusDotIcon.stories.tsx +0 -12
  203. package/src/icons/XCircleFill.stories.tsx +0 -12
  204. /package/src/components/{Badges → WFOBadges}/WFOProductBlockBadge/index.ts +0 -0
  205. /package/src/components/{Badges → WFOBadges}/WFOStatusBadge/index.ts +0 -0
  206. /package/src/components/{SettingsModal/SettingsModal.tsx → WFOSettingsModal/WFOSettingsModal.tsx} +0 -0
  207. /package/src/components/{Subscription → WFOSubscription}/styles.ts +0 -0
  208. /package/src/components/{Table → WFOTable}/utils/columns.spec.ts +0 -0
  209. /package/src/components/{Table → WFOTable}/utils/tableConfigPersistence.spec.ts +0 -0
  210. /package/src/components/{Table → WFOTable}/utils/tableConfigPersistence.ts +0 -0
  211. /package/src/components/{Table → WFOTable}/utils/tableUtils.spec.ts +0 -0
  212. /package/src/components/{Table → WFOTable}/utils/tableUtils.ts +0 -0
@@ -1,16 +1,16 @@
1
1
  import React, { FC } from 'react';
2
2
  import { EuiListGroup } from '@elastic/eui';
3
3
 
4
- import { TreeNode } from './TreeNode';
4
+ import { WFOTreeNode } from './WFOTreeNode';
5
5
  import { TreeBlock } from '../../types';
6
6
  import { TreeContext, TreeContextType } from '../../contexts/TreeContext';
7
7
 
8
- type TreeBranchProps = {
8
+ type WFOTreeBranchProps = {
9
9
  item: TreeBlock;
10
10
  level: number;
11
11
  };
12
12
 
13
- export const TreeBranch: FC<TreeBranchProps> = ({ item, level }) => {
13
+ export const WFOTreeBranch: FC<WFOTreeBranchProps> = ({ item, level }) => {
14
14
  const { expandedIds } = React.useContext(TreeContext) as TreeContextType;
15
15
  const selected = expandedIds.includes(item.id);
16
16
 
@@ -21,7 +21,7 @@ export const TreeBranch: FC<TreeBranchProps> = ({ item, level }) => {
21
21
  const newLevel = level + 1;
22
22
 
23
23
  return item.children.map((child) => (
24
- <TreeBranch key={child.id} item={child} level={newLevel} />
24
+ <WFOTreeBranch key={child.id} item={child} level={newLevel} />
25
25
  ));
26
26
  }
27
27
 
@@ -31,7 +31,11 @@ export const TreeBranch: FC<TreeBranchProps> = ({ item, level }) => {
31
31
  return (
32
32
  <>
33
33
  <EuiListGroup flush={true} color="primary" maxWidth={455}>
34
- <TreeNode item={item} hasChildren={hasChildren} level={level} />
34
+ <WFOTreeNode
35
+ item={item}
36
+ hasChildren={hasChildren}
37
+ level={level}
38
+ />
35
39
  </EuiListGroup>
36
40
 
37
41
  {selected && renderBranches()}
@@ -15,13 +15,17 @@ type Item = {
15
15
  label: string;
16
16
  };
17
17
 
18
- type TreeNodeProps = {
18
+ type WFOTreeNodeProps = {
19
19
  item: Item;
20
20
  hasChildren: boolean;
21
21
  level: number;
22
22
  };
23
23
 
24
- export const TreeNode: FC<TreeNodeProps> = ({ item, hasChildren, level }) => {
24
+ export const WFOTreeNode: FC<WFOTreeNodeProps> = ({
25
+ item,
26
+ hasChildren,
27
+ level,
28
+ }) => {
25
29
  const t = useTranslations('common');
26
30
  const { expandedIds, toggleExpandedId, selectedIds, toggleSelectedId } =
27
31
  React.useContext(TreeContext) as TreeContextType;
@@ -1,11 +1,11 @@
1
- export * from './Badges';
2
- export * from './Breadcrumbs';
3
- export * from './OrchestratorPageTemplate';
4
- export * from './SearchBar';
5
- export * from './SettingsModal';
6
- export * from './SettingsPage';
7
- export * from './StartPage';
8
- export * from './Subscription';
9
- export * from './SubscriptionsTabs';
10
- export * from './Table';
11
- export * from './Loading';
1
+ export * from './WFOBadges';
2
+ export * from './WFOBreadcrumbs';
3
+ export * from './WFOFilterTabs';
4
+ export * from './WFOPageTemplate';
5
+ export * from './WFOSearchBar';
6
+ export * from './WFOSettingsModal';
7
+ export * from './WFOSettingsPage';
8
+ export * from './WFOStartPage';
9
+ export * from './WFOSubscription';
10
+ export * from './WFOTable';
11
+ export * from './WFOLoading';
@@ -1 +1,3 @@
1
1
  export * from './productBlocksQuery';
2
+ export * from './resourceTypesQuery';
3
+ export * from './productsQuery';
@@ -0,0 +1,53 @@
1
+ import { parse } from 'graphql';
2
+ import { gql } from 'graphql-request';
3
+ import { TypedDocumentNode } from '@graphql-typed-document-node/core';
4
+ import {
5
+ GraphqlQueryVariables,
6
+ Process,
7
+ ProcessesDefinitionsResult,
8
+ } from '../types';
9
+
10
+ export const GET_PROCESS_LIST_GRAPHQL_QUERY: TypedDocumentNode<
11
+ ProcessesDefinitionsResult,
12
+ GraphqlQueryVariables<Process>
13
+ > = parse(gql`
14
+ query ProcessList(
15
+ $first: IntType!
16
+ $after: IntType!
17
+ $sortBy: [GraphqlSort!]
18
+ $filterBy: [GraphqlFilter!]
19
+ ) {
20
+ processes(
21
+ first: $first
22
+ after: $after
23
+ sortBy: $sortBy
24
+ filterBy: $filterBy
25
+ ) {
26
+ page {
27
+ workflowName
28
+ lastStep
29
+ status
30
+ product
31
+ customer
32
+ createdBy
33
+ assignee
34
+ id
35
+ started
36
+ lastModified
37
+ subscriptions {
38
+ page {
39
+ subscriptionId
40
+ description
41
+ }
42
+ }
43
+ }
44
+ pageInfo {
45
+ hasNextPage
46
+ hasPreviousPage
47
+ startCursor
48
+ totalItems
49
+ endCursor
50
+ }
51
+ }
52
+ }
53
+ `);
@@ -2,14 +2,9 @@ import { gql } from 'graphql-request';
2
2
  import { parse } from 'graphql';
3
3
  import type { TypedDocumentNode } from '@graphql-typed-document-node/core';
4
4
 
5
- import { SortOrder } from '../types';
6
-
7
5
  import type { ProductBlockDefinition } from '../types';
8
6
  import { GraphqlQueryVariables, ProductBlockDefinitionsResult } from '../types';
9
7
 
10
- export const DEFAULT_SORT_FIELD: keyof ProductBlockDefinition = 'name';
11
- export const DEFAULT_SORT_ORDER: SortOrder = SortOrder.DESC;
12
-
13
8
  export const GET_PRODUCTS_BLOCKS_GRAPHQL_QUERY: TypedDocumentNode<
14
9
  ProductBlockDefinitionsResult,
15
10
  GraphqlQueryVariables<ProductBlockDefinition>
@@ -0,0 +1,47 @@
1
+ import { gql } from 'graphql-request';
2
+ import { parse } from 'graphql';
3
+ import type { TypedDocumentNode } from '@graphql-typed-document-node/core';
4
+
5
+ import type {
6
+ ProductDefinition,
7
+ GraphqlQueryVariables,
8
+ ProductDefinitionsResult,
9
+ } from '@orchestrator-ui/orchestrator-ui-components';
10
+
11
+ export const GET_PRODUCTS_GRAPHQL_QUERY: TypedDocumentNode<
12
+ ProductDefinitionsResult,
13
+ GraphqlQueryVariables<ProductDefinition>
14
+ > = parse(gql`
15
+ query MetadataProducts(
16
+ $first: IntType!
17
+ $after: IntType!
18
+ $sortBy: [GraphqlSort!]
19
+ ) {
20
+ products(first: $first, after: $after, sortBy: $sortBy) {
21
+ page {
22
+ productId
23
+ name
24
+ description
25
+ tag
26
+ createdAt
27
+ productType
28
+ status
29
+ productBlocks {
30
+ name
31
+ }
32
+ fixedInputs {
33
+ name
34
+ value
35
+ }
36
+ endDate
37
+ }
38
+ pageInfo {
39
+ endCursor
40
+ hasNextPage
41
+ hasPreviousPage
42
+ startCursor
43
+ totalItems
44
+ }
45
+ }
46
+ }
47
+ `);
@@ -0,0 +1,35 @@
1
+ import { gql } from 'graphql-request';
2
+ import { parse } from 'graphql';
3
+ import type { TypedDocumentNode } from '@graphql-typed-document-node/core';
4
+
5
+ import type {
6
+ ResourceTypeDefinition,
7
+ ResourceTypeDefinitionsResult,
8
+ GraphqlQueryVariables,
9
+ } from '../types';
10
+
11
+ export const GET_RESOURCE_TYPES_GRAPHQL_QUERY: TypedDocumentNode<
12
+ ResourceTypeDefinitionsResult,
13
+ GraphqlQueryVariables<ResourceTypeDefinition>
14
+ > = parse(gql`
15
+ query MetadataResourceTypes(
16
+ $first: IntType!
17
+ $after: IntType!
18
+ $sortBy: [GraphqlSort!]
19
+ ) {
20
+ resourceTypes(first: $first, after: $after, sortBy: $sortBy) {
21
+ page {
22
+ resourceTypeId
23
+ resourceType
24
+ description
25
+ }
26
+ pageInfo {
27
+ endCursor
28
+ hasNextPage
29
+ hasPreviousPage
30
+ startCursor
31
+ totalItems
32
+ }
33
+ }
34
+ }
35
+ `);
@@ -0,0 +1,37 @@
1
+ import { gql } from 'graphql-request';
2
+ import { parse } from 'graphql';
3
+ import type { TypedDocumentNode } from '@graphql-typed-document-node/core';
4
+
5
+ import type {
6
+ WorkflowDefinition,
7
+ GraphqlQueryVariables,
8
+ WorkflowDefinitionsResult,
9
+ } from '@orchestrator-ui/orchestrator-ui-components';
10
+
11
+ export const GET_WORKFLOWS_GRAPHQL_QUERY: TypedDocumentNode<
12
+ WorkflowDefinitionsResult,
13
+ GraphqlQueryVariables<WorkflowDefinition>
14
+ > = parse(gql`
15
+ query MetadataWorkflows(
16
+ $first: IntType!
17
+ $after: IntType!
18
+ $sortBy: [GraphqlSort!]
19
+ ) {
20
+ workflows(first: $first, after: $after, sortBy: $sortBy) {
21
+ page {
22
+ name
23
+ description
24
+ target
25
+ productTags
26
+ createdAt
27
+ }
28
+ pageInfo {
29
+ endCursor
30
+ hasNextPage
31
+ hasPreviousPage
32
+ startCursor
33
+ totalItems
34
+ }
35
+ }
36
+ }
37
+ `);
@@ -9,6 +9,7 @@ export enum ProcessStatus {
9
9
  WAITING = 'waiting',
10
10
  ABORTED = 'aborted',
11
11
  FAILED = 'failed',
12
+ RESUMED = 'resumed',
12
13
  API_UNAVAILABLE = 'api_unavailable',
13
14
  INCONSISTENT_DATA = 'inconsistent_data',
14
15
  COMPLETED = 'completed',
@@ -2,6 +2,7 @@ import { useQuery } from 'react-query';
2
2
  import { useContext } from 'react';
3
3
  import { OrchestratorConfigContext } from '../contexts/OrchestratorConfigContext';
4
4
  import { Nullable } from '../types';
5
+ import { ProcessStatus } from './useProcessStatusCountsQuery';
5
6
 
6
7
  interface Process {
7
8
  workflow: string;
@@ -10,7 +11,7 @@ interface Process {
10
11
  created_by: Nullable<string>;
11
12
  failed_reason: Nullable<string>;
12
13
  started_at: number;
13
- last_status: 'completed' | 'aborted';
14
+ last_status: ProcessStatus;
14
15
  assignee: 'NOC' | 'SYSTEM' | 'CHANGES' | 'USER';
15
16
  last_modified_at: number;
16
17
  traceback: Nullable<string>;
@@ -1,7 +1,7 @@
1
1
  import React, { FC } from 'react';
2
- import { IconProps } from './IconProps';
2
+ import { WFOIconProps } from './WFOIconProps';
3
3
 
4
- export const ArrowNarrowDown: FC<IconProps> = ({
4
+ export const WFOArrowNarrowDown: FC<WFOIconProps> = ({
5
5
  width = 16,
6
6
  height = 20,
7
7
  color = '#000000',
@@ -1,7 +1,7 @@
1
1
  import React, { FC } from 'react';
2
- import { IconProps } from './IconProps';
2
+ import { WFOIconProps } from './WFOIconProps';
3
3
 
4
- export const ArrowNarrowUp: FC<IconProps> = ({
4
+ export const WFOArrowNarrowUp: FC<WFOIconProps> = ({
5
5
  width = 16,
6
6
  height = 20,
7
7
  color = '#000000',
@@ -0,0 +1,12 @@
1
+ import type { Meta } from '@storybook/react';
2
+ import { WFOCheckmarkCircleFill } from './WFOCheckmarkCircleFill';
3
+
4
+ const Story: Meta<typeof WFOCheckmarkCircleFill> = {
5
+ component: WFOCheckmarkCircleFill,
6
+ title: 'Icons/WFOCheckmarkCircleFill',
7
+ };
8
+ export default Story;
9
+
10
+ export const Primary = {
11
+ args: {},
12
+ };
@@ -1,7 +1,7 @@
1
1
  import React, { FC } from 'react';
2
- import { IconProps } from './IconProps';
2
+ import { WFOIconProps } from './WFOIconProps';
3
3
 
4
- export const CheckmarkCircleFill: FC<IconProps> = ({
4
+ export const WFOCheckmarkCircleFill: FC<WFOIconProps> = ({
5
5
  width = 24,
6
6
  height = 24,
7
7
  color = '#000000',
@@ -1,7 +1,7 @@
1
1
  import React, { FC } from 'react';
2
- import { IconProps } from './IconProps';
2
+ import { WFOIconProps } from './WFOIconProps';
3
3
 
4
- export const ChevronDown: FC<IconProps> = ({
4
+ export const WFOChevronDown: FC<WFOIconProps> = ({
5
5
  width = 24,
6
6
  height = 24,
7
7
  color = '#000000',
@@ -1,4 +1,4 @@
1
- export type IconProps = {
1
+ export type WFOIconProps = {
2
2
  width?: number | string;
3
3
  height?: number | string;
4
4
  color?: string;
@@ -0,0 +1,12 @@
1
+ import type { Meta } from '@storybook/react';
2
+ import { WFOLogoutIcon } from './WFOLogoutIcon';
3
+
4
+ const Story: Meta<typeof WFOLogoutIcon> = {
5
+ component: WFOLogoutIcon,
6
+ title: 'Icons/WFOLogoutIcon',
7
+ };
8
+ export default Story;
9
+
10
+ export const Primary = {
11
+ args: {},
12
+ };
@@ -1,7 +1,7 @@
1
1
  import React, { FC } from 'react';
2
- import { IconProps } from './IconProps';
2
+ import { WFOIconProps } from './WFOIconProps';
3
3
 
4
- export const LogoutIcon: FC<IconProps> = ({
4
+ export const WFOLogoutIcon: FC<WFOIconProps> = ({
5
5
  width = 24,
6
6
  height = 24,
7
7
  color = '#000000',
@@ -0,0 +1,12 @@
1
+ import type { Meta } from '@storybook/react';
2
+ import { WFOMinusCircleOutline } from './WFOMinusCircleOutline';
3
+
4
+ const Story: Meta<typeof WFOMinusCircleOutline> = {
5
+ component: WFOMinusCircleOutline,
6
+ title: 'Icons/WFOMinusCircleOutline',
7
+ };
8
+ export default Story;
9
+
10
+ export const Primary = {
11
+ args: {},
12
+ };
@@ -1,7 +1,7 @@
1
1
  import React, { FC } from 'react';
2
- import { IconProps } from './IconProps';
2
+ import { WFOIconProps } from './WFOIconProps';
3
3
 
4
- export const MinusCircleOutline: FC<IconProps> = ({
4
+ export const WFOMinusCircleOutline: FC<WFOIconProps> = ({
5
5
  width = 24,
6
6
  height = 24,
7
7
  color = '#000000',
@@ -0,0 +1,12 @@
1
+ import type { Meta } from '@storybook/react';
2
+ import { WFOPlusCircleFill } from './WFOPlusCircleFill';
3
+
4
+ const Story: Meta<typeof WFOPlusCircleFill> = {
5
+ component: WFOPlusCircleFill,
6
+ title: 'Icons/WFOPlusCircleFill',
7
+ };
8
+ export default Story;
9
+
10
+ export const Primary = {
11
+ args: {},
12
+ };
@@ -1,7 +1,7 @@
1
1
  import React, { FC } from 'react';
2
- import { IconProps } from './IconProps';
2
+ import { WFOIconProps } from './WFOIconProps';
3
3
 
4
- export const PlusCircleFill: FC<IconProps> = ({
4
+ export const WFOPlusCircleFill: FC<WFOIconProps> = ({
5
5
  width = 24,
6
6
  height = 24,
7
7
  color = '#000000',
@@ -0,0 +1,12 @@
1
+ import type { Meta } from '@storybook/react';
2
+ import { WFOStatusDotIcon } from './WFOStatusDotIcon';
3
+
4
+ const Story: Meta<typeof WFOStatusDotIcon> = {
5
+ component: WFOStatusDotIcon,
6
+ title: 'Icons/WFOStatusDotIcon',
7
+ };
8
+ export default Story;
9
+
10
+ export const Primary = {
11
+ args: {},
12
+ };
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { FC } from 'react';
3
- import { IconProps } from './IconProps';
3
+ import { WFOIconProps } from './WFOIconProps';
4
4
 
5
- export const StatusDotIcon: FC<IconProps> = ({
5
+ export const WFOStatusDotIcon: FC<WFOIconProps> = ({
6
6
  width = 24,
7
7
  height = 24,
8
8
  color = '#000000',
@@ -0,0 +1,12 @@
1
+ import type { Meta } from '@storybook/react';
2
+ import { WFOXCircleFill } from './WFOXCircleFill';
3
+
4
+ const Story: Meta<typeof WFOXCircleFill> = {
5
+ component: WFOXCircleFill,
6
+ title: 'Icons/WFOXCircleFill',
7
+ };
8
+ export default Story;
9
+
10
+ export const Primary = {
11
+ args: {},
12
+ };
@@ -1,7 +1,7 @@
1
1
  import React, { FC } from 'react';
2
- import { IconProps } from './IconProps';
2
+ import { WFOIconProps } from './WFOIconProps';
3
3
 
4
- export const XCircleFill: FC<IconProps> = ({
4
+ export const WFOXCircleFill: FC<WFOIconProps> = ({
5
5
  width = 24,
6
6
  height = 24,
7
7
  color = '#000000',
@@ -1,10 +1,10 @@
1
- export * from './XCircleFill';
2
- export * from './StatusDotIcon';
3
- export * from './LogoutIcon';
4
- export * from './CheckmarkCircleFill';
5
- export * from './IconProps';
6
- export * from './MinusCircleOutline';
7
- export * from './PlusCircleFill';
8
- export * from './ChevronDown';
9
- export * from './ArrowNarrowDown';
10
- export * from './ArrowNarrowUp';
1
+ export * from './WFOXCircleFill';
2
+ export * from './WFOStatusDotIcon';
3
+ export * from './WFOLogoutIcon';
4
+ export * from './WFOCheckmarkCircleFill';
5
+ export * from './WFOIconProps';
6
+ export * from './WFOMinusCircleOutline';
7
+ export * from './WFOPlusCircleFill';
8
+ export * from './WFOChevronDown';
9
+ export * from './WFOArrowNarrowDown';
10
+ export * from './WFOArrowNarrowUp';
@@ -13,16 +13,17 @@
13
13
  "products": "Products",
14
14
  "productBlocks": "Productblocks",
15
15
  "resourceTypes": "Resource types",
16
- "fixedInputs": "Fixed inputs",
17
16
  "workflows": "Workflows"
18
17
  },
19
- "product": {
18
+ "products": {
19
+ "id": "ID",
20
20
  "name": "Name",
21
21
  "description": "Description",
22
22
  "tag": "Tag",
23
23
  "productType": "Type",
24
24
  "status": "Status",
25
25
  "productBlocks": "Product blocks",
26
+ "fixedInputs": "Fixed inputs",
26
27
  "createdAt": "Created"
27
28
  },
28
29
  "productBlocks": {
@@ -35,6 +36,37 @@
35
36
  "createdAt": "Created",
36
37
  "endDate": "End date",
37
38
  "parentIds": "Parents"
39
+ },
40
+ "resourceTypes": {
41
+ "type": "Type",
42
+ "description": "Description",
43
+ "resourceId": "Resource ID"
44
+ },
45
+ "workflows": {
46
+ "name": "Name",
47
+ "description": "Description",
48
+ "target": "Target",
49
+ "productTags": "Product Tags",
50
+ "createdAt": "Created"
51
+ }
52
+ },
53
+ "processes": {
54
+ "tabs": {
55
+ "active": "Active",
56
+ "completed": "Completed"
57
+ },
58
+ "index": {
59
+ "workflowName": "Workflow",
60
+ "lastStep": "Last step",
61
+ "status": "Status",
62
+ "product": "Product",
63
+ "customer": "Customer",
64
+ "subscriptions": "Subscriptions",
65
+ "createdBy": "Created By",
66
+ "assignee": "Assignee",
67
+ "id": "ID",
68
+ "started": "Started",
69
+ "lastModified": "Last Modified"
38
70
  }
39
71
  },
40
72
  "subscriptions": {