@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
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { EuiTab, EuiTabs } from '@elastic/eui';
|
|
2
|
-
import React, { FC } from 'react';
|
|
3
|
-
import { useTranslations } from 'next-intl';
|
|
4
|
-
|
|
5
|
-
export enum SubscriptionsTabType {
|
|
6
|
-
ACTIVE = 'ACTIVE',
|
|
7
|
-
TERMINATED = 'TERMINATED',
|
|
8
|
-
TRANSIENT = 'TRANSIENT',
|
|
9
|
-
ALL = 'ALL',
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type FilterQuery = {
|
|
13
|
-
field: string;
|
|
14
|
-
value: string;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export type SubscriptionsTab = {
|
|
18
|
-
id: SubscriptionsTabType;
|
|
19
|
-
translationKey: string;
|
|
20
|
-
alwaysOnFilters?: FilterQuery[];
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export const defaultSubscriptionsTabs: SubscriptionsTab[] = [
|
|
24
|
-
{
|
|
25
|
-
id: SubscriptionsTabType.ACTIVE,
|
|
26
|
-
translationKey: 'active',
|
|
27
|
-
alwaysOnFilters: [
|
|
28
|
-
{
|
|
29
|
-
field: 'status',
|
|
30
|
-
value: 'active',
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
id: SubscriptionsTabType.TERMINATED,
|
|
36
|
-
translationKey: 'terminated',
|
|
37
|
-
alwaysOnFilters: [
|
|
38
|
-
{
|
|
39
|
-
field: 'status',
|
|
40
|
-
value: 'terminated',
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
id: SubscriptionsTabType.TRANSIENT,
|
|
46
|
-
translationKey: 'transient',
|
|
47
|
-
alwaysOnFilters: [
|
|
48
|
-
{
|
|
49
|
-
field: 'status',
|
|
50
|
-
value: 'initial-provisioning-migrating',
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
id: SubscriptionsTabType.ALL,
|
|
56
|
-
translationKey: 'all',
|
|
57
|
-
},
|
|
58
|
-
];
|
|
59
|
-
|
|
60
|
-
export type SubscriptionsTabsProps = {
|
|
61
|
-
tabs: SubscriptionsTab[];
|
|
62
|
-
selectedSubscriptionsTab: SubscriptionsTabType;
|
|
63
|
-
onChangeSubscriptionsTab: (
|
|
64
|
-
updatedSubscriptionsTab: SubscriptionsTabType,
|
|
65
|
-
) => void;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export const SubscriptionsTabs: FC<SubscriptionsTabsProps> = ({
|
|
69
|
-
tabs,
|
|
70
|
-
selectedSubscriptionsTab,
|
|
71
|
-
onChangeSubscriptionsTab,
|
|
72
|
-
}) => {
|
|
73
|
-
const t = useTranslations('subscriptions.tabs');
|
|
74
|
-
return (
|
|
75
|
-
<EuiTabs>
|
|
76
|
-
{tabs.map(({ id, translationKey: name }) => (
|
|
77
|
-
<EuiTab
|
|
78
|
-
key={id}
|
|
79
|
-
isSelected={id === selectedSubscriptionsTab}
|
|
80
|
-
onClick={() =>
|
|
81
|
-
id !== selectedSubscriptionsTab &&
|
|
82
|
-
onChangeSubscriptionsTab(id)
|
|
83
|
-
}
|
|
84
|
-
>
|
|
85
|
-
{t(name)}
|
|
86
|
-
</EuiTab>
|
|
87
|
-
))}
|
|
88
|
-
</EuiTabs>
|
|
89
|
-
);
|
|
90
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { getSubscriptionsTabTypeFromString } from './getSubscriptionsTabTypeFromString';
|
|
2
|
-
import { SubscriptionsTabType } from './SubscriptionsTabs';
|
|
3
|
-
|
|
4
|
-
describe('getSubscriptionsTabTypeFromString', () => {
|
|
5
|
-
it('returns SubscriptionsTabType.ACTIVE', () => {
|
|
6
|
-
const result = getSubscriptionsTabTypeFromString('ACTIVE');
|
|
7
|
-
expect(result).toEqual(SubscriptionsTabType.ACTIVE);
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
it('returns SubscriptionsTabType.TERMINATED', () => {
|
|
11
|
-
const result = getSubscriptionsTabTypeFromString('TERMINATED');
|
|
12
|
-
expect(result).toEqual(SubscriptionsTabType.TERMINATED);
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
it('returns SubscriptionsTabType.TRANSIENT', () => {
|
|
16
|
-
const result = getSubscriptionsTabTypeFromString('TRANSIENT');
|
|
17
|
-
expect(result).toEqual(SubscriptionsTabType.TRANSIENT);
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('returns SubscriptionsTabType.ALL', () => {
|
|
21
|
-
const result = getSubscriptionsTabTypeFromString('ALL');
|
|
22
|
-
expect(result).toEqual(SubscriptionsTabType.ALL);
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
it('returns undefined when no tabId is provided', () => {
|
|
26
|
-
const result = getSubscriptionsTabTypeFromString(undefined);
|
|
27
|
-
expect(result).toEqual(undefined);
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
it('returns undefined when no match is found', () => {
|
|
31
|
-
const result = getSubscriptionsTabTypeFromString('thisTabDoesNotExist');
|
|
32
|
-
expect(result).toEqual(undefined);
|
|
33
|
-
});
|
|
34
|
-
});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { SubscriptionsTabType } from './SubscriptionsTabs';
|
|
2
|
-
|
|
3
|
-
export const getSubscriptionsTabTypeFromString = (
|
|
4
|
-
tabId?: string,
|
|
5
|
-
): SubscriptionsTabType | undefined => {
|
|
6
|
-
if (!tabId) {
|
|
7
|
-
return undefined;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
switch (tabId.toUpperCase()) {
|
|
11
|
-
case SubscriptionsTabType.ACTIVE.toString():
|
|
12
|
-
return SubscriptionsTabType.ACTIVE;
|
|
13
|
-
case SubscriptionsTabType.TERMINATED.toString():
|
|
14
|
-
return SubscriptionsTabType.TERMINATED;
|
|
15
|
-
case SubscriptionsTabType.TRANSIENT.toString():
|
|
16
|
-
return SubscriptionsTabType.TRANSIENT;
|
|
17
|
-
case SubscriptionsTabType.ALL.toString():
|
|
18
|
-
return SubscriptionsTabType.ALL;
|
|
19
|
-
|
|
20
|
-
default:
|
|
21
|
-
return undefined;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './TableSettingsModal';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './TableWithFilter';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export * from './DataGridTable/DataGridTable';
|
|
2
|
-
export * from './DataGridTable/dataGridColumns';
|
|
3
|
-
|
|
4
|
-
export * from './TableSettingsModal';
|
|
5
|
-
|
|
6
|
-
export * from './utils/columns';
|
|
7
|
-
export * from './utils/constants';
|
|
8
|
-
|
|
9
|
-
export * from './utils/tableConfigPersistence';
|
|
10
|
-
export * from './utils/tableUtils';
|
|
11
|
-
|
|
12
|
-
export * from './Table';
|
|
13
|
-
export * from './TableWithFilter';
|
|
14
|
-
export * from './TableHeaderCell';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react';
|
|
2
|
-
import { CheckmarkCircleFill } from './CheckmarkCircleFill';
|
|
3
|
-
|
|
4
|
-
const Story: Meta<typeof CheckmarkCircleFill> = {
|
|
5
|
-
component: CheckmarkCircleFill,
|
|
6
|
-
title: 'Icons/CheckmarkCircleFill',
|
|
7
|
-
};
|
|
8
|
-
export default Story;
|
|
9
|
-
|
|
10
|
-
export const Primary = {
|
|
11
|
-
args: {},
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react';
|
|
2
|
-
import { LogoutIcon } from './LogoutIcon';
|
|
3
|
-
|
|
4
|
-
const Story: Meta<typeof LogoutIcon> = {
|
|
5
|
-
component: LogoutIcon,
|
|
6
|
-
title: 'Icons/LogoutIcon',
|
|
7
|
-
};
|
|
8
|
-
export default Story;
|
|
9
|
-
|
|
10
|
-
export const Primary = {
|
|
11
|
-
args: {},
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react';
|
|
2
|
-
import { MinusCircleOutline } from './MinusCircleOutline';
|
|
3
|
-
|
|
4
|
-
const Story: Meta<typeof MinusCircleOutline> = {
|
|
5
|
-
component: MinusCircleOutline,
|
|
6
|
-
title: 'Icons/MinusCircleOutline',
|
|
7
|
-
};
|
|
8
|
-
export default Story;
|
|
9
|
-
|
|
10
|
-
export const Primary = {
|
|
11
|
-
args: {},
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react';
|
|
2
|
-
import { PlusCircleFill } from './PlusCircleFill';
|
|
3
|
-
|
|
4
|
-
const Story: Meta<typeof PlusCircleFill> = {
|
|
5
|
-
component: PlusCircleFill,
|
|
6
|
-
title: 'Icons/PlusCircleFill',
|
|
7
|
-
};
|
|
8
|
-
export default Story;
|
|
9
|
-
|
|
10
|
-
export const Primary = {
|
|
11
|
-
args: {},
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react';
|
|
2
|
-
import { StatusDotIcon } from './StatusDotIcon';
|
|
3
|
-
|
|
4
|
-
const Story: Meta<typeof StatusDotIcon> = {
|
|
5
|
-
component: StatusDotIcon,
|
|
6
|
-
title: 'Icons/StatusDotIcon',
|
|
7
|
-
};
|
|
8
|
-
export default Story;
|
|
9
|
-
|
|
10
|
-
export const Primary = {
|
|
11
|
-
args: {},
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react';
|
|
2
|
-
import { XCircleFill } from './XCircleFill';
|
|
3
|
-
|
|
4
|
-
const Story: Meta<typeof XCircleFill> = {
|
|
5
|
-
component: XCircleFill,
|
|
6
|
-
title: 'Icons/XCircleFill',
|
|
7
|
-
};
|
|
8
|
-
export default Story;
|
|
9
|
-
|
|
10
|
-
export const Primary = {
|
|
11
|
-
args: {},
|
|
12
|
-
};
|