@rh-support/troubleshoot 2.2.121 → 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.
@@ -1 +1 @@
1
- {"version":3,"file":"CaseDetailsTabs.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsTabs.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAa,MAAM,kBAAkB,CAAC;AAyBlE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,mBAAmB,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AACD,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,qBAgO5C"}
1
+ {"version":3,"file":"CaseDetailsTabs.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsTabs.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAa,MAAM,kBAAkB,CAAC;AAyBlE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,mBAAmB,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AACD,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,qBAiO5C"}
@@ -104,14 +104,15 @@ export function CaseDetailsTabs(props) {
104
104
  routePath: 'escalation',
105
105
  component: (React.createElement(RMEEscalationList, { escalations: caseEscalations.data, caseNumber: caseNumber, caseStatus: status, accountNumber: loggedInUserRights.data.getAccountNumber(), isInternal: loggedInUserRights.data.isInternal() })),
106
106
  });
107
- tabsToRender.push({
108
- 'data-tracking-id': 'case-history-tab',
109
- title: CaseDetailsTabsEnum.HISTORY,
110
- key: 'history',
111
- routePath: 'history',
112
- ref: caseHistoryTabRef,
113
- component: React.createElement(CaseHistory, { caseNumber: caseNumber }),
114
- });
107
+ false && //Don't add this component to 'tabsToRender' for now, pending QA release
108
+ tabsToRender.push({
109
+ 'data-tracking-id': 'case-history-tab',
110
+ title: CaseDetailsTabsEnum.HISTORY,
111
+ key: 'history',
112
+ routePath: 'history',
113
+ ref: caseHistoryTabRef,
114
+ component: React.createElement(CaseHistory, { caseNumber: caseNumber }),
115
+ });
115
116
  const getActiveTabKey = () => {
116
117
  if (!activeTab)
117
118
  return activeTabKey;
@@ -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 = 'You are the new owner for this case. Is the new phone number correct?';
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,qBAwT3C"}
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) {
@@ -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,qBAshBxD"}
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,qBAuhBxD"}
@@ -153,6 +153,8 @@ export default function UpdateSeverityModal(props) {
153
153
  setDescriptionValue(value);
154
154
  };
155
155
  const getFtsUpdateComment = () => {
156
+ if (isIdea)
157
+ return '';
156
158
  if (isEqual(caseDetails.fts, localFts) && isEqual(caseDetails.contactInfo24x7, localFtsContact))
157
159
  return '';
158
160
  if (caseDetails.fts && !localFts)
@@ -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.121",
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": "0fa0968e831c199572669184c466e9fecd781d12"
134
+ "gitHead": "3120797053c50143e6a1cb54b775f4a75408c8bb"
135
135
  }