@rh-support/troubleshoot 2.5.3 → 2.5.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/lib/esm/components/CaseEditView/CaseOverview/CaseType.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseType.js +1 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +3 -2
- package/lib/esm/components/CaseInformation/CaseGroup.js +2 -2
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts.map +1 -1
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +5 -0
- package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
- package/lib/esm/components/shared/useIsSectionValid.js +4 -1
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseType.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/CaseType.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,KAAoC,MAAM,OAAO,CAAC;AAOzD,UAAU,MAAO,SAAQ,gBAAgB;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,GAAG,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAOD,iBAAS,QAAQ,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CaseType.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/CaseType.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,KAAoC,MAAM,OAAO,CAAC;AAOzD,UAAU,MAAO,SAAQ,gBAAgB;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,GAAG,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAOD,iBAAS,QAAQ,CAAC,KAAK,EAAE,MAAM,qBAqF9B;kBArFQ,QAAQ;;;AAwFjB,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductVersion.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/ProductVersion.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProductVersion.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/ProductVersion.tsx"],"names":[],"mappings":"AAyCA,OAAO,KAAkD,MAAM,OAAO,CAAC;AASvE,UAAU,MAAM;IACZ,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACvC;AAED,iBAAS,eAAe,CAAC,KAAK,EAAE,MAAM,qBA2VrC;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -15,6 +15,7 @@ import { getUniqueSortedVersions, haventLoadedMetadata, toOption, } from '@rh-su
|
|
|
15
15
|
import filter from 'lodash/filter';
|
|
16
16
|
import isEmpty from 'lodash/isEmpty';
|
|
17
17
|
import isEqual from 'lodash/isEqual';
|
|
18
|
+
import isUndefined from 'lodash/isUndefined';
|
|
18
19
|
import map from 'lodash/map';
|
|
19
20
|
import React, { useContext, useEffect, useRef, useState } from 'react';
|
|
20
21
|
import { Trans, useTranslation } from 'react-i18next';
|
|
@@ -192,8 +193,8 @@ function ProductNVersion(props) {
|
|
|
192
193
|
const list = filter(allProducts.data.productsResult, (p) => p.isEntitledProduct);
|
|
193
194
|
if (!list)
|
|
194
195
|
return [];
|
|
195
|
-
const options = shouldFilter && !isEmpty(inputValue.trim())
|
|
196
|
-
? list.filter((v) => v.name.toLowerCase().includes((inputValue || '').toLowerCase()))
|
|
196
|
+
const options = shouldFilter && !isUndefined(inputValue) && !isEmpty(inputValue === null || inputValue === void 0 ? void 0 : inputValue.trim())
|
|
197
|
+
? list.filter((v) => { var _a, _b; return (_a = v.name) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes((_b = (inputValue || '')) === null || _b === void 0 ? void 0 : _b.toLowerCase()); })
|
|
197
198
|
: list;
|
|
198
199
|
return options;
|
|
199
200
|
};
|
|
@@ -116,8 +116,8 @@ function CaseGroup(props) {
|
|
|
116
116
|
const list = ownersCaseGroups.data;
|
|
117
117
|
if (!list)
|
|
118
118
|
return [];
|
|
119
|
-
const options = shouldFilter && inputValue.trim()
|
|
120
|
-
? list.filter((v) => v.name.toLowerCase().includes(inputValue.toLowerCase()))
|
|
119
|
+
const options = shouldFilter && (inputValue === null || inputValue === void 0 ? void 0 : inputValue.trim())
|
|
120
|
+
? list.filter((v) => v.name.toLowerCase().includes(inputValue === null || inputValue === void 0 ? void 0 : inputValue.toLowerCase()))
|
|
121
121
|
: list;
|
|
122
122
|
if (isGroupMandatory) {
|
|
123
123
|
// having group selected for case is mandatory, make 'UnGrouped Case' option disabled
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateSeverityModal.d.ts","sourceRoot":"","sources":["../../../../src/components/UpdateSeverityModal/UpdateSeverityModal.tsx"],"names":[],"mappings":"AAgCA,OAAO,KAAmE,MAAM,OAAO,CAAC;AAgBxF,UAAU,MAAM;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"UpdateSeverityModal.d.ts","sourceRoot":"","sources":["../../../../src/components/UpdateSeverityModal/UpdateSeverityModal.tsx"],"names":[],"mappings":"AAgCA,OAAO,KAAmE,MAAM,OAAO,CAAC;AAgBxF,UAAU,MAAM;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,MAAM,qBAqlBxD"}
|
|
@@ -366,8 +366,13 @@ export default function UpdateSeverityModal(props) {
|
|
|
366
366
|
caseDetails.caseSeverity,
|
|
367
367
|
]);
|
|
368
368
|
useEffect(() => {
|
|
369
|
+
const phone = `${phoneCountryCode}-${phoneAreaCodePrefixLineNumber}`;
|
|
369
370
|
setLocalFts(fts);
|
|
370
371
|
setLocalFtsContact(contactInfo24x7);
|
|
372
|
+
if (contactInfo24x7 === phone) {
|
|
373
|
+
setCaseState(caseDispatch, { ftsContactSameAsOwner: true });
|
|
374
|
+
}
|
|
375
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
371
376
|
}, [fts, contactInfo24x7]);
|
|
372
377
|
// Returns the modal body with its contents
|
|
373
378
|
const modalBody = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsSectionValid.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/useIsSectionValid.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAuB1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAKnE,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,gBAAgB;;;;;
|
|
1
|
+
{"version":3,"file":"useIsSectionValid.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/useIsSectionValid.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAuB1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAKnE,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,gBAAgB;;;;;EA+Q9D"}
|
|
@@ -116,6 +116,7 @@ export function useIsSectionValid(sectionName) {
|
|
|
116
116
|
hasAlternateCaseIdValidLength);
|
|
117
117
|
};
|
|
118
118
|
const isTroubleshootSectionValid = () => {
|
|
119
|
+
var _a;
|
|
119
120
|
if (isBTestvariation) {
|
|
120
121
|
//if we are in the new experience and user is troubleshoot we give them those validity fields
|
|
121
122
|
if (!isCaseCreate) {
|
|
@@ -134,7 +135,9 @@ export function useIsSectionValid(sectionName) {
|
|
|
134
135
|
}
|
|
135
136
|
// don't check for entitled product if user is on search intent flow
|
|
136
137
|
const isEntitledProductLocal = isSearchIntent ? true : isEntitledProduct;
|
|
137
|
-
return !recommendationState.isLoadingRecommendations &&
|
|
138
|
+
return (!recommendationState.isLoadingRecommendations &&
|
|
139
|
+
isEntitledProductLocal &&
|
|
140
|
+
isClusterIDValid(caseState, (_a = allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult));
|
|
138
141
|
};
|
|
139
142
|
const isReviewSectionValid = () => {
|
|
140
143
|
var _a;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@cee-eng/hydrajs": "4.18.0",
|
|
29
29
|
"@cee-eng/ui-toolkit": "1.1.8",
|
|
30
|
-
"@patternfly/patternfly": "5.4.
|
|
31
|
-
"@patternfly/react-core": "5.4.
|
|
30
|
+
"@patternfly/patternfly": "5.4.2",
|
|
31
|
+
"@patternfly/react-core": "5.4.2",
|
|
32
32
|
"dompurify": "^2.2.6",
|
|
33
33
|
"i18next": "^23.15.0",
|
|
34
34
|
"js-markdown-extra": "^1.2.4",
|
|
@@ -52,15 +52,15 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@cee-eng/hydrajs": "4.18.0",
|
|
54
54
|
"@cee-eng/ui-toolkit": "1.1.8",
|
|
55
|
-
"@patternfly/patternfly": "5.4.
|
|
56
|
-
"@patternfly/react-core": "5.4.
|
|
57
|
-
"@patternfly/react-table": "5.4.
|
|
55
|
+
"@patternfly/patternfly": "5.4.2",
|
|
56
|
+
"@patternfly/react-core": "5.4.2",
|
|
57
|
+
"@patternfly/react-table": "5.4.2",
|
|
58
58
|
"@progress/kendo-drawing": "^1.6.0",
|
|
59
59
|
"@progress/kendo-licensing": "1.3.5",
|
|
60
60
|
"@progress/kendo-react-pdf": "^5.16.0",
|
|
61
61
|
"@redux-devtools/extension": "^3.3.0",
|
|
62
|
-
"@rh-support/components": "2.5.
|
|
63
|
-
"@rh-support/react-context": "2.5.
|
|
62
|
+
"@rh-support/components": "2.5.4",
|
|
63
|
+
"@rh-support/react-context": "2.5.4",
|
|
64
64
|
"@rh-support/types": "2.0.5",
|
|
65
65
|
"@rh-support/user-permissions": "2.5.1",
|
|
66
66
|
"@rh-support/utils": "2.5.1",
|
|
@@ -135,5 +135,5 @@
|
|
|
135
135
|
"defaults and supports es6-module",
|
|
136
136
|
"maintained node versions"
|
|
137
137
|
],
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "b7de3083da67036047ec7b0384d9d015bdf24286"
|
|
139
139
|
}
|