@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
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
2
|
-
import { EuiButton, EuiSideNav, EuiSpacer } from '@elastic/eui';
|
|
3
|
-
import { useRouter } from 'next/router';
|
|
4
|
-
import {
|
|
5
|
-
PATH_METADATA,
|
|
6
|
-
PATH_METADATA_PRODUCT_BLOCKS,
|
|
7
|
-
PATH_METADATA_PRODUCTS,
|
|
8
|
-
PATH_METADATA_RESOURCE_TYPES,
|
|
9
|
-
PATH_METADATA_WORKFLOWS,
|
|
10
|
-
PATH_NEW_PROCESS,
|
|
11
|
-
PATH_PROCESSES,
|
|
12
|
-
PATH_SETTINGS,
|
|
13
|
-
PATH_START,
|
|
14
|
-
PATH_SUBSCRIPTIONS,
|
|
15
|
-
PATH_TASKS,
|
|
16
|
-
} from '../paths';
|
|
17
|
-
|
|
18
|
-
export const WFOSidebar: FC = () => {
|
|
19
|
-
const router = useRouter();
|
|
20
|
-
|
|
21
|
-
return (
|
|
22
|
-
<EuiSideNav
|
|
23
|
-
mobileTitle="Nav Items"
|
|
24
|
-
isOpenOnMobile={false}
|
|
25
|
-
items={[
|
|
26
|
-
{
|
|
27
|
-
renderItem: () => (
|
|
28
|
-
<>
|
|
29
|
-
<EuiButton
|
|
30
|
-
onClick={(
|
|
31
|
-
e: React.MouseEvent<
|
|
32
|
-
HTMLButtonElement | HTMLElement,
|
|
33
|
-
MouseEvent
|
|
34
|
-
>,
|
|
35
|
-
) => {
|
|
36
|
-
e.preventDefault();
|
|
37
|
-
router.push(PATH_NEW_PROCESS);
|
|
38
|
-
}}
|
|
39
|
-
iconType="plus"
|
|
40
|
-
fullWidth
|
|
41
|
-
>
|
|
42
|
-
New Process
|
|
43
|
-
</EuiButton>
|
|
44
|
-
<EuiSpacer size="m" />
|
|
45
|
-
</>
|
|
46
|
-
),
|
|
47
|
-
name: 'Menu',
|
|
48
|
-
id: '1',
|
|
49
|
-
items: [
|
|
50
|
-
{
|
|
51
|
-
name: 'Start',
|
|
52
|
-
id: '2',
|
|
53
|
-
isSelected: router.pathname === PATH_START,
|
|
54
|
-
onClick: (e) => {
|
|
55
|
-
e.preventDefault();
|
|
56
|
-
router.push(PATH_START);
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
name: 'Processes',
|
|
61
|
-
id: '3',
|
|
62
|
-
isSelected: router.pathname === PATH_PROCESSES,
|
|
63
|
-
href: PATH_PROCESSES,
|
|
64
|
-
onClick: (e) => {
|
|
65
|
-
e.preventDefault();
|
|
66
|
-
router.push(PATH_PROCESSES);
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
name: 'Subscriptions',
|
|
71
|
-
id: '4',
|
|
72
|
-
isSelected: router.pathname === PATH_SUBSCRIPTIONS,
|
|
73
|
-
href: PATH_SUBSCRIPTIONS,
|
|
74
|
-
onClick: (e) => {
|
|
75
|
-
e.preventDefault();
|
|
76
|
-
router.push(PATH_SUBSCRIPTIONS);
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
name: 'Metadata',
|
|
81
|
-
id: '5',
|
|
82
|
-
onClick: () => {
|
|
83
|
-
router.push(PATH_METADATA);
|
|
84
|
-
},
|
|
85
|
-
items: [
|
|
86
|
-
{
|
|
87
|
-
name: 'Products',
|
|
88
|
-
id: '5.1',
|
|
89
|
-
isSelected:
|
|
90
|
-
router.pathname ===
|
|
91
|
-
PATH_METADATA_PRODUCTS,
|
|
92
|
-
onClick: (e) => {
|
|
93
|
-
e.preventDefault();
|
|
94
|
-
router.push(PATH_METADATA_PRODUCTS);
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
name: 'Productblocks',
|
|
99
|
-
id: '5.2',
|
|
100
|
-
isSelected:
|
|
101
|
-
router.pathname ===
|
|
102
|
-
PATH_METADATA_PRODUCT_BLOCKS,
|
|
103
|
-
onClick: (e) => {
|
|
104
|
-
e.preventDefault();
|
|
105
|
-
router.push(
|
|
106
|
-
PATH_METADATA_PRODUCT_BLOCKS,
|
|
107
|
-
);
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
name: 'Resource types',
|
|
112
|
-
id: '5.3',
|
|
113
|
-
isSelected:
|
|
114
|
-
router.pathname ===
|
|
115
|
-
PATH_METADATA_RESOURCE_TYPES,
|
|
116
|
-
onClick: (e) => {
|
|
117
|
-
e.preventDefault();
|
|
118
|
-
router.push(
|
|
119
|
-
PATH_METADATA_RESOURCE_TYPES,
|
|
120
|
-
);
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
name: 'Workflows',
|
|
125
|
-
id: '5.4',
|
|
126
|
-
isSelected:
|
|
127
|
-
router.pathname ===
|
|
128
|
-
PATH_METADATA_WORKFLOWS,
|
|
129
|
-
onClick: (e) => {
|
|
130
|
-
e.preventDefault();
|
|
131
|
-
router.push(PATH_METADATA_WORKFLOWS);
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
],
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
name: 'Tasks',
|
|
138
|
-
isSelected: router.pathname === PATH_TASKS,
|
|
139
|
-
id: '6',
|
|
140
|
-
onClick: (e) => {
|
|
141
|
-
e.preventDefault();
|
|
142
|
-
router.push(PATH_TASKS);
|
|
143
|
-
},
|
|
144
|
-
href: PATH_TASKS,
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
name: 'Settings',
|
|
148
|
-
isSelected: router.pathname === PATH_SETTINGS,
|
|
149
|
-
id: '7',
|
|
150
|
-
onClick: (e) => {
|
|
151
|
-
e.preventDefault();
|
|
152
|
-
router.push(PATH_SETTINGS);
|
|
153
|
-
},
|
|
154
|
-
href: PATH_SETTINGS,
|
|
155
|
-
},
|
|
156
|
-
],
|
|
157
|
-
},
|
|
158
|
-
]}
|
|
159
|
-
/>
|
|
160
|
-
);
|
|
161
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './WFOSidebar';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './WFOSearchField';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './WFOSettingsModal';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './WFOSettings';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react';
|
|
2
|
-
import { WFONewProcessPanel } from './WFONewProcessPanel';
|
|
3
|
-
|
|
4
|
-
const Story: Meta<typeof WFONewProcessPanel> = {
|
|
5
|
-
component: WFONewProcessPanel,
|
|
6
|
-
title: 'StartPage/WFONewProcessPanel',
|
|
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 { WFOStatCards } from './WFOStatCards';
|
|
3
|
-
|
|
4
|
-
const Story: Meta<typeof WFOStatCards> = {
|
|
5
|
-
component: WFOStatCards,
|
|
6
|
-
title: 'StartPage/WFOStatCards',
|
|
7
|
-
};
|
|
8
|
-
export default Story;
|
|
9
|
-
|
|
10
|
-
export const Primary = {
|
|
11
|
-
args: {},
|
|
12
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { EuiFlexGroup, EuiFlexItem, EuiSpacer, EuiText } from '@elastic/eui';
|
|
4
|
-
import { RenderField } from './WFOSubscriptionBlock';
|
|
5
|
-
import {
|
|
6
|
-
subscriptionDefinitionCellStyle,
|
|
7
|
-
subscriptionValueCellStyle,
|
|
8
|
-
} from './styles';
|
|
9
|
-
|
|
10
|
-
export const WFOFixedInputBlock = (title: string, data: object) => {
|
|
11
|
-
const keys = [];
|
|
12
|
-
for (const key in data) {
|
|
13
|
-
keys.push(key);
|
|
14
|
-
}
|
|
15
|
-
if (keys.length === 0) return;
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<>
|
|
19
|
-
<EuiSpacer size={'m'}></EuiSpacer>
|
|
20
|
-
<div>
|
|
21
|
-
<div style={{ marginTop: 5 }}>
|
|
22
|
-
<EuiFlexGroup justifyContent="spaceBetween">
|
|
23
|
-
<EuiFlexItem>
|
|
24
|
-
<EuiText grow={false}>
|
|
25
|
-
<h3>{title}</h3>
|
|
26
|
-
</EuiText>
|
|
27
|
-
</EuiFlexItem>
|
|
28
|
-
</EuiFlexGroup>
|
|
29
|
-
|
|
30
|
-
<EuiSpacer size={'s'}></EuiSpacer>
|
|
31
|
-
<table width="100%">
|
|
32
|
-
<tbody>
|
|
33
|
-
{keys.map((k, i) => (
|
|
34
|
-
<tr
|
|
35
|
-
key={i}
|
|
36
|
-
style={{
|
|
37
|
-
backgroundColor:
|
|
38
|
-
i % 2 ? '#FFF' : '#F1F5F9',
|
|
39
|
-
}}
|
|
40
|
-
>
|
|
41
|
-
<td
|
|
42
|
-
valign={'top'}
|
|
43
|
-
css={subscriptionDefinitionCellStyle}
|
|
44
|
-
>
|
|
45
|
-
<b>{k}</b>
|
|
46
|
-
</td>
|
|
47
|
-
<td css={subscriptionValueCellStyle}>
|
|
48
|
-
{RenderField(k, data)}
|
|
49
|
-
</td>
|
|
50
|
-
</tr>
|
|
51
|
-
))}
|
|
52
|
-
</tbody>
|
|
53
|
-
</table>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
</>
|
|
57
|
-
);
|
|
58
|
-
};
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
EuiAvatar,
|
|
4
|
-
EuiComment,
|
|
5
|
-
EuiCommentList,
|
|
6
|
-
EuiSpacer,
|
|
7
|
-
EuiLoadingContent,
|
|
8
|
-
} from '@elastic/eui';
|
|
9
|
-
|
|
10
|
-
import { WFOProcessStatusBadge } from '../WFOBadges';
|
|
11
|
-
import { SubscriptionProcess, useSubscriptionProcesses } from '../../hooks';
|
|
12
|
-
|
|
13
|
-
/** TODO: Adding a useTranslations hook here leads to an hooks error. https://github.com/workfloworchestrator/orchestrator-ui/issues/177 */
|
|
14
|
-
const WFOCard = (processInfo: SubscriptionProcess) => (
|
|
15
|
-
<div style={{ marginTop: 5 }}>
|
|
16
|
-
<table width="100%" bgcolor={'#F1F5F9'}>
|
|
17
|
-
<tr>
|
|
18
|
-
<td
|
|
19
|
-
valign={'top'}
|
|
20
|
-
style={{
|
|
21
|
-
width: 250,
|
|
22
|
-
padding: 10,
|
|
23
|
-
borderBottom: 'solid 1px #ddd',
|
|
24
|
-
}}
|
|
25
|
-
>
|
|
26
|
-
<b>ID</b>
|
|
27
|
-
</td>
|
|
28
|
-
<td style={{ padding: 10, borderBottom: 'solid 1px #ddd' }}>
|
|
29
|
-
<a
|
|
30
|
-
href={`https://orchestrator.dev.automation.surf.net/processes/${processInfo.process.pid}`}
|
|
31
|
-
>
|
|
32
|
-
{processInfo.pid}
|
|
33
|
-
</a>
|
|
34
|
-
</td>
|
|
35
|
-
</tr>
|
|
36
|
-
<tr>
|
|
37
|
-
<td
|
|
38
|
-
valign={'top'}
|
|
39
|
-
style={{ padding: 10, borderBottom: 'solid 1px #ddd' }}
|
|
40
|
-
>
|
|
41
|
-
<b>Status</b>
|
|
42
|
-
</td>
|
|
43
|
-
<td style={{ padding: 10, borderBottom: 'solid 1px #ddd' }}>
|
|
44
|
-
<WFOProcessStatusBadge
|
|
45
|
-
processStatus={processInfo.process.last_status}
|
|
46
|
-
/>
|
|
47
|
-
</td>
|
|
48
|
-
</tr>
|
|
49
|
-
<tr>
|
|
50
|
-
<td
|
|
51
|
-
valign={'top'}
|
|
52
|
-
style={{ padding: 10, borderBottom: 'solid 1px #ddd' }}
|
|
53
|
-
>
|
|
54
|
-
<b>Started at</b>
|
|
55
|
-
</td>
|
|
56
|
-
<td style={{ padding: 10, borderBottom: 'solid 1px #ddd' }}>
|
|
57
|
-
2-11-2021 13:47:43 - Duration: 00:00:024
|
|
58
|
-
</td>
|
|
59
|
-
</tr>
|
|
60
|
-
<tr>
|
|
61
|
-
<td valign={'top'} style={{ padding: 10 }}>
|
|
62
|
-
<b>Started by</b>
|
|
63
|
-
</td>
|
|
64
|
-
<td style={{ padding: 10 }}>
|
|
65
|
-
{processInfo.process.created_by}
|
|
66
|
-
</td>
|
|
67
|
-
</tr>
|
|
68
|
-
</table>
|
|
69
|
-
</div>
|
|
70
|
-
);
|
|
71
|
-
|
|
72
|
-
const RenderProcess = (processInfo: SubscriptionProcess) => (
|
|
73
|
-
<EuiComment
|
|
74
|
-
username={processInfo.workflow_target ?? ''}
|
|
75
|
-
timelineAvatarAriaLabel={processInfo.process.workflow}
|
|
76
|
-
timelineAvatar={<EuiAvatar name="C" />}
|
|
77
|
-
>
|
|
78
|
-
{WFOCard(processInfo)}
|
|
79
|
-
</EuiComment>
|
|
80
|
-
);
|
|
81
|
-
|
|
82
|
-
export type ProcessesTimelineProps = {
|
|
83
|
-
subscriptionId: string;
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
export const ProcessesTimeline: FC<ProcessesTimelineProps> = ({
|
|
87
|
-
subscriptionId,
|
|
88
|
-
}) => {
|
|
89
|
-
const { data: subscriptionProcesses } =
|
|
90
|
-
useSubscriptionProcesses(subscriptionId);
|
|
91
|
-
|
|
92
|
-
return (
|
|
93
|
-
<>
|
|
94
|
-
<EuiSpacer size={'m'} />
|
|
95
|
-
{!subscriptionProcesses && <EuiLoadingContent />}
|
|
96
|
-
<EuiCommentList aria-label="Processes">
|
|
97
|
-
{subscriptionProcesses && (
|
|
98
|
-
<EuiCommentList aria-label="Processes">
|
|
99
|
-
{subscriptionProcesses.map((i) => RenderProcess(i))}
|
|
100
|
-
</EuiCommentList>
|
|
101
|
-
)}
|
|
102
|
-
</EuiCommentList>
|
|
103
|
-
</>
|
|
104
|
-
);
|
|
105
|
-
};
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { EuiAccordion, EuiCodeBlock } from '@elastic/eui';
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
EuiButtonIcon,
|
|
6
|
-
EuiFlexGroup,
|
|
7
|
-
EuiFlexItem,
|
|
8
|
-
EuiPanel,
|
|
9
|
-
EuiSpacer,
|
|
10
|
-
EuiText,
|
|
11
|
-
} from '@elastic/eui';
|
|
12
|
-
import {
|
|
13
|
-
TreeContext,
|
|
14
|
-
TreeContextType,
|
|
15
|
-
SubscriptionContext,
|
|
16
|
-
} from '../../contexts';
|
|
17
|
-
import { ResourceTypeBase } from '../../types';
|
|
18
|
-
|
|
19
|
-
export const WFOProductBlock = (
|
|
20
|
-
resourceTypes: ResourceTypeBase,
|
|
21
|
-
id: number,
|
|
22
|
-
) => {
|
|
23
|
-
const { toggleSelectedId } = React.useContext(
|
|
24
|
-
TreeContext,
|
|
25
|
-
) as TreeContextType;
|
|
26
|
-
const { subscriptionData } = React.useContext(SubscriptionContext);
|
|
27
|
-
|
|
28
|
-
const keys = [];
|
|
29
|
-
for (const key in resourceTypes) {
|
|
30
|
-
if (typeof resourceTypes[key] !== 'object') {
|
|
31
|
-
keys.push(key);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
if (keys.length === 0) return;
|
|
35
|
-
|
|
36
|
-
const getExternalData = (
|
|
37
|
-
externalServiceId: string | number,
|
|
38
|
-
externalServiceKey: string,
|
|
39
|
-
) => {
|
|
40
|
-
// Todo #102: Remove or refactor when Federative GraphQL is ready
|
|
41
|
-
if (subscriptionData.externalServices !== undefined) {
|
|
42
|
-
console.log(
|
|
43
|
-
'externalId: ',
|
|
44
|
-
externalServiceId,
|
|
45
|
-
'externalKey: ',
|
|
46
|
-
externalServiceKey,
|
|
47
|
-
);
|
|
48
|
-
const foundObject = subscriptionData.externalServices.find(
|
|
49
|
-
(item) =>
|
|
50
|
-
item.externalServiceId === externalServiceId.toString() &&
|
|
51
|
-
item.externalServiceKey === externalServiceKey,
|
|
52
|
-
);
|
|
53
|
-
if (foundObject) {
|
|
54
|
-
return JSON.stringify(
|
|
55
|
-
foundObject?.externalServiceData,
|
|
56
|
-
null,
|
|
57
|
-
2,
|
|
58
|
-
);
|
|
59
|
-
} else {
|
|
60
|
-
return '';
|
|
61
|
-
}
|
|
62
|
-
} else return '';
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
return (
|
|
66
|
-
<>
|
|
67
|
-
<EuiSpacer size={'m'}></EuiSpacer>
|
|
68
|
-
<EuiPanel>
|
|
69
|
-
<div style={{ marginTop: 5 }}>
|
|
70
|
-
<EuiFlexGroup justifyContent="spaceBetween">
|
|
71
|
-
<EuiFlexItem>
|
|
72
|
-
<EuiText grow={false}>
|
|
73
|
-
<h3>
|
|
74
|
-
{resourceTypes.title ?? resourceTypes.name}
|
|
75
|
-
</h3>
|
|
76
|
-
</EuiText>
|
|
77
|
-
</EuiFlexItem>
|
|
78
|
-
<EuiFlexItem grow={false}>
|
|
79
|
-
<EuiButtonIcon
|
|
80
|
-
aria-label="Close"
|
|
81
|
-
size={'m'}
|
|
82
|
-
iconType={'cross'}
|
|
83
|
-
onClick={() => toggleSelectedId(id)}
|
|
84
|
-
/>
|
|
85
|
-
</EuiFlexItem>
|
|
86
|
-
</EuiFlexGroup>
|
|
87
|
-
|
|
88
|
-
<EuiSpacer size={'xs'}></EuiSpacer>
|
|
89
|
-
{
|
|
90
|
-
<table
|
|
91
|
-
width="100%"
|
|
92
|
-
bgcolor={'#F1F5F9'}
|
|
93
|
-
style={{
|
|
94
|
-
borderCollapse: 'separate',
|
|
95
|
-
borderRadius: 8,
|
|
96
|
-
}}
|
|
97
|
-
>
|
|
98
|
-
{keys.map((k, i) =>
|
|
99
|
-
!k.startsWith('ims_ci') ? (
|
|
100
|
-
<tr key={i}>
|
|
101
|
-
<td
|
|
102
|
-
valign={'top'}
|
|
103
|
-
style={{
|
|
104
|
-
width: 250,
|
|
105
|
-
padding: 10,
|
|
106
|
-
borderBottom: `solid ${
|
|
107
|
-
i === keys.length - 1
|
|
108
|
-
? 0
|
|
109
|
-
: 1
|
|
110
|
-
}px #ddd`,
|
|
111
|
-
}}
|
|
112
|
-
>
|
|
113
|
-
<b>{k}</b>
|
|
114
|
-
</td>
|
|
115
|
-
<td
|
|
116
|
-
style={{
|
|
117
|
-
padding: 10,
|
|
118
|
-
borderBottom: `solid ${
|
|
119
|
-
i === keys.length - 1
|
|
120
|
-
? 0
|
|
121
|
-
: 1
|
|
122
|
-
}px #ddd`,
|
|
123
|
-
}}
|
|
124
|
-
>
|
|
125
|
-
{resourceTypes[k]}
|
|
126
|
-
</td>
|
|
127
|
-
</tr>
|
|
128
|
-
) : (
|
|
129
|
-
<tr key={i}>
|
|
130
|
-
<td
|
|
131
|
-
colSpan={3}
|
|
132
|
-
style={{
|
|
133
|
-
padding: 10,
|
|
134
|
-
borderBottom: `solid ${
|
|
135
|
-
i === keys.length - 1
|
|
136
|
-
? 0
|
|
137
|
-
: 1
|
|
138
|
-
}px #ddd`,
|
|
139
|
-
}}
|
|
140
|
-
>
|
|
141
|
-
<EuiAccordion
|
|
142
|
-
id={k}
|
|
143
|
-
arrowDisplay="left"
|
|
144
|
-
buttonContent={
|
|
145
|
-
<div>
|
|
146
|
-
<td
|
|
147
|
-
valign={'top'}
|
|
148
|
-
style={{
|
|
149
|
-
width: 222,
|
|
150
|
-
}}
|
|
151
|
-
>
|
|
152
|
-
<b>{k}</b>
|
|
153
|
-
</td>
|
|
154
|
-
<td>
|
|
155
|
-
{resourceTypes[k]}
|
|
156
|
-
</td>
|
|
157
|
-
</div>
|
|
158
|
-
}
|
|
159
|
-
>
|
|
160
|
-
<EuiPanel color="subdued">
|
|
161
|
-
<EuiCodeBlock
|
|
162
|
-
language="json"
|
|
163
|
-
fontSize="m"
|
|
164
|
-
lineNumbers
|
|
165
|
-
isCopyable
|
|
166
|
-
>
|
|
167
|
-
{getExternalData(
|
|
168
|
-
resourceTypes[
|
|
169
|
-
k
|
|
170
|
-
] as string,
|
|
171
|
-
'ims', // Todo #102: Federative GraphQL
|
|
172
|
-
)}
|
|
173
|
-
</EuiCodeBlock>
|
|
174
|
-
</EuiPanel>
|
|
175
|
-
</EuiAccordion>
|
|
176
|
-
</td>
|
|
177
|
-
</tr>
|
|
178
|
-
),
|
|
179
|
-
)}
|
|
180
|
-
</table>
|
|
181
|
-
}
|
|
182
|
-
</div>
|
|
183
|
-
</EuiPanel>
|
|
184
|
-
</>
|
|
185
|
-
);
|
|
186
|
-
};
|