@rh-support/troubleshoot 2.2.129 → 2.2.130
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/AccountInfo/OwnerSelector.d.ts.map +1 -1
- package/lib/esm/components/AccountInfo/OwnerSelector.js +1 -77
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +13 -2
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.js +188 -40
- package/lib/esm/components/CaseInformation/ContactPhoneNumberAlert.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumberAlert.js +12 -15
- package/lib/esm/components/CaseInformation/Severity.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Severity.js +5 -23
- package/lib/esm/components/CaseManagement/CaseManagement.js +4 -4
- package/lib/esm/components/IdeaInformation/IdeaInformation.js +4 -4
- package/lib/esm/components/Recommendations/Recommendations.js +1 -1
- package/lib/esm/components/Review/Review.js +4 -4
- package/lib/esm/components/SessionRestore/SessionRestore.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/SessionRestore.js +27 -22
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts.map +1 -1
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +4 -24
- package/lib/esm/components/shared/utils.d.ts +2 -0
- package/lib/esm/components/shared/utils.d.ts.map +1 -1
- package/lib/esm/components/shared/utils.js +12 -0
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.js +0 -20
- package/lib/esm/constants/caseDetailsConstants.d.ts +1 -1
- package/lib/esm/constants/caseDetailsConstants.d.ts.map +1 -1
- package/lib/esm/constants/caseDetailsConstants.js +1 -1
- package/lib/esm/css/app.css +2 -0
- package/lib/esm/reducers/CaseConstNTypes.d.ts +6 -0
- package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.js +10 -3
- package/lib/esm/reducers/CaseHelpers.d.ts +1 -0
- package/lib/esm/reducers/CaseHelpers.d.ts.map +1 -1
- package/lib/esm/reducers/CaseHelpers.js +7 -1
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.js +8 -1
- package/lib/esm/scss/_main.scss +5 -0
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OwnerSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountInfo/OwnerSelector.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAkB/D,UAAU,MAAM;CAAG;AAEnB,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"OwnerSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountInfo/OwnerSelector.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAkB/D,UAAU,MAAM;CAAG;AAEnB,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,qBAsTnC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -28,14 +28,13 @@ import { getChangedValueTooltip } from '../shared/utils';
|
|
|
28
28
|
function OwnerSelector(props) {
|
|
29
29
|
const { t } = useTranslation();
|
|
30
30
|
const caseUpdateError = useCaseUpdateErrorMessage();
|
|
31
|
-
const { accountNumber, caseNumber, selectedNotificationContacts, selectedOwner, selectedCaseGroupUsers, isCaseOwnerUpdating,
|
|
31
|
+
const { accountNumber, caseNumber, selectedNotificationContacts, selectedOwner, selectedCaseGroupUsers, isCaseOwnerUpdating, hasLoggedInUserConfirmedPhoneNumber, } = useCaseSelector((state) => ({
|
|
32
32
|
accountNumber: state.caseDetails.accountNumberRef,
|
|
33
33
|
caseNumber: state.caseDetails.caseNumber,
|
|
34
34
|
selectedNotificationContacts: state.selectedNotificationContacts,
|
|
35
35
|
selectedOwner: state.selectedOwner,
|
|
36
36
|
selectedCaseGroupUsers: state.selectedCaseGroupUsers,
|
|
37
37
|
isCaseOwnerUpdating: state.isCaseOwnerUpdating,
|
|
38
|
-
caseDetailes: state.caseDetails,
|
|
39
38
|
hasLoggedInUserConfirmedPhoneNumber: state.hasLoggedInUserConfirmedPhoneNumber,
|
|
40
39
|
}), isEqual);
|
|
41
40
|
const { routeState: { isNextBtnClickedToShowValidationError }, } = useContext(RouteContext);
|
|
@@ -52,60 +51,6 @@ function OwnerSelector(props) {
|
|
|
52
51
|
!isEmpty(pvalue.ssoUsername) &&
|
|
53
52
|
value.ssoUsername !== pvalue.ssoUsername;
|
|
54
53
|
const canEditCase = useCanEditCase();
|
|
55
|
-
// set owner on creating a case
|
|
56
|
-
const setContactPhoneNumber = (sso) => __awaiter(this, void 0, void 0, function* () {
|
|
57
|
-
// logged in user and case owner are the same
|
|
58
|
-
if (sso === loggedInUser.data.ssoUsername) {
|
|
59
|
-
if (loggedInUser.data.supportPhoneAreaCodePrefixLineNumber) {
|
|
60
|
-
setCaseDetails(caseDispatch, {
|
|
61
|
-
phoneAreaCodePrefixLineNumber: loggedInUser.data.supportPhoneAreaCodePrefixLineNumber,
|
|
62
|
-
phoneCountryCode: loggedInUser.data.supportPhoneCountryCode,
|
|
63
|
-
suppliedPhoneNumberVerified: isEqual(hasLoggedInUserConfirmedPhoneNumber, 'True') || //hasLoggedInUserConfirmedPhoneNumber: global verification phone state for contactSSOName === loggedInUser.data.ssoUsername
|
|
64
|
-
isEqual(hasLoggedInUserConfirmedPhoneNumber, 'Deferred')
|
|
65
|
-
? hasLoggedInUserConfirmedPhoneNumber
|
|
66
|
-
: 'False',
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
const phoneLine = getPhoneObj(loggedInUser.data.phone).phoneLine || '';
|
|
71
|
-
const countryCode = getPhoneObj(loggedInUser.data.phone).countryCode;
|
|
72
|
-
setCaseDetails(caseDispatch, {
|
|
73
|
-
phoneAreaCodePrefixLineNumber: phoneLine,
|
|
74
|
-
phoneCountryCode: countryCode,
|
|
75
|
-
suppliedPhoneNumberVerified: isEqual(hasLoggedInUserConfirmedPhoneNumber, 'True') ||
|
|
76
|
-
isEqual(hasLoggedInUserConfirmedPhoneNumber, 'Deferred')
|
|
77
|
-
? hasLoggedInUserConfirmedPhoneNumber
|
|
78
|
-
: 'False',
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
try {
|
|
84
|
-
const selectedContact = yield contacts.getSFDCContactBySso(sso);
|
|
85
|
-
if (selectedContact.supportPhoneAreaCodePrefixLineNumber) {
|
|
86
|
-
setCaseDetails(caseDispatch, {
|
|
87
|
-
phoneAreaCodePrefixLineNumber: selectedContact.supportPhoneAreaCodePrefixLineNumber,
|
|
88
|
-
phoneCountryCode: selectedContact.supportPhoneCountryCode,
|
|
89
|
-
suppliedPhoneNumberVerified: 'Deferred',
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
setCaseDetails(caseDispatch, {
|
|
94
|
-
phoneAreaCodePrefixLineNumber: getPhoneObj(selectedContact.phone).phoneLine || '',
|
|
95
|
-
phoneCountryCode: getPhoneObj(selectedContact.phone).countryCode || '',
|
|
96
|
-
suppliedPhoneNumberVerified: 'Deferred',
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
catch (e) {
|
|
101
|
-
setCaseDetails(caseDispatch, {
|
|
102
|
-
phoneAreaCodePrefixLineNumber: '',
|
|
103
|
-
phoneCountryCode: '',
|
|
104
|
-
suppliedPhoneNumberVerified: 'False',
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
54
|
const updatePhone = (phoneSetting) => __awaiter(this, void 0, void 0, function* () {
|
|
110
55
|
yield updateCaseDetails(caseDispatch, caseNumber, phoneSetting);
|
|
111
56
|
setCaseDetails(caseDispatch, Object.assign({}, phoneSetting));
|
|
@@ -190,7 +135,6 @@ function OwnerSelector(props) {
|
|
|
190
135
|
setLocalOwnerChange(true);
|
|
191
136
|
!isEmpty(selectedContact) &&
|
|
192
137
|
setNotifiedUser(dispatch, filter(notificationContacts, (c) => c.ssoUsername !== selectedContact.ssoUsername));
|
|
193
|
-
setContactPhoneNumber(selectedContact.ssoUsername);
|
|
194
138
|
});
|
|
195
139
|
/** Reset owner when selected account number changes */
|
|
196
140
|
useEffect(() => {
|
|
@@ -286,26 +230,6 @@ function OwnerSelector(props) {
|
|
|
286
230
|
users.length > 0 && setUsersWithGroupAccess(sortHydraContacts(users));
|
|
287
231
|
}
|
|
288
232
|
}, [selectedCaseGroupUsers, caseNumber]);
|
|
289
|
-
// to populate the phone number with the logged in user data
|
|
290
|
-
useEffect(() => {
|
|
291
|
-
if (caseDetailes.contactSSOName === loggedInUser.data.ssoUsername) {
|
|
292
|
-
if (loggedInUser.data.supportPhoneAreaCodePrefixLineNumber) {
|
|
293
|
-
setCaseDetails(caseDispatch, {
|
|
294
|
-
phoneAreaCodePrefixLineNumber: loggedInUser.data.supportPhoneAreaCodePrefixLineNumber,
|
|
295
|
-
phoneCountryCode: loggedInUser.data.supportPhoneCountryCode,
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
else {
|
|
299
|
-
const phoneLine = getPhoneObj(loggedInUser.data.phone).phoneLine || '';
|
|
300
|
-
const countryCode = getPhoneObj(loggedInUser.data.phone).countryCode;
|
|
301
|
-
setCaseDetails(caseDispatch, {
|
|
302
|
-
phoneAreaCodePrefixLineNumber: phoneLine,
|
|
303
|
-
phoneCountryCode: countryCode,
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
308
|
-
}, []);
|
|
309
233
|
const showUsersWithSelectedGroupAccess = caseNumber &&
|
|
310
234
|
(selectedCaseGroupUsers.isFetching ||
|
|
311
235
|
(!selectedCaseGroupUsers.isFetching && (selectedCaseGroupUsers.data || []).length > 0));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseComments.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AA8BvE,OAAO,
|
|
1
|
+
{"version":3,"file":"CaseComments.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AA8BvE,OAAO,KAAkD,MAAM,OAAO,CAAC;AAQvE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,YAAY,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAClF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,kBAAkB,EAAE,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAChH;AAED,QAAA,MAAM,YAAY,4EA4UhB,CAAC;AAEH,eAAe,YAAY,CAAC"}
|
|
@@ -22,7 +22,7 @@ import { AbilityContext, CaseDetailsFields, CaseDiscussionFields, resourceAction
|
|
|
22
22
|
import { formatDateTime, linkifyLinks } from '@rh-support/utils';
|
|
23
23
|
import DOMPurify from 'dompurify';
|
|
24
24
|
import isEmpty from 'lodash/isEmpty';
|
|
25
|
-
import React, { useContext, useState } from 'react';
|
|
25
|
+
import React, { useContext, useEffect, useRef, useState } from 'react';
|
|
26
26
|
import { Trans, useTranslation } from 'react-i18next';
|
|
27
27
|
import { DiscussionType } from '../../../../reducers/CaseDiscussionTabReducer';
|
|
28
28
|
import { PDFContext } from '../../PDFContainer';
|
|
@@ -31,6 +31,7 @@ import { JumpAndCopyLink } from './JumpAndCopyLink';
|
|
|
31
31
|
const CaseComments = React.forwardRef((props, ref) => {
|
|
32
32
|
var _a;
|
|
33
33
|
const { caseNumber } = props;
|
|
34
|
+
const markdownRef = useRef(null);
|
|
34
35
|
const { t } = useTranslation();
|
|
35
36
|
const ability = useContext(AbilityContext);
|
|
36
37
|
const canSeePrivateComments = ability.can(resourceActions.PATCH, resources.CASE_COMMENTS, CaseDiscussionFields.VIEW_PRIVATE_COMMENT);
|
|
@@ -186,6 +187,16 @@ const CaseComments = React.forwardRef((props, ref) => {
|
|
|
186
187
|
return (React.createElement("pre", { className: "push-top-narrow comment-plaintext reset-pre-text", dangerouslySetInnerHTML: commentText(parseComment), style: { fontFamily: isExportingPDF ? 'DejaVu Sans' : '' } }));
|
|
187
188
|
}
|
|
188
189
|
};
|
|
190
|
+
useEffect(() => {
|
|
191
|
+
if ((markdownRef === null || markdownRef === void 0 ? void 0 : markdownRef.current) && isExportingPDF) {
|
|
192
|
+
const preTags = markdownRef.current.querySelectorAll('pre');
|
|
193
|
+
preTags.forEach((pre) => {
|
|
194
|
+
pre.style.wordWrap = 'break-word';
|
|
195
|
+
pre.style.overflowWrap = 'break-word';
|
|
196
|
+
pre.style.fontFamily = 'DejaVu Sans';
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
}, [props.comment, isExportingPDF]);
|
|
189
200
|
if (!((_a = props.comment) === null || _a === void 0 ? void 0 : _a.isPublic) && !canSeePrivateComments)
|
|
190
201
|
return React.createElement(React.Fragment, null);
|
|
191
202
|
return (React.createElement("section", { ref: ref, id: props.comment.id, className: `prevent-split ${computePrivateComment(props.comment)} support-comment ${computeDiscussionCardCalss(props.comment)} ${ref ? 'selected-case-comment' : ''}` },
|
|
@@ -200,7 +211,7 @@ const CaseComments = React.forwardRef((props, ref) => {
|
|
|
200
211
|
React.createElement(Trans, null, "Partner"),
|
|
201
212
|
")"))),
|
|
202
213
|
React.createElement("time", null, formatDateTime(props.comment.lastModifiedDate))),
|
|
203
|
-
React.createElement("div", { className: "comment-body", onClick: onCommentAreaClick }, computeCommentText(props.comment)),
|
|
214
|
+
React.createElement("div", { className: "comment-body", onClick: onCommentAreaClick, ref: markdownRef }, computeCommentText(props.comment)),
|
|
204
215
|
React.createElement("footer", null,
|
|
205
216
|
React.createElement("span", { className: "comment-note" }, computeCommentFooter(props.comment)),
|
|
206
217
|
canSeeFeedbackButtons && commentFeedbackButtons(props.comment, props.feedback),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumber.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAkB/D,wBAAgB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumber.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAkB/D,wBAAgB,kBAAkB,sBA6UjC"}
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { contacts } from '@cee-eng/hydrajs';
|
|
1
11
|
import { ValidatedOptions } from '@patternfly/react-core';
|
|
2
12
|
import { getPhoneObj, PhoneInput } from '@rh-support/components';
|
|
3
13
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
4
|
-
import { ability, CaseListFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
5
14
|
import isEmpty from 'lodash/isEmpty';
|
|
6
15
|
import isEqual from 'lodash/isEqual';
|
|
7
16
|
import isUndefined from 'lodash/isUndefined';
|
|
@@ -13,31 +22,57 @@ import { RouteContext } from '../../context/RouteContext';
|
|
|
13
22
|
import { PHONE_LIMIT } from '../../reducers/CaseConstNTypes';
|
|
14
23
|
import { setCaseDetails } from '../../reducers/CaseReducer';
|
|
15
24
|
import { PDFContext } from '../CaseEditView/PDFContainer';
|
|
16
|
-
import { trimAndReplacePlus } from '../shared/utils';
|
|
25
|
+
import { removeAllChars, trimAndReplacePlus } from '../shared/utils';
|
|
17
26
|
import { ContactPhoneNumberPopOver } from './ContactPhoneNumberPopOver';
|
|
18
27
|
import MandatoryPhonePopOver from './MandatoryPhonePopOver';
|
|
19
28
|
export function ContactPhoneNumber() {
|
|
20
|
-
const { suppliedPhoneNumberVerified, phoneCountryCode = '', phoneAreaCodePrefixLineNumber = '',
|
|
29
|
+
const { suppliedPhoneNumberVerified, phoneCountryCode = '', phoneAreaCodePrefixLineNumber = '', hasLoggedInUserConfirmedPhoneNumber, contactSSOName, } = useCaseSelector((state) => ({
|
|
21
30
|
suppliedPhoneNumberVerified: state.caseDetails.suppliedPhoneNumberVerified,
|
|
22
31
|
phoneCountryCode: state.caseDetails.phoneCountryCode,
|
|
23
32
|
phoneAreaCodePrefixLineNumber: state.caseDetails.phoneAreaCodePrefixLineNumber,
|
|
24
|
-
|
|
33
|
+
hasLoggedInUserConfirmedPhoneNumber: state.hasLoggedInUserConfirmedPhoneNumber,
|
|
34
|
+
contactSSOName: state.caseDetails.contactSSOName,
|
|
25
35
|
}), isEqual);
|
|
26
36
|
const { routeState: { isNextBtnClickedToShowValidationError }, } = useContext(RouteContext);
|
|
27
37
|
const { globalMetadataState: { loggedInUser }, } = useContext(GlobalMetadataStateContext);
|
|
28
38
|
const [invalid, setInvalid] = useState(false);
|
|
29
|
-
const [
|
|
39
|
+
const [shouldNotSetCountryCode, setShouldNotSetCountryCode] = useState(false);
|
|
40
|
+
const [portalPhone, setPortalPhone] = useState('');
|
|
41
|
+
const [localFullPhone, setLocalFullPhone] = useState('');
|
|
42
|
+
const [isSettingLocalPhone, setIsSettingLocalPhone] = useState(false);
|
|
43
|
+
const [isFetchingSso, setIsFetchingSso] = useState(false);
|
|
30
44
|
const { isExportingPDF } = useContext(PDFContext);
|
|
31
|
-
const canChangeAccountInfo = ability.can(resourceActions.PATCH, resources.CASE_CREATE, CaseListFields.ACCOUNT_AND_OWNER);
|
|
32
45
|
const getPhone = () => phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber;
|
|
33
46
|
const caseDispatch = useCaseDispatch();
|
|
34
47
|
const { t } = useTranslation();
|
|
48
|
+
const checkingPlusInLocalFullPhone = (_localFullPhone) => {
|
|
49
|
+
if (isEqual(_localFullPhone.trim(), '+')) {
|
|
50
|
+
return '';
|
|
51
|
+
}
|
|
52
|
+
else if (!isEmpty(_localFullPhone.trim()) && !_localFullPhone.trim().startsWith('+')) {
|
|
53
|
+
return '+' + _localFullPhone.replace(' ', '');
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
return _localFullPhone;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
35
59
|
const onPhoneChange = (fullPhone) => {
|
|
36
|
-
setLocalFullPhone(fullPhone);
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
60
|
+
setLocalFullPhone(checkingPlusInLocalFullPhone(fullPhone));
|
|
61
|
+
if (!shouldNotSetCountryCode) {
|
|
62
|
+
setCaseDetails(caseDispatch, {
|
|
63
|
+
phoneAreaCodePrefixLineNumber: getPhoneObj(fullPhone).phoneLine,
|
|
64
|
+
phoneCountryCode: getPhoneObj(fullPhone).countryCode,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
if (!isEmpty(fullPhone) && !isEqual(removeAllChars(portalPhone), removeAllChars(fullPhone))) {
|
|
69
|
+
setShouldNotSetCountryCode(false);
|
|
70
|
+
}
|
|
71
|
+
setCaseDetails(caseDispatch, {
|
|
72
|
+
phoneAreaCodePrefixLineNumber: checkingPlusInLocalFullPhone(fullPhone),
|
|
73
|
+
phoneCountryCode: '',
|
|
74
|
+
});
|
|
75
|
+
}
|
|
41
76
|
};
|
|
42
77
|
const onCountryCodeChange = (phoneCountryCode) => {
|
|
43
78
|
setCaseDetails(caseDispatch, { phoneCountryCode });
|
|
@@ -52,7 +87,6 @@ export function ContactPhoneNumber() {
|
|
|
52
87
|
isEmpty(phoneAreaCodePrefixLineNumber === null || phoneAreaCodePrefixLineNumber === void 0 ? void 0 : phoneAreaCodePrefixLineNumber.replace(phoneCountryCode, ''));
|
|
53
88
|
const isPhoneNumberValid = !isEmpty(phoneAreaCodePrefixLineNumber) &&
|
|
54
89
|
!isNextBtnClickedToShowValidationError &&
|
|
55
|
-
isExistingPhoneNumber &&
|
|
56
90
|
!isEmpty(trimAndReplacePlus(phoneCountryCode)) &&
|
|
57
91
|
(isEqual(suppliedPhoneNumberVerified, 'False') || isUndefined(suppliedPhoneNumberVerified))
|
|
58
92
|
? ValidatedOptions.warning
|
|
@@ -66,47 +100,161 @@ export function ContactPhoneNumber() {
|
|
|
66
100
|
: invalid
|
|
67
101
|
? ValidatedOptions.error
|
|
68
102
|
: ValidatedOptions.default;
|
|
103
|
+
// Regular expression pattern to match hyphens and round brackets in phone
|
|
104
|
+
const pattern = /[-()]/g;
|
|
105
|
+
// This useEffect initialize phone number inputbox
|
|
106
|
+
// - User open case for first time for herself/himself -> show portal phone number
|
|
107
|
+
// - User open case for NOT first time for herself/himself -> show phone number that we have on user contact in SF
|
|
69
108
|
useEffect(() => {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
109
|
+
const getPhoneInfo = () => __awaiter(this, void 0, void 0, function* () {
|
|
110
|
+
if (isEmpty(loggedInUser.data.phone) &&
|
|
111
|
+
isEmpty(loggedInUser.data.supportPhoneAreaCodePrefixLineNumber) &&
|
|
112
|
+
isEmpty(loggedInUser.data.supportPhoneCountryCode))
|
|
113
|
+
setLocalFullPhone('');
|
|
114
|
+
setIsSettingLocalPhone(true);
|
|
115
|
+
const initContactPhoneNumber = () => __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
let _phoneAreaCodePrefixLineNumber;
|
|
117
|
+
let _phoneCountryCode;
|
|
118
|
+
let _suppliedPhoneNumberVerified;
|
|
119
|
+
// logged in user and case owner are the same
|
|
120
|
+
if (contactSSOName === loggedInUser.data.ssoUsername) {
|
|
121
|
+
if (loggedInUser.data.supportPhoneAreaCodePrefixLineNumber) {
|
|
122
|
+
// User has opened a case before and has phone and area code in her/his contact on SF
|
|
123
|
+
_phoneAreaCodePrefixLineNumber = loggedInUser.data.supportPhoneAreaCodePrefixLineNumber;
|
|
124
|
+
_phoneCountryCode = loggedInUser.data.supportPhoneCountryCode;
|
|
125
|
+
_suppliedPhoneNumberVerified =
|
|
126
|
+
isEqual(hasLoggedInUserConfirmedPhoneNumber, 'True') ||
|
|
127
|
+
isEqual(hasLoggedInUserConfirmedPhoneNumber, 'Deferred')
|
|
128
|
+
? hasLoggedInUserConfirmedPhoneNumber
|
|
129
|
+
: 'False';
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
// User is openning a case for the first time
|
|
133
|
+
const phoneLength = trimAndReplacePlus(loggedInUser.data.phone).replace(pattern, '').length;
|
|
134
|
+
// For first time user whose phone is fetched from portal without country code
|
|
135
|
+
// For phone length less or equal to 10 country code shouldn't be fetched to avoid faulty phone population
|
|
136
|
+
if (phoneLength > 10) {
|
|
137
|
+
const phoneLine = getPhoneObj(loggedInUser.data.phone).phoneLine || '';
|
|
138
|
+
const countryCode = getPhoneObj(loggedInUser.data.phone).countryCode;
|
|
139
|
+
_phoneAreaCodePrefixLineNumber = phoneLine;
|
|
140
|
+
_phoneCountryCode = countryCode;
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
_phoneAreaCodePrefixLineNumber = loggedInUser.data.phone;
|
|
144
|
+
_phoneCountryCode = '';
|
|
145
|
+
setShouldNotSetCountryCode(true);
|
|
146
|
+
setPortalPhone(loggedInUser.data.phone);
|
|
147
|
+
}
|
|
148
|
+
_suppliedPhoneNumberVerified =
|
|
149
|
+
isEqual(hasLoggedInUserConfirmedPhoneNumber, 'True') ||
|
|
150
|
+
isEqual(hasLoggedInUserConfirmedPhoneNumber, 'Deferred')
|
|
151
|
+
? hasLoggedInUserConfirmedPhoneNumber
|
|
152
|
+
: 'False';
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
// user is openning case for others (use is partner or red hatter)
|
|
157
|
+
try {
|
|
158
|
+
if (!contactSSOName)
|
|
159
|
+
return;
|
|
160
|
+
setIsFetchingSso(true);
|
|
161
|
+
const selectedContact = yield contacts.getSFDCContactBySso(contactSSOName);
|
|
162
|
+
setIsFetchingSso(false);
|
|
163
|
+
if (selectedContact.supportPhoneAreaCodePrefixLineNumber) {
|
|
164
|
+
_phoneAreaCodePrefixLineNumber = selectedContact.supportPhoneAreaCodePrefixLineNumber;
|
|
165
|
+
_phoneCountryCode = selectedContact.supportPhoneCountryCode;
|
|
166
|
+
_suppliedPhoneNumberVerified = 'Deferred';
|
|
167
|
+
}
|
|
168
|
+
else {
|
|
169
|
+
const phoneLength = trimAndReplacePlus(selectedContact.phone).replace(pattern, '').length;
|
|
170
|
+
if (phoneLength > 10) {
|
|
171
|
+
_phoneAreaCodePrefixLineNumber = getPhoneObj(selectedContact.phone).phoneLine || '';
|
|
172
|
+
_phoneCountryCode = getPhoneObj(selectedContact.phone).countryCode || '';
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
_phoneAreaCodePrefixLineNumber = selectedContact.phone;
|
|
176
|
+
_phoneCountryCode = '';
|
|
177
|
+
setShouldNotSetCountryCode(true);
|
|
178
|
+
setPortalPhone(selectedContact.phone);
|
|
179
|
+
}
|
|
180
|
+
_suppliedPhoneNumberVerified = 'Deferred';
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
catch (e) {
|
|
184
|
+
_phoneAreaCodePrefixLineNumber = '';
|
|
185
|
+
_phoneCountryCode = '';
|
|
186
|
+
_suppliedPhoneNumberVerified = 'False';
|
|
187
|
+
setIsFetchingSso(false);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
74
190
|
setCaseDetails(caseDispatch, {
|
|
75
|
-
phoneAreaCodePrefixLineNumber:
|
|
76
|
-
phoneCountryCode:
|
|
191
|
+
phoneAreaCodePrefixLineNumber: _phoneAreaCodePrefixLineNumber,
|
|
192
|
+
phoneCountryCode: _phoneCountryCode,
|
|
193
|
+
suppliedPhoneNumberVerified: _suppliedPhoneNumberVerified,
|
|
77
194
|
});
|
|
195
|
+
let _localFullPhone = _phoneCountryCode + ' ' + _phoneAreaCodePrefixLineNumber;
|
|
196
|
+
setLocalFullPhone(checkingPlusInLocalFullPhone(_localFullPhone));
|
|
197
|
+
setIsSettingLocalPhone(false);
|
|
198
|
+
});
|
|
199
|
+
// if phone not initialized with portal and user contact value, initialize it else populate phone inputbox
|
|
200
|
+
if (isEmpty(phoneAreaCodePrefixLineNumber) && isEmpty(phoneCountryCode)) {
|
|
201
|
+
initContactPhoneNumber();
|
|
78
202
|
}
|
|
79
203
|
else {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
204
|
+
let phoneLength;
|
|
205
|
+
let portalPhone;
|
|
206
|
+
let supportPhone;
|
|
207
|
+
setIsSettingLocalPhone(true);
|
|
208
|
+
const getSelectedContactPhoneInfo = () => __awaiter(this, void 0, void 0, function* () {
|
|
209
|
+
try {
|
|
210
|
+
if (!contactSSOName)
|
|
211
|
+
return;
|
|
212
|
+
const selectedContact = yield contacts.getSFDCContactBySso(contactSSOName);
|
|
213
|
+
if (isEmpty(selectedContact.supportPhoneAreaCodePrefixLineNumber) &&
|
|
214
|
+
!isEmpty(selectedContact.phone)) {
|
|
215
|
+
portalPhone = selectedContact.phone;
|
|
216
|
+
phoneLength = trimAndReplacePlus(portalPhone).replace(pattern, '').length;
|
|
217
|
+
supportPhone = selectedContact.supportPhoneAreaCodePrefixLineNumber;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
catch (e) {
|
|
221
|
+
portalPhone = '';
|
|
222
|
+
supportPhone = '';
|
|
223
|
+
phoneLength = 0;
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
// logged in user and case owner are the same
|
|
227
|
+
if (contactSSOName === loggedInUser.data.ssoUsername) {
|
|
228
|
+
if (isEmpty(loggedInUser.data.supportPhoneAreaCodePrefixLineNumber) &&
|
|
229
|
+
!isEmpty(loggedInUser.data.phone)) {
|
|
230
|
+
portalPhone = loggedInUser.data.phone;
|
|
231
|
+
phoneLength = trimAndReplacePlus(portalPhone).replace(pattern, '').length;
|
|
232
|
+
supportPhone = loggedInUser.data.supportPhoneAreaCodePrefixLineNumber;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
else {
|
|
236
|
+
// user is openning case for others (use is partner or red hatter)
|
|
237
|
+
yield getSelectedContactPhoneInfo();
|
|
89
238
|
}
|
|
239
|
+
if ((isUndefined(supportPhone) || isEmpty(supportPhone)) &&
|
|
240
|
+
isEqual(removeAllChars(portalPhone), removeAllChars(phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber)) &&
|
|
241
|
+
phoneLength <= 10) {
|
|
242
|
+
setShouldNotSetCountryCode(true);
|
|
243
|
+
setPortalPhone(portalPhone);
|
|
244
|
+
}
|
|
245
|
+
setLocalFullPhone(checkingPlusInLocalFullPhone(phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber));
|
|
246
|
+
setIsSettingLocalPhone(false);
|
|
90
247
|
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
94
|
-
}, [phoneAreaCodePrefixLineNumber, phoneCountryCode, loggedInUser.data.phone]);
|
|
95
|
-
useEffect(() => {
|
|
96
|
-
if (isEqual(localFullPhone.trim(), '+')) {
|
|
97
|
-
setLocalFullPhone('');
|
|
98
|
-
}
|
|
99
|
-
else if (!isEmpty(localFullPhone) && !localFullPhone.startsWith('+')) {
|
|
100
|
-
setLocalFullPhone('+' + localFullPhone.replace(' ', ''));
|
|
101
|
-
}
|
|
248
|
+
});
|
|
249
|
+
getPhoneInfo();
|
|
102
250
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
103
|
-
}, [
|
|
251
|
+
}, [contactSSOName]);
|
|
104
252
|
return (React.createElement("div", { className: "form-group", style: { minWidth: '200px' } },
|
|
105
253
|
React.createElement("label", null,
|
|
106
254
|
React.createElement(Trans, null, "Case owner's phone number"),
|
|
107
255
|
React.createElement("span", { className: `form-required ${isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-hidden": true }, "*"),
|
|
108
256
|
ContactPhoneNumberPopOver()),
|
|
109
|
-
React.createElement(PhoneInput, { phoneValue: localFullPhone, onPhoneValueChange: onPhoneChange, onCountryCodeChange: onCountryCodeChange, validations: isPhoneNumberValid, invalid: invalid, setInvalid: setInvalid }),
|
|
257
|
+
React.createElement(PhoneInput, { phoneValue: localFullPhone, countryCode: phoneCountryCode, onPhoneValueChange: onPhoneChange, onCountryCodeChange: onCountryCodeChange, validations: isPhoneNumberValid, invalid: invalid, setInvalid: setInvalid, isLoading: isFetchingSso || isSettingLocalPhone, shouldNotSetCountryCode: shouldNotSetCountryCode }),
|
|
110
258
|
React.createElement(MandatoryPhonePopOver, null),
|
|
111
259
|
!invalid &&
|
|
112
260
|
getPhone().length < PHONE_LIMIT &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactPhoneNumberAlert.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumberAlert.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContactPhoneNumberAlert.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumberAlert.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAQrD,wBAAgB,uBAAuB,sBAqFtC"}
|
|
@@ -12,45 +12,42 @@ import { trimAndReplacePlus } from '../shared/utils';
|
|
|
12
12
|
export function ContactPhoneNumberAlert() {
|
|
13
13
|
const { t } = useTranslation();
|
|
14
14
|
const caseDispatch = useCaseDispatch();
|
|
15
|
-
const {
|
|
16
|
-
caseDetails: state.caseDetails,
|
|
15
|
+
const { phoneCountryCode, phoneAreaCodePrefixLineNumber, contactSSOName, suppliedPhoneNumberVerified } = useCaseSelector((state) => ({
|
|
17
16
|
phoneCountryCode: state.caseDetails.phoneCountryCode,
|
|
18
17
|
phoneAreaCodePrefixLineNumber: state.caseDetails.phoneAreaCodePrefixLineNumber,
|
|
19
|
-
isExistingPhoneNumber: state.isExistingPhoneNumber,
|
|
20
18
|
contactSSOName: state.caseDetails.contactSSOName,
|
|
19
|
+
suppliedPhoneNumberVerified: state.caseDetails.suppliedPhoneNumberVerified,
|
|
21
20
|
}), isEqual);
|
|
22
21
|
const { globalMetadataState: { loggedInUser }, } = useContext(GlobalMetadataStateContext);
|
|
23
22
|
const { isExportingPDF } = useContext(PDFContext);
|
|
24
|
-
const
|
|
25
|
-
setCaseDetails(caseDispatch,
|
|
23
|
+
const onSuppliedPhoneNumberVerifiedChange = (suppliedPhoneNumberVerified) => {
|
|
24
|
+
setCaseDetails(caseDispatch, { suppliedPhoneNumberVerified });
|
|
26
25
|
if (contactSSOName === loggedInUser.data.ssoUsername) {
|
|
27
26
|
// edge case: when loggedInUser === contactSSOName while opening a case confirms or deffers the phone
|
|
28
27
|
// we need to save the verification state globallly so that we don't show the phone review banner again
|
|
29
28
|
// to the user where he changes it to another owner and then again assigns himself as the case owner
|
|
30
29
|
setCaseState(caseDispatch, {
|
|
31
|
-
hasLoggedInUserConfirmedPhoneNumber:
|
|
30
|
+
hasLoggedInUserConfirmedPhoneNumber: suppliedPhoneNumberVerified,
|
|
32
31
|
});
|
|
33
32
|
}
|
|
34
33
|
};
|
|
35
34
|
const isPhoneNumberEmpty = isEmpty(trimAndReplacePlus(phoneCountryCode)) &&
|
|
36
35
|
isEmpty(phoneAreaCodePrefixLineNumber === null || phoneAreaCodePrefixLineNumber === void 0 ? void 0 : phoneAreaCodePrefixLineNumber.replace(phoneCountryCode, ''));
|
|
37
36
|
useEffect(() => {
|
|
38
|
-
if (isPhoneNumberEmpty && !
|
|
39
|
-
|
|
37
|
+
if (isPhoneNumberEmpty && !suppliedPhoneNumberVerified) {
|
|
38
|
+
onSuppliedPhoneNumberVerifiedChange(undefined);
|
|
40
39
|
}
|
|
41
40
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
42
41
|
}, []);
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
!isEmpty(trimAndReplacePlus(phoneCountryCode)) &&
|
|
47
|
-
isExistingPhoneNumber;
|
|
42
|
+
const phoneAndCountryHaveValues = !isEmpty(phoneAreaCodePrefixLineNumber) && !isEmpty(trimAndReplacePlus(phoneCountryCode));
|
|
43
|
+
const phoneNotVerifiedOrVerificationIsUndefined = isEqual(suppliedPhoneNumberVerified, 'False') || isUndefined(suppliedPhoneNumberVerified);
|
|
44
|
+
const showAlert = phoneNotVerifiedOrVerificationIsUndefined && phoneAndCountryHaveValues;
|
|
48
45
|
if (!showAlert)
|
|
49
46
|
return React.createElement(React.Fragment, null);
|
|
50
47
|
return (React.createElement(Alert, { className: `form-group ${isExportingPDF ? 'hide-in-pdf' : ''} phone-review-banner`, isInline: true, variant: AlertVariant.warning, title: t('Review phone number'), actionLinks: [
|
|
51
|
-
React.createElement(Button, { variant: ButtonVariant.link, isInline: true, onClick: () =>
|
|
48
|
+
React.createElement(Button, { variant: ButtonVariant.link, isInline: true, onClick: () => onSuppliedPhoneNumberVerifiedChange('True'), "data-tracking-id": "case-contact-phone-number-confirm", key: "case-contact-phone-number-confirm" },
|
|
52
49
|
React.createElement(Trans, null, "Confirm phone number")),
|
|
53
|
-
React.createElement(Button, { variant: ButtonVariant.link, isInline: true, onClick: () =>
|
|
50
|
+
React.createElement(Button, { variant: ButtonVariant.link, isInline: true, onClick: () => onSuppliedPhoneNumberVerifiedChange('Deferred'), "data-tracking-id": "case-contact-phone-number-dont-know", key: "case-contact-phone-number-dont-know" },
|
|
54
51
|
React.createElement(Trans, null, "I don't know")),
|
|
55
52
|
] },
|
|
56
53
|
React.createElement(Trans, null, "Please confirm the phone number we have on file is correct.")));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Severity.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/Severity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAMvE,OAAO,EAAE,gBAAgB,EAAW,MAAM,0BAA0B,CAAC;AAerE,OAAO,KAA0C,MAAM,OAAO,CAAC;AAW/D,UAAU,MAAO,SAAQ,gBAAgB;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAChE,oBAAoB,EAAE,OAAO,CAAC;CACjC;AASD,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;CACxD;AAED,iBAAS,QAAQ,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Severity.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/Severity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAMvE,OAAO,EAAE,gBAAgB,EAAW,MAAM,0BAA0B,CAAC;AAerE,OAAO,KAA0C,MAAM,OAAO,CAAC;AAW/D,UAAU,MAAO,SAAQ,gBAAgB;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAChE,oBAAoB,EAAE,OAAO,CAAC;CACjC;AASD,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;CACxD;AAED,iBAAS,QAAQ,CAAC,KAAK,EAAE,MAAM,qBA4Q9B;kBA5QQ,QAAQ;;;AA8QjB,eAAe,QAAQ,CAAC"}
|
|
@@ -13,7 +13,7 @@ import map from 'lodash/map';
|
|
|
13
13
|
import React, { useContext, useEffect, useState } from 'react';
|
|
14
14
|
import { Trans, useTranslation } from 'react-i18next';
|
|
15
15
|
import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
|
|
16
|
-
import {
|
|
16
|
+
import { getNewSeverityStringDef, getSeverityDescription } from '../../reducers/CaseHelpers';
|
|
17
17
|
import { setCaseDetails } from '../../reducers/CaseReducer';
|
|
18
18
|
import { PDFContext } from '../CaseEditView/PDFContainer';
|
|
19
19
|
import { CaseValuesToWatch } from '../shared/Constants';
|
|
@@ -41,7 +41,7 @@ function Severity(props) {
|
|
|
41
41
|
const { isExportingPDF } = useContext(PDFContext);
|
|
42
42
|
const [isSeverityInValid, setIsSeverityInValid] = useState(false);
|
|
43
43
|
const [seviritiesOptions, setSeveritiesOptions] = useState([]);
|
|
44
|
-
const [doNotShowIRT, setDoNotShowIRT] = useState(false);
|
|
44
|
+
// const [doNotShowIRT, setDoNotShowIRT] = useState<boolean>(false);
|
|
45
45
|
const [openUpdateSeverityModal, setOpenUpdateSeverityModal] = useState(false);
|
|
46
46
|
const caseDispatch = useCaseDispatch();
|
|
47
47
|
const isOnCaseDetailsPage = !isEmpty(caseNumber);
|
|
@@ -77,30 +77,12 @@ function Severity(props) {
|
|
|
77
77
|
const [localSeverityChange, setLocalSeverityChange] = useState(false);
|
|
78
78
|
const afterLocalChange = () => setLocalSeverityChange(false);
|
|
79
79
|
const valueComparator = (value, pvalue) => value && value.name && pvalue && pvalue.name && value.name !== pvalue.name;
|
|
80
|
-
const getAdditionalInfo = (sla, severity) => {
|
|
81
|
-
if (doNotShowIRT)
|
|
82
|
-
return React.createElement(React.Fragment, null);
|
|
83
|
-
const irt = getIrtForSLAAndSeverity(sla, severity);
|
|
84
|
-
const ort = getOrtForSLAAndSeverity(sla, severity);
|
|
85
|
-
return isEmpty(irt) ? undefined : irt === ort ? (React.createElement(React.Fragment, null,
|
|
86
|
-
React.createElement("strong", null, irt),
|
|
87
|
-
" ",
|
|
88
|
-
React.createElement(Trans, null, "initial and ongoing response time."))) : (React.createElement(React.Fragment, null,
|
|
89
|
-
React.createElement("strong", null, irt),
|
|
90
|
-
" ",
|
|
91
|
-
React.createElement(Trans, null, "initial and"),
|
|
92
|
-
" ",
|
|
93
|
-
React.createElement("strong", null, ort),
|
|
94
|
-
' ',
|
|
95
|
-
React.createElement(Trans, null, "ongoing response time.")));
|
|
96
|
-
};
|
|
97
|
-
const slaLocal = entitlementSla;
|
|
98
80
|
const filteredSeverities = map(allCaseSeverities.data, (s) => {
|
|
99
81
|
const sevItem = {
|
|
100
82
|
name: s,
|
|
101
83
|
disabled: isEmpty(find(seviritiesOptions, (severity) => s === severity)),
|
|
102
84
|
label: `${s} - ${getSeverityDescription(s)}`,
|
|
103
|
-
additionalInfo:
|
|
85
|
+
additionalInfo: getNewSeverityStringDef(s),
|
|
104
86
|
};
|
|
105
87
|
return sevItem;
|
|
106
88
|
});
|
|
@@ -118,7 +100,7 @@ function Severity(props) {
|
|
|
118
100
|
name: severity,
|
|
119
101
|
disabled: false,
|
|
120
102
|
label: `${severity} - ${getSeverityDescription(severity)}`,
|
|
121
|
-
additionalInfo:
|
|
103
|
+
additionalInfo: getNewSeverityStringDef(severity),
|
|
122
104
|
};
|
|
123
105
|
const toggleModal = () => {
|
|
124
106
|
setOpenUpdateSeverityModal((openUpdateSeverityModal) => !openUpdateSeverityModal);
|
|
@@ -133,7 +115,7 @@ function Severity(props) {
|
|
|
133
115
|
return;
|
|
134
116
|
const productObj = find((_b = allProducts === null || allProducts === void 0 ? void 0 : allProducts.data) === null || _b === void 0 ? void 0 : _b.productsResult, (productItem) => productItem.name === product);
|
|
135
117
|
const versionDetail = find(versionsDetails === null || versionsDetails === void 0 ? void 0 : versionsDetails.data, (spec) => spec.name === version);
|
|
136
|
-
setDoNotShowIRT(versionDetail
|
|
118
|
+
// setDoNotShowIRT(versionDetail?.doNotShowIRT!);
|
|
137
119
|
let availableSeverities;
|
|
138
120
|
if ((versionDetail === null || versionDetail === void 0 ? void 0 : versionDetail.severities) && (versionDetail === null || versionDetail === void 0 ? void 0 : versionDetail.severities.length) !== 0) {
|
|
139
121
|
//first check if at version level, do we have any severity limit
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Grid, GridItem } from '@patternfly/react-core';
|
|
2
2
|
import { useGlobalStateContext } from '@rh-support/react-context';
|
|
3
3
|
import { isSpecialSupportOfferingEnabled } from '@rh-support/utils';
|
|
4
4
|
import isEqual from 'lodash/isEqual';
|
|
@@ -32,10 +32,10 @@ export default function CaseManagement(props) {
|
|
|
32
32
|
const isESSCustomer = isSpecialSupportOfferingEnabled((_a = allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult, selectedProduct);
|
|
33
33
|
return (React.createElement("form", null,
|
|
34
34
|
React.createElement(SupportLevel, null),
|
|
35
|
-
React.createElement(
|
|
36
|
-
React.createElement(
|
|
35
|
+
React.createElement(Grid, { hasGutter: true },
|
|
36
|
+
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v5-u-mb-xs" },
|
|
37
37
|
React.createElement(Severity, { showSeverityInfoIcon: true, onSeverityChange: onSeverityChange })),
|
|
38
|
-
React.createElement(
|
|
38
|
+
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v5-u-mb-xs" },
|
|
39
39
|
React.createElement(ContactPhoneNumber, null))),
|
|
40
40
|
React.createElement(ContactPhoneNumberAlert, null),
|
|
41
41
|
React.createElement(Fts, { inlineEditable: false }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Grid, GridItem } from '@patternfly/react-core';
|
|
2
2
|
import { AlertMessage, AlertType, LoadingIndicator } from '@rh-support/components';
|
|
3
3
|
import { fetchCaseSeverities, fetchCaseTypes, fetchLanguageMetadata, GlobalMetadataDispatchContext, GlobalMetadataStateContext, useGlobalStateContext, } from '@rh-support/react-context';
|
|
4
4
|
import { canManageCase, haventLoadedMetadata, isSpecialSupportOfferingEnabled } from '@rh-support/utils';
|
|
@@ -101,10 +101,10 @@ export default function IdeaInformation() {
|
|
|
101
101
|
React.createElement(Description, { inlineEditable: false, customTitle: t(KtQuestionConstant.ideaIssue) }),
|
|
102
102
|
React.createElement(KtQuestions, { onlyShowKT4: true }),
|
|
103
103
|
React.createElement(SupportLevel, null),
|
|
104
|
-
React.createElement(
|
|
105
|
-
React.createElement(
|
|
104
|
+
React.createElement(Grid, { hasGutter: true },
|
|
105
|
+
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v5-u-mb-xl" },
|
|
106
106
|
React.createElement(Severity, { showSeverityInfoIcon: true, onSeverityChange: onSeverityChange })),
|
|
107
|
-
React.createElement(
|
|
107
|
+
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v5-u-mb-xl" },
|
|
108
108
|
React.createElement(ContactPhoneNumber, null))),
|
|
109
109
|
React.createElement(ContactPhoneNumberAlert, null),
|
|
110
110
|
React.createElement(CaseLanguageSelector, { isManageStep: true }),
|
|
@@ -139,7 +139,7 @@ export default function Recommendations(props) {
|
|
|
139
139
|
React.createElement("div", { className: "recommendation-list pf-v5-u-pt-md", ref: resultRowRef },
|
|
140
140
|
recommendationState.visibleDocs.length !== 0 && (React.createElement(Label, { color: "purple", className: "pf-v5-u-mb-md" },
|
|
141
141
|
React.createElement(WatsonxAiIcon, { fillColor: "#6753ac", className: "pf-v5-u-mr-xs" }),
|
|
142
|
-
"Live search results powered by
|
|
142
|
+
React.createElement(Trans, null, "Live search results powered by OpenShift AI"))),
|
|
143
143
|
React.createElement("ul", { className: "list-flat" }, map(recommendationState.visibleDocs, (doc, i) => {
|
|
144
144
|
var _a, _b;
|
|
145
145
|
return (React.createElement("li", { className: "result", key: doc.id },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Grid, GridItem } from '@patternfly/react-core';
|
|
2
2
|
import { useGlobalStateContext } from '@rh-support/react-context';
|
|
3
3
|
import { AbilityContext, CaseDetailsFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
4
4
|
import { isSpecialSupportOfferingEnabled } from '@rh-support/utils';
|
|
@@ -56,10 +56,10 @@ export default function Review(props) {
|
|
|
56
56
|
React.createElement(KtQuestions, { inlineEditable: true, hideSaveCancel: true }),
|
|
57
57
|
React.createElement(CaseType, { hideIdea: true }),
|
|
58
58
|
React.createElement(SupportLevel, null),
|
|
59
|
-
React.createElement(
|
|
60
|
-
React.createElement(
|
|
59
|
+
React.createElement(Grid, { hasGutter: true },
|
|
60
|
+
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v5-u-mb-xl" },
|
|
61
61
|
React.createElement(Severity, { showSeverityInfoIcon: true, onSeverityChange: onSeverityChange })),
|
|
62
|
-
React.createElement(
|
|
62
|
+
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v5-u-mb-xl" },
|
|
63
63
|
React.createElement(ContactPhoneNumber, null))),
|
|
64
64
|
React.createElement(ContactPhoneNumberAlert, null),
|
|
65
65
|
React.createElement(Fts, { inlineEditable: true, initialIsEditing: isEmpty(contactInfo24x7), hideSaveCancel: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionRestore.d.ts","sourceRoot":"","sources":["../../../../src/components/SessionRestore/SessionRestore.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAkD,MAAM,OAAO,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAQvD,OAAO,EAGH,eAAe,EAElB,MAAM,iCAAiC,CAAC;AAiBzC,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SessionRestore.d.ts","sourceRoot":"","sources":["../../../../src/components/SessionRestore/SessionRestore.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAkD,MAAM,OAAO,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAQvD,OAAO,EAGH,eAAe,EAElB,MAAM,iCAAiC,CAAC;AAiBzC,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,qBAwV3C"}
|
|
@@ -73,6 +73,8 @@ export function SessionRestore(props) {
|
|
|
73
73
|
* 5. The session doesn't have any visited resource the last time.
|
|
74
74
|
*/
|
|
75
75
|
useEffect(() => {
|
|
76
|
+
if (!isEmpty(sessionRestore.activeSessionId))
|
|
77
|
+
return;
|
|
76
78
|
const hasProductVersionOrSummary = (!isEmpty(caseDetails.product) && !isEmpty(caseDetails.version)) || !isEmpty(caseDetails.summary);
|
|
77
79
|
// Need to skip on the first mount as case details is not reset when navigating from case create page to case list and back.
|
|
78
80
|
// we will just skip if we have product, version or summary in the case details context or we don't have session id in the url.
|
|
@@ -84,29 +86,32 @@ export function SessionRestore(props) {
|
|
|
84
86
|
}
|
|
85
87
|
const currentRelevantSession = getRelevantSessionFromSessions(sessionRestoreDispatch, currentUrlSeSessionId, sessionRestore.previousSessions.data, caseDetails);
|
|
86
88
|
const relevantSession = sessionRestore.previousSessions.data[currentRelevantSession];
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
!sessionRestore.sessionCreationStatus.isError
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
else if (!isEmpty(relevantSession)) {
|
|
101
|
-
// Checking if session needs to be restored based on found relevant session
|
|
102
|
-
// Found relevent session is not same as activeSessionId and is not being restored
|
|
103
|
-
if (currentRelevantSession !== sessionRestore.activeSessionId && !isRestoring) {
|
|
104
|
-
restoreSession(relevantSession, true);
|
|
89
|
+
const setSession = () => __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
const needsNewSessionId = hasProductVersionOrSummary && isEmpty(relevantSession);
|
|
91
|
+
if (needsNewSessionId) {
|
|
92
|
+
const userAgent = getUserAgentForCaseMode(isCaseCreate);
|
|
93
|
+
let session = {
|
|
94
|
+
userAgent,
|
|
95
|
+
originatingSystem: userAgent,
|
|
96
|
+
referrerUrl: referrerUrl.substring(0, SESSION_REFERRER_URL_LIMIT),
|
|
97
|
+
isInternal: loggedInUserRights.data.isInternal(),
|
|
98
|
+
};
|
|
99
|
+
if (!sessionRestore.sessionCreationStatus.isCreating && !sessionRestore.sessionCreationStatus.isError) {
|
|
100
|
+
yield createSession(sessionRestoreDispatch, getSessionDetailsFromCase(caseDetails, selectedNotificationContacts), session);
|
|
101
|
+
}
|
|
105
102
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
103
|
+
else if (!isEmpty(relevantSession)) {
|
|
104
|
+
// Checking if session needs to be restored based on found relevant session
|
|
105
|
+
// Found relevent session is not same as activeSessionId and is not being restored
|
|
106
|
+
if (currentRelevantSession !== sessionRestore.activeSessionId && !isRestoring) {
|
|
107
|
+
restoreSession(relevantSession, true);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
else if (isEmpty(relevantSession) && !isEmpty(currentUrlSeSessionId)) {
|
|
111
|
+
updateActiveSessionId(sessionRestoreDispatch, undefined);
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
setSession();
|
|
110
115
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
111
116
|
}, [
|
|
112
117
|
caseDetails.product,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateSeverityModal.d.ts","sourceRoot":"","sources":["../../../../src/components/UpdateSeverityModal/UpdateSeverityModal.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAsD,MAAM,OAAO,CAAC;AAoB3E,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":"AAuBA,OAAO,KAAsD,MAAM,OAAO,CAAC;AAoB3E,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,qBAigBxD"}
|
|
@@ -25,7 +25,7 @@ import { useCaseDetailsPageStateContext } from '../../context/CaseDetailsPageCon
|
|
|
25
25
|
import { useCaseDiscussionTabDispatchContext, useCaseDiscussionTabStateContext, } from '../../context/CaseDiscussionTabContext';
|
|
26
26
|
import { useCaseUpdateErrorMessage } from '../../hooks/useCaseUpdateErrorMessage';
|
|
27
27
|
import { updateDiscussionStateComments } from '../../reducers/CaseDiscussionTabReducer';
|
|
28
|
-
import {
|
|
28
|
+
import { getNewSeverityStringDef, getSeverityDescription } from '../../reducers/CaseHelpers';
|
|
29
29
|
import { caseOverviewReducer, initialCaseViewState, setSeverityUpdating } from '../../reducers/CaseOverviewReducer';
|
|
30
30
|
import { checkForCaseStatusToggleOnAttachOrComment, setCaseDetails, updateCaseDetails, } from '../../reducers/CaseReducer';
|
|
31
31
|
export default function UpdateSeverityModal(props) {
|
|
@@ -40,7 +40,6 @@ export default function UpdateSeverityModal(props) {
|
|
|
40
40
|
const [isUpdateClickedToShowError, setIsUpdateClickedToShowError] = useState(false);
|
|
41
41
|
const [isSeverityInValid, setIsSeverityInValid] = useState(false);
|
|
42
42
|
const [seviritiesOptions, setSeveritiesOptions] = useState([]);
|
|
43
|
-
const [doNotShowIRT, setDoNotShowIRT] = useState(false);
|
|
44
43
|
const { request: postCommentRequest, isFetching: isPostingComment } = useFetch(publicApi.kase.postComment, {
|
|
45
44
|
propgateErrors: true,
|
|
46
45
|
});
|
|
@@ -71,31 +70,13 @@ export default function UpdateSeverityModal(props) {
|
|
|
71
70
|
const [localFtsContact, setLocalFtsContact] = useState(contactInfo24x7 || '');
|
|
72
71
|
const [localFts, setLocalFts] = useState(isUndefined(fts) ? true : fts);
|
|
73
72
|
const isFtsEditable = isFtsEditableOnEditPage(entitlementSla, currentSeverity);
|
|
74
|
-
const getAdditionalInfo = (sla, severity) => {
|
|
75
|
-
if (doNotShowIRT)
|
|
76
|
-
return React.createElement(React.Fragment, null);
|
|
77
|
-
const irt = getIrtForSLAAndSeverity(sla, severity);
|
|
78
|
-
const ort = getOrtForSLAAndSeverity(sla, severity);
|
|
79
|
-
return isEmpty(irt) ? undefined : irt === ort ? (React.createElement(React.Fragment, null,
|
|
80
|
-
React.createElement("strong", null, irt),
|
|
81
|
-
" ",
|
|
82
|
-
React.createElement(Trans, null, "initial and ongoing response time."))) : (React.createElement(React.Fragment, null,
|
|
83
|
-
React.createElement("strong", null, irt),
|
|
84
|
-
" ",
|
|
85
|
-
React.createElement(Trans, null, "initial and"),
|
|
86
|
-
" ",
|
|
87
|
-
React.createElement("strong", null, ort),
|
|
88
|
-
' ',
|
|
89
|
-
React.createElement(Trans, null, "ongoing response time.")));
|
|
90
|
-
};
|
|
91
|
-
const slaLocal = caseDetails.entitlementSla;
|
|
92
73
|
// To set the filtered severities from data
|
|
93
74
|
const filteredSeverities = map(allCaseSeverities.data, (s) => {
|
|
94
75
|
const sevItem = {
|
|
95
76
|
name: s,
|
|
96
77
|
disabled: isEmpty(find(seviritiesOptions, (severity) => s === severity)),
|
|
97
78
|
label: `${s} - ${getSeverityDescription(s)}`,
|
|
98
|
-
additionalInfo:
|
|
79
|
+
additionalInfo: getNewSeverityStringDef(s),
|
|
99
80
|
};
|
|
100
81
|
return sevItem;
|
|
101
82
|
});
|
|
@@ -106,7 +87,7 @@ export default function UpdateSeverityModal(props) {
|
|
|
106
87
|
name: currentSeverity,
|
|
107
88
|
disabled: false,
|
|
108
89
|
label: `${currentSeverity} - ${getSeverityDescription(currentSeverity)}`,
|
|
109
|
-
additionalInfo:
|
|
90
|
+
additionalInfo: getNewSeverityStringDef(currentSeverity),
|
|
110
91
|
};
|
|
111
92
|
// To reupdate the severity value when successfully submitted
|
|
112
93
|
const reUpdateSeverity = (severity) => {
|
|
@@ -114,7 +95,7 @@ export default function UpdateSeverityModal(props) {
|
|
|
114
95
|
name: severity,
|
|
115
96
|
disabled: false,
|
|
116
97
|
label: `${severity} - ${getSeverityDescription(severity)}`,
|
|
117
|
-
additionalInfo:
|
|
98
|
+
additionalInfo: getNewSeverityStringDef(severity),
|
|
118
99
|
};
|
|
119
100
|
};
|
|
120
101
|
// To check if severity is valid
|
|
@@ -326,7 +307,6 @@ export default function UpdateSeverityModal(props) {
|
|
|
326
307
|
return;
|
|
327
308
|
const productObj = find((_b = allProducts === null || allProducts === void 0 ? void 0 : allProducts.data) === null || _b === void 0 ? void 0 : _b.productsResult, (productItem) => productItem.name === caseDetails.product);
|
|
328
309
|
const versionDetail = find(versionsDetails === null || versionsDetails === void 0 ? void 0 : versionsDetails.data, (spec) => spec.name === caseDetails.version);
|
|
329
|
-
setDoNotShowIRT(versionDetail === null || versionDetail === void 0 ? void 0 : versionDetail.doNotShowIRT);
|
|
330
310
|
let availableSeverities;
|
|
331
311
|
if ((versionDetail === null || versionDetail === void 0 ? void 0 : versionDetail.severities) && (versionDetail === null || versionDetail === void 0 ? void 0 : versionDetail.severities.length) !== 0) {
|
|
332
312
|
//first check if at version level, do we have any severity limit
|
|
@@ -13,5 +13,7 @@ import { CaseValuesToWatch } from './Constants';
|
|
|
13
13
|
export declare function getChangedValueTooltip<T>(valueNameCb: (current: T, previous: T) => CaseValuesToWatch, accessor?: (value: T, otherValue: T) => any): (currentValue: T, previousValue: T) => React.JSX.Element;
|
|
14
14
|
export declare const isPhoneValid: (countryCode: string, phoneLine: string) => boolean;
|
|
15
15
|
export declare const trimAndReplacePlus: (value: string) => string;
|
|
16
|
+
export declare const removeAllSpaces: (value: string) => string;
|
|
17
|
+
export declare const removeAllChars: (value: string) => string;
|
|
16
18
|
export declare const getProductObj: (products: Partial<ISEProduct>[], product: string) => Partial<ISEProduct>;
|
|
17
19
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAGpE,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EACpC,WAAW,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,iBAAiB,EAC3D,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,KAAK,GAAG,kBAErB,CAAC,iBAAiB,CAAC,uBAQ5C;AAED,eAAO,MAAM,YAAY,gBAAiB,MAAM,aAAa,MAAM,KAAG,OAarE,CAAC;AAEF,eAAO,MAAM,kBAAkB,UAAW,MAAM,WAG/C,CAAC;AAEF,eAAO,MAAM,aAAa,aAAc,QAAQ,UAAU,CAAC,EAAE,WAAW,MAAM,wBAG7E,CAAC"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAGpE,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EACpC,WAAW,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,iBAAiB,EAC3D,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,KAAK,GAAG,kBAErB,CAAC,iBAAiB,CAAC,uBAQ5C;AAED,eAAO,MAAM,YAAY,gBAAiB,MAAM,aAAa,MAAM,KAAG,OAarE,CAAC;AAEF,eAAO,MAAM,kBAAkB,UAAW,MAAM,WAG/C,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,MAAM,WAI5C,CAAC;AAEF,eAAO,MAAM,cAAc,UAAW,MAAM,WAI3C,CAAC;AAEF,eAAO,MAAM,aAAa,aAAc,QAAQ,UAAU,CAAC,EAAE,WAAW,MAAM,wBAG7E,CAAC"}
|
|
@@ -43,6 +43,18 @@ export const trimAndReplacePlus = (value) => {
|
|
|
43
43
|
return '';
|
|
44
44
|
return (_a = value === null || value === void 0 ? void 0 : value.trim()) === null || _a === void 0 ? void 0 : _a.replace('+', '');
|
|
45
45
|
};
|
|
46
|
+
export const removeAllSpaces = (value) => {
|
|
47
|
+
if (!value)
|
|
48
|
+
return '';
|
|
49
|
+
// to remove all trailing and in between spaces
|
|
50
|
+
return value === null || value === void 0 ? void 0 : value.replace(/\s+/g, '');
|
|
51
|
+
};
|
|
52
|
+
export const removeAllChars = (value) => {
|
|
53
|
+
if (!value)
|
|
54
|
+
return '';
|
|
55
|
+
// to remove all chars, brackets and have only digits
|
|
56
|
+
return value === null || value === void 0 ? void 0 : value.replace(/[^0-9]/g, '');
|
|
57
|
+
};
|
|
46
58
|
export const getProductObj = (products, product) => {
|
|
47
59
|
const productIndex = findIndex(products, (p) => p.product === product);
|
|
48
60
|
return productIndex === -1 ? {} : products[productIndex];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalTroubleshootEffects.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/GlobalTroubleshootEffects.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAkD,MAAM,OAAO,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAWvD,OAAO,EAAqB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AASrF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"GlobalTroubleshootEffects.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/GlobalTroubleshootEffects.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAkD,MAAM,OAAO,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAWvD,OAAO,EAAqB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AASrF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,qBAwVtD"}
|
|
@@ -162,26 +162,6 @@ export function GlobalTroubleshootEffects(props) {
|
|
|
162
162
|
setCaseOwner(caseDispatch, loggedInUserRights.data.getHydraContactFromLoggedInUser(), product, undefined, undefined, true);
|
|
163
163
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
164
164
|
}, [caseDispatch, loggedInUserRights.data]);
|
|
165
|
-
/**
|
|
166
|
-
* Setting supplied phone number
|
|
167
|
-
*/
|
|
168
|
-
useEffect(() => {
|
|
169
|
-
// Since we are receiving both `phone` and `supportPhoneNumber` from the user contact API, it is causing confusion regarding which field should be used to pre-populate the user contact information.
|
|
170
|
-
// Hence, we are going to honor `supportPhoneAreaCodePrefixLineNumber` and `supportPhoneCountryCode` for it.
|
|
171
|
-
if ((!isEmpty(loggedInUser.data.supportPhoneCountryCode) &&
|
|
172
|
-
!isEmpty(loggedInUser.data.supportPhoneAreaCodePrefixLineNumber)) ||
|
|
173
|
-
!isEmpty(loggedInUser.data.phone)) {
|
|
174
|
-
setCaseState(caseDispatch, { isExistingPhoneNumber: true });
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
setCaseState(caseDispatch, { isExistingPhoneNumber: false });
|
|
178
|
-
}
|
|
179
|
-
setCaseDetails(caseDispatch, {
|
|
180
|
-
phone: loggedInUser.data.phone,
|
|
181
|
-
phoneAreaCodePrefixLineNumber: loggedInUser.data.supportPhoneAreaCodePrefixLineNumber,
|
|
182
|
-
phoneCountryCode: loggedInUser.data.supportPhoneCountryCode,
|
|
183
|
-
});
|
|
184
|
-
}, [caseDispatch, loggedInUser.data]);
|
|
185
165
|
/**
|
|
186
166
|
* handling top content call
|
|
187
167
|
*/
|
|
@@ -20,6 +20,6 @@ export declare enum CaseRecommendationEvalEnum {
|
|
|
20
20
|
}
|
|
21
21
|
export declare const PHONE_LINE_CANNOT_BE_EMPTY = "Phone number cannot be empty when country code is given.";
|
|
22
22
|
export declare const PHONE_NO_CHAR_ERROR = "Phone number can only have digits.";
|
|
23
|
-
export declare const PHONE_IS_NOT_VALID = "Phone number is invalid.";
|
|
23
|
+
export declare const PHONE_IS_NOT_VALID = "Phone number without country code is invalid.";
|
|
24
24
|
export declare const PHONE_INSTRUCTION = "A current phone number with the country code helps us support you better.";
|
|
25
25
|
//# sourceMappingURL=caseDetailsConstants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"caseDetailsConstants.d.ts","sourceRoot":"","sources":["../../../src/constants/caseDetailsConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oCAAoC,yBAAyB,CAAC;AAE3E,oBAAY,mBAAmB;IAC3B,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,UAAU,gBAAgB;IAC1B,aAAa,kBAAkB;IAC/B,OAAO,YAAY;CACtB;AAED,oBAAY,cAAc;IACtB,MAAM,WAAW;IACjB,mBAAmB,wBAAwB;IAC3C,iBAAiB,uBAAuB;CAC3C;AAED,oBAAY,0BAA0B;IAClC,OAAO,MAAM;IACb,WAAW,OAAO;IAClB,OAAO,MAAM;CAChB;AAED,eAAO,MAAM,0BAA0B,6DAA6D,CAAC;AAErG,eAAO,MAAM,mBAAmB,uCAAuC,CAAC;AAExE,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"caseDetailsConstants.d.ts","sourceRoot":"","sources":["../../../src/constants/caseDetailsConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oCAAoC,yBAAyB,CAAC;AAE3E,oBAAY,mBAAmB;IAC3B,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,UAAU,gBAAgB;IAC1B,aAAa,kBAAkB;IAC/B,OAAO,YAAY;CACtB;AAED,oBAAY,cAAc;IACtB,MAAM,WAAW;IACjB,mBAAmB,wBAAwB;IAC3C,iBAAiB,uBAAuB;CAC3C;AAED,oBAAY,0BAA0B;IAClC,OAAO,MAAM;IACb,WAAW,OAAO;IAClB,OAAO,MAAM;CAChB;AAED,eAAO,MAAM,0BAA0B,6DAA6D,CAAC;AAErG,eAAO,MAAM,mBAAmB,uCAAuC,CAAC;AAExE,eAAO,MAAM,kBAAkB,kDAAkD,CAAC;AAElF,eAAO,MAAM,iBAAiB,8EAA8E,CAAC"}
|
|
@@ -23,5 +23,5 @@ export var CaseRecommendationEvalEnum;
|
|
|
23
23
|
})(CaseRecommendationEvalEnum || (CaseRecommendationEvalEnum = {}));
|
|
24
24
|
export const PHONE_LINE_CANNOT_BE_EMPTY = 'Phone number cannot be empty when country code is given.';
|
|
25
25
|
export const PHONE_NO_CHAR_ERROR = 'Phone number can only have digits.';
|
|
26
|
-
export const PHONE_IS_NOT_VALID = 'Phone number is invalid.';
|
|
26
|
+
export const PHONE_IS_NOT_VALID = 'Phone number without country code is invalid.';
|
|
27
27
|
export const PHONE_INSTRUCTION = 'A current phone number with the country code helps us support you better.';
|
package/lib/esm/css/app.css
CHANGED
|
@@ -124,6 +124,12 @@ export declare const SeverityDescription: {
|
|
|
124
124
|
"3 (Normal)": string;
|
|
125
125
|
"4 (Low)": string;
|
|
126
126
|
};
|
|
127
|
+
export declare const SeverityDescriptionDetails: {
|
|
128
|
+
"1 (Urgent)": string;
|
|
129
|
+
"2 (High)": string;
|
|
130
|
+
"3 (Normal)": string;
|
|
131
|
+
"4 (Low)": string;
|
|
132
|
+
};
|
|
127
133
|
export declare const LargeDescriptionErrorMessage = "Cumulative case description cannot be more than {{limit}} characters";
|
|
128
134
|
export declare enum CaseReducerConstants {
|
|
129
135
|
caseDetailChanged = "caseDetailChanged",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseConstNTypes.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseConstNTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACjH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEnF,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,eAAO,MAAM,oBAAoB,MAAM,CAAC;AACxC,eAAO,M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AC;IACjD,kDAAkD,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxE,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,mCAAmC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;CACnF;AAED,MAAM,WAAW,sBAAuB,SAAQ,UAAU;CAAG;AAC7D,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,oBAAoB,EAAE,sBAAsB,CAAC,CAAC;AACpF,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;AAEhE,eAAO,MAAM,qCAAqC,+CAA+C,CAAC;AAClG,eAAO,MAAM,yCAAyC,+CAA+C,CAAC"}
|
|
@@ -68,10 +68,17 @@ export const ITRForSLASeverity = {
|
|
|
68
68
|
},
|
|
69
69
|
};
|
|
70
70
|
export const SeverityDescription = {
|
|
71
|
-
["1 (Urgent)" /* SeverityLevelsInternal.SEV_1 */]: 'Severe impact to
|
|
72
|
-
["2 (High)" /* SeverityLevelsInternal.SEV_2 */]: '
|
|
71
|
+
["1 (Urgent)" /* SeverityLevelsInternal.SEV_1 */]: 'Severe impact to critical systems',
|
|
72
|
+
["2 (High)" /* SeverityLevelsInternal.SEV_2 */]: 'Critical systems have been significantly degraded',
|
|
73
73
|
["3 (Normal)" /* SeverityLevelsInternal.SEV_3 */]: 'Partial, non-critical loss of usage',
|
|
74
|
-
["4 (Low)" /* SeverityLevelsInternal.SEV_4 */]: '
|
|
74
|
+
["4 (Low)" /* SeverityLevelsInternal.SEV_4 */]: 'A non-urgent query regarding a Red Hat Product or service.',
|
|
75
|
+
};
|
|
76
|
+
//updated description details
|
|
77
|
+
export const SeverityDescriptionDetails = {
|
|
78
|
+
["1 (Urgent)" /* SeverityLevelsInternal.SEV_1 */]: 'An issue with a Red Hat Product or Service that is actively causing serious interruptions to your business critical operations. This is an issue requiring immediate attention as there is a significant risk to your business.',
|
|
79
|
+
["2 (High)" /* SeverityLevelsInternal.SEV_2 */]: 'An issue with a Red Hat Product or Service that is partially functional (such as degradation of a service but the service is still available) and actively impacting your business operations. This is an issue on a business critical system requiring accelerated attention.',
|
|
80
|
+
["3 (Normal)" /* SeverityLevelsInternal.SEV_3 */]: 'An issue with a Red Hat Product or Service that is currently functioning as expected but you either (1) recently experienced a degradation that you are monitoring or seeking a root cause for or (2) you are seeing indicators of a potential loss of functionality to a business critical system.',
|
|
81
|
+
["4 (Low)" /* SeverityLevelsInternal.SEV_4 */]: 'Typically, a query that does not involve any interruption to your business critical operations. ',
|
|
75
82
|
};
|
|
76
83
|
export const LargeDescriptionErrorMessage = 'Cumulative case description cannot be more than {{limit}} characters';
|
|
77
84
|
export var CaseReducerConstants;
|
|
@@ -11,6 +11,7 @@ export declare const getRecommendationObject: (doc: ISolrRecommendation, index:
|
|
|
11
11
|
export declare const getUpdatedDescription: (issue: string, environment?: string, periodicityOfIssue?: string, timeFramesAndUrgency?: string, v3ClusterName?: string, product?: string, version?: string) => string;
|
|
12
12
|
export declare const getDescriptionWOQues: (issue: string, environment?: string, periodicityOfIssue?: string, timeFramesAndUrgency?: string) => string;
|
|
13
13
|
export declare const getIrtForSLAAndSeverity: (slaProcessId: string, severity: string) => string;
|
|
14
|
+
export declare const getNewSeverityStringDef: (severity: string) => string;
|
|
14
15
|
export declare const getOrtForSLAAndSeverity: (slaProcessId: string, severity: string) => string;
|
|
15
16
|
export declare const getSeverityDescription: (severity: string) => string;
|
|
16
17
|
export declare const isClusterIDValid: (caseState: any, allProducts: any) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseHelpers.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACpG,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACvG,OAAO,EAAE,YAAY,EAAE,MA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AM1D,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBAAkB,MAAM,YAAY,MAAM,KAAG,MAQhF,CAAC;AAEF,eAAO,MAAM,sBAAsB,aAAc,MAAM,KAAG,MAKzD,CAAC;AAEF,eAAO,MAAM,gBAAgB,+CAqC5B,CAAC;AAIF,eAAO,MAAM,gBAAgB,cAAe,UAAU,wBAAwB,QAAQ,eAAe,CAAC,KAAG,OA6BxG,CAAC;AAEF,eAAO,MAAM,oBAAoB,cAClB,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAyBF,CAAC;AAEF,eAAO,MAAM,0BAA0B,cACxB,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAYF,CAAC;AAIF,eAAO,MAAM,6BAA6B,cAC3B,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAmBF,CAAC;AAEF,eAAO,MAAM,iBAAiB,cACf,UAAU,gBACP,YAAY,iBACZ,OAAO,KACtB,QAAQ,YAAY,CA6EtB,CAAC;AAEF,eAAO,MAAM,wBAAwB,qBAAsB,YAAY,EAAE,KAAG,YAAY,EAEvF,CAAC;AACF,eAAO,MAAM,yBAAyB,qBAAsB,YAAY,EAAE,KAAG,OAE5E,CAAC;AAEF,eAAO,MAAM,yBAAyB,gBACrB,YAAY,6BACE,MAAM,mBAChB,MAAM,KACxB,QAAQ,YAAY,CAiCtB,CAAC;AACF,eAAO,MAAM,yBAAyB,gBACrB,QAAQ,YAAY,CAAC,gCACJ,QAAQ,EAAE,KACzC,eAiDF,CAAC"}
|
|
@@ -8,7 +8,7 @@ import unionBy from 'lodash/unionBy';
|
|
|
8
8
|
import uniqBy from 'lodash/uniqBy';
|
|
9
9
|
import { isPhoneValid, trimAndReplacePlus } from '../components/shared/utils';
|
|
10
10
|
import { getIsClusterIdInvalid, isClusterIdEnabledForProduct } from '../utils/caseOpenshiftClusterIdUtils';
|
|
11
|
-
import { CASE_DEATILS_ENVIRONMENT_LIMIT, CASE_DEATILS_ISSUE_LIMIT, CASE_DEATILS_PERIODICITYOFISSUE_LIMIT, CASE_DETAILS_TIMEFRAMESANDURGENCY_LIMIT, CASE_REFERENCE_NUMBER_LIMIT, CLUSTER_ID_LIMIT, CONTACT_INFO_24X7_LIMIT, DESCRIPTION_LENGTH_LIMIT, HOSTNAME_LENGTH_LIMIT, ITRForSLASeverity, KtQuestionConstant, SESSION_ENVIRONMENT_LIMIT, SESSION_ISSUE_LIMIT, SESSION_NO_CLUSTER_REASON_EXPLANATION_LENGTH_LIMIT, SESSION_NO_CLUSTER_REASON_LENGTH_LIMIT, SESSION_NOTIFIED_USERS_EXTERNAL_LIMIT, SESSION_NOTIFIED_USERS_INTERNAL_LIMIT, SESSION_PERIODICITY_OF_ISSUE_LIMIT, SESSION_PHONE_LENGTH_LIMIT, SESSION_TIME_FRAMES_URGENCY_LIMIT, SeverityDescription, SUMMARY_LENGTH_LIMIT, } from './CaseConstNTypes';
|
|
11
|
+
import { CASE_DEATILS_ENVIRONMENT_LIMIT, CASE_DEATILS_ISSUE_LIMIT, CASE_DEATILS_PERIODICITYOFISSUE_LIMIT, CASE_DETAILS_TIMEFRAMESANDURGENCY_LIMIT, CASE_REFERENCE_NUMBER_LIMIT, CLUSTER_ID_LIMIT, CONTACT_INFO_24X7_LIMIT, DESCRIPTION_LENGTH_LIMIT, HOSTNAME_LENGTH_LIMIT, ITRForSLASeverity, KtQuestionConstant, SESSION_ENVIRONMENT_LIMIT, SESSION_ISSUE_LIMIT, SESSION_NO_CLUSTER_REASON_EXPLANATION_LENGTH_LIMIT, SESSION_NO_CLUSTER_REASON_LENGTH_LIMIT, SESSION_NOTIFIED_USERS_EXTERNAL_LIMIT, SESSION_NOTIFIED_USERS_INTERNAL_LIMIT, SESSION_PERIODICITY_OF_ISSUE_LIMIT, SESSION_PHONE_LENGTH_LIMIT, SESSION_TIME_FRAMES_URGENCY_LIMIT, SeverityDescription, SeverityDescriptionDetails, SUMMARY_LENGTH_LIMIT, } from './CaseConstNTypes';
|
|
12
12
|
export const getCaseRecommendations = (docs, oldDocs) => {
|
|
13
13
|
const recs = [];
|
|
14
14
|
docs.forEach((doc, i) => {
|
|
@@ -86,6 +86,12 @@ export const getIrtForSLAAndSeverity = (slaProcessId, severity) => {
|
|
|
86
86
|
: "standard" /* SupportLevelsInternal.STANDARD */;
|
|
87
87
|
return ITRForSLASeverity[supportLevel][severity].initial;
|
|
88
88
|
};
|
|
89
|
+
export const getNewSeverityStringDef = (severity) => {
|
|
90
|
+
if (isEmpty(severity)) {
|
|
91
|
+
return '';
|
|
92
|
+
}
|
|
93
|
+
return SeverityDescriptionDetails[severity];
|
|
94
|
+
};
|
|
89
95
|
export const getOrtForSLAAndSeverity = (slaProcessId, severity) => {
|
|
90
96
|
if (isEmpty(slaProcessId) || isEmpty(severity)) {
|
|
91
97
|
return '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseReducer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAEtH,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAA+B,MAAM,qCAAqC,CAAC;AAC9G,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAWxD,OAAO,EAEH,uBAAuB,EAEvB,UAAU,EAEb,MAAM,mBAAmB,CAAC;AAS3B,OAAO,EAAE,0BAA0B,EAAiB,MAAM,yBAAyB,CAAC;AAEpF,eAAO,MAAM,WAAW,WAAY,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AAmB,CAAC,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAAC,EAC5E,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,0BAA0B,EAAE,QAO5D;AAED,wBAAsB,kBAAkB,CAAC,QAAQ,EAAE,uBAAuB,EAAE,OAAO,EAAE,MAAM,iBAiB1F;AAED,eAAO,MAAM,kBAAkB,aAAc,uBAAuB,QAAQ,OAAO,SAKlF,CAAC"}
|
|
@@ -418,7 +418,14 @@ export const setCaseOwner = (dispatch, owner, product, abortSignalCaseGroup, abo
|
|
|
418
418
|
if (isEmpty(owner) || isEmpty(owner.ssoUsername)) {
|
|
419
419
|
dispatch({
|
|
420
420
|
type: CaseReducerConstants.caseDetailChanged,
|
|
421
|
-
payload: {
|
|
421
|
+
payload: {
|
|
422
|
+
caseDetails: {
|
|
423
|
+
contactSSOName: '',
|
|
424
|
+
phoneAreaCodePrefixLineNumber: '',
|
|
425
|
+
phoneCountryCode: '',
|
|
426
|
+
suppliedPhoneNumberVerified: undefined,
|
|
427
|
+
},
|
|
428
|
+
},
|
|
422
429
|
});
|
|
423
430
|
canUpdateCaseGroup && setCaseDetails(dispatch, { groupNumber: '-1' });
|
|
424
431
|
dispatch({
|
package/lib/esm/scss/_main.scss
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.130",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -60,11 +60,11 @@
|
|
|
60
60
|
"@progress/kendo-licensing": "1.3.5",
|
|
61
61
|
"@progress/kendo-react-pdf": "^5.16.0",
|
|
62
62
|
"@redux-devtools/extension": "^3.3.0",
|
|
63
|
-
"@rh-support/components": "2.1.
|
|
64
|
-
"@rh-support/react-context": "2.1.
|
|
65
|
-
"@rh-support/types": "2.0.
|
|
66
|
-
"@rh-support/user-permissions": "2.1.
|
|
67
|
-
"@rh-support/utils": "2.1.
|
|
63
|
+
"@rh-support/components": "2.1.62",
|
|
64
|
+
"@rh-support/react-context": "2.1.70",
|
|
65
|
+
"@rh-support/types": "2.0.4",
|
|
66
|
+
"@rh-support/user-permissions": "2.1.45",
|
|
67
|
+
"@rh-support/utils": "2.1.34",
|
|
68
68
|
"@types/react-redux": "^7.1.33",
|
|
69
69
|
"@types/redux": "^3.6.0",
|
|
70
70
|
"dompurify": "^2.2.6",
|
|
@@ -131,5 +131,5 @@
|
|
|
131
131
|
"defaults and supports es6-module",
|
|
132
132
|
"maintained node versions"
|
|
133
133
|
],
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "ecb9820a2fe40793e79c0f9f4786ec657070fe64"
|
|
135
135
|
}
|