@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.
- package/.storybook/main.js +28 -0
- package/.storybook/preview.js +14 -0
- package/.turbo/turbo-build.log +11 -0
- package/.turbo/turbo-lint.log +10 -0
- package/.turbo/turbo-test.log +17 -0
- package/CHANGELOG.md +12 -0
- package/dist/index.d.ts +751 -0
- package/dist/index.js +7019 -0
- package/package.json +18 -4
- package/src/components/{Badges/Badge/Badge.stories.tsx → WFOBadges/WFOBadge/WFOBadge.stories.tsx} +4 -4
- package/src/components/{Badges/Badge/Badge.tsx → WFOBadges/WFOBadge/WFOBadge.tsx} +2 -2
- package/src/components/WFOBadges/WFOBadge/index.ts +1 -0
- package/src/components/{Badges/EngineStatusBadge/EngineStatusBadge.stories.tsx → WFOBadges/WFOEngineStatusBadge/WFOEngineStatusBadge.stories.tsx} +4 -4
- package/src/components/{Badges/EngineStatusBadge/EngineStatusBadge.tsx → WFOBadges/WFOEngineStatusBadge/WFOEngineStatusBadge.tsx} +6 -6
- package/src/components/WFOBadges/WFOEngineStatusBadge/index.ts +1 -0
- package/src/components/{Badges/EnvironmentBadge/EnvironmentBadge.stories.tsx → WFOBadges/WFOEnvironmentBadge/WFOEnvironmentBadge.stories.tsx} +4 -4
- package/src/components/{Badges/EnvironmentBadge/EnvironmentBadge.tsx → WFOBadges/WFOEnvironmentBadge/WFOEnvironmentBadge.tsx} +6 -6
- package/src/components/WFOBadges/WFOEnvironmentBadge/index.ts +1 -0
- package/src/components/WFOBadges/WFOFailedTasksBadge/WFOFailedTasksBadge.stories.tsx +12 -0
- package/src/components/{Badges/FailedTasksBadge/FailedTasksBadge.tsx → WFOBadges/WFOFailedTasksBadge/WFOFailedTasksBadge.tsx} +6 -6
- package/src/components/WFOBadges/WFOFailedTasksBadge/index.ts +1 -0
- package/src/components/{Badges/HeaderBadge/HeaderBadge.stories.tsx → WFOBadges/WFOHeaderBadge/WFOHeaderBadge.stories.tsx} +4 -4
- package/src/components/{Badges/HeaderBadge/HeaderBadge.tsx → WFOBadges/WFOHeaderBadge/WFOHeaderBadge.tsx} +4 -4
- package/src/components/WFOBadges/WFOHeaderBadge/index.ts +1 -0
- package/src/components/WFOBadges/WFOProcessStatusBadge/WFOProcessStatusBadge.tsx +71 -0
- package/src/components/WFOBadges/WFOProcessStatusBadge/index.ts +1 -0
- package/src/components/{Badges → WFOBadges}/WFOProductBlockBadge/WFOProductBlockBadge.stories.tsx +1 -1
- package/src/components/{Badges → WFOBadges}/WFOProductBlockBadge/WFOProductBlockBadge.tsx +3 -3
- package/src/components/{Badges → WFOBadges}/WFOStatusBadge/WFOStatusBadge.stories.tsx +1 -1
- package/src/components/{Badges → WFOBadges}/WFOStatusBadge/WFOStatusBadge.tsx +3 -3
- package/src/components/WFOBadges/index.ts +8 -0
- package/src/components/{Breadcrumbs/Breadcrumbs.tsx → WFOBreadcrumbs/WFOBreadcrumbs.tsx} +1 -1
- package/src/components/WFOBreadcrumbs/index.ts +1 -0
- package/src/components/WFOFilterTabs/WFOFilterTabs.tsx +43 -0
- package/src/components/WFOFilterTabs/index.ts +1 -0
- package/src/components/WFOLoading/WFOLoading.tsx +2 -0
- package/src/components/WFOLoading/index.ts +1 -0
- package/src/components/{OrchestratorPageTemplate/OrchestratorPageHeader/OrchestratorPageHeader.stories.tsx → WFOPageTemplate/WFOPageHeader/WFOPageHeader.stories.tsx} +5 -14
- package/src/components/{OrchestratorPageTemplate/OrchestratorPageHeader/OrchestratorPageHeader.tsx → WFOPageTemplate/WFOPageHeader/WFOPageHeader.tsx} +10 -10
- package/src/components/WFOPageTemplate/WFOPageHeader/index.ts +1 -0
- package/src/components/WFOPageTemplate/WFOPageTemplate/WFOPageTemplate.stories.tsx +24 -0
- package/src/components/{OrchestratorPageTemplate/OrchestratorPageTemplate/OrchestratorPageTemplate.tsx → WFOPageTemplate/WFOPageTemplate/WFOPageTemplate.tsx} +6 -6
- package/src/components/WFOPageTemplate/WFOPageTemplate/index.ts +1 -0
- package/src/components/{OrchestratorPageTemplate/OrchestratorSidebar/OrchestratorSidebar.stories.tsx → WFOPageTemplate/WFOSidebar/WFOSidebar.stories.tsx} +4 -4
- package/src/components/{OrchestratorPageTemplate/OrchestratorSidebar/OrchestratorSidebar.tsx → WFOPageTemplate/WFOSidebar/WFOSidebar.tsx} +2 -14
- package/src/components/WFOPageTemplate/WFOSidebar/index.ts +1 -0
- package/src/components/WFOPageTemplate/index.ts +3 -0
- package/src/components/{SearchBar/SearchField.tsx → WFOSearchBar/WFOSearchField.tsx} +3 -3
- package/src/components/WFOSearchBar/index.ts +1 -0
- package/src/components/WFOSettingsModal/index.tsx +1 -0
- package/src/components/{SettingsPage/EngineStatusButton.tsx → WFOSettingsPage/WFOEngineStatusButton.tsx} +2 -2
- package/src/components/{SettingsPage/FlushSettings.tsx → WFOSettingsPage/WFOFlushSettings.tsx} +1 -1
- package/src/components/{SettingsPage/ModifySettings.tsx → WFOSettingsPage/WFOModifySettings.tsx} +4 -4
- package/src/components/{SettingsPage/Settings.tsx → WFOSettingsPage/WFOSettings.tsx} +7 -7
- package/src/components/{SettingsPage/Status.tsx → WFOSettingsPage/WFOStatus.tsx} +4 -4
- package/src/components/WFOSettingsPage/index.ts +1 -0
- package/src/components/{StartPage/FrequentlyUsed.stories.tsx → WFOStartPage/WFOFrequentlyUsed.stories.tsx} +4 -4
- package/src/components/{StartPage/FrequentlyUsed.tsx → WFOStartPage/WFOFrequentlyUsed.tsx} +2 -2
- package/src/components/{StartPage/ListItemStartPage.stories.tsx → WFOStartPage/WFOListItemStartPage.stories.tsx} +4 -4
- package/src/components/{StartPage/ListItemStartPage.tsx → WFOStartPage/WFOListItemStartPage.tsx} +10 -7
- package/src/components/{StartPage/ListStartPage.stories.tsx → WFOStartPage/WFOListStartPage.stories.tsx} +4 -4
- package/src/components/{StartPage/ListStartPage.tsx → WFOStartPage/WFOListStartPage.tsx} +9 -4
- package/src/components/{StartPage/MultiListSection.stories.tsx → WFOStartPage/WFOMultiListSection.stories.tsx} +4 -4
- package/src/components/{StartPage/MultiListSection.tsx → WFOStartPage/WFOMultiListSection.tsx} +5 -5
- package/src/components/WFOStartPage/WFONewProcessPanel.stories.tsx +12 -0
- package/src/components/{StartPage/NewProcessPanel.tsx → WFOStartPage/WFONewProcessPanel.tsx} +3 -3
- package/src/components/WFOStartPage/WFOStatCards.stories.tsx +12 -0
- package/src/components/{StartPage/StatCards.tsx → WFOStartPage/WFOStatCards.tsx} +1 -1
- package/src/components/WFOStartPage/index.ts +6 -0
- package/src/components/{Subscription/FixedInputBlock.tsx → WFOSubscription/WFOFixedInputBlock.tsx} +2 -2
- package/src/components/{Subscription/ProcessesTimeline.tsx → WFOSubscription/WFOProcessesTimeline.tsx} +4 -4
- package/src/components/{Subscription/ProductBlock.tsx → WFOSubscription/WFOProductBlock.tsx} +4 -1
- package/src/components/{Subscription/SubscriptionActions.tsx → WFOSubscription/WFOSubscriptionActions.tsx} +1 -1
- package/src/components/{Subscription/SubscriptionBlock.tsx → WFOSubscription/WFOSubscriptionBlock.tsx} +5 -5
- package/src/components/{Subscription/SubscriptionDetailTree.tsx → WFOSubscription/WFOSubscriptionDetailTree.tsx} +5 -5
- package/src/components/{Subscription/SubscriptionGeneral.tsx → WFOSubscription/WFOSubscriptionGeneral.tsx} +9 -6
- package/src/components/WFOSubscription/index.ts +7 -0
- package/src/components/{Table/DataGridTable/DataGridTable.stories.tsx → WFOTable/WFODataGridTable/WFODataGridTable.stories.tsx} +6 -6
- package/src/components/{Table/DataGridTable/DataGridTable.tsx → WFOTable/WFODataGridTable/WFODataGridTable.tsx} +13 -13
- package/src/components/{Table/DataGridTable/dataGridColumns.spec.ts → WFOTable/WFODataGridTable/WFOdataGridColumns.spec.ts} +6 -6
- package/src/components/{Table/DataGridTable/dataGridColumns.ts → WFOTable/WFODataGridTable/WFOdataGridColumns.ts} +6 -6
- package/src/components/{Table/SortDirectionIcon.tsx → WFOTable/WFOSortDirectionIcon.tsx} +6 -6
- package/src/components/{Table/Table.tsx → WFOTable/WFOTable.tsx} +13 -13
- package/src/components/{Table/TableHeaderCell.tsx → WFOTable/WFOTableHeaderCell.tsx} +4 -4
- package/src/components/{Table/TableSettingsModal/TableSettingsModal.tsx → WFOTable/WFOTableSettingsModal/WFOTableSettingsModal.tsx} +1 -1
- package/src/components/WFOTable/WFOTableSettingsModal/index.ts +1 -0
- package/src/components/{Table/TableWithFilter/TableWithFilter.tsx → WFOTable/WFOTableWithFilter/WFOTableWithFilter.tsx} +31 -24
- package/src/components/WFOTable/WFOTableWithFilter/index.ts +1 -0
- package/src/components/WFOTable/index.ts +14 -0
- package/src/components/{Table → WFOTable}/utils/columns.ts +10 -10
- package/src/components/WFOTable/utils/constants.ts +15 -0
- package/src/components/{Tree/Tree.tsx → WFOTree/WFOTree.tsx} +4 -4
- package/src/components/{Tree/TreeBranch.tsx → WFOTree/WFOTreeBranch.tsx} +9 -5
- package/src/components/{Tree/TreeNode.tsx → WFOTree/WFOTreeNode.tsx} +6 -2
- package/src/components/index.ts +11 -11
- package/src/graphqlQueries/index.ts +2 -0
- package/src/graphqlQueries/processListQuery.ts +53 -0
- package/src/graphqlQueries/productBlocksQuery.ts +0 -5
- package/src/graphqlQueries/productsQuery.ts +47 -0
- package/src/graphqlQueries/resourceTypesQuery.ts +35 -0
- package/src/graphqlQueries/workflowsQuery.ts +37 -0
- package/src/hooks/useProcessStatusCountsQuery.ts +1 -0
- package/src/hooks/useSubscriptionProcesses.ts +2 -1
- package/src/icons/{ArrowNarrowDown.tsx → WFOArrowNarrowDown.tsx} +2 -2
- package/src/icons/{ArrowNarrowUp.tsx → WFOArrowNarrowUp.tsx} +2 -2
- package/src/icons/WFOCheckmarkCircleFill.stories.tsx +12 -0
- package/src/icons/{CheckmarkCircleFill.tsx → WFOCheckmarkCircleFill.tsx} +2 -2
- package/src/icons/{ChevronDown.tsx → WFOChevronDown.tsx} +2 -2
- package/src/icons/{IconProps.ts → WFOIconProps.ts} +1 -1
- package/src/icons/WFOLogoutIcon.stories.tsx +12 -0
- package/src/icons/{LogoutIcon.tsx → WFOLogoutIcon.tsx} +2 -2
- package/src/icons/WFOMinusCircleOutline.stories.tsx +12 -0
- package/src/icons/{MinusCircleOutline.tsx → WFOMinusCircleOutline.tsx} +2 -2
- package/src/icons/WFOPlusCircleFill.stories.tsx +12 -0
- package/src/icons/{PlusCircleFill.tsx → WFOPlusCircleFill.tsx} +2 -2
- package/src/icons/WFOStatusDotIcon.stories.tsx +12 -0
- package/src/icons/{StatusDotIcon.tsx → WFOStatusDotIcon.tsx} +2 -2
- package/src/icons/WFOXCircleFill.stories.tsx +12 -0
- package/src/icons/{XCircleFill.tsx → WFOXCircleFill.tsx} +2 -2
- package/src/icons/index.ts +10 -10
- package/src/messages/en-US.json +34 -2
- package/src/messages/nl-NL.json +67 -3
- package/src/pages/index.ts +2 -0
- package/src/pages/metadata/WFOMetadataPageLayout.tsx +0 -5
- package/src/pages/metadata/WFOProductBlocksPage.tsx +13 -16
- package/src/pages/metadata/WFOProductsPage.tsx +169 -0
- package/src/pages/metadata/WFOResourceTypesPage.tsx +120 -0
- package/src/pages/metadata/WFOWorkflowsPage.tsx +251 -0
- package/src/pages/metadata/index.ts +3 -0
- package/src/pages/processes/WFOProcessListPage.tsx +209 -0
- package/src/pages/processes/WFOProcessesListSubscriptionsCell.tsx +28 -0
- package/src/pages/processes/getProcessListTabTypeFromString.ts +19 -0
- package/src/pages/processes/index.ts +4 -0
- package/src/pages/processes/tabConfig.ts +33 -0
- package/src/pages/processes/tableConfig.ts +22 -0
- package/src/pages/subscriptions/index.ts +2 -0
- package/src/pages/subscriptions/subscriptionListTabs.ts +71 -0
- package/src/pages/subscriptions/types.ts +13 -0
- package/src/stories/Button.jsx +54 -0
- package/src/stories/Button.stories.js +45 -0
- package/src/stories/Configure.mdx +446 -0
- package/src/stories/Header.jsx +59 -0
- package/src/stories/Header.stories.js +23 -0
- package/src/stories/Page.jsx +68 -0
- package/src/stories/Page.stories.js +24 -0
- package/src/stories/assets/accessibility.png +0 -0
- package/src/stories/assets/accessibility.svg +5 -0
- package/src/stories/assets/addon-library.png +0 -0
- package/src/stories/assets/assets.png +0 -0
- package/src/stories/assets/context.png +0 -0
- package/src/stories/assets/discord.svg +15 -0
- package/src/stories/assets/docs.png +0 -0
- package/src/stories/assets/figma-plugin.png +0 -0
- package/src/stories/assets/github.svg +3 -0
- package/src/stories/assets/share.png +0 -0
- package/src/stories/assets/styling.png +0 -0
- package/src/stories/assets/testing.png +0 -0
- package/src/stories/assets/theming.png +0 -0
- package/src/stories/assets/tutorials.svg +12 -0
- package/src/stories/assets/youtube.svg +4 -0
- package/src/stories/button.css +30 -0
- package/src/stories/header.css +32 -0
- package/src/stories/page.css +69 -0
- package/src/types.ts +60 -11
- package/tsconfig.json +2 -4
- package/src/components/Badges/Badge/index.ts +0 -1
- package/src/components/Badges/EngineStatusBadge/index.ts +0 -1
- package/src/components/Badges/EnvironmentBadge/index.ts +0 -1
- package/src/components/Badges/FailedTasksBadge/FailedTasksBadge.stories.tsx +0 -12
- package/src/components/Badges/FailedTasksBadge/index.ts +0 -1
- package/src/components/Badges/HeaderBadge/index.ts +0 -1
- package/src/components/Badges/ProcessStatusBadge/ProcessStatusBadge.tsx +0 -46
- package/src/components/Badges/ProcessStatusBadge/index.ts +0 -1
- package/src/components/Badges/index.ts +0 -8
- package/src/components/Breadcrumbs/index.ts +0 -1
- package/src/components/Loading/Loading.tsx +0 -2
- package/src/components/Loading/index.ts +0 -1
- package/src/components/OrchestratorPageTemplate/OrchestratorPageHeader/index.ts +0 -1
- package/src/components/OrchestratorPageTemplate/OrchestratorPageTemplate/OrchestratorPageTemplate.stories.tsx +0 -33
- package/src/components/OrchestratorPageTemplate/OrchestratorPageTemplate/index.ts +0 -1
- package/src/components/OrchestratorPageTemplate/OrchestratorSidebar/index.ts +0 -1
- package/src/components/OrchestratorPageTemplate/index.ts +0 -3
- package/src/components/SearchBar/index.ts +0 -1
- package/src/components/SettingsModal/index.tsx +0 -1
- package/src/components/SettingsPage/index.ts +0 -1
- package/src/components/StartPage/NewProcessPanel.stories.tsx +0 -12
- package/src/components/StartPage/StatCards.stories.tsx +0 -12
- package/src/components/StartPage/index.ts +0 -6
- package/src/components/Subscription/index.ts +0 -7
- package/src/components/SubscriptionsTabs/SubscriptionsTabs.tsx +0 -90
- package/src/components/SubscriptionsTabs/getSubscriptionsTabTypeFromString.spec.ts +0 -34
- package/src/components/SubscriptionsTabs/getSubscriptionsTabTypeFromString.ts +0 -23
- package/src/components/SubscriptionsTabs/index.ts +0 -2
- package/src/components/Table/TableSettingsModal/index.ts +0 -1
- package/src/components/Table/TableWithFilter/index.ts +0 -1
- package/src/components/Table/index.ts +0 -14
- package/src/components/Table/utils/constants.ts +0 -5
- package/src/icons/CheckmarkCircleFill.stories.tsx +0 -12
- package/src/icons/LogoutIcon.stories.tsx +0 -12
- package/src/icons/MinusCircleOutline.stories.tsx +0 -12
- package/src/icons/PlusCircleFill.stories.tsx +0 -12
- package/src/icons/StatusDotIcon.stories.tsx +0 -12
- package/src/icons/XCircleFill.stories.tsx +0 -12
- /package/src/components/{Badges → WFOBadges}/WFOProductBlockBadge/index.ts +0 -0
- /package/src/components/{Badges → WFOBadges}/WFOStatusBadge/index.ts +0 -0
- /package/src/components/{SettingsModal/SettingsModal.tsx → WFOSettingsModal/WFOSettingsModal.tsx} +0 -0
- /package/src/components/{Subscription → WFOSubscription}/styles.ts +0 -0
- /package/src/components/{Table → WFOTable}/utils/columns.spec.ts +0 -0
- /package/src/components/{Table → WFOTable}/utils/tableConfigPersistence.spec.ts +0 -0
- /package/src/components/{Table → WFOTable}/utils/tableConfigPersistence.ts +0 -0
- /package/src/components/{Table → WFOTable}/utils/tableUtils.spec.ts +0 -0
- /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 {
|
|
4
|
+
import { WFOTreeNode } from './WFOTreeNode';
|
|
5
5
|
import { TreeBlock } from '../../types';
|
|
6
6
|
import { TreeContext, TreeContextType } from '../../contexts/TreeContext';
|
|
7
7
|
|
|
8
|
-
type
|
|
8
|
+
type WFOTreeBranchProps = {
|
|
9
9
|
item: TreeBlock;
|
|
10
10
|
level: number;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
export const
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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
|
|
18
|
+
type WFOTreeNodeProps = {
|
|
19
19
|
item: Item;
|
|
20
20
|
hasChildren: boolean;
|
|
21
21
|
level: number;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
export const
|
|
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;
|
package/src/components/index.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
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';
|
|
@@ -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
|
+
`);
|
|
@@ -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:
|
|
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 {
|
|
2
|
+
import { WFOIconProps } from './WFOIconProps';
|
|
3
3
|
|
|
4
|
-
export const
|
|
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 {
|
|
2
|
+
import { WFOIconProps } from './WFOIconProps';
|
|
3
3
|
|
|
4
|
-
export const
|
|
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 {
|
|
2
|
+
import { WFOIconProps } from './WFOIconProps';
|
|
3
3
|
|
|
4
|
-
export const
|
|
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 {
|
|
2
|
+
import { WFOIconProps } from './WFOIconProps';
|
|
3
3
|
|
|
4
|
-
export const
|
|
4
|
+
export const WFOChevronDown: 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 { 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 {
|
|
2
|
+
import { WFOIconProps } from './WFOIconProps';
|
|
3
3
|
|
|
4
|
-
export const
|
|
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 {
|
|
2
|
+
import { WFOIconProps } from './WFOIconProps';
|
|
3
3
|
|
|
4
|
-
export const
|
|
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 {
|
|
2
|
+
import { WFOIconProps } from './WFOIconProps';
|
|
3
3
|
|
|
4
|
-
export const
|
|
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 {
|
|
3
|
+
import { WFOIconProps } from './WFOIconProps';
|
|
4
4
|
|
|
5
|
-
export const
|
|
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 {
|
|
2
|
+
import { WFOIconProps } from './WFOIconProps';
|
|
3
3
|
|
|
4
|
-
export const
|
|
4
|
+
export const WFOXCircleFill: FC<WFOIconProps> = ({
|
|
5
5
|
width = 24,
|
|
6
6
|
height = 24,
|
|
7
7
|
color = '#000000',
|
package/src/icons/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
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';
|
package/src/messages/en-US.json
CHANGED
|
@@ -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
|
-
"
|
|
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": {
|