@orchestrator-ui/orchestrator-ui-components 5.2.4 → 5.3.0
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 +6 -6
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +8 -8
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +166 -166
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/WfoInlineNoteEdit/WfoSubscriptionNoteEdit.tsx +8 -12
- package/src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx +11 -10
- package/src/configuration/version.ts +1 -1
package/package.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
+
import { WfoInlineEdit } from '@/components';
|
|
4
5
|
import { useStartProcessMutation } from '@/rtk/endpoints/forms';
|
|
5
6
|
import { useUpdateSubscriptionNoteOptimisticMutation } from '@/rtk/endpoints/subscriptionListMutation';
|
|
6
7
|
import { INVISIBLE_CHARACTER } from '@/utils';
|
|
7
8
|
|
|
8
|
-
import { WfoInlineEdit } from '../WfoInlineEdit';
|
|
9
|
-
import { SubscriptionListItem } from '../WfoSubscriptionsList';
|
|
10
|
-
|
|
11
9
|
interface WfoSubscriptionNoteEditProps {
|
|
12
10
|
onlyShowOnHover?: boolean;
|
|
13
11
|
queryVariables: Record<string, unknown>;
|
|
14
12
|
endpointName: string | undefined;
|
|
15
|
-
|
|
13
|
+
subscriptionId: string;
|
|
14
|
+
note: string | null;
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export const WfoSubscriptionNoteEdit: FC<WfoSubscriptionNoteEditProps> = ({
|
|
19
18
|
onlyShowOnHover = false,
|
|
20
19
|
queryVariables,
|
|
21
20
|
endpointName,
|
|
22
|
-
|
|
21
|
+
subscriptionId,
|
|
22
|
+
note,
|
|
23
23
|
}) => {
|
|
24
24
|
const [startProcess] = useStartProcessMutation();
|
|
25
25
|
const [updateSub] = useUpdateSubscriptionNoteOptimisticMutation();
|
|
26
26
|
|
|
27
27
|
const triggerNoteModifyWorkflow = (note: string) => {
|
|
28
28
|
const noteModifyPayload = [
|
|
29
|
-
{ subscription_id:
|
|
29
|
+
{ subscription_id: subscriptionId },
|
|
30
30
|
{ note: note === INVISIBLE_CHARACTER ? '' : note },
|
|
31
31
|
];
|
|
32
32
|
startProcess({
|
|
@@ -36,7 +36,7 @@ export const WfoSubscriptionNoteEdit: FC<WfoSubscriptionNoteEditProps> = ({
|
|
|
36
36
|
|
|
37
37
|
updateSub({
|
|
38
38
|
queryName: endpointName ?? '',
|
|
39
|
-
subscriptionId:
|
|
39
|
+
subscriptionId: subscriptionId,
|
|
40
40
|
graphQlQueryVariables: queryVariables,
|
|
41
41
|
note: note,
|
|
42
42
|
});
|
|
@@ -44,11 +44,7 @@ export const WfoSubscriptionNoteEdit: FC<WfoSubscriptionNoteEditProps> = ({
|
|
|
44
44
|
|
|
45
45
|
return (
|
|
46
46
|
<WfoInlineEdit
|
|
47
|
-
value={
|
|
48
|
-
subscription?.note?.trim()
|
|
49
|
-
? subscription.note
|
|
50
|
-
: INVISIBLE_CHARACTER
|
|
51
|
-
}
|
|
47
|
+
value={note?.trim() ? note : INVISIBLE_CHARACTER}
|
|
52
48
|
onlyShowOnHover={onlyShowOnHover}
|
|
53
49
|
onSave={triggerNoteModifyWorkflow}
|
|
54
50
|
/>
|
|
@@ -5,21 +5,26 @@ import Link from 'next/link';
|
|
|
5
5
|
import { useRouter } from 'next/router';
|
|
6
6
|
|
|
7
7
|
import {
|
|
8
|
+
ColumnType,
|
|
8
9
|
FilterQuery,
|
|
9
10
|
PATH_SUBSCRIPTIONS,
|
|
10
11
|
Pagination,
|
|
12
|
+
WfoAdvancedTable,
|
|
13
|
+
WfoAdvancedTableColumnConfig,
|
|
11
14
|
WfoDateTime,
|
|
12
15
|
WfoInlineJson,
|
|
13
16
|
WfoInsyncIcon,
|
|
14
17
|
WfoJsonCodeBlock,
|
|
18
|
+
WfoSubscriptionNoteEdit,
|
|
15
19
|
WfoSubscriptionStatusBadge,
|
|
16
20
|
getPageIndexChangeHandler,
|
|
17
21
|
getPageSizeChangeHandler,
|
|
18
22
|
} from '@/components';
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
import {
|
|
24
|
+
SubscriptionListItem,
|
|
25
|
+
mapGraphQlSubscriptionsResultToPageInfo,
|
|
26
|
+
mapGraphQlSubscriptionsResultToSubscriptionListItems,
|
|
27
|
+
} from '@/components';
|
|
23
28
|
import { mapSortableAndFilterableValuesToTableColumnConfig } from '@/components/WfoTable/WfoTable/utils';
|
|
24
29
|
import { DataDisplayParams, useShowToastMessage } from '@/hooks';
|
|
25
30
|
import {
|
|
@@ -47,11 +52,6 @@ import {
|
|
|
47
52
|
getDataSortHandler,
|
|
48
53
|
getQueryStringHandler,
|
|
49
54
|
} from '../WfoTable';
|
|
50
|
-
import {
|
|
51
|
-
SubscriptionListItem,
|
|
52
|
-
mapGraphQlSubscriptionsResultToPageInfo,
|
|
53
|
-
mapGraphQlSubscriptionsResultToSubscriptionListItems,
|
|
54
|
-
} from './subscriptionResultMappers';
|
|
55
55
|
|
|
56
56
|
export type WfoSubscriptionsListProps = {
|
|
57
57
|
alwaysOnFilters?: FilterQuery<SubscriptionListItem>[];
|
|
@@ -172,7 +172,8 @@ export const WfoSubscriptionsList: FC<WfoSubscriptionsListProps> = ({
|
|
|
172
172
|
onlyShowOnHover={true}
|
|
173
173
|
endpointName={endpointName}
|
|
174
174
|
queryVariables={graphqlQueryVariables}
|
|
175
|
-
|
|
175
|
+
subscriptionId={row.subscriptionId}
|
|
176
|
+
note={cellValue}
|
|
176
177
|
/>
|
|
177
178
|
);
|
|
178
179
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const ORCHESTRATOR_UI_LIBRARY_VERSION = '5.
|
|
1
|
+
export const ORCHESTRATOR_UI_LIBRARY_VERSION = '5.3.0';
|