@orchestrator-ui/orchestrator-ui-components 0.2.0 → 0.2.2
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 +4 -4
- package/.turbo/turbo-lint.log +5 -10
- package/.turbo/turbo-test.log +9 -11
- package/CHANGELOG.md +12 -0
- package/dist/index.d.ts +683 -562
- package/dist/index.js +4088 -525
- package/package.json +19 -5
- 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 -13
- 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} +5 -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} +14 -14
- 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 +3 -0
- package/src/graphqlQueries/processListQuery.ts +53 -0
- package/src/graphqlQueries/productBlocksQuery.ts +41 -0
- package/src/graphqlQueries/productsQuery.ts +47 -0
- package/src/graphqlQueries/resourceTypesQuery.ts +35 -0
- package/src/graphqlQueries/workflowsQuery.ts +37 -0
- package/src/hooks/useDataDisplayParams.ts +1 -1
- 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/index.ts +1 -0
- package/src/messages/en-US.json +48 -4
- package/src/messages/nl-NL.json +67 -3
- package/src/pages/index.ts +3 -0
- package/src/pages/metadata/WFOMetadataPageLayout.tsx +70 -0
- package/src/pages/metadata/WFOProductBlocksPage.tsx +164 -0
- 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 +4 -0
- package/src/pages/processes/WFOProcessListPage.tsx +204 -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 +107 -9
- package/.turbo/turbo-tsc.log +0 -1
- 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 -32
- 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 -2
- 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/tsconfig.tsbuildinfo +0 -1
- /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
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orchestrator-ui/orchestrator-ui-components",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest",
|
|
7
7
|
"build": "tsup src/index.ts --format esm --dts",
|
|
8
8
|
"tsc": "tsc --noEmit",
|
|
9
9
|
"lint": "eslint \"src/**/*.ts*\"",
|
|
10
|
-
"dev": "yarn build -- --watch"
|
|
10
|
+
"dev": "yarn build -- --watch",
|
|
11
|
+
"storybook": "storybook dev -p 6006",
|
|
12
|
+
"build-storybook": "storybook build"
|
|
11
13
|
},
|
|
12
14
|
"dependencies": {
|
|
13
15
|
"@graphql-typed-document-node/core": "3.2.0",
|
|
@@ -26,20 +28,32 @@
|
|
|
26
28
|
"react-query": "3.39.3"
|
|
27
29
|
},
|
|
28
30
|
"devDependencies": {
|
|
29
|
-
"tsup": "^7.1.0",
|
|
30
31
|
"@orchestrator-ui/eslint-config-custom": "*",
|
|
32
|
+
"@orchestrator-ui/jest-config": "*",
|
|
33
|
+
"@storybook/addon-essentials": "^7.2.1",
|
|
34
|
+
"@storybook/addon-interactions": "^7.2.1",
|
|
35
|
+
"@storybook/addon-links": "^7.2.1",
|
|
36
|
+
"@storybook/addon-onboarding": "^1.0.8",
|
|
37
|
+
"@storybook/blocks": "^7.2.1",
|
|
38
|
+
"@storybook/nextjs": "^7.2.1",
|
|
39
|
+
"@storybook/react": "^7.2.1",
|
|
40
|
+
"@storybook/testing-library": "^0.2.0",
|
|
31
41
|
"@testing-library/jest-dom": "^5.16.1",
|
|
32
42
|
"@testing-library/react": "^14.0.0",
|
|
33
43
|
"@testing-library/react-hooks": "^8.0.1",
|
|
34
|
-
"@testing-library/user-event": "^
|
|
44
|
+
"@testing-library/user-event": "^14.4.3",
|
|
35
45
|
"@types/jest": "^27.4.0",
|
|
36
46
|
"esbuild": "^0.14.10",
|
|
37
47
|
"esbuild-jest": "^0.5.0",
|
|
38
48
|
"jest": "^27.4.7",
|
|
39
49
|
"jest-watch-typeahead": "^1.0.0",
|
|
40
|
-
"
|
|
50
|
+
"react": "^18.2.0",
|
|
51
|
+
"react-dom": "^18.2.0",
|
|
52
|
+
"storybook": "^7.2.1",
|
|
53
|
+
"tsup": "^7.1.0"
|
|
41
54
|
},
|
|
42
55
|
"type": "module",
|
|
43
56
|
"main": "./dist/index.js",
|
|
57
|
+
"browser": "./dist/index.js",
|
|
44
58
|
"types": "./dist/index.d.ts"
|
|
45
59
|
}
|
package/src/components/{Badges/Badge/Badge.stories.tsx → WFOBadges/WFOBadge/WFOBadge.stories.tsx}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Meta } from '@storybook/react';
|
|
2
|
-
import {
|
|
2
|
+
import { WFOBadge } from './WFOBadge';
|
|
3
3
|
|
|
4
|
-
const Story: Meta<typeof
|
|
5
|
-
component:
|
|
6
|
-
title: 'Badges/
|
|
4
|
+
const Story: Meta<typeof WFOBadge> = {
|
|
5
|
+
component: WFOBadge,
|
|
6
|
+
title: 'Badges/WFOBadge',
|
|
7
7
|
};
|
|
8
8
|
export default Story;
|
|
9
9
|
|
|
@@ -3,12 +3,12 @@ import { EuiBadge, EuiBadgeProps, EuiText } from '@elastic/eui';
|
|
|
3
3
|
import { FC, ReactNode } from 'react';
|
|
4
4
|
import { TextColor } from '@elastic/eui/src/components/text/text_color';
|
|
5
5
|
|
|
6
|
-
export type
|
|
6
|
+
export type WFOBadgeProps = EuiBadgeProps & {
|
|
7
7
|
textColor: TextColor | string;
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
export const
|
|
11
|
+
export const WFOBadge: FC<WFOBadgeProps> = ({
|
|
12
12
|
textColor,
|
|
13
13
|
children,
|
|
14
14
|
...restProps
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './WFOBadge';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Meta } from '@storybook/react';
|
|
3
|
-
import {
|
|
3
|
+
import { WFOEngineStatusBadge } from './WFOEngineStatusBadge';
|
|
4
4
|
|
|
5
|
-
const Story: Meta<typeof
|
|
5
|
+
const Story: Meta<typeof WFOEngineStatusBadge> = {
|
|
6
6
|
component: (args) => (
|
|
7
7
|
<div style={{ display: 'flex' }}>
|
|
8
|
-
<
|
|
8
|
+
<WFOEngineStatusBadge {...args} />
|
|
9
9
|
</div>
|
|
10
10
|
),
|
|
11
|
-
title: 'Badges/
|
|
11
|
+
title: 'Badges/WFOEngineStatusBadge',
|
|
12
12
|
parameters: {
|
|
13
13
|
mockData: [
|
|
14
14
|
{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useOrchestratorTheme } from '../../../hooks/useOrchestratorTheme';
|
|
3
|
-
import {
|
|
3
|
+
import { WFOHeaderBadge } from '../WFOHeaderBadge';
|
|
4
4
|
import { useEngineStatusQuery } from '../../../hooks/useEngineStatusQuery';
|
|
5
|
-
import {
|
|
5
|
+
import { WFOStatusDotIcon } from '../../../icons/WFOStatusDotIcon';
|
|
6
6
|
|
|
7
|
-
export const
|
|
7
|
+
export const WFOEngineStatusBadge = () => {
|
|
8
8
|
const { theme } = useOrchestratorTheme();
|
|
9
9
|
const { data: engineStatus } = useEngineStatusQuery();
|
|
10
10
|
|
|
@@ -13,12 +13,12 @@ export const EngineStatusBadge = () => {
|
|
|
13
13
|
: 'Engine status is unavailable';
|
|
14
14
|
|
|
15
15
|
return (
|
|
16
|
-
<
|
|
16
|
+
<WFOHeaderBadge
|
|
17
17
|
color={theme.colors.emptyShade}
|
|
18
18
|
textColor={theme.colors.shadow}
|
|
19
|
-
iconType={() => <
|
|
19
|
+
iconType={() => <WFOStatusDotIcon color={theme.colors.success} />}
|
|
20
20
|
>
|
|
21
21
|
{engineStatusText}
|
|
22
|
-
</
|
|
22
|
+
</WFOHeaderBadge>
|
|
23
23
|
);
|
|
24
24
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './WFOEngineStatusBadge';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Meta } from '@storybook/react';
|
|
3
|
-
import {
|
|
3
|
+
import { WFOEnvironmentBadge } from './WFOEnvironmentBadge';
|
|
4
4
|
|
|
5
|
-
const Story: Meta<typeof
|
|
5
|
+
const Story: Meta<typeof WFOEnvironmentBadge> = {
|
|
6
6
|
component: (args) => (
|
|
7
7
|
<div style={{ display: 'flex' }}>
|
|
8
|
-
<
|
|
8
|
+
<WFOEnvironmentBadge {...args} />
|
|
9
9
|
</div>
|
|
10
10
|
),
|
|
11
|
-
title: 'Badges/
|
|
11
|
+
title: 'Badges/WFOEnvironmentBadge',
|
|
12
12
|
};
|
|
13
13
|
export default Story;
|
|
14
14
|
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import { useOrchestratorTheme } from '../../../hooks/useOrchestratorTheme';
|
|
3
|
-
import {
|
|
3
|
+
import { WFOHeaderBadge } from '../WFOHeaderBadge/WFOHeaderBadge';
|
|
4
4
|
import { OrchestratorConfigContext } from '../../../contexts/OrchestratorConfigContext';
|
|
5
5
|
import { Environment } from '../../../hooks/useOrchestratorConfig';
|
|
6
6
|
|
|
7
|
-
export const
|
|
7
|
+
export const WFOEnvironmentBadge = () => {
|
|
8
8
|
const { environmentName } = useContext(OrchestratorConfigContext);
|
|
9
9
|
const { theme, toSecondaryColor } = useOrchestratorTheme();
|
|
10
10
|
|
|
11
11
|
if (environmentName !== Environment.PRODUCTION) {
|
|
12
12
|
return (
|
|
13
|
-
<
|
|
13
|
+
<WFOHeaderBadge color="warning" textColor={theme.colors.shadow}>
|
|
14
14
|
{environmentName}
|
|
15
|
-
</
|
|
15
|
+
</WFOHeaderBadge>
|
|
16
16
|
);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
return (
|
|
20
|
-
<
|
|
20
|
+
<WFOHeaderBadge
|
|
21
21
|
color={toSecondaryColor(theme.colors.primary)}
|
|
22
22
|
textColor={theme.colors.primary}
|
|
23
23
|
>
|
|
24
24
|
{environmentName}
|
|
25
|
-
</
|
|
25
|
+
</WFOHeaderBadge>
|
|
26
26
|
);
|
|
27
27
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './WFOEnvironmentBadge';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Meta } from '@storybook/react';
|
|
2
|
+
import { WFOFailedTasksBadge } from './WFOFailedTasksBadge';
|
|
3
|
+
|
|
4
|
+
const Story: Meta<typeof WFOFailedTasksBadge> = {
|
|
5
|
+
component: WFOFailedTasksBadge,
|
|
6
|
+
title: 'Badges/WFOFailedTasksBadge',
|
|
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 { EuiToolTip } from '@elastic/eui';
|
|
3
3
|
import { useOrchestratorTheme } from '../../../hooks/useOrchestratorTheme';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { WFOHeaderBadge } from '../WFOHeaderBadge';
|
|
5
|
+
import { WFOXCircleFill } from '../../../icons/WFOXCircleFill';
|
|
6
6
|
import {
|
|
7
7
|
ProcessStatusCounts,
|
|
8
8
|
useProcessStatusCountsQuery,
|
|
@@ -31,7 +31,7 @@ const getTaskCountsSummary = (
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
export const
|
|
34
|
+
export const WFOFailedTasksBadge = () => {
|
|
35
35
|
const { theme } = useOrchestratorTheme();
|
|
36
36
|
const { data: processStatusCounts } = useProcessStatusCountsQuery();
|
|
37
37
|
const taskCountsSummary = getTaskCountsSummary(processStatusCounts);
|
|
@@ -51,13 +51,13 @@ export const FailedTasksBadge = () => {
|
|
|
51
51
|
</>
|
|
52
52
|
}
|
|
53
53
|
>
|
|
54
|
-
<
|
|
54
|
+
<WFOHeaderBadge
|
|
55
55
|
color={theme.colors.emptyShade}
|
|
56
56
|
textColor={theme.colors.shadow}
|
|
57
|
-
iconType={() => <
|
|
57
|
+
iconType={() => <WFOXCircleFill color={theme.colors.danger} />}
|
|
58
58
|
>
|
|
59
59
|
{taskCountsSummary.total}
|
|
60
|
-
</
|
|
60
|
+
</WFOHeaderBadge>
|
|
61
61
|
</EuiToolTip>
|
|
62
62
|
);
|
|
63
63
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './WFOFailedTasksBadge';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Meta } from '@storybook/react';
|
|
3
|
-
import {
|
|
3
|
+
import { WFOHeaderBadge } from './WFOHeaderBadge';
|
|
4
4
|
|
|
5
|
-
const Story: Meta<typeof
|
|
5
|
+
const Story: Meta<typeof WFOHeaderBadge> = {
|
|
6
6
|
component: (args) => (
|
|
7
7
|
<div style={{ display: 'flex' }}>
|
|
8
|
-
<
|
|
8
|
+
<WFOHeaderBadge {...args} />
|
|
9
9
|
</div>
|
|
10
10
|
),
|
|
11
|
-
title: 'Badges/
|
|
11
|
+
title: 'Badges/WFOHeaderBadge',
|
|
12
12
|
};
|
|
13
13
|
export default Story;
|
|
14
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FC, ReactNode } from 'react';
|
|
2
2
|
import { EuiBadgeProps } from '@elastic/eui';
|
|
3
|
-
import {
|
|
3
|
+
import { WFOBadge } from '../WFOBadge/WFOBadge';
|
|
4
4
|
import { TextColor } from '@elastic/eui/src/components/text/text_color';
|
|
5
5
|
|
|
6
6
|
export type HeaderBadgeProps = EuiBadgeProps & {
|
|
@@ -8,7 +8,7 @@ export type HeaderBadgeProps = EuiBadgeProps & {
|
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
export const
|
|
11
|
+
export const WFOHeaderBadge: FC<HeaderBadgeProps> = ({
|
|
12
12
|
children,
|
|
13
13
|
...restProps
|
|
14
14
|
}) => {
|
|
@@ -24,8 +24,8 @@ export const HeaderBadge: FC<HeaderBadgeProps> = ({
|
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
return (
|
|
27
|
-
<
|
|
27
|
+
<WFOBadge {...restProps} css={css}>
|
|
28
28
|
{children}
|
|
29
|
-
</
|
|
29
|
+
</WFOBadge>
|
|
30
30
|
);
|
|
31
31
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './WFOHeaderBadge';
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { ProcessStatus, useOrchestratorTheme } from '../../../hooks';
|
|
3
|
+
import { WFOBadge } from '../WFOBadge';
|
|
4
|
+
|
|
5
|
+
export type WFOProcessStatusBadgeProps = {
|
|
6
|
+
processStatus: ProcessStatus;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const WFOProcessStatusBadge: FC<WFOProcessStatusBadgeProps> = ({
|
|
10
|
+
processStatus,
|
|
11
|
+
}) => {
|
|
12
|
+
const { theme, toSecondaryColor } = useOrchestratorTheme();
|
|
13
|
+
|
|
14
|
+
const getBadgeColorFromProcessStatus = (status: ProcessStatus) => {
|
|
15
|
+
const {
|
|
16
|
+
primary,
|
|
17
|
+
danger,
|
|
18
|
+
dangerText,
|
|
19
|
+
lightShade,
|
|
20
|
+
primaryText,
|
|
21
|
+
success,
|
|
22
|
+
successText,
|
|
23
|
+
text,
|
|
24
|
+
warning,
|
|
25
|
+
warningText,
|
|
26
|
+
} = theme.colors;
|
|
27
|
+
|
|
28
|
+
switch (status.toLowerCase()) {
|
|
29
|
+
case ProcessStatus.COMPLETED:
|
|
30
|
+
return {
|
|
31
|
+
badgeColor: toSecondaryColor(success),
|
|
32
|
+
textColor: successText,
|
|
33
|
+
};
|
|
34
|
+
case ProcessStatus.FAILED:
|
|
35
|
+
case ProcessStatus.ABORTED:
|
|
36
|
+
return {
|
|
37
|
+
badgeColor: toSecondaryColor(danger),
|
|
38
|
+
textColor: dangerText,
|
|
39
|
+
};
|
|
40
|
+
case ProcessStatus.SUSPENDED:
|
|
41
|
+
return {
|
|
42
|
+
badgeColor: toSecondaryColor(warning),
|
|
43
|
+
textColor: warningText,
|
|
44
|
+
};
|
|
45
|
+
case ProcessStatus.CREATED:
|
|
46
|
+
return {
|
|
47
|
+
badgeColor: lightShade,
|
|
48
|
+
textColor: text,
|
|
49
|
+
};
|
|
50
|
+
case ProcessStatus.WAITING:
|
|
51
|
+
case ProcessStatus.RESUMED:
|
|
52
|
+
case ProcessStatus.RUNNING:
|
|
53
|
+
case ProcessStatus.API_UNAVAILABLE:
|
|
54
|
+
case ProcessStatus.INCONSISTENT_DATA:
|
|
55
|
+
default:
|
|
56
|
+
return {
|
|
57
|
+
badgeColor: toSecondaryColor(primary),
|
|
58
|
+
textColor: primaryText,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
const { badgeColor, textColor } =
|
|
64
|
+
getBadgeColorFromProcessStatus(processStatus);
|
|
65
|
+
|
|
66
|
+
return (
|
|
67
|
+
<WFOBadge textColor={textColor} color={badgeColor}>
|
|
68
|
+
{processStatus.toLowerCase()}
|
|
69
|
+
</WFOBadge>
|
|
70
|
+
);
|
|
71
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './WFOProcessStatusBadge';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WFOBadge } from '../WFOBadge';
|
|
2
2
|
import React, { FC } from 'react';
|
|
3
3
|
import { useOrchestratorTheme } from '../../../hooks';
|
|
4
4
|
|
|
@@ -12,11 +12,11 @@ export const WFOProductBlockBadge: FC<WFOProductBlockBadgeProps> = ({
|
|
|
12
12
|
const { theme, toSecondaryColor } = useOrchestratorTheme();
|
|
13
13
|
|
|
14
14
|
return (
|
|
15
|
-
<
|
|
15
|
+
<WFOBadge
|
|
16
16
|
textColor={theme.colors.link}
|
|
17
17
|
color={toSecondaryColor(theme.colors.primary)}
|
|
18
18
|
>
|
|
19
19
|
{children}
|
|
20
|
-
</
|
|
20
|
+
</WFOBadge>
|
|
21
21
|
);
|
|
22
22
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WFOBadge } from '../WFOBadge';
|
|
2
2
|
import React, { FC } from 'react';
|
|
3
3
|
import { useOrchestratorTheme } from '../../../hooks';
|
|
4
4
|
|
|
@@ -42,8 +42,8 @@ export const WFOStatusBadge: FC<WFOStatusBadgeProps> = ({ status }) => {
|
|
|
42
42
|
const { badgeColor, textColor } = getBadgeColorFromStatus(status);
|
|
43
43
|
|
|
44
44
|
return (
|
|
45
|
-
<
|
|
45
|
+
<WFOBadge textColor={textColor} color={badgeColor}>
|
|
46
46
|
{status}
|
|
47
|
-
</
|
|
47
|
+
</WFOBadge>
|
|
48
48
|
);
|
|
49
49
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './WFOBadge';
|
|
2
|
+
export * from './WFOStatusBadge';
|
|
3
|
+
export * from './WFOProductBlockBadge';
|
|
4
|
+
export * from './WFOProcessStatusBadge';
|
|
5
|
+
export * from './WFOFailedTasksBadge';
|
|
6
|
+
export * from './WFOEnvironmentBadge';
|
|
7
|
+
export * from './WFOEngineStatusBadge';
|
|
8
|
+
export * from './WFOHeaderBadge';
|
|
@@ -3,7 +3,7 @@ import { EuiBreadcrumb, EuiBreadcrumbs, EuiSpacer } from '@elastic/eui';
|
|
|
3
3
|
import { useRouter } from 'next/router';
|
|
4
4
|
import { isUuid4, removeSuffix, upperCaseFirstChar } from '../../utils';
|
|
5
5
|
|
|
6
|
-
export const
|
|
6
|
+
export const WFOBreadcrumbs = () => {
|
|
7
7
|
const router = useRouter();
|
|
8
8
|
// Setup initial breadcrumbs with navigation to home
|
|
9
9
|
const breadcrumbs: EuiBreadcrumb[] = [
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './WFOBreadcrumbs';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EuiTab, EuiTabs } from '@elastic/eui';
|
|
3
|
+
import { useTranslations } from 'next-intl';
|
|
4
|
+
|
|
5
|
+
export type FilterQuery<DataType> = {
|
|
6
|
+
field: keyof DataType;
|
|
7
|
+
value: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export type WFOFilterTab<TabType, DataType> = {
|
|
11
|
+
id: TabType;
|
|
12
|
+
translationKey: string;
|
|
13
|
+
alwaysOnFilters?: FilterQuery<DataType>[];
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type WFOFilterTabsProps<TabType, DataType> = {
|
|
17
|
+
tabs: WFOFilterTab<TabType, DataType>[];
|
|
18
|
+
selectedTab: TabType;
|
|
19
|
+
translationNamespace: string;
|
|
20
|
+
onChangeTab: (updatedTab: TabType) => void;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const WFOFilterTabs = <TabType extends string, DataType>({
|
|
24
|
+
tabs,
|
|
25
|
+
selectedTab,
|
|
26
|
+
translationNamespace,
|
|
27
|
+
onChangeTab,
|
|
28
|
+
}: WFOFilterTabsProps<TabType, DataType>) => {
|
|
29
|
+
const t = useTranslations(translationNamespace);
|
|
30
|
+
return (
|
|
31
|
+
<EuiTabs>
|
|
32
|
+
{tabs.map(({ id, translationKey: name }) => (
|
|
33
|
+
<EuiTab
|
|
34
|
+
key={id}
|
|
35
|
+
isSelected={id === selectedTab}
|
|
36
|
+
onClick={() => id !== selectedTab && onChangeTab(id)}
|
|
37
|
+
>
|
|
38
|
+
{t(name)}
|
|
39
|
+
</EuiTab>
|
|
40
|
+
))}
|
|
41
|
+
</EuiTabs>
|
|
42
|
+
);
|
|
43
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './WFOFilterTabs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './WFOLoading';
|
|
@@ -1,26 +1,18 @@
|
|
|
1
1
|
import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
|
|
2
2
|
import type { Meta } from '@storybook/react';
|
|
3
3
|
import React, { ReactElement } from 'react';
|
|
4
|
-
import {
|
|
5
|
-
import Logo from '../../../../../.storybook/mockdata/logo-orchestrator.svg';
|
|
4
|
+
import { WFOPageHeader } from './WFOPageHeader';
|
|
6
5
|
|
|
7
|
-
const Story: Meta<typeof
|
|
8
|
-
component:
|
|
9
|
-
title: 'PageTemplate/
|
|
6
|
+
const Story: Meta<typeof WFOPageHeader> = {
|
|
7
|
+
component: WFOPageHeader,
|
|
8
|
+
title: 'PageTemplate/WFOPageHeader',
|
|
10
9
|
};
|
|
11
10
|
export default Story;
|
|
12
11
|
|
|
13
12
|
function getAppLogo(navigationLogo: number): ReactElement {
|
|
14
13
|
return (
|
|
15
14
|
<EuiFlexGroup alignItems="center" css={{ height: navigationLogo }}>
|
|
16
|
-
<EuiFlexItem>
|
|
17
|
-
<img
|
|
18
|
-
src={Logo}
|
|
19
|
-
alt="Orchestrator Logo"
|
|
20
|
-
width={134}
|
|
21
|
-
height={32}
|
|
22
|
-
/>
|
|
23
|
-
</EuiFlexItem>
|
|
15
|
+
<EuiFlexItem>FLEX ITEM PLACEHOLDER</EuiFlexItem>
|
|
24
16
|
</EuiFlexGroup>
|
|
25
17
|
);
|
|
26
18
|
}
|
|
@@ -8,19 +8,19 @@ import {
|
|
|
8
8
|
EuiHeaderSectionItem,
|
|
9
9
|
} from '@elastic/eui';
|
|
10
10
|
import { useOrchestratorTheme } from '../../../hooks/useOrchestratorTheme';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
11
|
+
import { WFOFailedTasksBadge } from '../../WFOBadges/WFOFailedTasksBadge';
|
|
12
|
+
import { WFOEngineStatusBadge } from '../../WFOBadges/WFOEngineStatusBadge';
|
|
13
|
+
import { WFOEnvironmentBadge } from '../../WFOBadges/WFOEnvironmentBadge';
|
|
14
|
+
import { WFOLogoutIcon } from '../../../icons/WFOLogoutIcon';
|
|
15
15
|
|
|
16
|
-
export interface
|
|
16
|
+
export interface WFOPageHeaderProps {
|
|
17
17
|
// todo: should be part of theme!
|
|
18
18
|
navigationHeight: number;
|
|
19
19
|
getAppLogo: (navigationHeight: number) => ReactElement;
|
|
20
20
|
handleLogoutClick: () => void;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export const
|
|
23
|
+
export const WFOPageHeader: FC<WFOPageHeaderProps> = ({
|
|
24
24
|
navigationHeight,
|
|
25
25
|
getAppLogo,
|
|
26
26
|
handleLogoutClick,
|
|
@@ -40,22 +40,22 @@ export const OrchestratorPageHeader: FC<OrchestratorPageHeaderProps> = ({
|
|
|
40
40
|
/>
|
|
41
41
|
</EuiHeaderSectionItem>
|
|
42
42
|
<EuiHeaderSectionItem>
|
|
43
|
-
<
|
|
43
|
+
<WFOEnvironmentBadge />
|
|
44
44
|
</EuiHeaderSectionItem>
|
|
45
45
|
</EuiHeaderSection>
|
|
46
46
|
|
|
47
47
|
<EuiHeaderSection>
|
|
48
48
|
<EuiHeaderSectionItem>
|
|
49
49
|
<EuiBadgeGroup css={{ marginRight: multiplyByBaseUnit(2) }}>
|
|
50
|
-
<
|
|
51
|
-
<
|
|
50
|
+
<WFOEngineStatusBadge />
|
|
51
|
+
<WFOFailedTasksBadge />
|
|
52
52
|
</EuiBadgeGroup>
|
|
53
53
|
|
|
54
54
|
<EuiButtonIcon
|
|
55
55
|
aria-label="Logout"
|
|
56
56
|
display="empty"
|
|
57
57
|
iconType={() => (
|
|
58
|
-
<
|
|
58
|
+
<WFOLogoutIcon color={theme.colors.emptyShade} />
|
|
59
59
|
)}
|
|
60
60
|
css={{ width: 48, height: 48 }}
|
|
61
61
|
color="ghost"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './WFOPageHeader';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Meta } from '@storybook/react';
|
|
2
|
+
import { WFOPageTemplate } from './WFOPageTemplate';
|
|
3
|
+
import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
|
|
4
|
+
import React, { ReactElement } from 'react';
|
|
5
|
+
|
|
6
|
+
const Story: Meta<typeof WFOPageTemplate> = {
|
|
7
|
+
component: WFOPageTemplate,
|
|
8
|
+
title: 'PageTemplate/WFOPageTemplate',
|
|
9
|
+
};
|
|
10
|
+
export default Story;
|
|
11
|
+
|
|
12
|
+
function getAppLogo(navigationLogo: number): ReactElement {
|
|
13
|
+
return (
|
|
14
|
+
<EuiFlexGroup alignItems="center" css={{ height: navigationLogo }}>
|
|
15
|
+
<EuiFlexItem>FLEX ITEM PLACEHOLDER</EuiFlexItem>
|
|
16
|
+
</EuiFlexGroup>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const Default = {
|
|
21
|
+
args: {
|
|
22
|
+
getAppLogo,
|
|
23
|
+
},
|
|
24
|
+
};
|