@orchestrator-ui/orchestrator-ui-components 0.12.0 → 0.13.1
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/.turbo/turbo-build.log +4 -4
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +11 -10
- package/CHANGELOG.md +16 -0
- package/dist/index.d.ts +4 -5
- package/dist/index.js +82 -65
- package/package.json +1 -1
- package/src/components/WfoSettingsModal/WfoSubmitModal.tsx +3 -0
- package/src/graphqlQueries/index.ts +0 -1
- package/src/pages/metadata/WfoWorkflowsPage.tsx +35 -30
- package/src/pages/processes/WfoProcessDetailPage.tsx +7 -11
- package/src/rtk/endpoints/processDetail.ts +66 -0
- package/src/rtk/endpoints/processList.ts +1 -1
- package/src/utils/index.ts +1 -0
- package/src/utils/onlyUnique.spec.ts +19 -0
- package/src/utils/onlyUnique.ts +3 -0
- package/src/graphqlQueries/processDetailQuery.ts +0 -46
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @orchestrator-ui/orchestrator-ui-components@0.
|
|
2
|
+
> @orchestrator-ui/orchestrator-ui-components@0.13.1 build
|
|
3
3
|
> tsup src/index.ts --format esm --dts --tsconfig tsconfig.build.json
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
11
|
[32mESM[39m [1mdist/index.js [22m[32m2.15 MB[39m
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
13
|
-
[32mDTS[39m ⚡️ Build success in
|
|
14
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m120.
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 737ms
|
|
13
|
+
[32mDTS[39m ⚡️ Build success in 11617ms
|
|
14
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m120.94 KB[39m
|
package/.turbo/turbo-lint.log
CHANGED
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
|
|
2
|
-
> @orchestrator-ui/orchestrator-ui-components@0.
|
|
2
|
+
> @orchestrator-ui/orchestrator-ui-components@0.13.1 test
|
|
3
3
|
> jest
|
|
4
4
|
|
|
5
|
-
PASS Orchestrator UI Components Tests src/pages/processes/timelineUtils.spec.ts
|
|
6
5
|
PASS Orchestrator UI Components Tests src/utils/date.spec.ts
|
|
6
|
+
PASS Orchestrator UI Components Tests src/pages/processes/timelineUtils.spec.ts
|
|
7
7
|
PASS Orchestrator UI Components Tests src/components/WfoForms/formFields/utils.spec.ts
|
|
8
|
+
PASS Orchestrator UI Components Tests src/utils/getProductNamesFromProcess.spec.ts
|
|
8
9
|
PASS Orchestrator UI Components Tests src/components/WfoSubscription/utils/utils.spec.ts
|
|
9
10
|
PASS Orchestrator UI Components Tests src/utils/string.spec.ts
|
|
10
|
-
PASS Orchestrator UI Components Tests src/utils/getProductNamesFromProcess.spec.ts
|
|
11
|
-
PASS Orchestrator UI Components Tests src/components/WfoTable/WfoTableWithFilter/updateQueryString.spec.ts
|
|
12
11
|
PASS Orchestrator UI Components Tests src/components/WfoTable/WfoDataGridTable/WfodataGridColumns.spec.ts
|
|
13
12
|
PASS Orchestrator UI Components Tests src/components/WfoTree/treeUtils.spec.ts
|
|
13
|
+
PASS Orchestrator UI Components Tests src/components/WfoTable/WfoTableWithFilter/updateQueryString.spec.ts
|
|
14
|
+
PASS Orchestrator UI Components Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
|
|
14
15
|
PASS Orchestrator UI Components Tests src/components/WfoTable/utils/tableUtils.spec.ts
|
|
15
16
|
PASS Orchestrator UI Components Tests src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.spec.ts
|
|
16
|
-
PASS Orchestrator UI Components Tests src/
|
|
17
|
+
PASS Orchestrator UI Components Tests src/utils/getToastMessage.spec.ts
|
|
17
18
|
PASS Orchestrator UI Components Tests src/messages/getTranslationMessages.spec.ts
|
|
18
19
|
PASS Orchestrator UI Components Tests src/components/WfoTable/utils/columns.spec.ts
|
|
19
|
-
PASS Orchestrator UI Components Tests src/utils/getToastMessage.spec.ts
|
|
20
20
|
PASS Orchestrator UI Components Tests src/utils/sortObjectKeys.spec.ts
|
|
21
|
-
PASS Orchestrator UI Components Tests src/utils/getTokenName.spec.ts
|
|
22
21
|
PASS Orchestrator UI Components Tests src/components/WfoWorkflowSteps/stepListUtils.spec.ts
|
|
22
|
+
PASS Orchestrator UI Components Tests src/utils/getTokenName.spec.ts
|
|
23
23
|
PASS Orchestrator UI Components Tests src/utils/environmentVariables.spec.ts
|
|
24
24
|
PASS Orchestrator UI Components Tests src/utils/uuid.spec.ts
|
|
25
|
+
PASS Orchestrator UI Components Tests src/utils/onlyUnique.spec.ts
|
|
25
26
|
PASS Orchestrator UI Components Tests src/utils/getTypedFieldFromObject.spec.ts
|
|
26
27
|
PASS Orchestrator UI Components Tests src/utils/getQueryVariablesForExport.spec.ts
|
|
27
28
|
PASS Orchestrator UI Components Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
|
|
28
29
|
|
|
29
|
-
Test Suites:
|
|
30
|
-
Tests:
|
|
30
|
+
Test Suites: 24 passed, 24 total
|
|
31
|
+
Tests: 144 passed, 144 total
|
|
31
32
|
Snapshots: 0 total
|
|
32
|
-
Time: 4.
|
|
33
|
+
Time: 4.516 s
|
|
33
34
|
Ran all test suites.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @orchestrator-ui/orchestrator-ui-components
|
|
2
2
|
|
|
3
|
+
## 0.13.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9155f40: Added isDisabled prop to WfoSubmitModal
|
|
8
|
+
|
|
9
|
+
## 0.13.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 89835a4: 702 - Moves processDetail to rtkquery
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- e56c142: 760 remove duplicate product tags on metadata workflow page
|
|
18
|
+
|
|
3
19
|
## 0.12.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -686,6 +686,7 @@ declare type WfoSubmitModalProps = {
|
|
|
686
686
|
onClose: () => void;
|
|
687
687
|
onSubmit: () => void;
|
|
688
688
|
isLoading: boolean;
|
|
689
|
+
isDisabled?: boolean;
|
|
689
690
|
submitButtonLabel: string;
|
|
690
691
|
children: ReactNode;
|
|
691
692
|
};
|
|
@@ -1938,10 +1939,6 @@ declare const GET_SUBSCRIPTION_DETAIL_GRAPHQL_QUERY: TypedDocumentNode<Subscript
|
|
|
1938
1939
|
subscriptionId: string;
|
|
1939
1940
|
}>;
|
|
1940
1941
|
|
|
1941
|
-
declare const GET_PROCESS_DETAIL_GRAPHQL_QUERY: TypedDocumentNode<ProcessesDetailResult, {
|
|
1942
|
-
processId: string;
|
|
1943
|
-
}>;
|
|
1944
|
-
|
|
1945
1942
|
declare const GET_SUBSCRIPTION_DROPDOWN_OPTIONS_GRAPHQL_QUERY: graphql.DocumentNode;
|
|
1946
1943
|
declare function getSubscriptionDropdownOptionsGraphQlQuery<QueryVariablesType = SubscriptionDropdownOption>(): TypedDocumentNode<SubscriptionDropdownOptionsResult, GraphqlQueryVariables<QueryVariablesType>>;
|
|
1947
1944
|
|
|
@@ -3084,4 +3081,6 @@ declare const getQueryVariablesForExport: <T extends object>(queryVariables: Gra
|
|
|
3084
3081
|
query?: string | undefined;
|
|
3085
3082
|
};
|
|
3086
3083
|
|
|
3087
|
-
export { ACTIVE_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY, ACTIVE_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY, AcceptField, type AcceptFieldProps, ApiClient, ApiClientContext, ApiClientContextProvider, type ApiClientContextProviderProps, type ApiContext, type AppDispatch, type AutoFieldsProps, BadgeType, BaseApiClient, type BaseGraphQlResult, BaseQueryTypes, BoolField, type BoolFieldProps, COMPLETED_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY, COMPLETED_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY, type CacheNames, type CacheOption, CacheTags, ColorModes, type ColumnConfig, type ConfirmDialogActions, ConfirmationDialogContext, ConfirmationDialogContextWrapper, ConfirmationDialogProvider, ConnectedSelectField, ContactPersonNameField, type ContactPersonNameFieldProps, CreateForm, type Customer, CustomerField, type CustomerFieldProps, type CustomersResult, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZES, type DataDisplayParams, type DataDisplayReturnValues, DateField, type DateFieldProps, DividerField, type DividerFieldProps, type EmailAddress, type EmailState, EngineStatus, Environment, ErrorField, type ErrorFieldProps, ErrorsField, type ErrorsFieldProps, type ExternalService, type Field, type FieldProps$1 as FieldProps, type FieldValue, type FilterQuery, type FixedInputDefinition, type Form, type FormNotCompleteResponse, GET_PROCESS_DETAIL_GRAPHQL_QUERY, GET_PROCESS_LIST_GRAPHQL_QUERY, GET_PROCESS_LIST_SUMMARY_GRAPHQL_QUERY, GET_PROCESS_STEPS_GRAPHQL_QUERY, GET_PRODUCTS_BLOCKS_GRAPHQL_QUERY, GET_PRODUCTS_GRAPHQL_QUERY, GET_PRODUCTS_SUMMARY_GRAPHQL_QUERY, GET_RESOURCE_TYPES_GRAPHQL_QUERY, GET_SUBSCRIPTIONS_LIST_GRAPHQL_QUERY, GET_SUBSCRIPTIONS_LIST_SUMMARY_GRAPHQL_QUERY, GET_SUBSCRIPTION_DETAIL_GRAPHQL_QUERY, GET_SUBSCRIPTION_DROPDOWN_OPTIONS_GRAPHQL_QUERY, type GraphQLPageInfo, type GraphQLSort, type GraphqlFilter, type GraphqlQueryVariables, type GroupedStep, HIDDEN_KEYS, type HeaderBadgeProps, type IPvAnyNetworkFieldProps, ImsNodeIdField, type ImsNodeIdFieldProps, type ImsPortFieldProps, ImsPortIdField, type InUseByRelation, type InputForm, IpNetworkField, type KeyValue, LabelField, type LabelFieldProps, ListAddField, type ListAddFieldProps, ListDelField, type ListDelFieldProps, ListField, type ListFieldProps, ListSelectField, type ListSelectFieldProps, Locale, LocationCodeField, type LocationCodeFieldProps, LongTextField, type LongTextFieldProps, MAXIMUM_ITEMS_FOR_BULK_FETCHING, METADATA_PRODUCT_BLOCKS_TABLE_LOCAL_STORAGE_KEY, METADATA_PRODUCT_TABLE_LOCAL_STORAGE_KEY, METADATA_RESOURCE_TYPES_TABLE_LOCAL_STORAGE_KEY, METADATA_WORKFLOWS_TABLE_LOCAL_STORAGE_KEY, NestField, type NestFieldProps, type Nullable, NumField, type NumFieldProps, OptGroupField, type OptGroupFieldProps, type OrchestratorConfig, OrchestratorConfigContext, OrchestratorConfigProvider, type OrchestratorConfigProviderProps, PATH_METADATA, PATH_METADATA_PRODUCTS, PATH_METADATA_PRODUCT_BLOCKS, PATH_METADATA_RESOURCE_TYPES, PATH_METADATA_WORKFLOWS, PATH_SETTINGS, PATH_START, PATH_START_NEW_TASK, PATH_START_NEW_WORKFLOW, PATH_SUBSCRIPTIONS, PATH_TASKS, PATH_WORKFLOWS, type Pagination, type Policy, PolicyContext, PolicyContextProvider, type PolicyProviderProps, PolicyResource, type Process, type ProcessDetail, type ProcessDetailResultRaw, ProcessDoneStatuses, type ProcessListItem, type ProcessListResponse, type ProcessListResult, ProcessStatus, type ProcessStatusCounts, type ProcessStepsResult, type ProcessesDetailResult, type ProductBlockDefinition, type ProductBlockDefinitionsResult, type ProductBlockInstance, type ProductDefinition, type ProductDefinitionsResult, ProductField, type ProductFieldProps, ProductLifecycleStatus, RENDER_ALL, RESOURCE_TYPE_FIELD_DESCRIPTION, RESOURCE_TYPE_FIELD_ID, RESOURCE_TYPE_FIELD_PRODUCT_BLOCKS, RESOURCE_TYPE_FIELD_TYPE, RadioField, type RadioFieldProps, type RelatedSubscription, type RelatedSubscriptionsResult, RenderDirection, type ResourceTypeDefinition, type ResourceTypeDefinitionsResult, type RootState, STEP_STATE_HIDDEN_KEYS, SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY, type SelectFieldProps, type ShowConfirmDialog, type ShowConfirmDialogType, SortOrder, type StartProcessStep, type Step, type StepListItem, type StepState, StepStatus, StoreProvider, type StoreProviderProps, type StoredTableConfig, SubmitField, type SubmitFieldProps, type Subscription, type SubscriptionAction, type SubscriptionDetail, type SubscriptionDetailProcess, type SubscriptionDetailResult, SubscriptionDetailTab, type SubscriptionDropdownOption, type SubscriptionDropdownOptionsResult, SubscriptionField, type SubscriptionFieldProps, SubscriptionKeyValueBlock, SubscriptionStatus, SubscriptionSummaryField, type SubscriptionSummaryFieldProps, type SubscriptionsResult, SummaryField, type SummaryFieldProps, type TableColumnKeys, type TableConfig, TableSettingsModal, type TableSettingsModalProps, TextField, type TextFieldProps, type TimelineItem, TimelinePosition, TimestampField, type TimestampFieldProps, type ToastState, ToastTypes, type TranslationMessagesMap, type TreeBlock, TreeContext, type TreeContextType, TreeProvider, type TreeProviderProps, UnconnectedSelectField, type UserInputForm, UserInputFormWizard, type ValidationError, type ValidationErrorContext, VlanField, type VlanFieldProps, WFO_STATUS_COLOR_FIELD, WfoArrowNarrowDown, WfoArrowNarrowUp, WfoArrowsExpand, WfoAuth, WfoBadge, type WfoBadgeProps, WfoBasicTable, type WfoBasicTableColumns, type WfoBasicTableColumnsWithControlColumns, type WfoBasicTableProps, WfoBell, WfoBreadcrumbs, WfoCheckmarkCircleFill, WfoChevronDown, WfoChevronUp, WfoCode, WfoCogFill, WfoContactEnvelopeFill, type WfoControlColumn, WfoCubeSolid, WfoDataGridTable, type WfoDataGridTableColumns, type WfoDataGridTableProps, type WfoDataSearch, type WfoDataSorting, WfoDateTime, type WfoDateTimeProps, WfoDropdownButton, WfoEngineStatusBadge, WfoEngineStatusButton, WfoEnvironmentBadge, WfoError, WfoErrorBoundary, type WfoEuiBasicTableColumn, WfoEyeFill, WfoFailedTasksBadge, type WfoFilterTab, WfoFilterTabs, type WfoFilterTabsProps, WfoFirstPartUUID, type WfoFirstUUIDPartProps, WfoFlushSettings, WfoHeaderBadge, type WfoIconProps, WfoInformationModal, type WfoInformationModalProps, WfoInsyncIcon, WfoIsAllowedToRender, type WfoIsAllowedToRenderProps, WfoJsonCodeBlock, type WfoJsonCodeBlockProps, WfoKeyCell, type WfoKeyCellProps, WfoKeyValueTable, type WfoKeyValueTableDataType, type WfoKeyValueTableProps, WfoLoading, WfoLogoutIcon, WfoMinusCircleFill, WfoMinusCircleOutline, WfoModifySettings, WfoPageHeader, type WfoPageHeaderProps, WfoPageTemplate, type WfoPageTemplateProps, WfoPageUnauthorized, WfoPencil, WfoPencilAlt, WfoPlayCircle, WfoPlayFill, WfoPlusCircleFill, type WfoPolicyRenderFallbackProps, WfoPolicyRenderPageFallback, WfoProcessDetailPage, WfoProcessListSubscriptionsCell, WfoProcessRawData, WfoProcessStatusBadge, type WfoProcessStatusBadgeProps, WfoProcessSubscriptionDelta, WfoProcessesList, type WfoProcessesListProps, type WfoProcessesListSubscriptionsCellProps, WfoProcessesTimeline, WfoProductBlockBadge, type WfoProductBlockBadgeProps, WfoProductBlocksPage, WfoProductStatusBadge, type WfoProductStatusBadgeProps, WfoProductsPage, WfoRefresh, WfoResourceTypesPage, WfoSearchField, type WfoSearchFieldProps, WfoSearchStrikethrough, type WfoSession, WfoSettingsModal, type WfoSettingsModalProps, WfoSettingsPage, WfoShare, WfoSideMenu, WfoSidebar, type WfoSidebarProps, WfoSortAsc, WfoSortButton, type WfoSortButtonProps, WfoSortButtons, type WfoSortButtonsProps, WfoSortDesc, WfoSortDirectionIcon, type WfoSortDirectionIconProps, WfoStartPage, WfoStartProcessPage, WfoStartTaskButtonComboBox, WfoStatistic, WfoStatus, WfoStatusColorField, type WfoStatusColorFieldProps, WfoStatusDotIcon, WfoStep, WfoStepList, WfoStepListHeader, type WfoStepListHeaderProps, type WfoStepListProps, type WfoStepListRef, type WfoStepProps, WfoStepStatusIcon, type WfoStepStatusIconProps, WfoSubmitModal, type WfoSubmitModalProps, WfoSubscription, WfoSubscriptionActions, type WfoSubscriptionActionsProps, WfoSubscriptionDetailPage, WfoSubscriptionDetailTree, WfoSubscriptionGeneral, WfoSubscriptionProductBlock, WfoSubscriptionStatusBadge, type WfoSubscriptionStatusBadgeProps, WfoSubscriptionsListPage, type WfoTableColumns, type WfoTableColumnsWithExtraNonDataFields, type WfoTableControlColumnConfig, type WfoTableDataColumnConfig, WfoTableHeaderCell, type WfoTableHeaderCellProps, WfoTableWithFilter, type WfoTableWithFilterProps, WfoTasksListPage, WfoTasksListTabType, WfoTextAnchor, WfoTimeline, type WfoTimelineProps, WfoToastsList, type WfoTreeNodeMap, type WfoUserProfile, WfoValueCell, type WfoValueCellProps, WfoViewList, WfoWarningTriangle, WfoWorkflowStepList, type WfoWorkflowStepListProps, WfoWorkflowTargetBadge, type WfoWorkflowTargetBadgeProps, WfoWorkflowsListPage, WfoWorkflowsPage, WfoXCircleFill, type WorkflowDefinition, type WorkflowDefinitionsResult, type WorkflowListItem, WorkflowTarget, addToastMessage, calculateTimeDifference, camelToHuman, clearTableConfigFromLocalStorage, defaultOrchestratorTheme, defaultTasksListTabs, determineNewSortOrder, determinePageIndex, flattenArrayProps, formatDate, formatDateCetWithUtc, getApiClient, getCurrentBrowserLocale, getDataSortHandler, getDate, getFieldFromProductBlockInstanceValues, getFirstUuidPart, getInitialColumnOrder, getNumberValueFromEnvironmentVariable, getOrchestratorConfigSlice, getOrchestratorStore, getPageChangeHandler, getProcessListGraphQlQuery, getProcessListSummaryGraphQlQuery, getProductBlockTitle, getProductNamesFromProcess, getProductsQuery, getProductsSummaryQuery, getQueryStringHandler, getQueryVariablesForExport, getSortDirectionFromString, getStatusBadgeColor, getStepContent, getSubscriptionDropdownOptionsGraphQlQuery, getSubscriptionsListGraphQlQuery, getSubscriptionsListSummaryGraphQlQuery, getTableConfigFromLocalStorage, getTasksListTabTypeFromString, getTypedFieldFromObject, getWfoBasicTableStyles, getWorkflowTargetColor, getWorkflowTargetIconContent, isToday, isUuid4, isValidLocalStorageTableConfig, localMomentToUtcTimestamp, mapColumnSortToEuiDataGridSorting, mapSortableAndFilterableValuesToTableColumnConfig, orchestratorApi, parseDate, parseDateOrTimeRelativeToToday, parseDateRelativeToToday, parseDateToLocaleDateString, parseDateToLocaleDateTimeString, parseDateToLocaleTimeString, parseIsoString, processListQuery, removeSuffix, removeToastMessage, renderEmptyElementWhenNotAllowedByPolicy, setTableConfigToLocalStorage, snakeToHuman, snakeToKebab, stop, toastMessagesReducer, toastMessagesSlice, upperCaseFirstChar, urlPolicyMap, useCacheNames, useCheckEngineStatus, useClearCacheMutation, useDataDisplayParams, useFilterQueryWithRest, useGetCustomersQuery, useGetEngineStatusQuery, useGetProcessListQuery, useGetTranslationMessages, useMutateProcess, useOrchestratorConfig, useOrchestratorTheme, usePolicy, useProcessStatusCountsQuery, useQueryWithFetch, useQueryWithGraphql, useQueryWithGraphqlLazy, useRawProcessDetails, useSetEngineStatusMutation, useShowToastMessage, useStoredTableConfig, useStreamMessagesQuery, useSubscriptionActions, useWfoSession, useWithOrchestratorTheme, utcTimestampToLocalMoment };
|
|
3084
|
+
declare const onlyUnique: (value: string, index: number, array: string[]) => boolean;
|
|
3085
|
+
|
|
3086
|
+
export { ACTIVE_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY, ACTIVE_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY, AcceptField, type AcceptFieldProps, ApiClient, ApiClientContext, ApiClientContextProvider, type ApiClientContextProviderProps, type ApiContext, type AppDispatch, type AutoFieldsProps, BadgeType, BaseApiClient, type BaseGraphQlResult, BaseQueryTypes, BoolField, type BoolFieldProps, COMPLETED_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY, COMPLETED_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY, type CacheNames, type CacheOption, CacheTags, ColorModes, type ColumnConfig, type ConfirmDialogActions, ConfirmationDialogContext, ConfirmationDialogContextWrapper, ConfirmationDialogProvider, ConnectedSelectField, ContactPersonNameField, type ContactPersonNameFieldProps, CreateForm, type Customer, CustomerField, type CustomerFieldProps, type CustomersResult, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZES, type DataDisplayParams, type DataDisplayReturnValues, DateField, type DateFieldProps, DividerField, type DividerFieldProps, type EmailAddress, type EmailState, EngineStatus, Environment, ErrorField, type ErrorFieldProps, ErrorsField, type ErrorsFieldProps, type ExternalService, type Field, type FieldProps$1 as FieldProps, type FieldValue, type FilterQuery, type FixedInputDefinition, type Form, type FormNotCompleteResponse, GET_PROCESS_LIST_GRAPHQL_QUERY, GET_PROCESS_LIST_SUMMARY_GRAPHQL_QUERY, GET_PROCESS_STEPS_GRAPHQL_QUERY, GET_PRODUCTS_BLOCKS_GRAPHQL_QUERY, GET_PRODUCTS_GRAPHQL_QUERY, GET_PRODUCTS_SUMMARY_GRAPHQL_QUERY, GET_RESOURCE_TYPES_GRAPHQL_QUERY, GET_SUBSCRIPTIONS_LIST_GRAPHQL_QUERY, GET_SUBSCRIPTIONS_LIST_SUMMARY_GRAPHQL_QUERY, GET_SUBSCRIPTION_DETAIL_GRAPHQL_QUERY, GET_SUBSCRIPTION_DROPDOWN_OPTIONS_GRAPHQL_QUERY, type GraphQLPageInfo, type GraphQLSort, type GraphqlFilter, type GraphqlQueryVariables, type GroupedStep, HIDDEN_KEYS, type HeaderBadgeProps, type IPvAnyNetworkFieldProps, ImsNodeIdField, type ImsNodeIdFieldProps, type ImsPortFieldProps, ImsPortIdField, type InUseByRelation, type InputForm, IpNetworkField, type KeyValue, LabelField, type LabelFieldProps, ListAddField, type ListAddFieldProps, ListDelField, type ListDelFieldProps, ListField, type ListFieldProps, ListSelectField, type ListSelectFieldProps, Locale, LocationCodeField, type LocationCodeFieldProps, LongTextField, type LongTextFieldProps, MAXIMUM_ITEMS_FOR_BULK_FETCHING, METADATA_PRODUCT_BLOCKS_TABLE_LOCAL_STORAGE_KEY, METADATA_PRODUCT_TABLE_LOCAL_STORAGE_KEY, METADATA_RESOURCE_TYPES_TABLE_LOCAL_STORAGE_KEY, METADATA_WORKFLOWS_TABLE_LOCAL_STORAGE_KEY, NestField, type NestFieldProps, type Nullable, NumField, type NumFieldProps, OptGroupField, type OptGroupFieldProps, type OrchestratorConfig, OrchestratorConfigContext, OrchestratorConfigProvider, type OrchestratorConfigProviderProps, PATH_METADATA, PATH_METADATA_PRODUCTS, PATH_METADATA_PRODUCT_BLOCKS, PATH_METADATA_RESOURCE_TYPES, PATH_METADATA_WORKFLOWS, PATH_SETTINGS, PATH_START, PATH_START_NEW_TASK, PATH_START_NEW_WORKFLOW, PATH_SUBSCRIPTIONS, PATH_TASKS, PATH_WORKFLOWS, type Pagination, type Policy, PolicyContext, PolicyContextProvider, type PolicyProviderProps, PolicyResource, type Process, type ProcessDetail, type ProcessDetailResultRaw, ProcessDoneStatuses, type ProcessListItem, type ProcessListResponse, type ProcessListResult, ProcessStatus, type ProcessStatusCounts, type ProcessStepsResult, type ProcessesDetailResult, type ProductBlockDefinition, type ProductBlockDefinitionsResult, type ProductBlockInstance, type ProductDefinition, type ProductDefinitionsResult, ProductField, type ProductFieldProps, ProductLifecycleStatus, RENDER_ALL, RESOURCE_TYPE_FIELD_DESCRIPTION, RESOURCE_TYPE_FIELD_ID, RESOURCE_TYPE_FIELD_PRODUCT_BLOCKS, RESOURCE_TYPE_FIELD_TYPE, RadioField, type RadioFieldProps, type RelatedSubscription, type RelatedSubscriptionsResult, RenderDirection, type ResourceTypeDefinition, type ResourceTypeDefinitionsResult, type RootState, STEP_STATE_HIDDEN_KEYS, SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY, type SelectFieldProps, type ShowConfirmDialog, type ShowConfirmDialogType, SortOrder, type StartProcessStep, type Step, type StepListItem, type StepState, StepStatus, StoreProvider, type StoreProviderProps, type StoredTableConfig, SubmitField, type SubmitFieldProps, type Subscription, type SubscriptionAction, type SubscriptionDetail, type SubscriptionDetailProcess, type SubscriptionDetailResult, SubscriptionDetailTab, type SubscriptionDropdownOption, type SubscriptionDropdownOptionsResult, SubscriptionField, type SubscriptionFieldProps, SubscriptionKeyValueBlock, SubscriptionStatus, SubscriptionSummaryField, type SubscriptionSummaryFieldProps, type SubscriptionsResult, SummaryField, type SummaryFieldProps, type TableColumnKeys, type TableConfig, TableSettingsModal, type TableSettingsModalProps, TextField, type TextFieldProps, type TimelineItem, TimelinePosition, TimestampField, type TimestampFieldProps, type ToastState, ToastTypes, type TranslationMessagesMap, type TreeBlock, TreeContext, type TreeContextType, TreeProvider, type TreeProviderProps, UnconnectedSelectField, type UserInputForm, UserInputFormWizard, type ValidationError, type ValidationErrorContext, VlanField, type VlanFieldProps, WFO_STATUS_COLOR_FIELD, WfoArrowNarrowDown, WfoArrowNarrowUp, WfoArrowsExpand, WfoAuth, WfoBadge, type WfoBadgeProps, WfoBasicTable, type WfoBasicTableColumns, type WfoBasicTableColumnsWithControlColumns, type WfoBasicTableProps, WfoBell, WfoBreadcrumbs, WfoCheckmarkCircleFill, WfoChevronDown, WfoChevronUp, WfoCode, WfoCogFill, WfoContactEnvelopeFill, type WfoControlColumn, WfoCubeSolid, WfoDataGridTable, type WfoDataGridTableColumns, type WfoDataGridTableProps, type WfoDataSearch, type WfoDataSorting, WfoDateTime, type WfoDateTimeProps, WfoDropdownButton, WfoEngineStatusBadge, WfoEngineStatusButton, WfoEnvironmentBadge, WfoError, WfoErrorBoundary, type WfoEuiBasicTableColumn, WfoEyeFill, WfoFailedTasksBadge, type WfoFilterTab, WfoFilterTabs, type WfoFilterTabsProps, WfoFirstPartUUID, type WfoFirstUUIDPartProps, WfoFlushSettings, WfoHeaderBadge, type WfoIconProps, WfoInformationModal, type WfoInformationModalProps, WfoInsyncIcon, WfoIsAllowedToRender, type WfoIsAllowedToRenderProps, WfoJsonCodeBlock, type WfoJsonCodeBlockProps, WfoKeyCell, type WfoKeyCellProps, WfoKeyValueTable, type WfoKeyValueTableDataType, type WfoKeyValueTableProps, WfoLoading, WfoLogoutIcon, WfoMinusCircleFill, WfoMinusCircleOutline, WfoModifySettings, WfoPageHeader, type WfoPageHeaderProps, WfoPageTemplate, type WfoPageTemplateProps, WfoPageUnauthorized, WfoPencil, WfoPencilAlt, WfoPlayCircle, WfoPlayFill, WfoPlusCircleFill, type WfoPolicyRenderFallbackProps, WfoPolicyRenderPageFallback, WfoProcessDetailPage, WfoProcessListSubscriptionsCell, WfoProcessRawData, WfoProcessStatusBadge, type WfoProcessStatusBadgeProps, WfoProcessSubscriptionDelta, WfoProcessesList, type WfoProcessesListProps, type WfoProcessesListSubscriptionsCellProps, WfoProcessesTimeline, WfoProductBlockBadge, type WfoProductBlockBadgeProps, WfoProductBlocksPage, WfoProductStatusBadge, type WfoProductStatusBadgeProps, WfoProductsPage, WfoRefresh, WfoResourceTypesPage, WfoSearchField, type WfoSearchFieldProps, WfoSearchStrikethrough, type WfoSession, WfoSettingsModal, type WfoSettingsModalProps, WfoSettingsPage, WfoShare, WfoSideMenu, WfoSidebar, type WfoSidebarProps, WfoSortAsc, WfoSortButton, type WfoSortButtonProps, WfoSortButtons, type WfoSortButtonsProps, WfoSortDesc, WfoSortDirectionIcon, type WfoSortDirectionIconProps, WfoStartPage, WfoStartProcessPage, WfoStartTaskButtonComboBox, WfoStatistic, WfoStatus, WfoStatusColorField, type WfoStatusColorFieldProps, WfoStatusDotIcon, WfoStep, WfoStepList, WfoStepListHeader, type WfoStepListHeaderProps, type WfoStepListProps, type WfoStepListRef, type WfoStepProps, WfoStepStatusIcon, type WfoStepStatusIconProps, WfoSubmitModal, type WfoSubmitModalProps, WfoSubscription, WfoSubscriptionActions, type WfoSubscriptionActionsProps, WfoSubscriptionDetailPage, WfoSubscriptionDetailTree, WfoSubscriptionGeneral, WfoSubscriptionProductBlock, WfoSubscriptionStatusBadge, type WfoSubscriptionStatusBadgeProps, WfoSubscriptionsListPage, type WfoTableColumns, type WfoTableColumnsWithExtraNonDataFields, type WfoTableControlColumnConfig, type WfoTableDataColumnConfig, WfoTableHeaderCell, type WfoTableHeaderCellProps, WfoTableWithFilter, type WfoTableWithFilterProps, WfoTasksListPage, WfoTasksListTabType, WfoTextAnchor, WfoTimeline, type WfoTimelineProps, WfoToastsList, type WfoTreeNodeMap, type WfoUserProfile, WfoValueCell, type WfoValueCellProps, WfoViewList, WfoWarningTriangle, WfoWorkflowStepList, type WfoWorkflowStepListProps, WfoWorkflowTargetBadge, type WfoWorkflowTargetBadgeProps, WfoWorkflowsListPage, WfoWorkflowsPage, WfoXCircleFill, type WorkflowDefinition, type WorkflowDefinitionsResult, type WorkflowListItem, WorkflowTarget, addToastMessage, calculateTimeDifference, camelToHuman, clearTableConfigFromLocalStorage, defaultOrchestratorTheme, defaultTasksListTabs, determineNewSortOrder, determinePageIndex, flattenArrayProps, formatDate, formatDateCetWithUtc, getApiClient, getCurrentBrowserLocale, getDataSortHandler, getDate, getFieldFromProductBlockInstanceValues, getFirstUuidPart, getInitialColumnOrder, getNumberValueFromEnvironmentVariable, getOrchestratorConfigSlice, getOrchestratorStore, getPageChangeHandler, getProcessListGraphQlQuery, getProcessListSummaryGraphQlQuery, getProductBlockTitle, getProductNamesFromProcess, getProductsQuery, getProductsSummaryQuery, getQueryStringHandler, getQueryVariablesForExport, getSortDirectionFromString, getStatusBadgeColor, getStepContent, getSubscriptionDropdownOptionsGraphQlQuery, getSubscriptionsListGraphQlQuery, getSubscriptionsListSummaryGraphQlQuery, getTableConfigFromLocalStorage, getTasksListTabTypeFromString, getTypedFieldFromObject, getWfoBasicTableStyles, getWorkflowTargetColor, getWorkflowTargetIconContent, isToday, isUuid4, isValidLocalStorageTableConfig, localMomentToUtcTimestamp, mapColumnSortToEuiDataGridSorting, mapSortableAndFilterableValuesToTableColumnConfig, onlyUnique, orchestratorApi, parseDate, parseDateOrTimeRelativeToToday, parseDateRelativeToToday, parseDateToLocaleDateString, parseDateToLocaleDateTimeString, parseDateToLocaleTimeString, parseIsoString, processListQuery, removeSuffix, removeToastMessage, renderEmptyElementWhenNotAllowedByPolicy, setTableConfigToLocalStorage, snakeToHuman, snakeToKebab, stop, toastMessagesReducer, toastMessagesSlice, upperCaseFirstChar, urlPolicyMap, useCacheNames, useCheckEngineStatus, useClearCacheMutation, useDataDisplayParams, useFilterQueryWithRest, useGetCustomersQuery, useGetEngineStatusQuery, useGetProcessListQuery, useGetTranslationMessages, useMutateProcess, useOrchestratorConfig, useOrchestratorTheme, usePolicy, useProcessStatusCountsQuery, useQueryWithFetch, useQueryWithGraphql, useQueryWithGraphqlLazy, useRawProcessDetails, useSetEngineStatusMutation, useShowToastMessage, useStoredTableConfig, useStreamMessagesQuery, useSubscriptionActions, useWfoSession, useWithOrchestratorTheme, utcTimestampToLocalMoment };
|
package/dist/index.js
CHANGED
|
@@ -40512,11 +40512,11 @@ var processApi = orchestratorApi.injectEndpoints({
|
|
|
40512
40512
|
getProcessList: build.query({
|
|
40513
40513
|
query: (variables) => ({ document: processListQuery, variables }),
|
|
40514
40514
|
transformResponse: (response) => {
|
|
40515
|
-
var _a
|
|
40516
|
-
const processes =
|
|
40515
|
+
var _a;
|
|
40516
|
+
const processes = response.processes.page || [];
|
|
40517
40517
|
return {
|
|
40518
40518
|
processes,
|
|
40519
|
-
pageInfo: ((
|
|
40519
|
+
pageInfo: ((_a = response.processes) == null ? void 0 : _a.pageInfo) || {}
|
|
40520
40520
|
};
|
|
40521
40521
|
}
|
|
40522
40522
|
})
|
|
@@ -43317,6 +43317,11 @@ var getQueryVariablesForExport = (queryVariables) => __spreadProps(__spreadValue
|
|
|
43317
43317
|
after: 0
|
|
43318
43318
|
});
|
|
43319
43319
|
|
|
43320
|
+
// src/utils/onlyUnique.ts
|
|
43321
|
+
var onlyUnique = (value, index, array) => {
|
|
43322
|
+
return array.indexOf(value) === index;
|
|
43323
|
+
};
|
|
43324
|
+
|
|
43320
43325
|
// src/components/WfoPageTemplate/WfoBreadcrumbs/WfoBreadcrumbs.tsx
|
|
43321
43326
|
import { Fragment as Fragment2, jsx as jsx49, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
|
|
43322
43327
|
var WfoBreadcrumbs = () => {
|
|
@@ -46729,6 +46734,7 @@ var WfoSubmitModal = ({
|
|
|
46729
46734
|
onSubmit,
|
|
46730
46735
|
isLoading,
|
|
46731
46736
|
submitButtonLabel = "Submit",
|
|
46737
|
+
isDisabled,
|
|
46732
46738
|
children
|
|
46733
46739
|
}) => {
|
|
46734
46740
|
return /* @__PURE__ */ jsxs46(EuiModal4, { onClose, children: [
|
|
@@ -46743,6 +46749,7 @@ var WfoSubmitModal = ({
|
|
|
46743
46749
|
isLoading,
|
|
46744
46750
|
fill: true,
|
|
46745
46751
|
onClick: onSubmit,
|
|
46752
|
+
isDisabled,
|
|
46746
46753
|
children: submitButtonLabel
|
|
46747
46754
|
}
|
|
46748
46755
|
) })
|
|
@@ -48114,48 +48121,9 @@ var GET_SUBSCRIPTION_DETAIL_GRAPHQL_QUERY = parse(gql6`
|
|
|
48114
48121
|
}
|
|
48115
48122
|
`);
|
|
48116
48123
|
|
|
48117
|
-
// src/graphqlQueries/processDetailQuery.ts
|
|
48118
|
-
import { gql as gql7 } from "graphql-request";
|
|
48119
|
-
var GET_PROCESS_DETAIL_GRAPHQL_QUERY = parse(gql7`
|
|
48120
|
-
query ProcessDetail($processId: String!) {
|
|
48121
|
-
processes(filterBy: { value: $processId, field: "processId" }) {
|
|
48122
|
-
page {
|
|
48123
|
-
processId
|
|
48124
|
-
lastStatus
|
|
48125
|
-
createdBy
|
|
48126
|
-
startedAt
|
|
48127
|
-
lastModifiedAt
|
|
48128
|
-
lastStep
|
|
48129
|
-
workflowName
|
|
48130
|
-
isTask
|
|
48131
|
-
form
|
|
48132
|
-
steps {
|
|
48133
|
-
name
|
|
48134
|
-
status
|
|
48135
|
-
stepId
|
|
48136
|
-
executed
|
|
48137
|
-
stateDelta
|
|
48138
|
-
}
|
|
48139
|
-
customer {
|
|
48140
|
-
fullname
|
|
48141
|
-
}
|
|
48142
|
-
subscriptions {
|
|
48143
|
-
page {
|
|
48144
|
-
product {
|
|
48145
|
-
name
|
|
48146
|
-
}
|
|
48147
|
-
description
|
|
48148
|
-
subscriptionId
|
|
48149
|
-
}
|
|
48150
|
-
}
|
|
48151
|
-
}
|
|
48152
|
-
}
|
|
48153
|
-
}
|
|
48154
|
-
`);
|
|
48155
|
-
|
|
48156
48124
|
// src/graphqlQueries/subscriptionsDropdownOptionsQuery.ts
|
|
48157
|
-
import { gql as
|
|
48158
|
-
var GET_SUBSCRIPTION_DROPDOWN_OPTIONS_GRAPHQL_QUERY = parse(
|
|
48125
|
+
import { gql as gql7 } from "graphql-request";
|
|
48126
|
+
var GET_SUBSCRIPTION_DROPDOWN_OPTIONS_GRAPHQL_QUERY = parse(gql7`
|
|
48159
48127
|
query SubscriptionDropdownOptions($filterBy: [GraphqlFilter!]) {
|
|
48160
48128
|
subscriptions(filterBy: $filterBy, first: 1000000, after: 0) {
|
|
48161
48129
|
page {
|
|
@@ -48187,8 +48155,8 @@ function getSubscriptionDropdownOptionsGraphQlQuery() {
|
|
|
48187
48155
|
}
|
|
48188
48156
|
|
|
48189
48157
|
// src/graphqlQueries/processStepsQuery.ts
|
|
48190
|
-
import { gql as
|
|
48191
|
-
var GET_PROCESS_STEPS_GRAPHQL_QUERY = parse(
|
|
48158
|
+
import { gql as gql8 } from "graphql-request";
|
|
48159
|
+
var GET_PROCESS_STEPS_GRAPHQL_QUERY = parse(gql8`
|
|
48192
48160
|
query ProcessSteps($processName: String!) {
|
|
48193
48161
|
workflows(filterBy: { field: "name", value: $processName }) {
|
|
48194
48162
|
page {
|
|
@@ -48202,8 +48170,8 @@ var GET_PROCESS_STEPS_GRAPHQL_QUERY = parse(gql9`
|
|
|
48202
48170
|
`);
|
|
48203
48171
|
|
|
48204
48172
|
// src/graphqlQueries/processListQuery.ts
|
|
48205
|
-
import { gql as
|
|
48206
|
-
var GET_PROCESS_LIST_SUMMARY_GRAPHQL_QUERY = parse(
|
|
48173
|
+
import { gql as gql9 } from "graphql-request";
|
|
48174
|
+
var GET_PROCESS_LIST_SUMMARY_GRAPHQL_QUERY = parse(gql9`
|
|
48207
48175
|
query ProcessListSummary(
|
|
48208
48176
|
$first: Int!
|
|
48209
48177
|
$after: Int!
|
|
@@ -48231,7 +48199,7 @@ var GET_PROCESS_LIST_SUMMARY_GRAPHQL_QUERY = parse(gql10`
|
|
|
48231
48199
|
}
|
|
48232
48200
|
}
|
|
48233
48201
|
`);
|
|
48234
|
-
var GET_PROCESS_LIST_GRAPHQL_QUERY = parse(
|
|
48202
|
+
var GET_PROCESS_LIST_GRAPHQL_QUERY = parse(gql9`
|
|
48235
48203
|
query ProcessList(
|
|
48236
48204
|
$first: Int!
|
|
48237
48205
|
$after: Int!
|
|
@@ -48333,8 +48301,8 @@ import Link2 from "next/link";
|
|
|
48333
48301
|
import { EuiFlexGroup as EuiFlexGroup10, EuiFlexItem as EuiFlexItem9, EuiSpacer as EuiSpacer13, EuiSwitch as EuiSwitch2 } from "@elastic/eui";
|
|
48334
48302
|
|
|
48335
48303
|
// src/graphqlQueries/relatedSubscriptionsQuery.ts
|
|
48336
|
-
import { gql as
|
|
48337
|
-
var GET_RELATED_SUBSCRIPTIONS_GRAPHQL_QUERY = parse(
|
|
48304
|
+
import { gql as gql10 } from "graphql-request";
|
|
48305
|
+
var GET_RELATED_SUBSCRIPTIONS_GRAPHQL_QUERY = parse(gql10`
|
|
48338
48306
|
query RelatedSubscriptions(
|
|
48339
48307
|
$subscriptionId: String!
|
|
48340
48308
|
$first: Int!
|
|
@@ -54980,8 +54948,8 @@ import { useTranslations as useTranslations44 } from "next-intl";
|
|
|
54980
54948
|
import { EuiBadgeGroup as EuiBadgeGroup5 } from "@elastic/eui";
|
|
54981
54949
|
|
|
54982
54950
|
// src/graphqlQueries/workflows/workflowsQuery.ts
|
|
54983
|
-
import { gql as
|
|
54984
|
-
var GET_WORKFLOWS_GRAPHQL_QUERY = parse(
|
|
54951
|
+
import { gql as gql11 } from "graphql-request";
|
|
54952
|
+
var GET_WORKFLOWS_GRAPHQL_QUERY = parse(gql11`
|
|
54985
54953
|
query MetadataWorkflows(
|
|
54986
54954
|
$first: Int!
|
|
54987
54955
|
$after: Int!
|
|
@@ -55093,7 +55061,7 @@ var WfoWorkflowsPage = () => {
|
|
|
55093
55061
|
productTags: {
|
|
55094
55062
|
field: "productTags",
|
|
55095
55063
|
name: t("productTags"),
|
|
55096
|
-
render: (productTags) => /* @__PURE__ */ jsx148(Fragment32, { children: productTags == null ? void 0 : productTags.map((productTag, index) => /* @__PURE__ */ jsx148(
|
|
55064
|
+
render: (productTags) => /* @__PURE__ */ jsx148(Fragment32, { children: productTags == null ? void 0 : productTags.filter(onlyUnique).map((productTag, index) => /* @__PURE__ */ jsx148(
|
|
55097
55065
|
WfoProductBlockBadge,
|
|
55098
55066
|
{
|
|
55099
55067
|
badgeType: "product_tag" /* PRODUCT_TAG */,
|
|
@@ -55101,7 +55069,7 @@ var WfoWorkflowsPage = () => {
|
|
|
55101
55069
|
},
|
|
55102
55070
|
index
|
|
55103
55071
|
)) }),
|
|
55104
|
-
renderDetails: (productTags) => /* @__PURE__ */ jsx148(EuiBadgeGroup5, { gutterSize: "s", children: productTags == null ? void 0 : productTags.map((productTag, index) => /* @__PURE__ */ jsx148(
|
|
55072
|
+
renderDetails: (productTags) => /* @__PURE__ */ jsx148(EuiBadgeGroup5, { gutterSize: "s", children: productTags == null ? void 0 : productTags.filter(onlyUnique).map((productTag, index) => /* @__PURE__ */ jsx148(
|
|
55105
55073
|
WfoProductBlockBadge,
|
|
55106
55074
|
{
|
|
55107
55075
|
badgeType: "product_tag" /* PRODUCT_TAG */,
|
|
@@ -55234,6 +55202,59 @@ var WfoProcessListSubscriptionsCell = ({
|
|
|
55234
55202
|
// src/pages/processes/WfoProcessDetailPage.tsx
|
|
55235
55203
|
import { useEffect as useEffect22, useRef as useRef7, useState as useState36 } from "react";
|
|
55236
55204
|
|
|
55205
|
+
// src/rtk/endpoints/processDetail.ts
|
|
55206
|
+
var processDetailQuery = `query ProcessDetail($processId: String!) {
|
|
55207
|
+
processes(filterBy: { value: $processId, field: "processId" }) {
|
|
55208
|
+
page {
|
|
55209
|
+
processId
|
|
55210
|
+
lastStatus
|
|
55211
|
+
createdBy
|
|
55212
|
+
startedAt
|
|
55213
|
+
lastModifiedAt
|
|
55214
|
+
lastStep
|
|
55215
|
+
workflowName
|
|
55216
|
+
isTask
|
|
55217
|
+
form
|
|
55218
|
+
steps {
|
|
55219
|
+
name
|
|
55220
|
+
status
|
|
55221
|
+
stepId
|
|
55222
|
+
executed
|
|
55223
|
+
stateDelta
|
|
55224
|
+
}
|
|
55225
|
+
customer {
|
|
55226
|
+
fullname
|
|
55227
|
+
}
|
|
55228
|
+
subscriptions {
|
|
55229
|
+
page {
|
|
55230
|
+
product {
|
|
55231
|
+
name
|
|
55232
|
+
}
|
|
55233
|
+
description
|
|
55234
|
+
subscriptionId
|
|
55235
|
+
}
|
|
55236
|
+
}
|
|
55237
|
+
}
|
|
55238
|
+
}
|
|
55239
|
+
}`;
|
|
55240
|
+
var processDetailApi = orchestratorApi.injectEndpoints({
|
|
55241
|
+
endpoints: (builder) => ({
|
|
55242
|
+
getProcessDetail: builder.query({
|
|
55243
|
+
query: (variables) => ({
|
|
55244
|
+
document: processDetailQuery,
|
|
55245
|
+
variables
|
|
55246
|
+
}),
|
|
55247
|
+
transformResponse: (response) => {
|
|
55248
|
+
const processes = response.processes.page || [];
|
|
55249
|
+
return {
|
|
55250
|
+
processes
|
|
55251
|
+
};
|
|
55252
|
+
}
|
|
55253
|
+
})
|
|
55254
|
+
})
|
|
55255
|
+
});
|
|
55256
|
+
var { useGetProcessDetailQuery } = processDetailApi;
|
|
55257
|
+
|
|
55237
55258
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
|
|
55238
55259
|
import React43 from "react";
|
|
55239
55260
|
import { useTranslations as useTranslations45 } from "next-intl";
|
|
@@ -56431,13 +56452,9 @@ var WfoProcessDetailPage = ({
|
|
|
56431
56452
|
const stepListRef = useRef7(null);
|
|
56432
56453
|
const [fetchInterval, setFetchInterval] = useState36();
|
|
56433
56454
|
const [process2, setProcess] = useState36();
|
|
56434
|
-
const { data, isLoading, isError: isError3 } =
|
|
56435
|
-
|
|
56436
|
-
{
|
|
56437
|
-
processId
|
|
56438
|
-
},
|
|
56439
|
-
"processDetail",
|
|
56440
|
-
{ refetchInterval: fetchInterval, refetchOnWindowFocus: false }
|
|
56455
|
+
const { data, isLoading, isError: isError3 } = useGetProcessDetailQuery(
|
|
56456
|
+
{ processId },
|
|
56457
|
+
{ pollingInterval: fetchInterval }
|
|
56441
56458
|
);
|
|
56442
56459
|
if (isError3) {
|
|
56443
56460
|
if (fetchInterval) {
|
|
@@ -56445,7 +56462,7 @@ var WfoProcessDetailPage = ({
|
|
|
56445
56462
|
}
|
|
56446
56463
|
}
|
|
56447
56464
|
useEffect22(() => {
|
|
56448
|
-
const process3 = data == null ? void 0 : data.processes
|
|
56465
|
+
const process3 = data == null ? void 0 : data.processes[0];
|
|
56449
56466
|
const lastStatus = process3 == null ? void 0 : process3.lastStatus.toLocaleLowerCase();
|
|
56450
56467
|
const isInProgress = !(lastStatus && ProcessDoneStatuses.includes(lastStatus));
|
|
56451
56468
|
setFetchInterval(
|
|
@@ -56453,7 +56470,7 @@ var WfoProcessDetailPage = ({
|
|
|
56453
56470
|
);
|
|
56454
56471
|
}, [data, processDetailRefetchInterval]);
|
|
56455
56472
|
useEffect22(() => {
|
|
56456
|
-
const fetchedProcessDetails = data == null ? void 0 : data.processes
|
|
56473
|
+
const fetchedProcessDetails = data == null ? void 0 : data.processes[0];
|
|
56457
56474
|
if (!process2) {
|
|
56458
56475
|
setProcess(fetchedProcessDetails);
|
|
56459
56476
|
return;
|
|
@@ -59281,7 +59298,6 @@ export {
|
|
|
59281
59298
|
Environment,
|
|
59282
59299
|
ErrorField,
|
|
59283
59300
|
ErrorsField,
|
|
59284
|
-
GET_PROCESS_DETAIL_GRAPHQL_QUERY,
|
|
59285
59301
|
GET_PROCESS_LIST_GRAPHQL_QUERY,
|
|
59286
59302
|
GET_PROCESS_LIST_SUMMARY_GRAPHQL_QUERY,
|
|
59287
59303
|
GET_PROCESS_STEPS_GRAPHQL_QUERY,
|
|
@@ -59522,6 +59538,7 @@ export {
|
|
|
59522
59538
|
localMomentToUtcTimestamp,
|
|
59523
59539
|
mapColumnSortToEuiDataGridSorting,
|
|
59524
59540
|
mapSortableAndFilterableValuesToTableColumnConfig,
|
|
59541
|
+
onlyUnique,
|
|
59525
59542
|
orchestratorApi,
|
|
59526
59543
|
parseDate,
|
|
59527
59544
|
parseDateOrTimeRelativeToToday,
|
package/package.json
CHANGED
|
@@ -18,6 +18,7 @@ export type WfoSubmitModalProps = {
|
|
|
18
18
|
onClose: () => void;
|
|
19
19
|
onSubmit: () => void;
|
|
20
20
|
isLoading: boolean;
|
|
21
|
+
isDisabled?: boolean;
|
|
21
22
|
submitButtonLabel: string;
|
|
22
23
|
children: ReactNode;
|
|
23
24
|
};
|
|
@@ -28,6 +29,7 @@ export const WfoSubmitModal: FC<WfoSubmitModalProps> = ({
|
|
|
28
29
|
onSubmit,
|
|
29
30
|
isLoading,
|
|
30
31
|
submitButtonLabel = 'Submit',
|
|
32
|
+
isDisabled,
|
|
31
33
|
children,
|
|
32
34
|
}) => {
|
|
33
35
|
return (
|
|
@@ -50,6 +52,7 @@ export const WfoSubmitModal: FC<WfoSubmitModalProps> = ({
|
|
|
50
52
|
isLoading={isLoading}
|
|
51
53
|
fill
|
|
52
54
|
onClick={onSubmit}
|
|
55
|
+
isDisabled={isDisabled}
|
|
53
56
|
>
|
|
54
57
|
{submitButtonLabel}
|
|
55
58
|
</EuiButton>
|
|
@@ -3,7 +3,6 @@ export * from './productBlocksQuery';
|
|
|
3
3
|
export * from './productsQuery';
|
|
4
4
|
export * from './resourceTypesQuery';
|
|
5
5
|
export * from './subscriptionDetailQuery';
|
|
6
|
-
export * from './processDetailQuery';
|
|
7
6
|
export * from './subscriptionsDropdownOptionsQuery';
|
|
8
7
|
export * from './processStepsQuery';
|
|
9
8
|
export * from './processListQuery';
|
|
@@ -5,6 +5,21 @@ import { useTranslations } from 'next-intl';
|
|
|
5
5
|
import { EuiBadgeGroup } from '@elastic/eui';
|
|
6
6
|
import type { Pagination } from '@elastic/eui/src/components';
|
|
7
7
|
|
|
8
|
+
import {
|
|
9
|
+
useDataDisplayParams,
|
|
10
|
+
useQueryWithGraphql,
|
|
11
|
+
useQueryWithGraphqlLazy,
|
|
12
|
+
useShowToastMessage,
|
|
13
|
+
useStoredTableConfig,
|
|
14
|
+
} from '@/hooks';
|
|
15
|
+
import type { GraphqlQueryVariables, WorkflowDefinition } from '@/types';
|
|
16
|
+
import { BadgeType, SortOrder } from '@/types';
|
|
17
|
+
import {
|
|
18
|
+
getQueryVariablesForExport,
|
|
19
|
+
onlyUnique,
|
|
20
|
+
parseDateToLocaleDateTimeString,
|
|
21
|
+
parseIsoString,
|
|
22
|
+
} from '@/utils';
|
|
8
23
|
import {
|
|
9
24
|
csvDownloadHandler,
|
|
10
25
|
getCsvFileNameWithDate,
|
|
@@ -28,20 +43,6 @@ import { WfoWorkflowTargetBadge } from '../../components/WfoBadges/WfoWorkflowTa
|
|
|
28
43
|
import { WfoDateTime } from '../../components/WfoDateTime/WfoDateTime';
|
|
29
44
|
import { mapSortableAndFilterableValuesToTableColumnConfig } from '../../components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig';
|
|
30
45
|
import { GET_WORKFLOWS_GRAPHQL_QUERY } from '../../graphqlQueries/workflows/workflowsQuery';
|
|
31
|
-
import {
|
|
32
|
-
useDataDisplayParams,
|
|
33
|
-
useQueryWithGraphql,
|
|
34
|
-
useQueryWithGraphqlLazy,
|
|
35
|
-
useShowToastMessage,
|
|
36
|
-
useStoredTableConfig,
|
|
37
|
-
} from '../../hooks';
|
|
38
|
-
import type { GraphqlQueryVariables, WorkflowDefinition } from '../../types';
|
|
39
|
-
import { BadgeType, SortOrder } from '../../types';
|
|
40
|
-
import {
|
|
41
|
-
getQueryVariablesForExport,
|
|
42
|
-
parseDateToLocaleDateTimeString,
|
|
43
|
-
parseIsoString,
|
|
44
|
-
} from '../../utils';
|
|
45
46
|
import { WfoMetadataPageLayout } from './WfoMetadataPageLayout';
|
|
46
47
|
import {
|
|
47
48
|
graphQlWorkflowListMapper,
|
|
@@ -115,26 +116,30 @@ export const WfoWorkflowsPage = () => {
|
|
|
115
116
|
name: t('productTags'),
|
|
116
117
|
render: (productTags) => (
|
|
117
118
|
<>
|
|
118
|
-
{productTags
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
119
|
+
{productTags
|
|
120
|
+
?.filter(onlyUnique)
|
|
121
|
+
.map((productTag, index) => (
|
|
122
|
+
<WfoProductBlockBadge
|
|
123
|
+
key={index}
|
|
124
|
+
badgeType={BadgeType.PRODUCT_TAG}
|
|
125
|
+
>
|
|
126
|
+
{productTag}
|
|
127
|
+
</WfoProductBlockBadge>
|
|
128
|
+
))}
|
|
126
129
|
</>
|
|
127
130
|
),
|
|
128
131
|
renderDetails: (productTags) => (
|
|
129
132
|
<EuiBadgeGroup gutterSize="s">
|
|
130
|
-
{productTags
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
133
|
+
{productTags
|
|
134
|
+
?.filter(onlyUnique)
|
|
135
|
+
.map((productTag, index) => (
|
|
136
|
+
<WfoProductBlockBadge
|
|
137
|
+
key={index}
|
|
138
|
+
badgeType={BadgeType.PRODUCT_TAG}
|
|
139
|
+
>
|
|
140
|
+
{productTag}
|
|
141
|
+
</WfoProductBlockBadge>
|
|
142
|
+
))}
|
|
138
143
|
</EuiBadgeGroup>
|
|
139
144
|
),
|
|
140
145
|
},
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React, { useEffect, useRef, useState } from 'react';
|
|
2
2
|
|
|
3
3
|
import { TimelineItem, WfoError, WfoLoading } from '@/components';
|
|
4
|
+
import { useGetProcessDetailQuery } from '@/rtk/endpoints/processDetail';
|
|
4
5
|
|
|
5
6
|
import {
|
|
6
7
|
WfoStepListRef,
|
|
7
8
|
WfoWorkflowStepList,
|
|
8
9
|
} from '../../components/WfoWorkflowSteps';
|
|
9
|
-
import { GET_PROCESS_DETAIL_GRAPHQL_QUERY } from '../../graphqlQueries';
|
|
10
|
-
import { useQueryWithGraphql } from '../../hooks';
|
|
11
10
|
import {
|
|
12
11
|
ProcessDetail,
|
|
13
12
|
ProcessDoneStatuses,
|
|
@@ -39,13 +38,10 @@ export const WfoProcessDetailPage = ({
|
|
|
39
38
|
const stepListRef = useRef<WfoStepListRef>(null);
|
|
40
39
|
const [fetchInterval, setFetchInterval] = useState<number | undefined>();
|
|
41
40
|
const [process, setProcess] = useState<ProcessDetail | undefined>();
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
{
|
|
45
|
-
|
|
46
|
-
},
|
|
47
|
-
'processDetail',
|
|
48
|
-
{ refetchInterval: fetchInterval, refetchOnWindowFocus: false },
|
|
41
|
+
|
|
42
|
+
const { data, isLoading, isError } = useGetProcessDetailQuery(
|
|
43
|
+
{ processId },
|
|
44
|
+
{ pollingInterval: fetchInterval },
|
|
49
45
|
);
|
|
50
46
|
|
|
51
47
|
if (isError) {
|
|
@@ -55,7 +51,7 @@ export const WfoProcessDetailPage = ({
|
|
|
55
51
|
}
|
|
56
52
|
|
|
57
53
|
useEffect(() => {
|
|
58
|
-
const process = data?.processes
|
|
54
|
+
const process = data?.processes[0];
|
|
59
55
|
// We need to cast here because the backend might return the string in upperCase and
|
|
60
56
|
// toLowerCase() will converts the value type to string
|
|
61
57
|
const lastStatus =
|
|
@@ -71,7 +67,7 @@ export const WfoProcessDetailPage = ({
|
|
|
71
67
|
}, [data, processDetailRefetchInterval]);
|
|
72
68
|
|
|
73
69
|
useEffect(() => {
|
|
74
|
-
const fetchedProcessDetails = data?.processes
|
|
70
|
+
const fetchedProcessDetails = data?.processes[0];
|
|
75
71
|
|
|
76
72
|
if (!process) {
|
|
77
73
|
setProcess(fetchedProcessDetails);
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { orchestratorApi } from '@/rtk';
|
|
2
|
+
import { ProcessDetail, ProcessesDetailResult } from '@/types';
|
|
3
|
+
|
|
4
|
+
export const processDetailQuery = `query ProcessDetail($processId: String!) {
|
|
5
|
+
processes(filterBy: { value: $processId, field: "processId" }) {
|
|
6
|
+
page {
|
|
7
|
+
processId
|
|
8
|
+
lastStatus
|
|
9
|
+
createdBy
|
|
10
|
+
startedAt
|
|
11
|
+
lastModifiedAt
|
|
12
|
+
lastStep
|
|
13
|
+
workflowName
|
|
14
|
+
isTask
|
|
15
|
+
form
|
|
16
|
+
steps {
|
|
17
|
+
name
|
|
18
|
+
status
|
|
19
|
+
stepId
|
|
20
|
+
executed
|
|
21
|
+
stateDelta
|
|
22
|
+
}
|
|
23
|
+
customer {
|
|
24
|
+
fullname
|
|
25
|
+
}
|
|
26
|
+
subscriptions {
|
|
27
|
+
page {
|
|
28
|
+
product {
|
|
29
|
+
name
|
|
30
|
+
}
|
|
31
|
+
description
|
|
32
|
+
subscriptionId
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}`;
|
|
38
|
+
|
|
39
|
+
export type ProcessDetailResponse = {
|
|
40
|
+
processes: ProcessDetail[];
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
const processDetailApi = orchestratorApi.injectEndpoints({
|
|
44
|
+
endpoints: (builder) => ({
|
|
45
|
+
getProcessDetail: builder.query<
|
|
46
|
+
ProcessDetailResponse,
|
|
47
|
+
{ processId: string }
|
|
48
|
+
>({
|
|
49
|
+
query: (variables) => ({
|
|
50
|
+
document: processDetailQuery,
|
|
51
|
+
variables,
|
|
52
|
+
}),
|
|
53
|
+
transformResponse: (
|
|
54
|
+
response: ProcessesDetailResult,
|
|
55
|
+
): ProcessDetailResponse => {
|
|
56
|
+
const processes = response.processes.page || [];
|
|
57
|
+
|
|
58
|
+
return {
|
|
59
|
+
processes,
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
}),
|
|
63
|
+
}),
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
export const { useGetProcessDetailQuery } = processDetailApi;
|
|
@@ -75,7 +75,7 @@ const processApi = orchestratorApi.injectEndpoints({
|
|
|
75
75
|
transformResponse: (
|
|
76
76
|
response: ProcessListResult,
|
|
77
77
|
): ProcessListResponse => {
|
|
78
|
-
const processes = response
|
|
78
|
+
const processes = response.processes.page || [];
|
|
79
79
|
|
|
80
80
|
return {
|
|
81
81
|
processes,
|
package/src/utils/index.ts
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { onlyUnique } from './onlyUnique';
|
|
2
|
+
|
|
3
|
+
describe('onlyUnique()', () => {
|
|
4
|
+
it('returns array as array with only unique values', () => {
|
|
5
|
+
const test1 = ['SP', 'SP', 'FW', 'SP', 'FW', 'LP'];
|
|
6
|
+
const result = test1?.filter(onlyUnique);
|
|
7
|
+
expect(result).toEqual(['SP', 'FW', 'LP']);
|
|
8
|
+
});
|
|
9
|
+
it('returns array as array with only single value', () => {
|
|
10
|
+
const test2 = ['SP', 'SP', 'SP'];
|
|
11
|
+
const result = test2?.filter(onlyUnique);
|
|
12
|
+
expect(result).toEqual(['SP']);
|
|
13
|
+
});
|
|
14
|
+
it('returns array as empty array', () => {
|
|
15
|
+
const test3 = [''];
|
|
16
|
+
const result = test3?.filter(onlyUnique);
|
|
17
|
+
expect(result).toEqual(['']);
|
|
18
|
+
});
|
|
19
|
+
});
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { parse } from 'graphql';
|
|
2
|
-
import { gql } from 'graphql-request';
|
|
3
|
-
|
|
4
|
-
import { TypedDocumentNode } from '@graphql-typed-document-node/core';
|
|
5
|
-
|
|
6
|
-
import { ProcessesDetailResult } from '../types';
|
|
7
|
-
|
|
8
|
-
export const GET_PROCESS_DETAIL_GRAPHQL_QUERY: TypedDocumentNode<
|
|
9
|
-
ProcessesDetailResult,
|
|
10
|
-
{ processId: string }
|
|
11
|
-
> = parse(gql`
|
|
12
|
-
query ProcessDetail($processId: String!) {
|
|
13
|
-
processes(filterBy: { value: $processId, field: "processId" }) {
|
|
14
|
-
page {
|
|
15
|
-
processId
|
|
16
|
-
lastStatus
|
|
17
|
-
createdBy
|
|
18
|
-
startedAt
|
|
19
|
-
lastModifiedAt
|
|
20
|
-
lastStep
|
|
21
|
-
workflowName
|
|
22
|
-
isTask
|
|
23
|
-
form
|
|
24
|
-
steps {
|
|
25
|
-
name
|
|
26
|
-
status
|
|
27
|
-
stepId
|
|
28
|
-
executed
|
|
29
|
-
stateDelta
|
|
30
|
-
}
|
|
31
|
-
customer {
|
|
32
|
-
fullname
|
|
33
|
-
}
|
|
34
|
-
subscriptions {
|
|
35
|
-
page {
|
|
36
|
-
product {
|
|
37
|
-
name
|
|
38
|
-
}
|
|
39
|
-
description
|
|
40
|
-
subscriptionId
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
`);
|