@orchestrator-ui/orchestrator-ui-components 0.2.2 → 0.2.4
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 +1 -1
- package/CHANGELOG.md +12 -0
- package/dist/index.d.ts +55 -32
- package/dist/index.js +397 -82
- package/package.json +1 -1
- package/src/components/WFOBadges/{WFOStatusBadge/WFOStatusBadge.stories.tsx → WFOSubscriptionStatusBadge/WFOSubscriptionStatusBadge.stories.tsx} +4 -4
- package/src/components/WFOBadges/{WFOStatusBadge/WFOStatusBadge.tsx → WFOSubscriptionStatusBadge/WFOSubscriptionStatusBadge.tsx} +5 -3
- package/src/components/WFOBadges/WFOSubscriptionStatusBadge/index.ts +1 -0
- package/src/components/WFOBadges/index.ts +1 -1
- package/src/components/{WFOBreadcrumbs → WFOPageTemplate/WFOBreadcrumbs}/WFOBreadcrumbs.tsx +1 -1
- package/src/components/WFOPageTemplate/WFOPageTemplate/WFOPageTemplate.tsx +2 -0
- package/src/components/WFOPageTemplate/WFOSidebar/WFOSidebar.tsx +14 -12
- package/src/components/WFOPageTemplate/index.ts +1 -0
- package/src/components/WFOPageTemplate/paths.ts +11 -0
- package/src/components/WFOSubscription/WFOSubscriptionBlock.tsx +3 -2
- package/src/components/WFOSubscriptionsList/WFOSubscriptionsList.tsx +199 -0
- package/src/components/WFOSubscriptionsList/index.ts +4 -0
- package/src/components/WFOSubscriptionsList/mapGrapghQlSubscriptionsResultToSubscriptionListItems.ts +34 -0
- package/src/{pages/subscriptions → components/WFOSubscriptionsList}/types.ts +0 -2
- package/src/components/WFOTable/utils/constants.ts +2 -0
- package/src/components/index.ts +1 -1
- package/src/graphqlQueries/index.ts +2 -1
- package/src/graphqlQueries/processListQuery.ts +5 -8
- package/src/graphqlQueries/productsQuery.ts +3 -4
- package/src/graphqlQueries/subscriptionsListQuery.ts +55 -0
- package/src/graphqlQueries/workflowsQuery.ts +3 -4
- package/src/index.ts +1 -0
- package/src/messages/en-US.json +4 -3
- package/src/messages/nl-NL.json +4 -3
- package/src/pages/metadata/WFOProductBlocksPage.tsx +4 -2
- package/src/pages/metadata/WFOProductsPage.tsx +4 -2
- package/src/pages/processes/WFOProcessListPage.tsx +22 -13
- package/src/pages/processes/tableConfig.ts +3 -3
- package/src/pages/subscriptions/WFOSubscriptionsListPage.tsx +85 -0
- package/src/pages/subscriptions/index.ts +1 -2
- package/src/types/index.ts +2 -0
- package/src/types/subscription.ts +21 -0
- package/src/{types.ts → types/types.ts} +14 -17
- package/src/components/WFOBadges/WFOStatusBadge/index.ts +0 -1
- /package/src/components/{WFOBreadcrumbs → WFOPageTemplate/WFOBreadcrumbs}/index.ts +0 -0
- /package/src/{pages/subscriptions → components/WFOSubscriptionsList}/subscriptionListTabs.ts +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -4,8 +4,8 @@ $ tsup src/index.ts --format esm --dts
|
|
|
4
4
|
[34mCLI[39m tsup v7.1.0
|
|
5
5
|
[34mCLI[39m Target: node16
|
|
6
6
|
[34mESM[39m Build start
|
|
7
|
-
[32mESM[39m [1mdist/index.js [22m[
|
|
8
|
-
[32mESM[39m ⚡️ Build success in
|
|
7
|
+
[32mESM[39m [1mdist/index.js [22m[32m225.50 KB[39m
|
|
8
|
+
[32mESM[39m ⚡️ Build success in 642ms
|
|
9
9
|
[34mDTS[39m Build start
|
|
10
|
-
[32mDTS[39m ⚡️ Build success in
|
|
11
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
10
|
+
[32mDTS[39m ⚡️ Build success in 15126ms
|
|
11
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m31.03 KB[39m
|
package/.turbo/turbo-lint.log
CHANGED
|
@@ -4,7 +4,7 @@ $ eslint "src/**/*.ts*"
|
|
|
4
4
|
79:8 warning React Hook useEffect has missing dependencies: 'defaultHiddenColumns' and 'tableConfigFromLocalStorage?.hiddenColumns'. Either include them or remove the dependency array. If 'setHiddenColumns' needs the current value of 'defaultHiddenColumns', you can also switch to useReducer instead of useState and read 'defaultHiddenColumns' in the reducer react-hooks/exhaustive-deps
|
|
5
5
|
|
|
6
6
|
/home/runner/work/orchestrator-ui/orchestrator-ui/packages/orchestrator-ui-components/src/pages/processes/WFOProcessListPage.tsx
|
|
7
|
-
|
|
7
|
+
54:17 warning Do not use "@ts-ignore" because it alters compilation errors @typescript-eslint/ban-ts-comment
|
|
8
8
|
|
|
9
9
|
✖ 2 problems (0 errors, 2 warnings)
|
|
10
10
|
|
package/.turbo/turbo-test.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @orchestrator-ui/orchestrator-ui-components
|
|
2
2
|
|
|
3
|
+
## 0.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 38d1229: Fixed handling navigation for pages with sidebar submenu items
|
|
8
|
+
|
|
9
|
+
## 0.2.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 577825a: Adds title to process list page
|
|
14
|
+
|
|
3
15
|
## 0.2.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { Criteria } from '@elastic/eui/src/components/basic_table/basic_table';
|
|
|
11
11
|
import { TypedDocumentNode } from '@graphql-typed-document-node/core';
|
|
12
12
|
import { Variables } from 'graphql-request/build/cjs/types';
|
|
13
13
|
import { AbstractIntlMessages } from 'next-intl';
|
|
14
|
+
import * as graphql from 'graphql';
|
|
14
15
|
|
|
15
16
|
type WFOBadgeProps = EuiBadgeProps & {
|
|
16
17
|
textColor: TextColor | string;
|
|
@@ -18,10 +19,10 @@ type WFOBadgeProps = EuiBadgeProps & {
|
|
|
18
19
|
};
|
|
19
20
|
declare const WFOBadge: FC<WFOBadgeProps>;
|
|
20
21
|
|
|
21
|
-
type
|
|
22
|
+
type WFOSubscriptionStatusBadgeProps = {
|
|
22
23
|
status: string;
|
|
23
24
|
};
|
|
24
|
-
declare const
|
|
25
|
+
declare const WFOSubscriptionStatusBadge: FC<WFOSubscriptionStatusBadgeProps>;
|
|
25
26
|
|
|
26
27
|
type WFOProductBlockBadgeProps = {
|
|
27
28
|
children: string;
|
|
@@ -128,6 +129,25 @@ interface SubscriptionActions {
|
|
|
128
129
|
}
|
|
129
130
|
declare const useSubscriptionActions: (subscriptionId: string) => react_query.UseQueryResult<SubscriptionActions, unknown>;
|
|
130
131
|
|
|
132
|
+
declare enum SubscriptionStatus {
|
|
133
|
+
INITIAL = "INITIAL",
|
|
134
|
+
ACTIVE = "ACTIVE",
|
|
135
|
+
MIGRATING = "MIGRATING",
|
|
136
|
+
DISABLED = "DISABLED",
|
|
137
|
+
TERMINATED = "TERMINATED",
|
|
138
|
+
PROVISIONING = "PROVISIONING"
|
|
139
|
+
}
|
|
140
|
+
type Subscription$1 = {
|
|
141
|
+
subscriptionId: string;
|
|
142
|
+
description: string;
|
|
143
|
+
note: string;
|
|
144
|
+
startDate: string;
|
|
145
|
+
endDate: string;
|
|
146
|
+
insync: boolean;
|
|
147
|
+
status: SubscriptionStatus;
|
|
148
|
+
product: Pick<ProductDefinition, 'name' | 'tag' | 'productType'>;
|
|
149
|
+
};
|
|
150
|
+
|
|
131
151
|
type Nullable<T> = T | null;
|
|
132
152
|
type GenericField = {
|
|
133
153
|
[key: string]: number | string | boolean;
|
|
@@ -248,8 +268,9 @@ interface ProductDefinition {
|
|
|
248
268
|
}
|
|
249
269
|
type Process$1 = {
|
|
250
270
|
workflowName: string;
|
|
251
|
-
|
|
271
|
+
step: string;
|
|
252
272
|
status: ProcessStatus;
|
|
273
|
+
workflowTarget: string;
|
|
253
274
|
product: string;
|
|
254
275
|
customer: string;
|
|
255
276
|
subscriptions: {
|
|
@@ -257,14 +278,10 @@ type Process$1 = {
|
|
|
257
278
|
};
|
|
258
279
|
createdBy: string;
|
|
259
280
|
assignee: string;
|
|
260
|
-
|
|
281
|
+
processId: string;
|
|
261
282
|
started: string;
|
|
262
283
|
lastModified: string;
|
|
263
284
|
};
|
|
264
|
-
type Subscription$1 = {
|
|
265
|
-
subscriptionId: string;
|
|
266
|
-
description: string;
|
|
267
|
-
};
|
|
268
285
|
interface WorkflowDefinition {
|
|
269
286
|
name: string;
|
|
270
287
|
description: string;
|
|
@@ -294,10 +311,13 @@ type GraphqlQueryVariables<Type> = {
|
|
|
294
311
|
type GraphQLPageInfo = {
|
|
295
312
|
hasNextPage: boolean;
|
|
296
313
|
hasPreviousPage: boolean;
|
|
297
|
-
startCursor
|
|
298
|
-
totalItems
|
|
299
|
-
endCursor
|
|
314
|
+
startCursor?: number;
|
|
315
|
+
totalItems?: number;
|
|
316
|
+
endCursor?: number;
|
|
300
317
|
};
|
|
318
|
+
interface SubscriptionsResult {
|
|
319
|
+
subscriptions: GraphQlResultPage<Subscription$1>;
|
|
320
|
+
}
|
|
301
321
|
interface ProductDefinitionsResult {
|
|
302
322
|
products: GraphQlResultPage<ProductDefinition>;
|
|
303
323
|
}
|
|
@@ -307,7 +327,7 @@ interface ProductBlockDefinitionsResult {
|
|
|
307
327
|
interface ResourceTypeDefinitionsResult {
|
|
308
328
|
resourceTypes: GraphQlResultPage<ResourceTypeDefinition>;
|
|
309
329
|
}
|
|
310
|
-
interface
|
|
330
|
+
interface ProcessesResult {
|
|
311
331
|
processes: GraphQlResultPage<Process$1>;
|
|
312
332
|
}
|
|
313
333
|
interface WorkflowDefinitionsResult {
|
|
@@ -412,6 +432,18 @@ declare const WFOPageTemplate: FC<WFOPageTemplateProps>;
|
|
|
412
432
|
|
|
413
433
|
declare const WFOSidebar: FC;
|
|
414
434
|
|
|
435
|
+
declare const PATH_START = "/";
|
|
436
|
+
declare const PATH_NEW_PROCESS = "/new-process";
|
|
437
|
+
declare const PATH_PROCESSES = "/processes";
|
|
438
|
+
declare const PATH_SUBSCRIPTIONS = "/subscriptions";
|
|
439
|
+
declare const PATH_METADATA = "/metadata";
|
|
440
|
+
declare const PATH_METADATA_PRODUCTS = "/metadata/products";
|
|
441
|
+
declare const PATH_METADATA_PRODUCT_BLOCKS = "/metadata/productblocks";
|
|
442
|
+
declare const PATH_METADATA_RESOURCE_TYPES = "/metadata/resource-types";
|
|
443
|
+
declare const PATH_METADATA_WORKFLOWS = "/metadata/workflows";
|
|
444
|
+
declare const PATH_TASKS = "/tasks";
|
|
445
|
+
declare const PATH_SETTINGS = "/settings";
|
|
446
|
+
|
|
415
447
|
type WFOSearchFieldProps = {
|
|
416
448
|
__filterQuery?: string;
|
|
417
449
|
__setFilterQuery?: (updatedFilterQuery: string) => void;
|
|
@@ -568,6 +600,7 @@ declare const METADATA_RESOURCE_TYPES_TABLE_LOCAL_STORAGE_KEY = "metadataResourc
|
|
|
568
600
|
declare const METADATA_PRODUCTBLOCKS_TABLE_LOCAL_STORAGE_KEY = "metadataProductBlocksTable";
|
|
569
601
|
declare const METADATA_PRODUCT_TABLE_LOCAL_STORAGE_KEY = "metadataProductTable";
|
|
570
602
|
declare const METADATA_WORKFLOWS_TABLE_LOCAL_STORAGE_KEY = "metadataWorkflowsTable";
|
|
603
|
+
declare const SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY = "subscriptionsTable";
|
|
571
604
|
|
|
572
605
|
type LocalStorageTableConfig<T> = {
|
|
573
606
|
hiddenColumns: TableColumnKeys<T>;
|
|
@@ -727,25 +760,15 @@ type WFOProcessesListSubscriptionsCellProps = {
|
|
|
727
760
|
};
|
|
728
761
|
declare const WFOProcessesListSubscriptionsCell: FC<WFOProcessesListSubscriptionsCellProps>;
|
|
729
762
|
|
|
730
|
-
|
|
731
|
-
subscriptionId: string;
|
|
732
|
-
description: string;
|
|
733
|
-
status: string;
|
|
734
|
-
insync: boolean;
|
|
735
|
-
startDate: Date | null;
|
|
736
|
-
endDate: Date | null;
|
|
737
|
-
productName: string;
|
|
738
|
-
tag: string | null;
|
|
739
|
-
note: string | null;
|
|
740
|
-
};
|
|
763
|
+
declare const WFOSubscriptionsListPage: () => _emotion_react_jsx_runtime.JSX.Element | null;
|
|
741
764
|
|
|
742
|
-
declare
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
declare const
|
|
765
|
+
declare const GET_SUBSCRIPTIONS_LIST_GRAPHQL_QUERY: graphql.DocumentNode;
|
|
766
|
+
declare function getSubscriptionsListGraphQlQuery<QueryVariablesType = Subscription$1>(): TypedDocumentNode<SubscriptionsResult, GraphqlQueryVariables<QueryVariablesType>>;
|
|
767
|
+
|
|
768
|
+
declare const GET_PRODUCTS_BLOCKS_GRAPHQL_QUERY: TypedDocumentNode<ProductBlockDefinitionsResult, GraphqlQueryVariables<ProductBlockDefinition>>;
|
|
769
|
+
|
|
770
|
+
declare const GET_PRODUCTS_GRAPHQL_QUERY: TypedDocumentNode<ProductDefinitionsResult, GraphqlQueryVariables<ProductDefinition>>;
|
|
771
|
+
|
|
772
|
+
declare const GET_RESOURCE_TYPES_GRAPHQL_QUERY: TypedDocumentNode<ResourceTypeDefinitionsResult, GraphqlQueryVariables<ResourceTypeDefinition>>;
|
|
750
773
|
|
|
751
|
-
export { ACTIVE_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY, COMPLETED_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY, CacheNames, CacheOption, ColumnConfig, CustomerBase, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZES, DUTCH_LOCALE, DataDisplayParams, DataDisplayReturnValues, EngineStatus, EngineStatusValue, Environment, ExternalServiceBase, Field, FilterQuery, FixedInputDefinition, FixedInputsBase, GlobalStatus, GraphQLSort, GraphqlFilter, GraphqlQueryVariables, HeaderBadgeProps, ItemsList, LocalStorageTableConfig, Locale, METADATA_PRODUCTBLOCKS_TABLE_LOCAL_STORAGE_KEY, METADATA_PRODUCT_TABLE_LOCAL_STORAGE_KEY, METADATA_RESOURCE_TYPES_TABLE_LOCAL_STORAGE_KEY, METADATA_WORKFLOWS_TABLE_LOCAL_STORAGE_KEY, Nullable, OrchestratorConfig, OrchestratorConfigContext, OrchestratorConfigProvider, OrchestratorConfigProviderProps, Pagination, Process$1 as Process, ProcessFromRestApi, ProcessStatus, ProcessStatusCounts,
|
|
774
|
+
export { ACTIVE_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY, COMPLETED_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY, CacheNames, CacheOption, ColumnConfig, CustomerBase, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZES, DUTCH_LOCALE, DataDisplayParams, DataDisplayReturnValues, EngineStatus, EngineStatusValue, Environment, ExternalServiceBase, Field, FilterQuery, FixedInputDefinition, FixedInputsBase, GET_PRODUCTS_BLOCKS_GRAPHQL_QUERY, GET_PRODUCTS_GRAPHQL_QUERY, GET_RESOURCE_TYPES_GRAPHQL_QUERY, GET_SUBSCRIPTIONS_LIST_GRAPHQL_QUERY, GlobalStatus, GraphQLPageInfo, GraphQLSort, GraphqlFilter, GraphqlQueryVariables, HeaderBadgeProps, ItemsList, LocalStorageTableConfig, Locale, METADATA_PRODUCTBLOCKS_TABLE_LOCAL_STORAGE_KEY, METADATA_PRODUCT_TABLE_LOCAL_STORAGE_KEY, METADATA_RESOURCE_TYPES_TABLE_LOCAL_STORAGE_KEY, METADATA_WORKFLOWS_TABLE_LOCAL_STORAGE_KEY, Nullable, OrchestratorConfig, OrchestratorConfigContext, OrchestratorConfigProvider, OrchestratorConfigProviderProps, PATH_METADATA, PATH_METADATA_PRODUCTS, PATH_METADATA_PRODUCT_BLOCKS, PATH_METADATA_RESOURCE_TYPES, PATH_METADATA_WORKFLOWS, PATH_NEW_PROCESS, PATH_PROCESSES, PATH_SETTINGS, PATH_START, PATH_SUBSCRIPTIONS, PATH_TASKS, Pagination, Process$1 as Process, ProcessFromRestApi, ProcessStatus, ProcessStatusCounts, ProcessesResult, ProcessesTimeline, ProcessesTimelineProps, ProductBase, ProductBlockBase, ProductBlockDefinition, ProductBlockDefinitionsResult, ProductDefinition, ProductDefinitionsResult, RESOURCE_TYPE_FIELD_DESCRIPTION, RESOURCE_TYPE_FIELD_ID, RESOURCE_TYPE_FIELD_TYPE, RenderField, ResourceTypeBase, ResourceTypeDefinition, ResourceTypeDefinitionsResult, SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY, SettingsModal, SettingsModalProps, SortOrder, Subscription$1 as Subscription, SubscriptionAction, SubscriptionActionsProps, SubscriptionContext, SubscriptionContextType, SubscriptionDetailBase, SubscriptionProcess, SubscriptionProvider, SubscriptionProviderProps, SubscriptionStatus, SubscriptionsResult, TableColumnKeys, TableConfig, TableSettingsModal, TableSettingsModalProps, TotalStat, TranslationMessagesMap, TreeBlock, TreeContext, TreeContextType, TreeProvider, TreeProviderProps, WFOArrowNarrowDown, WFOArrowNarrowUp, WFOBadge, WFOBadgeProps, WFOBasicTableColumn, WFOBreadcrumbs, WFOCheckmarkCircleFill, WFOChevronDown, WFOControlColumn, WFODataGridTable, WFODataGridTableColumns, WFODataGridTableProps, WFODataSorting, WFOEngineStatusBadge, WFOEnvironmentBadge, WFOFailedTasksBadge, WFOFilterTab, WFOFilterTabs, WFOFilterTabsProps, WFOFixedInputBlock, WFOFrequentlyUsed, WFOFrequentlyUsedProps, WFOHeaderBadge, WFOIconProps, WFOListItemStartPage, WFOListItemStartPageProps, WFOLoading, WFOLogoutIcon, WFOMinusCircleOutline, WFOMultiListSection, WFONewProcessPanel, WFOPageHeader, WFOPageHeaderProps, WFOPageTemplate, WFOPageTemplateProps, WFOPlusCircleFill, WFOProcessListPage, WFOProcessListTabType, WFOProcessStatusBadge, WFOProcessStatusBadgeProps, WFOProcessesListSubscriptionsCell, WFOProcessesListSubscriptionsCellProps, WFOProductBlock, WFOProductBlockBadge, WFOProductBlockBadgeProps, WFOProductBlocksPage, WFOProductsPage, WFOResourceTypesPage, WFOSearchField, WFOSearchFieldProps, WFOSettings, WFOSidebar, WFOStatCards, WFOStatusDotIcon, WFOSubscriptionActions, WFOSubscriptionBlock, WFOSubscriptionDetailTree, WFOSubscriptionGeneral, WFOSubscriptionStatusBadge, WFOSubscriptionStatusBadgeProps, WFOSubscriptionsListPage, WFOTable, WFOTableColumns, WFOTableColumnsWithControlColumns, WFOTableColumnsWithExtraNonDataFields, WFOTableControlColumnConfig, WFOTableDataColumnConfig, WFOTableHeaderCell, WFOTableHeaderCellProps, WFOTableProps, WFOTableWithFilter, WFOTableWithFilterProps, WFOWorkflowsPage, WFOXCircleFill, WorkflowDefinition, WorkflowDefinitionsResult, clearTableConfigFromLocalStorage, defaultOrchestratorTheme, defaultProcessListTabs, determineNewSortOrder, determinePageIndex, getDataSortHandler, getEsQueryStringHandler, getFirstUuidPart, getInitialColumnOrder, getPageChangeHandler, getProcessListTabTypeFromString, getSortDirectionFromString, getStatusBadgeColor, getSubscriptionsListGraphQlQuery, getTableConfigFromLocalStorage, getTranslationMessages, getTypedFieldFromObject, isUuid4, isValidLocalStorageTableConfig, mapColumnSortToEuiDataGridSorting, parseDate, parseDateToLocaleString, removeSuffix, setTableConfigToLocalStorage, upperCaseFirstChar, useCacheNames, useDataDisplayParams, useEngineStatusMutation, useEngineStatusQuery, useFavouriteSubscriptions, useOrchestratorConfig, useOrchestratorTheme, useProcessStatusCountsQuery, useProcessesAttention, useQueryWithGraphql, useRecentProcesses, useSubscriptionActions, useSubscriptionProcesses };
|