@rh-support/troubleshoot 2.2.122 → 2.2.123
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/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.js +3 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert.js +2 -2
- package/lib/esm/components/CaseInformation/ContactPhoneNumberAlert.js +1 -1
- package/lib/esm/components/SessionRestore/SessionRestore.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/SessionRestore.js +23 -0
- package/lib/esm/scss/_pf-overrides.scss +6 -0
- package/package.json +2 -2
|
@@ -54,16 +54,16 @@ export function CaseContactPhoneNumberAlert(props) {
|
|
|
54
54
|
suppliedPhoneNumberVerified === 'Deferred' &&
|
|
55
55
|
!isCaseOwnerUpdating &&
|
|
56
56
|
severity !== "1 (Urgent)" /* SeverityLevelsInternal.SEV_1 */; // we show another alert when sev is 1
|
|
57
|
-
const NEW_OWNER_MSG = '
|
|
57
|
+
const NEW_OWNER_MSG = t('Please confirm the phone number we have on file is correct.');
|
|
58
58
|
if (!isPhoneNeedsReview)
|
|
59
59
|
return React.createElement(React.Fragment, null);
|
|
60
|
-
return (React.createElement(React.Fragment, null, props.isReview && !isExportingPDF ? (React.createElement(Alert, { className: "pf-v5-u-mb-md", isInline: true, variant: AlertVariant.warning, title: t('Review phone number'), component: "p", actionLinks: [
|
|
60
|
+
return (React.createElement(React.Fragment, null, props.isReview && !isExportingPDF ? (React.createElement(Alert, { className: "pf-v5-u-mb-md phone-review-banner", isInline: true, variant: AlertVariant.warning, title: t('Review phone number'), component: "p", actionLinks: [
|
|
61
61
|
React.createElement(Link, { replace: true, to: {
|
|
62
62
|
pathname: `/case/${caseNumber}/management`,
|
|
63
63
|
}, onClick: () => goToPhoneField(), "data-tracking-id": "case-contact-phone-number-review" },
|
|
64
64
|
React.createElement(Trans, null, "Review phone number")),
|
|
65
65
|
] },
|
|
66
|
-
React.createElement(Trans, null, NEW_OWNER_MSG))) : props.isConfirm && !isExportingPDF ? (React.createElement(Alert, { isInline: true, className: "pf-v5-u-mb-md", variant: AlertVariant.warning, title: t('Review phone number'), component: "p", actionLinks: [
|
|
66
|
+
React.createElement(Trans, null, NEW_OWNER_MSG))) : props.isConfirm && !isExportingPDF ? (React.createElement(Alert, { isInline: true, className: "pf-v5-u-mb-md phone-review-banner", variant: AlertVariant.warning, title: t('Review phone number'), component: "p", actionLinks: [
|
|
67
67
|
React.createElement(Button, { variant: ButtonVariant.link, isInline: true, onClick: () => onCaseDetailsChange({ suppliedPhoneNumberVerified: 'True' }), "data-tracking-id": "case-contact-phone-number-confirm", isLoading: isCaseUpdating, isDisabled: isCaseUpdating },
|
|
68
68
|
React.createElement(Trans, null, "Confirm phone number")),
|
|
69
69
|
] },
|
|
@@ -61,13 +61,13 @@ export function CasePhoneNumberSev1ConfirmAlert(props) {
|
|
|
61
61
|
const SEV1_MSG = 'This case severity is urgent. Please confirm the phone number we have on file is correct.';
|
|
62
62
|
if (!isPhoneNeedsConfirm)
|
|
63
63
|
return React.createElement(React.Fragment, null);
|
|
64
|
-
return (React.createElement(React.Fragment, null, props.isReview && !isExportingPDF ? (React.createElement(Alert, { className: "pf-v5-u-mb-md", isInline: true, variant: AlertVariant.warning, title: t('Review phone number'), component: "p", actionLinks: [
|
|
64
|
+
return (React.createElement(React.Fragment, null, props.isReview && !isExportingPDF ? (React.createElement(Alert, { className: "pf-v5-u-mb-md phone-review-banner", isInline: true, variant: AlertVariant.warning, title: t('Review phone number'), component: "p", actionLinks: [
|
|
65
65
|
React.createElement(Link, { replace: true, to: {
|
|
66
66
|
pathname: `/case/${caseNumber}/management`,
|
|
67
67
|
}, onClick: () => goToPhoneField(), "data-tracking-id": "case-contact-phone-number-review" },
|
|
68
68
|
React.createElement(Trans, null, "Review phone number")),
|
|
69
69
|
] },
|
|
70
|
-
React.createElement(Trans, null, SEV1_MSG))) : props.isConfirm && !isExportingPDF ? (React.createElement(Alert, { isInline: true, className: "pf-v5-u-mb-md", variant: AlertVariant.warning, title: t('Review phone number'), component: "p", actionLinks: [
|
|
70
|
+
React.createElement(Trans, null, SEV1_MSG))) : props.isConfirm && !isExportingPDF ? (React.createElement(Alert, { isInline: true, className: "pf-v5-u-mb-md phone-review-banner", variant: AlertVariant.warning, title: t('Review phone number'), component: "p", actionLinks: [
|
|
71
71
|
React.createElement(Button, { variant: ButtonVariant.link, isInline: true, onClick: () => onCaseDetailsChange({ suppliedPhoneNumberVerified: 'True' }), "data-tracking-id": "case-contact-phone-number-confirm", isLoading: isCaseUpdating, isDisabled: isCaseUpdating },
|
|
72
72
|
React.createElement(Trans, null, "Confirm phone number")),
|
|
73
73
|
] },
|
|
@@ -47,7 +47,7 @@ export function ContactPhoneNumberAlert() {
|
|
|
47
47
|
isExistingPhoneNumber;
|
|
48
48
|
if (!showAlert)
|
|
49
49
|
return React.createElement(React.Fragment, null);
|
|
50
|
-
return (React.createElement(Alert, { className: `form-group ${isExportingPDF ? 'hide-in-pdf' : ''}`, isInline: true, variant: AlertVariant.warning, title: t('Review phone number'), actionLinks: [
|
|
50
|
+
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
51
|
React.createElement(Button, { variant: ButtonVariant.link, isInline: true, onClick: () => onCaseDetailsChange({ suppliedPhoneNumberVerified: 'True' }), "data-tracking-id": "case-contact-phone-number-confirm" },
|
|
52
52
|
React.createElement(Trans, null, "Confirm phone number")),
|
|
53
53
|
React.createElement(Button, { variant: ButtonVariant.link, isInline: true, onClick: () => onCaseDetailsChange({ suppliedPhoneNumberVerified: 'Deferred' }), "data-tracking-id": "case-contact-phone-number-dont-know" },
|
|
@@ -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,qBA8U3C"}
|
|
@@ -234,6 +234,29 @@ export function SessionRestore(props) {
|
|
|
234
234
|
const userAgent = getUserAgentForCaseMode(isCaseCreate);
|
|
235
235
|
markAllSessionsUnresolved(sessionRestoreDispatch, sessionRestore.previousSessions.data, userAgent);
|
|
236
236
|
};
|
|
237
|
+
useEffect(() => {
|
|
238
|
+
var _a, _b, _c, _d, _e, _f;
|
|
239
|
+
if (sessionRestore.activeSessionId === previousActiveSessionId) {
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
const sessionItem = sessionRestore.previousSessions.data[sessionRestore.activeSessionId];
|
|
243
|
+
const newParams = {
|
|
244
|
+
product: (_c = (_b = (_a = sessionItem === null || sessionItem === void 0 ? void 0 : sessionItem.sessionDetails) === null || _a === void 0 ? void 0 : _a.product) !== null && _b !== void 0 ? _b : caseDetails.product) !== null && _c !== void 0 ? _c : queryParamsFromUrl.product,
|
|
245
|
+
version: (_f = (_e = (_d = sessionItem === null || sessionItem === void 0 ? void 0 : sessionItem.sessionDetails) === null || _d === void 0 ? void 0 : _d.version) !== null && _e !== void 0 ? _e : caseDetails.version) !== null && _f !== void 0 ? _f : queryParamsFromUrl.version,
|
|
246
|
+
seSessionId: sessionRestore.activeSessionId,
|
|
247
|
+
};
|
|
248
|
+
RouteUtils.updateQueryParams(props.routeProps, newParams);
|
|
249
|
+
}, [
|
|
250
|
+
caseDetails.product,
|
|
251
|
+
caseDetails.version,
|
|
252
|
+
currentUrlSeSessionId,
|
|
253
|
+
previousActiveSessionId,
|
|
254
|
+
props.routeProps,
|
|
255
|
+
queryParamsFromUrl.product,
|
|
256
|
+
queryParamsFromUrl.version,
|
|
257
|
+
sessionRestore.activeSessionId,
|
|
258
|
+
sessionRestore.previousSessions.data,
|
|
259
|
+
]);
|
|
237
260
|
useDebounce(() => {
|
|
238
261
|
let previousSessions = [];
|
|
239
262
|
for (let s in sessionRestore.previousSessions.data) {
|
|
@@ -706,3 +706,9 @@ label.react-typeahead-label-wrapper {
|
|
|
706
706
|
justify-content: flex-start;
|
|
707
707
|
background-color: var(--pf-v5-global--palette--black-200);
|
|
708
708
|
}
|
|
709
|
+
|
|
710
|
+
.phone-review-banner {
|
|
711
|
+
.pf-v5-c-alert__action-group {
|
|
712
|
+
padding-top: var(--pf-v5-global--spacer--sm);
|
|
713
|
+
}
|
|
714
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.123",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -131,5 +131,5 @@
|
|
|
131
131
|
"defaults and supports es6-module",
|
|
132
132
|
"maintained node versions"
|
|
133
133
|
],
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "3120797053c50143e6a1cb54b775f4a75408c8bb"
|
|
135
135
|
}
|