@orchestrator-ui/orchestrator-ui-components 0.2.4 → 0.2.5
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 +1 -1
- package/.turbo/turbo-build.log +9 -7
- package/.turbo/turbo-lint.log +3 -6
- package/.turbo/turbo-test.log +17 -9
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +1092 -358
- package/dist/index.js +22934 -6399
- package/jest.config.cjs +0 -1
- package/package.json +24 -8
- package/src/api/axios.ts +34 -0
- package/src/api/index.ts +170 -0
- package/src/components/WfoAuth/WfoAuth.tsx +22 -0
- package/src/components/WfoAuth/index.ts +1 -0
- package/src/components/{WFOBadges/WFOBadge/WFOBadge.stories.tsx → WfoBadges/WfoBadge/WfoBadge.stories.tsx} +5 -4
- package/src/components/{WFOBadges/WFOBadge/WFOBadge.tsx → WfoBadges/WfoBadge/WfoBadge.tsx} +4 -3
- package/src/components/WfoBadges/WfoBadge/index.ts +1 -0
- package/src/components/{WFOBadges/WFOEngineStatusBadge/WFOEngineStatusBadge.stories.tsx → WfoBadges/WfoEngineStatusBadge/WfoEngineStatusBadge.stories.tsx} +6 -4
- package/src/components/{WFOBadges/WFOEngineStatusBadge/WFOEngineStatusBadge.tsx → WfoBadges/WfoEngineStatusBadge/WfoEngineStatusBadge.tsx} +13 -7
- package/src/components/WfoBadges/WfoEngineStatusBadge/index.ts +1 -0
- package/src/components/{WFOBadges/WFOEnvironmentBadge/WFOEnvironmentBadge.stories.tsx → WfoBadges/WfoEnvironmentBadge/WfoEnvironmentBadge.stories.tsx} +6 -4
- package/src/components/{WFOBadges/WFOEnvironmentBadge/WFOEnvironmentBadge.tsx → WfoBadges/WfoEnvironmentBadge/WfoEnvironmentBadge.tsx} +8 -7
- package/src/components/WfoBadges/WfoEnvironmentBadge/index.ts +1 -0
- package/src/components/WfoBadges/WfoFailedTasksBadge/WfoFailedTasksBadge.stories.tsx +13 -0
- package/src/components/WfoBadges/WfoFailedTasksBadge/WfoFailedTasksBadge.tsx +95 -0
- package/src/components/WfoBadges/WfoFailedTasksBadge/index.ts +1 -0
- package/src/components/{WFOBadges/WFOHeaderBadge/WFOHeaderBadge.stories.tsx → WfoBadges/WfoHeaderBadge/WfoHeaderBadge.stories.tsx} +6 -4
- package/src/components/{WFOBadges/WFOHeaderBadge/WFOHeaderBadge.tsx → WfoBadges/WfoHeaderBadge/WfoHeaderBadge.tsx} +6 -4
- package/src/components/WfoBadges/WfoHeaderBadge/index.ts +1 -0
- package/src/components/{WFOBadges/WFOProcessStatusBadge/WFOProcessStatusBadge.tsx → WfoBadges/WfoProcessStatusBadge/WfoProcessStatusBadge.tsx} +8 -6
- package/src/components/WfoBadges/WfoProcessStatusBadge/index.ts +1 -0
- package/src/components/WfoBadges/WfoProductBlockBadge/WfoProductBlockBadge.stories.tsx +16 -0
- package/src/components/WfoBadges/WfoProductBlockBadge/WfoProductBlockBadge.tsx +70 -0
- package/src/components/WfoBadges/WfoProductBlockBadge/index.ts +1 -0
- package/src/components/WfoBadges/WfoProductStatusBadge/WfoProductStatusBadge.stories.tsx +22 -0
- package/src/components/WfoBadges/WfoProductStatusBadge/WfoProductStatusBadge.tsx +53 -0
- package/src/components/WfoBadges/WfoProductStatusBadge/index.ts +1 -0
- package/src/components/{WFOBadges/WFOSubscriptionStatusBadge/WFOSubscriptionStatusBadge.stories.tsx → WfoBadges/WfoSubscriptionStatusBadge/WfoSubscriptionStatusBadge.stories.tsx} +5 -4
- package/src/components/{WFOBadges/WFOSubscriptionStatusBadge/WFOSubscriptionStatusBadge.tsx → WfoBadges/WfoSubscriptionStatusBadge/WfoSubscriptionStatusBadge.tsx} +12 -10
- package/src/components/WfoBadges/WfoSubscriptionStatusBadge/index.ts +1 -0
- package/src/components/WfoBadges/WfoWorkflowTargetBadge/WfoWorkflowTargetBadge.tsx +65 -0
- package/src/components/WfoBadges/WfoWorkflowTargetBadge/index.ts +1 -0
- package/src/components/WfoBadges/index.ts +9 -0
- package/src/components/WfoButtonComboBox/WfoButtonComboBox.tsx +76 -0
- package/src/components/WfoButtonComboBox/styles.ts +13 -0
- package/src/components/WfoDateTime/WfoDateTime.tsx +28 -0
- package/src/components/WfoDateTime/index.ts +1 -0
- package/src/components/WfoDropdownButton/WfoDropdownButton.tsx +67 -0
- package/src/components/WfoDropdownButton/index.ts +1 -0
- package/src/components/{WFOFilterTabs/WFOFilterTabs.tsx → WfoFilterTabs/WfoFilterTabs.tsx} +8 -6
- package/src/components/WfoFilterTabs/index.ts +1 -0
- package/src/components/WfoForms/AutoFieldLoader.tsx +110 -0
- package/src/components/WfoForms/AutoFields.tsx +49 -0
- package/src/components/WfoForms/CreateForm.tsx +71 -0
- package/src/components/WfoForms/UserInputForm.tsx +607 -0
- package/src/components/WfoForms/UserInputFormStyling.ts +80 -0
- package/src/components/WfoForms/UserInputFormWizard.tsx +120 -0
- package/src/components/WfoForms/formFields/AcceptField.tsx +239 -0
- package/src/components/WfoForms/formFields/AcceptFieldStyling.ts +29 -0
- package/src/components/WfoForms/formFields/BoolField.tsx +71 -0
- package/src/components/WfoForms/formFields/BoolFieldStyling.ts +68 -0
- package/src/components/WfoForms/formFields/ContactPersonAutocomplete.tsx +97 -0
- package/src/components/WfoForms/formFields/ContactPersonAutocompleteStyles.ts +40 -0
- package/src/components/WfoForms/formFields/ContactPersonNameField.tsx +253 -0
- package/src/components/WfoForms/formFields/DateField.tsx +72 -0
- package/src/components/WfoForms/formFields/DividerField.tsx +29 -0
- package/src/components/WfoForms/formFields/ErrorField.tsx +40 -0
- package/src/components/WfoForms/formFields/ErrorsField.tsx +34 -0
- package/src/components/WfoForms/formFields/ImsNodeIdField.tsx +110 -0
- package/src/components/WfoForms/formFields/IpNetworkField.tsx +128 -0
- package/src/components/WfoForms/formFields/IpPrefixTableField.tsx +454 -0
- package/src/components/WfoForms/formFields/IpPrefixTableFieldStyling.ts +117 -0
- package/src/components/WfoForms/formFields/LabelField.tsx +39 -0
- package/src/components/WfoForms/formFields/ListAddField.tsx +98 -0
- package/src/components/WfoForms/formFields/ListDelField.tsx +95 -0
- package/src/components/WfoForms/formFields/ListField.tsx +113 -0
- package/src/components/WfoForms/formFields/ListItemField.tsx +40 -0
- package/src/components/WfoForms/formFields/ListSelectField.tsx +92 -0
- package/src/components/WfoForms/formFields/LocationCodeField.tsx +66 -0
- package/src/components/WfoForms/formFields/LongTextField.tsx +68 -0
- package/src/components/WfoForms/formFields/NestField.tsx +107 -0
- package/src/components/WfoForms/formFields/NumField.tsx +75 -0
- package/src/components/WfoForms/formFields/OptGroupField.tsx +74 -0
- package/src/components/WfoForms/formFields/OrganisationField.tsx +57 -0
- package/src/components/WfoForms/formFields/ProductField.tsx +78 -0
- package/src/components/WfoForms/formFields/RadioField.tsx +87 -0
- package/src/components/WfoForms/formFields/SelectField.tsx +152 -0
- package/src/components/WfoForms/formFields/SplitPrefix.tsx +163 -0
- package/src/components/WfoForms/formFields/SplitPrefixStyling.ts +11 -0
- package/src/components/WfoForms/formFields/SubmitField.tsx +50 -0
- package/src/components/WfoForms/formFields/SubscriptionField.tsx +351 -0
- package/src/components/WfoForms/formFields/SubscriptionFieldStyling.ts +33 -0
- package/src/components/WfoForms/formFields/SubscriptionSummaryField.tsx +75 -0
- package/src/components/WfoForms/formFields/TextField.tsx +71 -0
- package/src/components/WfoForms/formFields/TimestampField.tsx +103 -0
- package/src/components/WfoForms/formFields/VlanField.tsx +297 -0
- package/src/components/WfoForms/formFields/index.ts +29 -0
- package/src/components/WfoForms/formFields/listFieldStyling.ts +86 -0
- package/src/components/WfoForms/formFields/reactSelectStyles.ts +45 -0
- package/src/components/WfoForms/formFields/surf/types.ts +53 -0
- package/src/components/WfoForms/formFields/surf/utils.ts +1 -0
- package/src/components/WfoForms/formFields/types.ts +50 -0
- package/src/components/WfoForms/formFields/utils.spec.ts +196 -0
- package/src/components/WfoForms/formFields/utils.ts +65 -0
- package/src/components/WfoForms/index.ts +5 -0
- package/src/components/WfoForms/useAxiosApiClient.ts +8 -0
- package/src/components/WfoInsyncIcon/WfoInsyncIcon.stories.tsx +21 -0
- package/src/components/WfoInsyncIcon/WfoInsyncIcon.tsx +26 -0
- package/src/components/WfoInsyncIcon/index.ts +1 -0
- package/src/components/WfoJsonCodeBlock/WfoJsonCodeBlock.tsx +27 -0
- package/src/components/WfoJsonCodeBlock/styles.ts +13 -0
- package/src/components/WfoKeyValueTable/WfoKeyCell.tsx +25 -0
- package/src/components/WfoKeyValueTable/WfoKeyValueTable.tsx +41 -0
- package/src/components/WfoKeyValueTable/WfoValueCell.tsx +53 -0
- package/src/components/WfoKeyValueTable/index.ts +3 -0
- package/src/components/WfoKeyValueTable/styles.ts +77 -0
- package/src/components/WfoLoading/WfoLoading.tsx +3 -0
- package/src/components/WfoLoading/index.ts +1 -0
- package/src/components/WfoNoResults/WfoNoResults.stories.tsx +19 -0
- package/src/components/WfoNoResults/WfoNoResults.tsx +22 -0
- package/src/components/WfoNoResults/index.ts +1 -0
- package/src/components/WfoNoResults/styles.ts +22 -0
- package/src/components/WfoPageHeader/WfoPageHeader.tsx +25 -0
- package/src/components/{WFOPageTemplate/WFOBreadcrumbs/WFOBreadcrumbs.tsx → WfoPageTemplate/WfoBreadcrumbs/WfoBreadcrumbs.tsx} +5 -2
- package/src/components/WfoPageTemplate/WfoBreadcrumbs/index.ts +1 -0
- package/src/components/{WFOPageTemplate/WFOPageHeader/WFOPageHeader.stories.tsx → WfoPageTemplate/WfoPageHeader/WfoPageHeader.stories.tsx} +7 -5
- package/src/components/{WFOPageTemplate/WFOPageHeader/WFOPageHeader.tsx → WfoPageTemplate/WfoPageHeader/WfoPageHeader.tsx} +26 -11
- package/src/components/WfoPageTemplate/WfoPageHeader/index.ts +1 -0
- package/src/components/{WFOPageTemplate/WFOPageTemplate/WFOPageTemplate.stories.tsx → WfoPageTemplate/WfoPageTemplate/WfoPageTemplate.stories.tsx} +8 -6
- package/src/components/{WFOPageTemplate/WFOPageTemplate/WFOPageTemplate.tsx → WfoPageTemplate/WfoPageTemplate/WfoPageTemplate.tsx} +20 -10
- package/src/components/WfoPageTemplate/WfoPageTemplate/index.ts +1 -0
- package/src/components/{WFOPageTemplate/WFOSidebar/WFOSidebar.stories.tsx → WfoPageTemplate/WfoSidebar/WfoSidebar.stories.tsx} +6 -4
- package/src/components/WfoPageTemplate/WfoSidebar/WfoSidebar.tsx +161 -0
- package/src/components/WfoPageTemplate/WfoSidebar/WfoStartCreateWorkflowButtonComboBox.tsx +58 -0
- package/src/components/WfoPageTemplate/WfoSidebar/index.ts +1 -0
- package/src/components/WfoPageTemplate/index.ts +4 -0
- package/src/components/{WFOPageTemplate → WfoPageTemplate}/paths.ts +1 -1
- package/src/components/WfoProcessesList/WfoProcessList.tsx +227 -0
- package/src/components/WfoProcessesList/processListObjectMappers.ts +79 -0
- package/src/components/{WFOSearchBar/WFOSearchField.tsx → WfoSearchBar/WfoSearchField.tsx} +4 -3
- package/src/components/WfoSearchBar/index.ts +1 -0
- package/src/components/WfoSettingsModal/WfoInformationModal.tsx +41 -0
- package/src/components/{WFOSettingsModal/WFOSettingsModal.tsx → WfoSettingsModal/WfoSettingsModal.tsx} +3 -2
- package/src/components/WfoSettingsModal/index.tsx +2 -0
- package/src/components/{WFOSettingsPage/WFOEngineStatusButton.tsx → WfoSettingsPage/WfoEngineStatusButton.tsx} +5 -3
- package/src/components/{WFOSettingsPage/WFOFlushSettings.tsx → WfoSettingsPage/WfoFlushSettings.tsx} +19 -30
- package/src/components/{WFOSettingsPage/WFOModifySettings.tsx → WfoSettingsPage/WfoModifySettings.tsx} +7 -5
- package/src/components/{WFOSettingsPage/WFOSettings.tsx → WfoSettingsPage/WfoSettings.tsx} +12 -8
- package/src/components/{WFOSettingsPage/WFOStatus.tsx → WfoSettingsPage/WfoStatus.tsx} +8 -6
- package/src/components/WfoSettingsPage/index.ts +1 -0
- package/src/components/{WFOStartPage/WFOFrequentlyUsed.stories.tsx → WfoStartPage/WfoFrequentlyUsed.stories.tsx} +5 -4
- package/src/components/{WFOStartPage/WFOFrequentlyUsed.tsx → WfoStartPage/WfoFrequentlyUsed.tsx} +4 -3
- package/src/components/{WFOStartPage/WFOListItemStartPage.stories.tsx → WfoStartPage/WfoListItemStartPage.stories.tsx} +6 -4
- package/src/components/{WFOStartPage/WFOListItemStartPage.tsx → WfoStartPage/WfoListItemStartPage.tsx} +9 -6
- package/src/components/{WFOStartPage/WFOListStartPage.stories.tsx → WfoStartPage/WfoListStartPage.stories.tsx} +6 -4
- package/src/components/{WFOStartPage/WFOListStartPage.tsx → WfoStartPage/WfoListStartPage.tsx} +7 -5
- package/src/components/{WFOStartPage/WFOMultiListSection.stories.tsx → WfoStartPage/WfoMultiListSection.stories.tsx} +5 -4
- package/src/components/{WFOStartPage/WFOMultiListSection.tsx → WfoStartPage/WfoMultiListSection.tsx} +7 -5
- package/src/components/WfoStartPage/WfoNewProcessPanel.stories.tsx +13 -0
- package/src/components/{WFOStartPage/WFONewProcessPanel.tsx → WfoStartPage/WfoNewProcessPanel.tsx} +5 -3
- package/src/components/WfoStartPage/WfoStatCards.stories.tsx +13 -0
- package/src/components/{WFOStartPage/WFOStatCards.tsx → WfoStartPage/WfoStatCards.tsx} +4 -2
- package/src/components/WfoStartPage/index.ts +6 -0
- package/src/components/WfoStartTaskButtonComboBox/WfoStartTaskButtonComboBox.tsx +51 -0
- package/src/components/WfoStartTaskButtonComboBox/index.ts +1 -0
- package/src/components/WfoSubscription/SubscriptionKeyValueBlock.tsx +46 -0
- package/src/components/WfoSubscription/WfoProcessesTimeline.tsx +158 -0
- package/src/components/WfoSubscription/WfoRelatedSubscriptions.tsx +192 -0
- package/src/components/WfoSubscription/WfoSubscription.tsx +145 -0
- package/src/components/WfoSubscription/WfoSubscriptionActions.tsx +236 -0
- package/src/components/WfoSubscription/WfoSubscriptionDetailTree.tsx +161 -0
- package/src/components/WfoSubscription/WfoSubscriptionGeneral.tsx +147 -0
- package/src/components/WfoSubscription/WfoSubscriptionProductBlock.tsx +207 -0
- package/src/components/WfoSubscription/index.ts +8 -0
- package/src/components/WfoSubscription/styles.ts +104 -0
- package/src/components/WfoSubscription/utils/index.ts +1 -0
- package/src/components/WfoSubscription/utils/utils.spec.ts +168 -0
- package/src/components/WfoSubscription/utils/utils.ts +76 -0
- package/src/components/{WFOSubscriptionsList/WFOSubscriptionsList.tsx → WfoSubscriptionsList/WfoSubscriptionsList.tsx} +63 -57
- package/src/components/{WFOSubscriptionsList → WfoSubscriptionsList}/index.ts +1 -2
- package/src/components/{WFOSubscriptionsList → WfoSubscriptionsList}/mapGrapghQlSubscriptionsResultToSubscriptionListItems.ts +16 -7
- package/src/components/{WFOSubscriptionsList → WfoSubscriptionsList}/subscriptionListTabs.ts +18 -18
- package/src/components/WfoTable/WfoBasicTable/WfoBasicTable.tsx +178 -0
- package/src/components/{WFOTable/WFOSortDirectionIcon.tsx → WfoTable/WfoBasicTable/WfoSortDirectionIcon.tsx} +8 -8
- package/src/components/WfoTable/WfoBasicTable/WfoStatusColorField.tsx +21 -0
- package/src/components/WfoTable/WfoBasicTable/WfoTableHeaderCell.tsx +120 -0
- package/src/components/WfoTable/WfoBasicTable/index.ts +4 -0
- package/src/components/WfoTable/WfoBasicTable/styles.ts +73 -0
- package/src/components/{WFOTable/WFODataGridTable/WFODataGridTable.stories.tsx → WfoTable/WfoDataGridTable/WfoDataGridTable.stories.tsx} +9 -7
- package/src/components/{WFOTable/WFODataGridTable/WFODataGridTable.tsx → WfoTable/WfoDataGridTable/WfoDataGridTable.tsx} +23 -21
- package/src/components/{WFOTable/WFODataGridTable/WFOdataGridColumns.spec.ts → WfoTable/WfoDataGridTable/WfodataGridColumns.spec.ts} +7 -7
- package/src/components/{WFOTable/WFODataGridTable/WFOdataGridColumns.ts → WfoTable/WfoDataGridTable/WfodataGridColumns.ts} +8 -7
- package/src/components/WfoTable/WfoFirstPartUUID/WfoFirstPartUUID.tsx +11 -0
- package/src/components/WfoTable/WfoFirstPartUUID/index.ts +1 -0
- package/src/components/WfoTable/WfoSortButtons/WfoSortButton.tsx +31 -0
- package/src/components/WfoTable/WfoSortButtons/WfoSortButtons.tsx +33 -0
- package/src/components/WfoTable/WfoSortButtons/index.ts +2 -0
- package/src/components/WfoTable/WfoSortButtons/styles.ts +20 -0
- package/src/components/{WFOTable/WFOTableSettingsModal/WFOTableSettingsModal.tsx → WfoTable/WfoTableSettingsModal/WfoTableSettingsModal.tsx} +5 -3
- package/src/components/WfoTable/WfoTableSettingsModal/index.ts +1 -0
- package/src/components/WfoTable/WfoTableWithFilter/WfoTableWithFilter.tsx +253 -0
- package/src/components/WfoTable/WfoTableWithFilter/index.ts +1 -0
- package/src/components/WfoTable/index.ts +15 -0
- package/src/components/{WFOTable → WfoTable}/utils/columns.ts +27 -16
- package/src/components/{WFOTable → WfoTable}/utils/constants.ts +3 -1
- package/src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.spec.ts +52 -0
- package/src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.ts +21 -0
- package/src/components/{WFOTable → WfoTable}/utils/tableConfigPersistence.spec.ts +4 -4
- package/src/components/{WFOTable → WfoTable}/utils/tableConfigPersistence.ts +12 -16
- package/src/components/{WFOTable → WfoTable}/utils/tableUtils.spec.ts +1 -1
- package/src/components/{WFOTable → WfoTable}/utils/tableUtils.ts +6 -25
- package/src/components/WfoTimeline/WfoTimeline.tsx +69 -0
- package/src/components/WfoTimeline/WfoTimelineStep.tsx +57 -0
- package/src/components/WfoTimeline/index.ts +1 -0
- package/src/components/WfoTimeline/mapProcessStepStatusToEuiStepStatus.ts +23 -0
- package/src/components/WfoTimeline/styles.ts +165 -0
- package/src/components/WfoTimeline/timelineUtils.ts +14 -0
- package/src/components/WfoToastsList/WfoToastsList.tsx +22 -0
- package/src/components/WfoToastsList/index.ts +1 -0
- package/src/components/WfoTree/WfoTree.tsx +27 -0
- package/src/components/{WFOTree/WFOTreeBranch.tsx → WfoTree/WfoTreeBranch.tsx} +7 -6
- package/src/components/{WFOTree/WFOTreeNode.tsx → WfoTree/WfoTreeNode.tsx} +28 -13
- package/src/components/WfoTree/index.ts +4 -0
- package/src/components/WfoTree/styles.ts +18 -0
- package/src/components/WfoTree/treeUtils.spec.ts +100 -0
- package/src/components/WfoTree/treeUtils.ts +21 -0
- package/src/components/WfoWorkflowSteps/WfoStep/WfoStep.stories.tsx +13 -0
- package/src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx +167 -0
- package/src/components/WfoWorkflowSteps/WfoStep/index.ts +1 -0
- package/src/components/WfoWorkflowSteps/WfoStepList/WfoStepList.tsx +107 -0
- package/src/components/WfoWorkflowSteps/WfoStepList/index.ts +1 -0
- package/src/components/WfoWorkflowSteps/WfoStepStatusIcon/WfoStepStatusIcon.stories.tsx +16 -0
- package/src/components/WfoWorkflowSteps/WfoStepStatusIcon/WfoStepStatusIcon.tsx +114 -0
- package/src/components/WfoWorkflowSteps/WfoStepStatusIcon/index.ts +1 -0
- package/src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx +139 -0
- package/src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.stories.tsx +56 -0
- package/src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx +121 -0
- package/src/components/WfoWorkflowSteps/WfoWorkflowStepList/index.ts +2 -0
- package/src/components/WfoWorkflowSteps/index.ts +4 -0
- package/src/components/WfoWorkflowSteps/stepListUtils.spec.ts +26 -0
- package/src/components/WfoWorkflowSteps/stepListUtils.ts +56 -0
- package/src/components/WfoWorkflowSteps/styles.ts +121 -0
- package/src/components/confirmationDialog/ConfirmationDialogStyling.ts +12 -0
- package/src/components/confirmationDialog/WfoConfirmationDialog.tsx +112 -0
- package/src/components/confirmationDialog/index.ts +1 -0
- package/src/components/index.ts +19 -11
- package/src/contexts/ApiClientContext.tsx +30 -0
- package/src/contexts/ConfirmationDialogProvider.tsx +99 -0
- package/src/contexts/OrchestratorConfigContext.tsx +8 -3
- package/src/contexts/ToastContext.tsx +136 -0
- package/src/contexts/TreeContext.tsx +53 -32
- package/src/contexts/index.ts +3 -1
- package/src/graphqlQueries/customersQuery.ts +19 -0
- package/src/graphqlQueries/index.ts +4 -0
- package/src/graphqlQueries/processDetailQuery.ts +45 -0
- package/src/graphqlQueries/processListQuery.ts +17 -7
- package/src/graphqlQueries/productBlocksQuery.ts +13 -1
- package/src/graphqlQueries/productsQuery.ts +5 -1
- package/src/graphqlQueries/relatedSubscriptionsQuery.ts +65 -0
- package/src/graphqlQueries/resourceTypesQuery.ts +13 -2
- package/src/graphqlQueries/subscriptionDetailQuery.ts +62 -0
- package/src/graphqlQueries/subscriptionsDropdownOptionsQuery.ts +47 -0
- package/src/graphqlQueries/subscriptionsListQuery.ts +4 -0
- package/src/graphqlQueries/{workflowsQuery.ts → workflows/workflowsQuery.ts} +9 -3
- package/src/graphqlQueries/workflows/workflowsQueryForDropdownList.ts +41 -0
- package/src/hooks/DataFetchHooks.ts +72 -49
- package/src/hooks/ProcessesHooks/useDeleteProcess.ts +37 -0
- package/src/hooks/index.ts +4 -1
- package/src/hooks/surf/useGetSubscriptionDropdownOptions.ts +47 -0
- package/src/hooks/surf/useIsTaggedPort.ts +29 -0
- package/src/hooks/useDataDisplayParams.ts +1 -1
- package/src/hooks/useEngineStatusQuery.ts +20 -10
- package/src/hooks/useOrchestratorConfig.ts +6 -2
- package/src/hooks/useProcessStatusCountsQuery.ts +8 -23
- package/src/hooks/useQueryWithFetch.ts +33 -0
- package/src/hooks/useQueryWithGraphql.ts +18 -13
- package/src/hooks/useSessionWithToken.ts +14 -0
- package/src/hooks/useStoredTableConfig.ts +43 -0
- package/src/hooks/useSubscriptionActions.ts +3 -3
- package/src/hooks/useToastMessage.ts +5 -0
- package/src/hooks/useWithOrchestratorTheme.ts +10 -0
- package/src/icons/WfoArrowNarrowDown.stories.tsx +13 -0
- package/src/icons/{WFOArrowNarrowDown.tsx → WfoArrowNarrowDown.tsx} +4 -2
- package/src/icons/WfoArrowNarrowUp.stories.tsx +13 -0
- package/src/icons/{WFOArrowNarrowUp.tsx → WfoArrowNarrowUp.tsx} +4 -2
- package/src/icons/WfoArrowsExpand.stories.tsx +13 -0
- package/src/icons/WfoArrowsExpand.tsx +33 -0
- package/src/icons/WfoCheckmarkCircleFill.stories.tsx +13 -0
- package/src/icons/{WFOCheckmarkCircleFill.tsx → WfoCheckmarkCircleFill.tsx} +3 -2
- package/src/icons/WfoChevronDown.stories.tsx +13 -0
- package/src/icons/{WFOChevronDown.tsx → WfoChevronDown.tsx} +3 -2
- package/src/icons/WfoChevronUp.stories.tsx +13 -0
- package/src/icons/WfoChevronUp.tsx +33 -0
- package/src/icons/WfoClipboardCopy.stories.tsx +13 -0
- package/src/icons/WfoClipboardCopy.tsx +33 -0
- package/src/icons/WfoCode.stories.tsx +13 -0
- package/src/icons/WfoCode.tsx +35 -0
- package/src/icons/WfoCogFill.stories.tsx +13 -0
- package/src/icons/WfoCogFill.tsx +35 -0
- package/src/icons/WfoEyeFill.stories.tsx +13 -0
- package/src/icons/WfoEyeFill.tsx +35 -0
- package/src/icons/{WFOIconProps.ts → WfoIconProps.ts} +1 -1
- package/src/icons/WfoLogoutIcon.stories.tsx +13 -0
- package/src/icons/{WFOLogoutIcon.tsx → WfoLogoutIcon.tsx} +3 -2
- package/src/icons/WfoMinusCircleFill.stories.tsx +13 -0
- package/src/icons/WfoMinusCircleFill.tsx +33 -0
- package/src/icons/WfoMinusCircleOutline.stories.tsx +13 -0
- package/src/icons/{WFOMinusCircleOutline.tsx → WfoMinusCircleOutline.tsx} +3 -2
- package/src/icons/WfoPencilAlt.stories.tsx +13 -0
- package/src/icons/WfoPencilAlt.tsx +33 -0
- package/src/icons/WfoPlayFill.stories.tsx +13 -0
- package/src/icons/WfoPlayFill.tsx +35 -0
- package/src/icons/WfoPlusCircleFill.stories.tsx +13 -0
- package/src/icons/{WFOPlusCircleFill.tsx → WfoPlusCircleFill.tsx} +3 -2
- package/src/icons/WfoRefresh.stories.tsx +13 -0
- package/src/icons/WfoRefresh.tsx +35 -0
- package/src/icons/WfoSearchStrikethrough.stories.tsx +13 -0
- package/src/icons/WfoSearchStrikethrough.tsx +33 -0
- package/src/icons/WfoSortAsc.stories.tsx +13 -0
- package/src/icons/WfoSortAsc.tsx +33 -0
- package/src/icons/WfoSortDesc.stories.tsx +13 -0
- package/src/icons/WfoSortDesc.tsx +33 -0
- package/src/icons/WfoStatistic.tsx +41 -0
- package/src/icons/WfoStatusDotIcon.stories.tsx +13 -0
- package/src/icons/{WFOStatusDotIcon.tsx → WfoStatusDotIcon.tsx} +3 -2
- package/src/icons/WfoXCircleFill.stories.tsx +13 -0
- package/src/icons/{WFOXCircleFill.tsx → WfoXCircleFill.tsx} +3 -2
- package/src/icons/index.ts +22 -10
- package/src/index.ts +1 -0
- package/src/messages/en-US.json +173 -20
- package/src/messages/getTranslationMessages.spec.ts +1 -1
- package/src/messages/getTranslationMessages.ts +1 -1
- package/src/messages/nl-NL.json +177 -22
- package/src/pages/index.ts +2 -0
- package/src/pages/metadata/{WFOMetadataPageLayout.tsx → WfoMetadataPageLayout.tsx} +5 -3
- package/src/pages/metadata/WfoProductBlocksPage.tsx +239 -0
- package/src/pages/metadata/{WFOProductsPage.tsx → WfoProductsPage.tsx} +96 -54
- package/src/pages/metadata/WfoResourceTypesPage.tsx +185 -0
- package/src/pages/metadata/WfoWorkflowsPage.tsx +194 -0
- package/src/pages/metadata/index.ts +4 -4
- package/src/pages/metadata/workflowListObjectMapper.ts +43 -0
- package/src/pages/processes/WfoProcessDetail.tsx +327 -0
- package/src/pages/processes/WfoProcessDetailPage.tsx +88 -0
- package/src/pages/processes/WfoProcessListPage.tsx +106 -0
- package/src/pages/processes/WfoProcessListSubscriptionsCell.tsx +72 -0
- package/src/pages/processes/getProcessListTabTypeFromString.ts +6 -6
- package/src/pages/processes/index.ts +3 -2
- package/src/pages/processes/tabConfig.ts +28 -10
- package/src/pages/processes/timelineUtils.spec.ts +202 -0
- package/src/pages/processes/timelineUtils.ts +113 -0
- package/src/pages/subscriptions/WfoSubscriptionDetailPage.tsx +19 -0
- package/src/pages/subscriptions/{WFOSubscriptionsListPage.tsx → WfoSubscriptionsListPage.tsx} +40 -20
- package/src/pages/subscriptions/index.ts +2 -1
- package/src/pages/tasks/WfoTaskListPage.tsx +120 -0
- package/src/pages/tasks/index.ts +1 -0
- package/src/pages/workflow/WfoStartWorkflowPage.tsx +176 -0
- package/src/pages/workflow/index.ts +1 -0
- package/src/stories/Button.jsx +45 -39
- package/src/stories/Configure.mdx +48 -43
- package/src/stories/Header.jsx +59 -45
- package/src/stories/Page.jsx +81 -60
- package/src/stories/Page.stories.js +2 -1
- package/src/stories/button.css +18 -18
- package/src/stories/colors.mdx +12 -0
- package/src/stories/colors.tsx +27 -0
- package/src/stories/header.css +18 -18
- package/src/stories/page.css +40 -40
- package/src/theme/defaultOrchestratorTheme.ts +16 -0
- package/src/types/forms.ts +40 -0
- package/src/types/index.ts +0 -1
- package/src/types/types.ts +283 -73
- package/src/utils/date.spec.ts +157 -5
- package/src/utils/date.ts +66 -5
- package/src/utils/environmentVariables.spec.ts +17 -0
- package/src/utils/environmentVariables.ts +12 -0
- package/src/utils/getDefaultTableConfig.ts +101 -0
- package/src/utils/getProductNamesFromProcess.spec.ts +133 -0
- package/src/utils/getProductNamesFromProcess.ts +16 -0
- package/src/utils/getTokenName.ts +2 -1
- package/src/utils/index.ts +2 -0
- package/src/utils/string.spec.ts +24 -1
- package/src/utils/strings.ts +5 -0
- package/tsconfig.build.json +14 -0
- package/tsconfig.json +4 -2
- package/src/components/WFOBadges/WFOBadge/index.ts +0 -1
- package/src/components/WFOBadges/WFOEngineStatusBadge/index.ts +0 -1
- package/src/components/WFOBadges/WFOEnvironmentBadge/index.ts +0 -1
- package/src/components/WFOBadges/WFOFailedTasksBadge/WFOFailedTasksBadge.stories.tsx +0 -12
- package/src/components/WFOBadges/WFOFailedTasksBadge/WFOFailedTasksBadge.tsx +0 -63
- package/src/components/WFOBadges/WFOFailedTasksBadge/index.ts +0 -1
- package/src/components/WFOBadges/WFOHeaderBadge/index.ts +0 -1
- package/src/components/WFOBadges/WFOProcessStatusBadge/index.ts +0 -1
- package/src/components/WFOBadges/WFOProductBlockBadge/WFOProductBlockBadge.stories.tsx +0 -15
- package/src/components/WFOBadges/WFOProductBlockBadge/WFOProductBlockBadge.tsx +0 -22
- package/src/components/WFOBadges/WFOProductBlockBadge/index.ts +0 -1
- package/src/components/WFOBadges/WFOSubscriptionStatusBadge/index.ts +0 -1
- package/src/components/WFOBadges/index.ts +0 -8
- package/src/components/WFOFilterTabs/index.ts +0 -1
- package/src/components/WFOLoading/WFOLoading.tsx +0 -2
- package/src/components/WFOLoading/index.ts +0 -1
- package/src/components/WFOPageTemplate/WFOBreadcrumbs/index.ts +0 -1
- package/src/components/WFOPageTemplate/WFOPageHeader/index.ts +0 -1
- package/src/components/WFOPageTemplate/WFOPageTemplate/index.ts +0 -1
- package/src/components/WFOPageTemplate/WFOSidebar/WFOSidebar.tsx +0 -161
- package/src/components/WFOPageTemplate/WFOSidebar/index.ts +0 -1
- package/src/components/WFOPageTemplate/index.ts +0 -4
- package/src/components/WFOSearchBar/index.ts +0 -1
- package/src/components/WFOSettingsModal/index.tsx +0 -1
- package/src/components/WFOSettingsPage/index.ts +0 -1
- package/src/components/WFOStartPage/WFONewProcessPanel.stories.tsx +0 -12
- package/src/components/WFOStartPage/WFOStatCards.stories.tsx +0 -12
- package/src/components/WFOStartPage/index.ts +0 -6
- package/src/components/WFOSubscription/WFOFixedInputBlock.tsx +0 -58
- package/src/components/WFOSubscription/WFOProcessesTimeline.tsx +0 -105
- package/src/components/WFOSubscription/WFOProductBlock.tsx +0 -186
- package/src/components/WFOSubscription/WFOSubscriptionActions.tsx +0 -138
- package/src/components/WFOSubscription/WFOSubscriptionBlock.tsx +0 -109
- package/src/components/WFOSubscription/WFOSubscriptionDetailTree.tsx +0 -184
- package/src/components/WFOSubscription/WFOSubscriptionGeneral.tsx +0 -53
- package/src/components/WFOSubscription/index.ts +0 -7
- package/src/components/WFOSubscription/styles.ts +0 -18
- package/src/components/WFOSubscriptionsList/types.ts +0 -11
- package/src/components/WFOTable/WFOTable.tsx +0 -85
- package/src/components/WFOTable/WFOTableHeaderCell.tsx +0 -30
- package/src/components/WFOTable/WFOTableSettingsModal/index.ts +0 -1
- package/src/components/WFOTable/WFOTableWithFilter/WFOTableWithFilter.tsx +0 -174
- package/src/components/WFOTable/WFOTableWithFilter/index.ts +0 -1
- package/src/components/WFOTable/index.ts +0 -14
- package/src/components/WFOTree/WFOTree.tsx +0 -16
- package/src/contexts/SubscriptionContext.tsx +0 -72
- package/src/hooks/useSubscriptionProcesses.ts +0 -45
- package/src/icons/WFOCheckmarkCircleFill.stories.tsx +0 -12
- package/src/icons/WFOLogoutIcon.stories.tsx +0 -12
- package/src/icons/WFOMinusCircleOutline.stories.tsx +0 -12
- package/src/icons/WFOPlusCircleFill.stories.tsx +0 -12
- package/src/icons/WFOStatusDotIcon.stories.tsx +0 -12
- package/src/icons/WFOXCircleFill.stories.tsx +0 -12
- package/src/pages/metadata/WFOProductBlocksPage.tsx +0 -166
- package/src/pages/metadata/WFOResourceTypesPage.tsx +0 -120
- package/src/pages/metadata/WFOWorkflowsPage.tsx +0 -251
- package/src/pages/processes/WFOProcessListPage.tsx +0 -213
- package/src/pages/processes/WFOProcessesListSubscriptionsCell.tsx +0 -28
- package/src/pages/processes/tableConfig.ts +0 -22
- package/src/types/subscription.ts +0 -21
- package/src/components/{WFOTable → WfoTable}/utils/columns.spec.ts +1 -1
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
import { useTranslations } from 'next-intl';
|
|
4
|
+
import Link from 'next/link';
|
|
5
|
+
|
|
6
|
+
import { Pagination } from '@elastic/eui/src/components';
|
|
7
|
+
|
|
8
|
+
import { GET_PROCESS_LIST_GRAPHQL_QUERY } from '../../graphqlQueries/processListQuery';
|
|
9
|
+
import { DataDisplayParams, useQueryWithGraphql } from '../../hooks';
|
|
10
|
+
import { WfoProcessListSubscriptionsCell } from '../../pages';
|
|
11
|
+
import { Process, SortOrder } from '../../types';
|
|
12
|
+
import { parseDateToLocaleDateTimeString } from '../../utils';
|
|
13
|
+
import { WfoProcessStatusBadge } from '../WfoBadges';
|
|
14
|
+
import { WfoWorkflowTargetBadge } from '../WfoBadges/WfoWorkflowTargetBadge';
|
|
15
|
+
import { WfoDateTime } from '../WfoDateTime/WfoDateTime';
|
|
16
|
+
import { FilterQuery } from '../WfoFilterTabs';
|
|
17
|
+
import { WfoLoading } from '../WfoLoading';
|
|
18
|
+
import {
|
|
19
|
+
DEFAULT_PAGE_SIZES,
|
|
20
|
+
TableColumnKeys,
|
|
21
|
+
WfoDataSorting,
|
|
22
|
+
WfoTableColumns,
|
|
23
|
+
WfoTableWithFilter,
|
|
24
|
+
getDataSortHandler,
|
|
25
|
+
getEsQueryStringHandler,
|
|
26
|
+
getPageChangeHandler,
|
|
27
|
+
} from '../WfoTable';
|
|
28
|
+
import { WfoFirstPartUUID } from '../WfoTable/WfoFirstPartUUID';
|
|
29
|
+
import { mapSortableAndFilterableValuesToTableColumnConfig } from '../WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig';
|
|
30
|
+
import {
|
|
31
|
+
graphQlProcessFilterMapper,
|
|
32
|
+
graphQlProcessSortMapper,
|
|
33
|
+
mapGraphQlProcessListResultToProcessListItems,
|
|
34
|
+
} from './processListObjectMappers';
|
|
35
|
+
|
|
36
|
+
export type ProcessListItem = Pick<
|
|
37
|
+
Process,
|
|
38
|
+
| 'workflowName'
|
|
39
|
+
| 'lastStep'
|
|
40
|
+
| 'lastStatus'
|
|
41
|
+
| 'workflowTarget'
|
|
42
|
+
| 'createdBy'
|
|
43
|
+
| 'assignee'
|
|
44
|
+
| 'processId'
|
|
45
|
+
| 'subscriptions'
|
|
46
|
+
> & {
|
|
47
|
+
startedAt: Date;
|
|
48
|
+
lastModifiedAt: Date;
|
|
49
|
+
productName?: string;
|
|
50
|
+
productTag?: string;
|
|
51
|
+
customer: string;
|
|
52
|
+
customerAbbreviation: string;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export type WfoProcessListProps = {
|
|
56
|
+
alwaysOnFilters?: FilterQuery<ProcessListItem>[];
|
|
57
|
+
defaultHiddenColumns: TableColumnKeys<ProcessListItem> | undefined;
|
|
58
|
+
localStorageKey: string;
|
|
59
|
+
dataDisplayParams: DataDisplayParams<ProcessListItem>;
|
|
60
|
+
setDataDisplayParam: <
|
|
61
|
+
DisplayParamKey extends keyof DataDisplayParams<ProcessListItem>,
|
|
62
|
+
>(
|
|
63
|
+
prop: DisplayParamKey,
|
|
64
|
+
value: DataDisplayParams<ProcessListItem>[DisplayParamKey],
|
|
65
|
+
) => void;
|
|
66
|
+
overrideDefaultTableColumns?: (
|
|
67
|
+
defaultTableColumns: WfoTableColumns<ProcessListItem>,
|
|
68
|
+
) => WfoTableColumns<ProcessListItem>;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export const WfoProcessList: FC<WfoProcessListProps> = ({
|
|
72
|
+
alwaysOnFilters,
|
|
73
|
+
defaultHiddenColumns = [],
|
|
74
|
+
localStorageKey,
|
|
75
|
+
dataDisplayParams,
|
|
76
|
+
setDataDisplayParam,
|
|
77
|
+
overrideDefaultTableColumns,
|
|
78
|
+
}) => {
|
|
79
|
+
const t = useTranslations('processes.index');
|
|
80
|
+
|
|
81
|
+
const defaultTableColumns: WfoTableColumns<ProcessListItem> = {
|
|
82
|
+
workflowName: {
|
|
83
|
+
field: 'workflowName',
|
|
84
|
+
name: t('workflowName'),
|
|
85
|
+
render: (value, { processId }) => (
|
|
86
|
+
<Link href={`/processes/${processId}`}>{value}</Link>
|
|
87
|
+
),
|
|
88
|
+
},
|
|
89
|
+
lastStep: {
|
|
90
|
+
field: 'lastStep',
|
|
91
|
+
name: t('step'),
|
|
92
|
+
},
|
|
93
|
+
lastStatus: {
|
|
94
|
+
field: 'lastStatus',
|
|
95
|
+
name: t('status'),
|
|
96
|
+
width: '150',
|
|
97
|
+
render: (cellValue) => (
|
|
98
|
+
<WfoProcessStatusBadge processStatus={cellValue} />
|
|
99
|
+
),
|
|
100
|
+
},
|
|
101
|
+
workflowTarget: {
|
|
102
|
+
field: 'workflowTarget',
|
|
103
|
+
name: t('workflowTarget'),
|
|
104
|
+
width: '100',
|
|
105
|
+
render: (target) => <WfoWorkflowTargetBadge target={target} />,
|
|
106
|
+
},
|
|
107
|
+
productTag: {
|
|
108
|
+
field: 'productTag',
|
|
109
|
+
name: t('productTag'),
|
|
110
|
+
width: '100',
|
|
111
|
+
},
|
|
112
|
+
productName: {
|
|
113
|
+
field: 'productName',
|
|
114
|
+
name: t('product'),
|
|
115
|
+
},
|
|
116
|
+
customer: {
|
|
117
|
+
field: 'customer',
|
|
118
|
+
name: t('customer'),
|
|
119
|
+
},
|
|
120
|
+
customerAbbreviation: {
|
|
121
|
+
field: 'customerAbbreviation',
|
|
122
|
+
name: t('customerAbbreviation'),
|
|
123
|
+
},
|
|
124
|
+
subscriptions: {
|
|
125
|
+
field: 'subscriptions',
|
|
126
|
+
name: t('subscriptions'),
|
|
127
|
+
width: '400',
|
|
128
|
+
render: ({ page: subscriptions }) => (
|
|
129
|
+
<WfoProcessListSubscriptionsCell
|
|
130
|
+
subscriptions={subscriptions}
|
|
131
|
+
numberOfSubscriptionsToRender={1}
|
|
132
|
+
/>
|
|
133
|
+
),
|
|
134
|
+
renderDetails: ({ page: subscriptions }) => (
|
|
135
|
+
<WfoProcessListSubscriptionsCell
|
|
136
|
+
subscriptions={subscriptions}
|
|
137
|
+
/>
|
|
138
|
+
),
|
|
139
|
+
clipboardText: ({ page: subscriptions }) =>
|
|
140
|
+
subscriptions
|
|
141
|
+
.map(({ subscriptionId }) => subscriptionId)
|
|
142
|
+
.join(', '),
|
|
143
|
+
},
|
|
144
|
+
createdBy: {
|
|
145
|
+
field: 'createdBy',
|
|
146
|
+
name: t('createdBy'),
|
|
147
|
+
},
|
|
148
|
+
assignee: {
|
|
149
|
+
field: 'assignee',
|
|
150
|
+
name: t('assignee'),
|
|
151
|
+
},
|
|
152
|
+
processId: {
|
|
153
|
+
field: 'processId',
|
|
154
|
+
name: t('processId'),
|
|
155
|
+
render: (value) => <WfoFirstPartUUID UUID={value} />,
|
|
156
|
+
renderDetails: (value) => value,
|
|
157
|
+
},
|
|
158
|
+
startedAt: {
|
|
159
|
+
field: 'startedAt',
|
|
160
|
+
name: t('started'),
|
|
161
|
+
width: '100',
|
|
162
|
+
render: (value) => <WfoDateTime dateOrIsoString={value} />,
|
|
163
|
+
renderDetails: parseDateToLocaleDateTimeString,
|
|
164
|
+
clipboardText: parseDateToLocaleDateTimeString,
|
|
165
|
+
},
|
|
166
|
+
lastModifiedAt: {
|
|
167
|
+
field: 'lastModifiedAt',
|
|
168
|
+
name: t('lastModified'),
|
|
169
|
+
width: '100',
|
|
170
|
+
render: (value) => <WfoDateTime dateOrIsoString={value} />,
|
|
171
|
+
renderDetails: parseDateToLocaleDateTimeString,
|
|
172
|
+
clipboardText: parseDateToLocaleDateTimeString,
|
|
173
|
+
},
|
|
174
|
+
};
|
|
175
|
+
const tableColumns: WfoTableColumns<ProcessListItem> =
|
|
176
|
+
overrideDefaultTableColumns
|
|
177
|
+
? overrideDefaultTableColumns(defaultTableColumns)
|
|
178
|
+
: defaultTableColumns;
|
|
179
|
+
|
|
180
|
+
const { data, isFetching } = useQueryWithGraphql(
|
|
181
|
+
GET_PROCESS_LIST_GRAPHQL_QUERY,
|
|
182
|
+
{
|
|
183
|
+
first: dataDisplayParams.pageSize,
|
|
184
|
+
after: dataDisplayParams.pageIndex * dataDisplayParams.pageSize,
|
|
185
|
+
sortBy: graphQlProcessSortMapper(dataDisplayParams.sortBy),
|
|
186
|
+
filterBy: graphQlProcessFilterMapper(alwaysOnFilters),
|
|
187
|
+
},
|
|
188
|
+
'processList',
|
|
189
|
+
);
|
|
190
|
+
|
|
191
|
+
if (!data) {
|
|
192
|
+
return <WfoLoading />;
|
|
193
|
+
}
|
|
194
|
+
const { totalItems, sortFields, filterFields } = data.processes.pageInfo;
|
|
195
|
+
|
|
196
|
+
const pagination: Pagination = {
|
|
197
|
+
pageSize: dataDisplayParams.pageSize,
|
|
198
|
+
pageIndex: dataDisplayParams.pageIndex,
|
|
199
|
+
pageSizeOptions: DEFAULT_PAGE_SIZES,
|
|
200
|
+
totalItemCount: totalItems ? totalItems : 0,
|
|
201
|
+
};
|
|
202
|
+
const dataSorting: WfoDataSorting<ProcessListItem> = {
|
|
203
|
+
field: dataDisplayParams.sortBy?.field ?? 'lastModified',
|
|
204
|
+
sortOrder: dataDisplayParams.sortBy?.order ?? SortOrder.ASC,
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
return (
|
|
208
|
+
<WfoTableWithFilter<ProcessListItem>
|
|
209
|
+
esQueryString={dataDisplayParams.esQueryString}
|
|
210
|
+
data={mapGraphQlProcessListResultToProcessListItems(data)}
|
|
211
|
+
tableColumns={mapSortableAndFilterableValuesToTableColumnConfig(
|
|
212
|
+
tableColumns,
|
|
213
|
+
sortFields,
|
|
214
|
+
filterFields,
|
|
215
|
+
)}
|
|
216
|
+
dataSorting={dataSorting}
|
|
217
|
+
pagination={pagination}
|
|
218
|
+
isLoading={isFetching}
|
|
219
|
+
defaultHiddenColumns={defaultHiddenColumns}
|
|
220
|
+
localStorageKey={localStorageKey}
|
|
221
|
+
detailModalTitle={'Details - Process'}
|
|
222
|
+
onUpdateEsQueryString={getEsQueryStringHandler(setDataDisplayParam)}
|
|
223
|
+
onUpdatePage={getPageChangeHandler(setDataDisplayParam)}
|
|
224
|
+
onUpdateDataSort={getDataSortHandler(setDataDisplayParam)}
|
|
225
|
+
/>
|
|
226
|
+
);
|
|
227
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GraphQLSort,
|
|
3
|
+
GraphqlFilter,
|
|
4
|
+
Process,
|
|
5
|
+
ProcessesResult,
|
|
6
|
+
} from '../../types';
|
|
7
|
+
import { ProcessListItem } from './WfoProcessList';
|
|
8
|
+
|
|
9
|
+
export const mapGraphQlProcessListResultToProcessListItems = (
|
|
10
|
+
processesResult: ProcessesResult,
|
|
11
|
+
): ProcessListItem[] =>
|
|
12
|
+
processesResult.processes.page.map((process) => {
|
|
13
|
+
const {
|
|
14
|
+
workflowName,
|
|
15
|
+
lastStep,
|
|
16
|
+
lastStatus,
|
|
17
|
+
workflowTarget,
|
|
18
|
+
createdBy,
|
|
19
|
+
assignee,
|
|
20
|
+
processId,
|
|
21
|
+
startedAt,
|
|
22
|
+
lastModifiedAt,
|
|
23
|
+
subscriptions,
|
|
24
|
+
product,
|
|
25
|
+
customer,
|
|
26
|
+
} = process;
|
|
27
|
+
|
|
28
|
+
return {
|
|
29
|
+
workflowName,
|
|
30
|
+
lastStep,
|
|
31
|
+
lastStatus,
|
|
32
|
+
workflowTarget,
|
|
33
|
+
createdBy,
|
|
34
|
+
assignee,
|
|
35
|
+
processId,
|
|
36
|
+
startedAt: new Date(startedAt),
|
|
37
|
+
lastModifiedAt: new Date(lastModifiedAt),
|
|
38
|
+
subscriptions,
|
|
39
|
+
productName: product?.name,
|
|
40
|
+
productTag: product?.tag,
|
|
41
|
+
customer: customer.fullname,
|
|
42
|
+
customerAbbreviation: customer.shortcode,
|
|
43
|
+
};
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
// Some fields are not a key of Process, however backend still supports them
|
|
47
|
+
// Backend concatenates object name with the key, e.g. product.name becomes productName
|
|
48
|
+
// Todo: typecast is needed until ticket is implemented:
|
|
49
|
+
// https://github.com/workfloworchestrator/orchestrator-ui/issues/290
|
|
50
|
+
const fieldMapper = (field: keyof ProcessListItem): keyof Process => {
|
|
51
|
+
switch (field) {
|
|
52
|
+
case 'customer':
|
|
53
|
+
return 'customerFullname' as keyof Process;
|
|
54
|
+
case 'customerAbbreviation':
|
|
55
|
+
return 'customerShortcode' as keyof Process;
|
|
56
|
+
case 'productName':
|
|
57
|
+
return 'productName' as keyof Process;
|
|
58
|
+
case 'productTag':
|
|
59
|
+
return 'productTag' as keyof Process;
|
|
60
|
+
default:
|
|
61
|
+
return field;
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export const graphQlProcessSortMapper = ({
|
|
66
|
+
field,
|
|
67
|
+
order,
|
|
68
|
+
}: GraphQLSort<ProcessListItem>): GraphQLSort<Process> => ({
|
|
69
|
+
field: fieldMapper(field),
|
|
70
|
+
order,
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
export const graphQlProcessFilterMapper = (
|
|
74
|
+
data?: GraphqlFilter<ProcessListItem>[],
|
|
75
|
+
): GraphqlFilter<Process>[] | undefined =>
|
|
76
|
+
data?.map(({ field, value }) => ({
|
|
77
|
+
field: fieldMapper(field),
|
|
78
|
+
value,
|
|
79
|
+
}));
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
|
|
2
3
|
import {
|
|
3
4
|
EuiFormRow,
|
|
4
5
|
EuiSearchBar,
|
|
5
6
|
EuiSearchBarOnChangeArgs,
|
|
6
7
|
} from '@elastic/eui';
|
|
7
8
|
|
|
8
|
-
export type
|
|
9
|
+
export type WfoSearchFieldProps = {
|
|
9
10
|
__filterQuery?: string; // Deprecated Pythia related way of passing querystring
|
|
10
11
|
__setFilterQuery?: (updatedFilterQuery: string) => void; // Deprecated Pythia related way of setting querystring
|
|
11
12
|
esQueryString?: string;
|
|
12
13
|
onUpdateEsQueryString?: (esQueryString: string) => void;
|
|
13
14
|
};
|
|
14
15
|
|
|
15
|
-
export const
|
|
16
|
+
export const WfoSearchField = ({
|
|
16
17
|
__filterQuery,
|
|
17
18
|
__setFilterQuery,
|
|
18
19
|
esQueryString,
|
|
19
20
|
onUpdateEsQueryString,
|
|
20
|
-
}:
|
|
21
|
+
}: WfoSearchFieldProps) => {
|
|
21
22
|
const queryString = __filterQuery || esQueryString;
|
|
22
23
|
const queryIsValid = true; // Query validation turned of for now until ESQueries can be sent to the backend
|
|
23
24
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './WfoSearchField';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React, { FC, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
EuiButton,
|
|
5
|
+
EuiModal,
|
|
6
|
+
EuiModalBody,
|
|
7
|
+
EuiModalFooter,
|
|
8
|
+
EuiModalHeader,
|
|
9
|
+
EuiModalHeaderTitle,
|
|
10
|
+
EuiSpacer,
|
|
11
|
+
} from '@elastic/eui';
|
|
12
|
+
|
|
13
|
+
export type WfoInformationModalProps = {
|
|
14
|
+
title: string;
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const WfoInformationModal: FC<WfoInformationModalProps> = ({
|
|
20
|
+
title,
|
|
21
|
+
onClose,
|
|
22
|
+
children,
|
|
23
|
+
}) => {
|
|
24
|
+
return (
|
|
25
|
+
<EuiModal onClose={onClose}>
|
|
26
|
+
<EuiModalHeader>
|
|
27
|
+
<EuiModalHeaderTitle size="xs">{title}</EuiModalHeaderTitle>
|
|
28
|
+
</EuiModalHeader>
|
|
29
|
+
|
|
30
|
+
<EuiSpacer size="s" />
|
|
31
|
+
|
|
32
|
+
<EuiModalBody>{children}</EuiModalBody>
|
|
33
|
+
|
|
34
|
+
<EuiModalFooter>
|
|
35
|
+
<EuiButton onClick={onClose} fill>
|
|
36
|
+
Close
|
|
37
|
+
</EuiButton>
|
|
38
|
+
</EuiModalFooter>
|
|
39
|
+
</EuiModal>
|
|
40
|
+
);
|
|
41
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { FC, ReactNode } from 'react';
|
|
2
|
+
|
|
2
3
|
import {
|
|
3
4
|
EuiButton,
|
|
4
5
|
EuiButtonEmpty,
|
|
@@ -11,7 +12,7 @@ import {
|
|
|
11
12
|
EuiSpacer,
|
|
12
13
|
} from '@elastic/eui';
|
|
13
14
|
|
|
14
|
-
export type
|
|
15
|
+
export type WfoSettingsModalProps = {
|
|
15
16
|
title: string;
|
|
16
17
|
onClose: () => void;
|
|
17
18
|
onResetToDefaults: () => void;
|
|
@@ -19,7 +20,7 @@ export type SettingsModalProps = {
|
|
|
19
20
|
children: ReactNode;
|
|
20
21
|
};
|
|
21
22
|
|
|
22
|
-
export const
|
|
23
|
+
export const WfoSettingsModal: FC<WfoSettingsModalProps> = ({
|
|
23
24
|
title,
|
|
24
25
|
onClose,
|
|
25
26
|
onResetToDefaults,
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { EuiButton } from '@elastic/eui';
|
|
2
1
|
import React, { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
import { EuiButton } from '@elastic/eui';
|
|
4
|
+
|
|
3
5
|
import { EngineStatusValue } from '../../types';
|
|
4
6
|
|
|
5
|
-
interface
|
|
7
|
+
interface WfoEngineStatusButtonProps {
|
|
6
8
|
engineStatus?: EngineStatusValue;
|
|
7
9
|
changeEngineStatus: () => void;
|
|
8
10
|
}
|
|
9
11
|
|
|
10
|
-
export const
|
|
12
|
+
export const WfoEngineStatusButton: FC<WfoEngineStatusButtonProps> = ({
|
|
11
13
|
engineStatus,
|
|
12
14
|
changeEngineStatus,
|
|
13
15
|
}) => {
|
package/src/components/{WFOSettingsPage/WFOFlushSettings.tsx → WfoSettingsPage/WfoFlushSettings.tsx}
RENAMED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
+
import React, { FunctionComponent, useContext, useState } from 'react';
|
|
2
|
+
|
|
1
3
|
import {
|
|
2
4
|
EuiButton,
|
|
3
|
-
|
|
5
|
+
EuiComboBox,
|
|
4
6
|
EuiPanel,
|
|
7
|
+
EuiSpacer,
|
|
5
8
|
EuiText,
|
|
6
|
-
EuiComboBox,
|
|
7
|
-
EuiGlobalToastList,
|
|
8
9
|
} from '@elastic/eui';
|
|
9
|
-
import React, { FunctionComponent, useContext, useState } from 'react';
|
|
10
|
-
import { useCacheNames } from '../../hooks/DataFetchHooks';
|
|
11
|
-
import { OrchestratorConfigContext } from '../../contexts/OrchestratorConfigContext';
|
|
12
10
|
import { EuiComboBoxOptionOption } from '@elastic/eui/src/components/combo_box/types';
|
|
13
|
-
|
|
11
|
+
|
|
12
|
+
import { ToastTypes } from '../../contexts';
|
|
13
|
+
import { OrchestratorConfigContext } from '../../contexts/OrchestratorConfigContext';
|
|
14
|
+
import { useToastMessage } from '../../hooks';
|
|
15
|
+
import { useCacheNames } from '../../hooks/DataFetchHooks';
|
|
14
16
|
|
|
15
17
|
const clearCache = async (apiUrl: string, settingName: string) => {
|
|
16
18
|
const response = await fetch(apiUrl + `/settings/cache/${settingName}`, {
|
|
@@ -19,12 +21,12 @@ const clearCache = async (apiUrl: string, settingName: string) => {
|
|
|
19
21
|
return await response.json();
|
|
20
22
|
};
|
|
21
23
|
|
|
22
|
-
export const
|
|
24
|
+
export const WfoFlushSettings: FunctionComponent = () => {
|
|
23
25
|
const { orchestratorApiBaseUrl } = useContext(OrchestratorConfigContext);
|
|
24
26
|
const [selectedOptions, setSelected] = useState<EuiComboBoxOptionOption[]>(
|
|
25
27
|
[],
|
|
26
28
|
);
|
|
27
|
-
const
|
|
29
|
+
const toastMessage = useToastMessage();
|
|
28
30
|
|
|
29
31
|
const onChange = (selectedOptions: EuiComboBoxOptionOption[]) => {
|
|
30
32
|
setSelected(selectedOptions);
|
|
@@ -47,25 +49,17 @@ export const WFOFlushSettings: FunctionComponent = () => {
|
|
|
47
49
|
}
|
|
48
50
|
const cacheKey = selectedOptions.map((obj) => obj.key).join(', ');
|
|
49
51
|
await clearCache(orchestratorApiBaseUrl, cacheKey).then(() => {
|
|
50
|
-
addToast(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
successfully
|
|
59
|
-
</p>
|
|
60
|
-
),
|
|
61
|
-
});
|
|
52
|
+
toastMessage?.addToast(
|
|
53
|
+
ToastTypes.SUCCESS,
|
|
54
|
+
<p>
|
|
55
|
+
Cache for cache key "{cacheKey}" flushed
|
|
56
|
+
successfully
|
|
57
|
+
</p>,
|
|
58
|
+
'Cache cleared',
|
|
59
|
+
);
|
|
62
60
|
});
|
|
63
61
|
};
|
|
64
62
|
|
|
65
|
-
const addToast = (toast: Toast) => {
|
|
66
|
-
setToasts((toasts) => [...toasts, toast]);
|
|
67
|
-
};
|
|
68
|
-
|
|
69
63
|
return (
|
|
70
64
|
<EuiPanel
|
|
71
65
|
hasShadow={false}
|
|
@@ -90,11 +84,6 @@ export const WFOFlushSettings: FunctionComponent = () => {
|
|
|
90
84
|
<EuiButton onClick={flushCache} iconType="refresh">
|
|
91
85
|
Flush
|
|
92
86
|
</EuiButton>
|
|
93
|
-
<EuiGlobalToastList
|
|
94
|
-
toasts={toasts}
|
|
95
|
-
dismissToast={() => setToasts([])}
|
|
96
|
-
toastLifeTimeMs={5000}
|
|
97
|
-
/>
|
|
98
87
|
</EuiPanel>
|
|
99
88
|
);
|
|
100
89
|
};
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { EuiPanel, EuiSpacer, EuiText } from '@elastic/eui';
|
|
2
1
|
import React, { FC } from 'react';
|
|
3
|
-
|
|
2
|
+
|
|
3
|
+
import { EuiPanel, EuiSpacer, EuiText } from '@elastic/eui';
|
|
4
|
+
|
|
4
5
|
import { EngineStatusValue } from '../../types';
|
|
6
|
+
import { WfoEngineStatusButton } from './WfoEngineStatusButton';
|
|
5
7
|
|
|
6
|
-
export type
|
|
8
|
+
export type WfoModifySettingsProps = {
|
|
7
9
|
engineStatus?: EngineStatusValue;
|
|
8
10
|
changeEngineStatus: () => void;
|
|
9
11
|
};
|
|
10
12
|
|
|
11
|
-
export const
|
|
13
|
+
export const WfoModifySettings: FC<WfoModifySettingsProps> = ({
|
|
12
14
|
engineStatus,
|
|
13
15
|
changeEngineStatus,
|
|
14
16
|
}) => (
|
|
@@ -23,7 +25,7 @@ export const WFOModifySettings: FC<WFOModifySettingsProps> = ({
|
|
|
23
25
|
<p>Stop or start workflows through this menu</p>
|
|
24
26
|
</EuiText>
|
|
25
27
|
<EuiSpacer size="m"></EuiSpacer>
|
|
26
|
-
<
|
|
28
|
+
<WfoEngineStatusButton
|
|
27
29
|
engineStatus={engineStatus}
|
|
28
30
|
changeEngineStatus={changeEngineStatus}
|
|
29
31
|
/>
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { EuiHorizontalRule, EuiPageHeader, EuiSpacer } from '@elastic/eui';
|
|
2
1
|
import React, { FunctionComponent } from 'react';
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
|
|
2
|
+
|
|
3
|
+
import { EuiHorizontalRule, EuiPageHeader, EuiSpacer } from '@elastic/eui';
|
|
4
|
+
|
|
6
5
|
import { useEngineStatusMutation, useEngineStatusQuery } from '../../hooks';
|
|
6
|
+
import { WfoFlushSettings } from './WfoFlushSettings';
|
|
7
|
+
import { WfoModifySettings } from './WfoModifySettings';
|
|
8
|
+
import { WfoStatus } from './WfoStatus';
|
|
7
9
|
|
|
8
|
-
export const
|
|
10
|
+
export const WfoSettings: FunctionComponent = () => {
|
|
9
11
|
const { data: engineStatus } = useEngineStatusQuery();
|
|
10
12
|
const { mutate, data: newEngineStatus } = useEngineStatusMutation();
|
|
11
13
|
|
|
@@ -21,16 +23,18 @@ export const WFOSettings: FunctionComponent = () => {
|
|
|
21
23
|
|
|
22
24
|
return (
|
|
23
25
|
<>
|
|
26
|
+
<EuiSpacer />
|
|
27
|
+
|
|
24
28
|
<EuiPageHeader pageTitle="Settings" />
|
|
25
29
|
<EuiHorizontalRule />
|
|
26
|
-
<
|
|
30
|
+
<WfoFlushSettings />
|
|
27
31
|
<EuiSpacer />
|
|
28
|
-
<
|
|
32
|
+
<WfoModifySettings
|
|
29
33
|
engineStatus={currentEngineStatus}
|
|
30
34
|
changeEngineStatus={changeEngineStatus}
|
|
31
35
|
/>
|
|
32
36
|
<EuiSpacer />
|
|
33
|
-
<
|
|
37
|
+
<WfoStatus engineStatus={currentEngineStatus} />
|
|
34
38
|
</>
|
|
35
39
|
);
|
|
36
40
|
};
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
|
|
1
3
|
import {
|
|
2
4
|
EuiFlexGroup,
|
|
3
5
|
EuiFlexItem,
|
|
4
|
-
EuiSpacer,
|
|
5
6
|
EuiPanel,
|
|
7
|
+
EuiSpacer,
|
|
6
8
|
EuiText,
|
|
7
9
|
} from '@elastic/eui';
|
|
8
|
-
|
|
9
|
-
import { WFOStatusDotIcon } from '../../icons';
|
|
10
|
+
|
|
10
11
|
import { useOrchestratorTheme } from '../../hooks';
|
|
12
|
+
import { WfoStatusDotIcon } from '../../icons';
|
|
11
13
|
import { EngineStatusValue } from '../../types';
|
|
12
14
|
|
|
13
|
-
export type
|
|
15
|
+
export type WfoStatusProps = {
|
|
14
16
|
engineStatus?: EngineStatusValue;
|
|
15
17
|
};
|
|
16
18
|
|
|
17
|
-
export const
|
|
19
|
+
export const WfoStatus: FC<WfoStatusProps> = ({ engineStatus }) => {
|
|
18
20
|
const { theme } = useOrchestratorTheme();
|
|
19
21
|
const isRunning = engineStatus === 'RUNNING';
|
|
20
22
|
|
|
@@ -47,7 +49,7 @@ export const WFOStatus: FC<WFOStatusProps> = ({ engineStatus }) => {
|
|
|
47
49
|
<EuiFlexItem grow={false}>
|
|
48
50
|
<EuiFlexGroup gutterSize="xs">
|
|
49
51
|
<EuiFlexItem>
|
|
50
|
-
<
|
|
52
|
+
<WfoStatusDotIcon
|
|
51
53
|
color={
|
|
52
54
|
isRunning
|
|
53
55
|
? theme.colors.success
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './WfoSettings';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { Meta } from '@storybook/react';
|
|
2
|
-
import { WFOFrequentlyUsed } from './WFOFrequentlyUsed';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { WfoFrequentlyUsed } from './WfoFrequentlyUsed';
|
|
4
|
+
|
|
5
|
+
const Story: Meta<typeof WfoFrequentlyUsed> = {
|
|
6
|
+
component: WfoFrequentlyUsed,
|
|
7
|
+
title: 'StartPage/WfoFrequentlyUsed',
|
|
7
8
|
tags: ['autodocs'],
|
|
8
9
|
};
|
|
9
10
|
export default Story;
|
package/src/components/{WFOStartPage/WFOFrequentlyUsed.tsx → WfoStartPage/WfoFrequentlyUsed.tsx}
RENAMED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { EuiButton, EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
|
|
2
1
|
import React, { FC } from 'react';
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
import { EuiButton, EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
|
|
4
|
+
|
|
5
|
+
export interface WfoFrequentlyUsedProps {
|
|
5
6
|
values: string[];
|
|
6
7
|
}
|
|
7
8
|
|
|
8
|
-
export const
|
|
9
|
+
export const WfoFrequentlyUsed: FC<WfoFrequentlyUsedProps> = ({ values }) => (
|
|
9
10
|
<EuiFlexGroup wrap gutterSize="m">
|
|
10
11
|
{values.map((value, index) => (
|
|
11
12
|
<EuiFlexItem key={index} grow={false}>
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
|
|
2
3
|
import type { Meta } from '@storybook/react';
|
|
3
|
-
import WFOListItemStartPage from './WFOListItemStartPage';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
import WfoListItemStartPage from './WfoListItemStartPage';
|
|
6
|
+
|
|
7
|
+
const Story: Meta<typeof WfoListItemStartPage> = {
|
|
8
|
+
component: WfoListItemStartPage,
|
|
9
|
+
title: 'StartPage/WfoListItemStartPage',
|
|
8
10
|
tags: ['autodocs'],
|
|
9
11
|
decorators: [
|
|
10
12
|
(Story) => (
|