@rh-support/manage 2.5.263 → 2.5.275
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/lib/esm/components/Groups/GroupSelect/GroupSelect.d.ts.map +1 -1
- package/lib/esm/components/Groups/GroupSelect/GroupSelect.js +7 -3
- package/lib/esm/hooks/useCaseGroupGraphQL.js +1 -1
- package/lib/esm/hooks/useCaseLabelGraphQL.d.ts.map +1 -1
- package/lib/esm/hooks/useCaseLabelGraphQL.js +2 -1
- package/lib/esm/utils/caseGroupMapper.d.ts.map +1 -1
- package/lib/esm/utils/caseGroupMapper.js +2 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupSelect.d.ts","sourceRoot":"","sources":["../../../../../src/components/Groups/GroupSelect/GroupSelect.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"GroupSelect.d.ts","sourceRoot":"","sources":["../../../../../src/components/Groups/GroupSelect/GroupSelect.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAwC3E,OAAO,KAAmD,MAAM,OAAO,CAAC;AAWxE,UAAU,MAAM;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7C,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;AAKD,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,sBAgpBxC,CAAC"}
|
|
@@ -17,6 +17,7 @@ import { ability, resourceActions, resources } from '@rh-support/user-permission
|
|
|
17
17
|
import { GET_CASE_GROUP_MEMBERS } from '@rh-support/utils';
|
|
18
18
|
import find from 'lodash/find';
|
|
19
19
|
import isEmpty from 'lodash/isEmpty';
|
|
20
|
+
import unescape from 'lodash/unescape';
|
|
20
21
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
21
22
|
import { Trans, useTranslation } from 'react-i18next';
|
|
22
23
|
import { GroupSelectActions } from '../../../constants/GroupSelectActions';
|
|
@@ -159,7 +160,7 @@ export const GroupSelect = (props) => {
|
|
|
159
160
|
ToastNotification.addSuccessMessage(t('Group has been successfully created'));
|
|
160
161
|
const newGroup = {
|
|
161
162
|
groupNum: createdRecord.Id,
|
|
162
|
-
name: createdRecord.Name.value,
|
|
163
|
+
name: unescape(createdRecord.Name.value),
|
|
163
164
|
isPrivate: false,
|
|
164
165
|
isDefault: false,
|
|
165
166
|
defaultMembers: [],
|
|
@@ -271,7 +272,10 @@ export const GroupSelect = (props) => {
|
|
|
271
272
|
if (sourceGroup === null || sourceGroup === void 0 ? void 0 : sourceGroup.groupNum) {
|
|
272
273
|
const membersResponse = yield apolloClient.query({
|
|
273
274
|
query: GET_CASE_GROUP_MEMBERS,
|
|
274
|
-
variables: {
|
|
275
|
+
variables: {
|
|
276
|
+
where: { Group__c: { eq: sourceGroup.groupNum } },
|
|
277
|
+
first: 2000,
|
|
278
|
+
},
|
|
275
279
|
fetchPolicy: 'network-only',
|
|
276
280
|
});
|
|
277
281
|
const sourceMembers = ((_d = (_c = (_b = (_a = membersResponse.data) === null || _a === void 0 ? void 0 : _a.redhat_support_uiapi) === null || _b === void 0 ? void 0 : _b.query) === null || _c === void 0 ? void 0 : _c.RedHatSupportCaseGroupMember__c) === null || _d === void 0 ? void 0 : _d.edges) ||
|
|
@@ -291,7 +295,7 @@ export const GroupSelect = (props) => {
|
|
|
291
295
|
}
|
|
292
296
|
const dupGroup = {
|
|
293
297
|
groupNum: newGroupId,
|
|
294
|
-
name: dupRecord.Name.value,
|
|
298
|
+
name: unescape(dupRecord.Name.value),
|
|
295
299
|
isPrivate: false,
|
|
296
300
|
isDefault: false,
|
|
297
301
|
defaultMembers: [],
|
|
@@ -14,7 +14,7 @@ import { mapCaseGroupMemberNodeToIGroupUser } from '../utils/caseGroupMapper';
|
|
|
14
14
|
export function useCaseGroupMembers() {
|
|
15
15
|
const [groupId, setGroupId] = useState(undefined);
|
|
16
16
|
const { data, loading, error, refetch } = useQuery(GET_CASE_GROUP_MEMBERS, {
|
|
17
|
-
variables: { where: { Group__c: { eq: groupId } } },
|
|
17
|
+
variables: { where: { Group__c: { eq: groupId } }, first: 2000 },
|
|
18
18
|
skip: !groupId,
|
|
19
19
|
fetchPolicy: 'network-only',
|
|
20
20
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCaseLabelGraphQL.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCaseLabelGraphQL.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,KAAK,uBAAuB,EAE5B,KAAK,uBAAuB,EAI5B,KAAK,uBAAuB,EAM/B,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"useCaseLabelGraphQL.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCaseLabelGraphQL.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,KAAK,uBAAuB,EAE5B,KAAK,uBAAuB,EAI5B,KAAK,uBAAuB,EAM/B,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAQlE,UAAU,mBAAmB;IACzB,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;IACzB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAChC;AAED,wBAAgB,aAAa,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAmCrE;AAED,UAAU,wBAAwB;IAC9B,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACvF,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,kBAAkB,IAAI,wBAAwB,CAkB7D;AAED,UAAU,wBAAwB;IAC9B,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAChF,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,kBAAkB,IAAI,wBAAwB,CAkB7D;AAED,UAAU,wBAAwB;IAC9B,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAClE,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,kBAAkB,IAAI,wBAAwB,CAW7D"}
|
|
@@ -9,12 +9,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { useApolloClient, useMutation } from '@apollo/client/react';
|
|
11
11
|
import { CREATE_CASE_LABEL, DELETE_CASE_LABEL, GET_CASE_LABELS, UPDATE_CASE_LABEL, } from '@rh-support/utils';
|
|
12
|
+
import unescape from 'lodash/unescape';
|
|
12
13
|
import { useCallback, useEffect, useState } from 'react';
|
|
13
14
|
const mapCaseLabelNode = (node) => {
|
|
14
15
|
var _a, _b, _c, _d;
|
|
15
16
|
return ({
|
|
16
17
|
id: node.Id,
|
|
17
|
-
name: (_b = (_a = node.Name) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : '',
|
|
18
|
+
name: unescape((_b = (_a = node.Name) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : ''),
|
|
18
19
|
assignedCaseCount: (_d = (_c = node.Case_Label_Links__r) === null || _c === void 0 ? void 0 : _c.totalCount) !== null && _d !== void 0 ? _d : 0,
|
|
19
20
|
});
|
|
20
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"caseGroupMapper.d.ts","sourceRoot":"","sources":["../../../src/utils/caseGroupMapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAC5F,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"caseGroupMapper.d.ts","sourceRoot":"","sources":["../../../src/utils/caseGroupMapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAC5F,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAG5E,oHAAoH;AACpH,MAAM,WAAW,uBAAwB,SAAQ,UAAU;IACvD,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,aAAa,EAAE,SAAS,UAAQ,GAAG,UAAU,CAS/F;AAED;;;GAGG;AACH,wBAAgB,kCAAkC,CAC9C,IAAI,EAAE,mBAAmB,EACzB,OAAO,EAAE,MAAM,GAChB,uBAAuB,CA6BzB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import unescape from 'lodash/unescape';
|
|
1
2
|
/**
|
|
2
3
|
* Maps a Salesforce GraphQL CaseGroupNode to the legacy ICaseGroup shape
|
|
3
4
|
* used throughout the application.
|
|
@@ -6,7 +7,7 @@ export function mapCaseGroupNodeToICaseGroup(node, isDefault = false) {
|
|
|
6
7
|
var _a;
|
|
7
8
|
return {
|
|
8
9
|
groupNum: node.Id,
|
|
9
|
-
name: (_a = node.Name.displayValue) !== null && _a !== void 0 ? _a : node.Name.value,
|
|
10
|
+
name: unescape((_a = node.Name.displayValue) !== null && _a !== void 0 ? _a : node.Name.value),
|
|
10
11
|
isPrivate: false,
|
|
11
12
|
isDefault,
|
|
12
13
|
defaultMembers: [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/manage",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.275",
|
|
4
4
|
"description": "Customer Support Manage App",
|
|
5
5
|
"author": "Jordan Eudy <jeudy100@gmail.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -78,12 +78,12 @@
|
|
|
78
78
|
"@patternfly/patternfly": "6.2.1",
|
|
79
79
|
"@patternfly/react-core": "6.2.1",
|
|
80
80
|
"@patternfly/react-table": "6.2.1",
|
|
81
|
-
"@rh-support/components": "2.5.
|
|
81
|
+
"@rh-support/components": "2.5.225",
|
|
82
82
|
"@rh-support/configs": "2.0.75",
|
|
83
|
-
"@rh-support/react-context": "2.5.
|
|
83
|
+
"@rh-support/react-context": "2.5.321",
|
|
84
84
|
"@rh-support/types": "2.0.26",
|
|
85
|
-
"@rh-support/user-permissions": "2.5.
|
|
86
|
-
"@rh-support/utils": "2.5.
|
|
85
|
+
"@rh-support/user-permissions": "2.5.173",
|
|
86
|
+
"@rh-support/utils": "2.5.152",
|
|
87
87
|
"@types/react-beautiful-dnd": "^13.0.0",
|
|
88
88
|
"i18next": "^23.15.0",
|
|
89
89
|
"lodash": ">=4.17.15",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"defaults and supports es6-module",
|
|
103
103
|
"maintained node versions"
|
|
104
104
|
],
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "4cb198056cdf53141dcdf4d9b55d9cbb36940e05"
|
|
106
106
|
}
|