@rh-support/troubleshoot 2.2.117 → 2.2.119
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 +15 -6
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +17 -6
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +6 -1
- package/package.json +3 -3
|
@@ -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,qBAqYnC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -116,16 +116,25 @@ function OwnerSelector(props) {
|
|
|
116
116
|
// logged in user and case owner are the same
|
|
117
117
|
if (sso === loggedInUser.data.ssoUsername) {
|
|
118
118
|
try {
|
|
119
|
-
|
|
119
|
+
const loggedInUserContact = yield (contacts === null || contacts === void 0 ? void 0 : contacts.getSFDCContactBySso(sso)); // to get updated loggedIn user contact details
|
|
120
|
+
if (loggedInUserContact.supportPhoneAreaCodePrefixLineNumber) {
|
|
120
121
|
yield updatePhone({
|
|
121
|
-
phoneAreaCodePrefixLineNumber:
|
|
122
|
-
phoneCountryCode:
|
|
122
|
+
phoneAreaCodePrefixLineNumber: loggedInUserContact.supportPhoneAreaCodePrefixLineNumber || '',
|
|
123
|
+
phoneCountryCode: loggedInUserContact.supportPhoneCountryCode || '',
|
|
124
|
+
suppliedPhoneNumberVerified: isEqual(hasLoggedInUserConfirmedPhoneNumber, 'True') || //hasLoggedInUserConfirmedPhoneNumber: global verification phone state for contactSSOName === loggedInUser.data.ssoUsername
|
|
125
|
+
isEqual(hasLoggedInUserConfirmedPhoneNumber, 'Deferred')
|
|
126
|
+
? hasLoggedInUserConfirmedPhoneNumber
|
|
127
|
+
: 'False',
|
|
123
128
|
});
|
|
124
129
|
}
|
|
125
130
|
else {
|
|
126
131
|
yield updatePhone({
|
|
127
|
-
phoneAreaCodePrefixLineNumber: getPhoneObj(
|
|
128
|
-
phoneCountryCode: getPhoneObj(
|
|
132
|
+
phoneAreaCodePrefixLineNumber: getPhoneObj(loggedInUserContact.phone).phoneLine || '',
|
|
133
|
+
phoneCountryCode: getPhoneObj(loggedInUserContact.phone).countryCode || '',
|
|
134
|
+
suppliedPhoneNumberVerified: isEqual(hasLoggedInUserConfirmedPhoneNumber, 'True') || //hasLoggedInUserConfirmedPhoneNumber: global verification phone state for contactSSOName === loggedInUser.data.ssoUsername
|
|
135
|
+
isEqual(hasLoggedInUserConfirmedPhoneNumber, 'Deferred')
|
|
136
|
+
? hasLoggedInUserConfirmedPhoneNumber
|
|
137
|
+
: 'False',
|
|
129
138
|
});
|
|
130
139
|
}
|
|
131
140
|
}
|
|
@@ -296,7 +305,7 @@ function OwnerSelector(props) {
|
|
|
296
305
|
}
|
|
297
306
|
}
|
|
298
307
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
299
|
-
}, [
|
|
308
|
+
}, []);
|
|
300
309
|
const showUsersWithSelectedGroupAccess = caseNumber &&
|
|
301
310
|
(selectedCaseGroupUsers.isFetching ||
|
|
302
311
|
(!selectedCaseGroupUsers.isFetching && (selectedCaseGroupUsers.data || []).length > 0));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.tsx"],"names":[],"mappings":"AASA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAgB/D,wBAAgB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"CaseContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.tsx"],"names":[],"mappings":"AASA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAgB/D,wBAAgB,sBAAsB,sBAiTrC"}
|
|
@@ -22,7 +22,7 @@ import { PHONE_INSTRUCTION, PHONE_IS_NOT_VALID, PHONE_LINE_CANNOT_BE_EMPTY, PHON
|
|
|
22
22
|
import { useCaseDispatch, useCaseSelector } from '../../../../context/CaseContext';
|
|
23
23
|
import { useCaseUpdateErrorMessage } from '../../../../hooks/useCaseUpdateErrorMessage';
|
|
24
24
|
import { PHONE_LIMIT } from '../../../../reducers/CaseConstNTypes';
|
|
25
|
-
import { updateCaseDetails } from '../../../../reducers/CaseReducer';
|
|
25
|
+
import { setCaseState, updateCaseDetails } from '../../../../reducers/CaseReducer';
|
|
26
26
|
import { ContactPhoneNumberPopOver } from '../../../CaseInformation/ContactPhoneNumberPopOver';
|
|
27
27
|
import { trimAndReplacePlus } from '../../../shared/utils';
|
|
28
28
|
import { PDFContext } from '../../PDFContainer';
|
|
@@ -137,11 +137,7 @@ export function CaseContactPhoneNumber() {
|
|
|
137
137
|
}, [localFullPhoneState]);
|
|
138
138
|
const updatePhone = () => __awaiter(this, void 0, void 0, function* () {
|
|
139
139
|
var _a, _b;
|
|
140
|
-
if (
|
|
141
|
-
setLocalFullPhoneState((phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber).trim());
|
|
142
|
-
setIsShowOldPhone(false);
|
|
143
|
-
}
|
|
144
|
-
else if (isEmpty(phoneCountryCode) && isEmpty(phoneAreaCodePrefixLineNumber) && !isEmpty(phone)) {
|
|
140
|
+
if (isEmpty(phoneCountryCode) && isEmpty(phoneAreaCodePrefixLineNumber) && !isEmpty(phone)) {
|
|
145
141
|
const oldPhoneline = ((_a = getPhoneObj(phone)) === null || _a === void 0 ? void 0 : _a.phoneLine) || '';
|
|
146
142
|
const oldCountryCode = ((_b = getPhoneObj(phone)) === null || _b === void 0 ? void 0 : _b.countryCode) || '';
|
|
147
143
|
if (!isEmpty(oldPhoneline.trim()) && !isEmpty(trimAndReplacePlus(oldCountryCode))) {
|
|
@@ -164,12 +160,27 @@ export function CaseContactPhoneNumber() {
|
|
|
164
160
|
setIsShowOldPhone(true);
|
|
165
161
|
}
|
|
166
162
|
}
|
|
163
|
+
else {
|
|
164
|
+
setLocalFullPhoneState((phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber).trim());
|
|
165
|
+
setIsShowOldPhone(false);
|
|
166
|
+
}
|
|
167
167
|
});
|
|
168
168
|
// should be removed when old phone field is removed by CCM team
|
|
169
169
|
useEffect(() => {
|
|
170
170
|
updatePhone();
|
|
171
171
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
172
172
|
}, [phone, phoneAreaCodePrefixLineNumber, phoneCountryCode]);
|
|
173
|
+
useEffect(() => {
|
|
174
|
+
if (contactSSOName === loggedInUser.data.ssoUsername) {
|
|
175
|
+
// edge case: when loggedInUser === contactSSOName while opening a case confirms or deffers the phone
|
|
176
|
+
// we need to save the verification state globallly so that we don't show the phone review banner again
|
|
177
|
+
// to the user where he changes it to another owner and then again assigns himself as the case owner
|
|
178
|
+
setCaseState(caseDispatch, {
|
|
179
|
+
hasLoggedInUserConfirmedPhoneNumber: suppliedPhoneNumberVerified,
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
183
|
+
}, [suppliedPhoneNumberVerified]);
|
|
173
184
|
return (React.createElement("div", { className: "form-group pf-v5-u-pb-md", style: { minWidth: '200px' } },
|
|
174
185
|
React.createElement("h3", { className: `subheading subheading-sm ${isExportingPDF ? 'expand-input' : ''}` },
|
|
175
186
|
React.createElement(Trans, null, "Case owner's phone number"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostComment.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/PostComment.tsx"],"names":[],"mappings":"AA8BA,OAAO,KAAwE,MAAM,OAAO,CAAC;AAQ7F,OAAO,EAAkB,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAsB5F,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,WAAW,EAAE,CAAC;CACjC;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"PostComment.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/PostComment.tsx"],"names":[],"mappings":"AA8BA,OAAO,KAAwE,MAAM,OAAO,CAAC;AAQ7F,OAAO,EAAkB,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAsB5F,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,WAAW,EAAE,CAAC;CACjC;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,qBA6hBxC"}
|
|
@@ -193,6 +193,7 @@ export function PostComment(props) {
|
|
|
193
193
|
yield props.onCommentAdded();
|
|
194
194
|
resetCommentSection();
|
|
195
195
|
ToastNotification.addSuccessMessage(t('Comment submitted'));
|
|
196
|
+
setCssCommentAgreed(false);
|
|
196
197
|
}
|
|
197
198
|
catch (e) {
|
|
198
199
|
caseUpdateError.showError(e, t('Could not submit comment'));
|
|
@@ -334,7 +335,11 @@ export function PostComment(props) {
|
|
|
334
335
|
isUploadingFile: isMarkdownFileUploadInProgress,
|
|
335
336
|
onClipboardPaste,
|
|
336
337
|
} }),
|
|
337
|
-
isConfirmedStateSideSupport && (React.createElement(
|
|
338
|
+
isConfirmedStateSideSupport && (React.createElement("div", { className: "pf-v5-u-mt-md pf-v5-u-mb-lg" },
|
|
339
|
+
React.createElement("input", { type: "checkbox", id: "css-case-comment-agreement", name: "css-case-comment-agreement", "data-tracking-id": "css-case-comment-agreement", checked: cssCommentAgreed, onChange: (e) => setCssCommentAgreed(e.target.checked) }),
|
|
340
|
+
React.createElement("label", { htmlFor: "css-case-comment-agreement", className: "pf-v5-u-font-weight-normal pf-v5-u-font-size-sm" },
|
|
341
|
+
React.createElement(Trans, null, "I will not transmit controlled unclassified information to or export it from the Red Hat Customer Portal."),
|
|
342
|
+
React.createElement("span", { className: "form-required", "aria-hidden": "true" }, "*")))),
|
|
338
343
|
isProcessing ? (React.createElement(LoadingIndicator, { isInline: true, size: "sm" })) : (React.createElement("div", { className: "pf-v5-l-flex post-comment-btn-group push-top-narrow" },
|
|
339
344
|
isModalOpen && loggedInUserRights.data.isInternal() && isPublic && (React.createElement(VerifyCaseStatusModal, { onClose: onCancel, onConfirm: onConfirm, isUpdating: isPostingComment, caseNumber: props.caseNumber })),
|
|
340
345
|
React.createElement(Button, { "data-tracking-id": "postcomment-submit-button", type: "button", variant: ButtonVariant.primary, onClick: loggedInUser.data.isInternal && isPublic ? onBtnClick : isNotInternalConfirm, isDisabled: isSubmitDisabled, className: "postcomment-submit" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.119",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@progress/kendo-react-pdf": "^5.16.0",
|
|
62
62
|
"@redux-devtools/extension": "^3.3.0",
|
|
63
63
|
"@rh-support/components": "2.1.59",
|
|
64
|
-
"@rh-support/react-context": "2.1.
|
|
64
|
+
"@rh-support/react-context": "2.1.66",
|
|
65
65
|
"@rh-support/types": "2.0.3",
|
|
66
66
|
"@rh-support/user-permissions": "2.1.43",
|
|
67
67
|
"@rh-support/utils": "2.1.33",
|
|
@@ -131,5 +131,5 @@
|
|
|
131
131
|
"defaults and supports es6-module",
|
|
132
132
|
"maintained node versions"
|
|
133
133
|
],
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "184dcedae43592a133b6122d642a38b64ed4006c"
|
|
135
135
|
}
|