@rh-support/troubleshoot 2.2.113 → 2.2.115

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.
Files changed (24) hide show
  1. package/lib/esm/components/CaseEditView/CaseOverview/index.js +2 -2
  2. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
  3. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +4 -1
  4. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.js +2 -2
  5. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.d.ts.map +1 -1
  6. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.js +6 -4
  7. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/{CasePhoneNumberSev1ConfirmAlert.d.ts → CasePhoneNumberTopConfirmAlert.d.ts} +2 -2
  8. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberTopConfirmAlert.d.ts.map +1 -0
  9. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/{CasePhoneNumberSev1ConfirmAlert.js → CasePhoneNumberTopConfirmAlert.js} +11 -7
  10. package/lib/esm/components/ConfirmationModals/PreCaseConfirmationModals.d.ts.map +1 -1
  11. package/lib/esm/components/ConfirmationModals/PreCaseConfirmationModals.js +0 -2
  12. package/lib/esm/components/wizardLayout/MainSection.js +8 -8
  13. package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
  14. package/lib/esm/components/wizardLayout/WizardLayout.js +2 -6
  15. package/lib/esm/components/wizardLayout/WizardMain.d.ts +1 -1
  16. package/lib/esm/components/wizardLayout/WizardMain.d.ts.map +1 -1
  17. package/lib/esm/components/wizardLayout/WizardNavigation.d.ts +1 -1
  18. package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
  19. package/lib/esm/components/wizardLayout/WizardNavigation.js +4 -6
  20. package/package.json +2 -2
  21. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert.d.ts.map +0 -1
  22. package/lib/esm/components/ConfirmationModals/ConfirmedStateSideSupportModal.d.ts +0 -8
  23. package/lib/esm/components/ConfirmationModals/ConfirmedStateSideSupportModal.d.ts.map +0 -1
  24. package/lib/esm/components/ConfirmationModals/ConfirmedStateSideSupportModal.js +0 -21
@@ -28,7 +28,7 @@ import { ReopenCaseModal } from '../ConfirmationModals/ReopenCaseModal';
28
28
  import { PDFContext } from '../PDFContainer';
29
29
  import { CaseInformation } from '../Tabs/CaseDetails/CaseInformation';
30
30
  import { CaseContactPhoneNumberAlert } from '../Tabs/CaseDetails/CasePhoneNumberConfirmAlert';
31
- import { CasePhoneNumberSev1ConfirmAlert } from '../Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert';
31
+ import { CasePhoneNumberTopConfirmAlert } from '../Tabs/CaseDetails/CasePhoneNumberTopConfirmAlert';
32
32
  import Summary from '../Tabs/CaseDetails/Summary';
33
33
  import CaseOwnerInfo from './CaseOwnerInfo';
34
34
  import CaseStatus from './CaseStatus';
@@ -240,7 +240,7 @@ export default function CaseOverview(props) {
240
240
  React.createElement("p", { className: "pf-v5-u-mb-sm" },
241
241
  React.createElement(Trans, null, "The customer has received two warnings regarding inactivity. This case will be closed soon if we don't receive any input."))) })))),
242
242
  React.createElement(CaseContactPhoneNumberAlert, { isReview: true, tabRef: props.tabsRef }),
243
- React.createElement(CasePhoneNumberSev1ConfirmAlert, { isReview: true, tabRef: props.tabsRef }),
243
+ React.createElement(CasePhoneNumberTopConfirmAlert, { isReview: true, tabRef: props.tabsRef }),
244
244
  React.createElement("header", null,
245
245
  React.createElement("h2", { className: "case-ID" },
246
246
  React.createElement(Trans, null, "Case"),
@@ -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,sBA+QrC"}
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,sBAkRrC"}
@@ -107,7 +107,10 @@ export function CaseContactPhoneNumber() {
107
107
  const maxLengthErrorMessage = t('Phone number cannot be more than {{limit}} digits.', {
108
108
  limit: PHONE_LIMIT,
109
109
  });
110
- const isPhoneNeedsReview = contactSSOName === loggedInUser.data.ssoUsername && suppliedPhoneNumberVerified === 'Deferred';
110
+ const isPhoneNeedsReview = !isEmpty(contactSSOName) &&
111
+ contactSSOName === loggedInUser.data.ssoUsername &&
112
+ suppliedPhoneNumberVerified === 'Deferred' &&
113
+ !isCaseOwnerUpdating;
111
114
  const isPhoneNumberValid = (localFullPhoneState === null || localFullPhoneState === void 0 ? void 0 : localFullPhoneState.length) > PHONE_LIMIT
112
115
  ? ValidatedOptions.error
113
116
  : isPhoneNeedsReview
@@ -14,7 +14,7 @@ import { ShareWithPartner } from '../../ShareCase/PartnerShare';
14
14
  import { CaseContactPhoneNumber } from './CaseContactPhoneNumber';
15
15
  import CaseInternalStatus from './CaseInternalStatus';
16
16
  import { CaseContactPhoneNumberAlert } from './CasePhoneNumberConfirmAlert';
17
- import { CasePhoneNumberSev1ConfirmAlert } from './CasePhoneNumberSev1ConfirmAlert';
17
+ import { CasePhoneNumberTopConfirmAlert } from './CasePhoneNumberTopConfirmAlert';
18
18
  import CaseReferenceNumber from './CaseReferenceNumber';
19
19
  import CaseSbrGroups from './CaseSbrGroups';
20
20
  export default function CaseDetailsManagement(props) {
@@ -39,7 +39,7 @@ export default function CaseDetailsManagement(props) {
39
39
  React.createElement(FlexItem, { flex: { default: 'flex_1' } },
40
40
  React.createElement(CaseContactPhoneNumber, null))),
41
41
  React.createElement(CaseContactPhoneNumberAlert, { isConfirm: true }),
42
- React.createElement(CasePhoneNumberSev1ConfirmAlert, { isConfirm: true }),
42
+ React.createElement(CasePhoneNumberTopConfirmAlert, { isConfirm: true }),
43
43
  canSeeInternalStatus && React.createElement(CaseInternalStatus, null),
44
44
  canSeeSBRGroups && React.createElement(CaseSbrGroups, null),
45
45
  React.createElement(CaseGroup, null),
@@ -1 +1 @@
1
- {"version":3,"file":"CasePhoneNumberConfirmAlert.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAUpD,UAAU,MAAM;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,qBAoGxD"}
1
+ {"version":3,"file":"CasePhoneNumberConfirmAlert.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA+B,MAAM,OAAO,CAAC;AASpD,UAAU,MAAM;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,qBAqGxD"}
@@ -11,6 +11,7 @@ import { Alert, AlertVariant, Button, ButtonVariant } from '@patternfly/react-co
11
11
  import { ToastNotification } from '@rh-support/components';
12
12
  import { GlobalMetadataStateContext } from '@rh-support/react-context';
13
13
  import { scrollIntoView } from '@rh-support/utils';
14
+ import isEmpty from 'lodash/isEmpty';
14
15
  import isEqual from 'lodash/isEqual';
15
16
  import React, { useContext, useState } from 'react';
16
17
  import { Trans, useTranslation } from 'react-i18next';
@@ -22,11 +23,11 @@ import { PDFContext } from '../../PDFContainer';
22
23
  export function CaseContactPhoneNumberAlert(props) {
23
24
  const { globalMetadataState: { loggedInUser }, } = useContext(GlobalMetadataStateContext);
24
25
  const [isCaseUpdating, setCasUpdating] = useState(false);
25
- const { caseNumber, suppliedPhoneNumberVerified, contactSSOName, severity } = useCaseSelector((state) => ({
26
+ const { caseNumber, suppliedPhoneNumberVerified, contactSSOName, isCaseOwnerUpdating } = useCaseSelector((state) => ({
26
27
  caseNumber: state.caseDetails.caseNumber,
27
28
  suppliedPhoneNumberVerified: state.caseDetails.suppliedPhoneNumberVerified,
28
29
  contactSSOName: state.caseDetails.contactSSOName,
29
- severity: state.caseDetails.severity,
30
+ isCaseOwnerUpdating: state.isCaseOwnerUpdating,
30
31
  }), isEqual);
31
32
  const { t } = useTranslation();
32
33
  const caseDispatch = useCaseDispatch();
@@ -47,9 +48,10 @@ export function CaseContactPhoneNumberAlert(props) {
47
48
  const goToPhoneField = () => {
48
49
  scrollIntoView(props.tabRef);
49
50
  };
50
- const isPhoneNeedsReview = contactSSOName === loggedInUser.data.ssoUsername &&
51
+ const isPhoneNeedsReview = !isEmpty(contactSSOName) &&
52
+ contactSSOName === loggedInUser.data.ssoUsername &&
51
53
  suppliedPhoneNumberVerified === 'Deferred' &&
52
- severity !== "1 (Urgent)" /* SeverityLevelsInternal.SEV_1 */; // we show another alert when sev is 1
54
+ !isCaseOwnerUpdating;
53
55
  const NEW_OWNER_MSG = 'You are the new owner for this case. Is the new phone number correct?';
54
56
  if (!isPhoneNeedsReview)
55
57
  return React.createElement(React.Fragment, null);
@@ -4,6 +4,6 @@ interface IProps {
4
4
  isConfirm?: boolean;
5
5
  tabRef?: React.MutableRefObject<HTMLDivElement>;
6
6
  }
7
- export declare function CasePhoneNumberSev1ConfirmAlert(props: IProps): React.JSX.Element;
7
+ export declare function CasePhoneNumberTopConfirmAlert(props: IProps): React.JSX.Element;
8
8
  export {};
9
- //# sourceMappingURL=CasePhoneNumberSev1ConfirmAlert.d.ts.map
9
+ //# sourceMappingURL=CasePhoneNumberTopConfirmAlert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CasePhoneNumberTopConfirmAlert.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberTopConfirmAlert.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAUpD,UAAU,MAAM;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AAMD,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,qBAuG3D"}
@@ -11,6 +11,7 @@ import { Alert, AlertVariant, Button, ButtonVariant } from '@patternfly/react-co
11
11
  import { ToastNotification } from '@rh-support/components';
12
12
  import { GlobalMetadataStateContext } from '@rh-support/react-context';
13
13
  import { scrollIntoView } from '@rh-support/utils';
14
+ import isEmpty from 'lodash/isEmpty';
14
15
  import isEqual from 'lodash/isEqual';
15
16
  import React, { useContext, useState } from 'react';
16
17
  import { Trans, useTranslation } from 'react-i18next';
@@ -23,14 +24,15 @@ import { PDFContext } from '../../PDFContainer';
23
24
  On case detail page when case owner changes the sevirity to sev1, this alert will be displayed
24
25
  // what happens when partner changes ???
25
26
  */
26
- export function CasePhoneNumberSev1ConfirmAlert(props) {
27
+ export function CasePhoneNumberTopConfirmAlert(props) {
27
28
  const { globalMetadataState: { loggedInUser }, } = useContext(GlobalMetadataStateContext);
28
29
  const [isCaseUpdating, setCasUpdating] = useState(false);
29
- const { caseNumber, suppliedPhoneNumberVerified, contactSSOName, severity } = useCaseSelector((state) => ({
30
+ const { caseNumber, suppliedPhoneNumberVerified, contactSSOName, severity, isCaseOwnerUpdating } = useCaseSelector((state) => ({
30
31
  caseNumber: state.caseDetails.caseNumber,
31
32
  suppliedPhoneNumberVerified: state.caseDetails.suppliedPhoneNumberVerified,
32
33
  contactSSOName: state.caseDetails.contactSSOName,
33
34
  severity: state.caseDetails.severity,
35
+ isCaseOwnerUpdating: state.isCaseOwnerUpdating,
34
36
  }), isEqual);
35
37
  const { t } = useTranslation();
36
38
  const caseDispatch = useCaseDispatch();
@@ -51,10 +53,12 @@ export function CasePhoneNumberSev1ConfirmAlert(props) {
51
53
  const goToPhoneField = () => {
52
54
  scrollIntoView(props.tabRef);
53
55
  };
54
- const isPhoneNeedsConfirm = contactSSOName === loggedInUser.data.ssoUsername &&
56
+ const isPhoneNeedsConfirm = !isEmpty(contactSSOName) &&
57
+ contactSSOName === loggedInUser.data.ssoUsername &&
55
58
  severity === "1 (Urgent)" /* SeverityLevelsInternal.SEV_1 */ &&
56
- suppliedPhoneNumberVerified !== 'True';
57
- const SEV1_MSG = 'This case severity is urgent. Please confirm the phone number we have on file is correct.';
59
+ suppliedPhoneNumberVerified !== 'True' &&
60
+ !isCaseOwnerUpdating;
61
+ const SEV_MSG = 'Please confirm the phone number we have on file is correct.';
58
62
  if (!isPhoneNeedsConfirm)
59
63
  return React.createElement(React.Fragment, null);
60
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: [
@@ -63,9 +67,9 @@ export function CasePhoneNumberSev1ConfirmAlert(props) {
63
67
  }, onClick: () => goToPhoneField(), "data-tracking-id": "case-contact-phone-number-review" },
64
68
  React.createElement(Trans, null, "Review phone number")),
65
69
  ] },
66
- 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, SEV_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: [
67
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 },
68
72
  React.createElement(Trans, null, "Confirm phone number")),
69
73
  ] },
70
- React.createElement(Trans, null, SEV1_MSG))) : (React.createElement(React.Fragment, null))));
74
+ React.createElement(Trans, null, SEV_MSG))) : (React.createElement(React.Fragment, null))));
71
75
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PreCaseConfirmationModals.d.ts","sourceRoot":"","sources":["../../../../src/components/ConfirmationModals/PreCaseConfirmationModals.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,oBAAY,6BAA6B;IACrC,SAAS,aAAa;IACtB,mBAAmB,sBAAsB;IACzC,UAAU,cAAc;IACxB,mBAAmB,sBAAsB;CAC5C;AAED,UAAU,MAAM;IACZ,qBAAqB,EAAE,6BAA6B,CAAC;IACrD,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,KAAK,EAAE,MAAM,qBAwB9D"}
1
+ {"version":3,"file":"PreCaseConfirmationModals.d.ts","sourceRoot":"","sources":["../../../../src/components/ConfirmationModals/PreCaseConfirmationModals.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,oBAAY,6BAA6B;IACrC,SAAS,aAAa;IACtB,mBAAmB,sBAAsB;IACzC,UAAU,cAAc;IACxB,mBAAmB,sBAAsB;CAC5C;AAED,UAAU,MAAM;IACZ,qBAAqB,EAAE,6BAA6B,CAAC;IACrD,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,KAAK,EAAE,MAAM,qBAqB9D"}
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import { ConfirmedStateSideSupportModal } from './ConfirmedStateSideSupportModal';
3
2
  import { NoAttachmentSelectedModal } from './NoAttachmentSelectedModal';
4
3
  import { PreferredSecureSupportModal } from './PreferredSecureSupportModal';
5
4
  import ROCMModal from './ROCMModal';
@@ -19,7 +18,6 @@ export default function PreCaseConfirmationModals(props) {
19
18
  onModalClose && onModalClose();
20
19
  };
21
20
  return (React.createElement(React.Fragment, null,
22
- confirmationModalType === PreCaseConfirmationModalsEnum.CSS_MODAL && (React.createElement(ConfirmedStateSideSupportModal, { isOpen: true, onClose: closeModal })),
23
21
  confirmationModalType === PreCaseConfirmationModalsEnum.PREFERRED_GS4_Modal && (React.createElement(PreferredSecureSupportModal, { isOpen: true, onClose: closeModal })),
24
22
  confirmationModalType === PreCaseConfirmationModalsEnum.ROCM_MODAL && (React.createElement(ROCMModal, { isOpen: true, onClose: closeModal, onConfirm: props.onConfirm })),
25
23
  confirmationModalType === PreCaseConfirmationModalsEnum.NO_ATTACHMENT_MODAL && (React.createElement(NoAttachmentSelectedModal, { isOpen: true, onClose: closeModal, onConfirm: props.onConfirm }))));
@@ -10,15 +10,15 @@ const MainSection = (props) => {
10
10
  const { globalMetadataState: { loggedInUsersAccount }, } = useContext(GlobalMetadataStateContext);
11
11
  const isConfirmedStateSideSupport = (_a = loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data) === null || _a === void 0 ? void 0 : _a.hasConfirmedStatesideSupport;
12
12
  return (React.createElement(ErrorBoundary, { isPageLevelError: true },
13
- isConfirmedStateSideSupport && (React.createElement(Alert, { isInline: true, variant: "warning", title: "You have a confirmed stateside support account", className: "pf-v5-u-mb-lg" },
14
- React.createElement("p", null,
15
- "To adhere to data regulations, open this case through",
16
- ' ',
17
- React.createElement("b", null,
18
- React.createElement("a", { href: "https://css-redhat.zendesk.com", target: "_blank", rel: "noopener noreferrer", "data-tracking-id": "stateside-support-link" }, "Confirmed Stateside Support")),
19
- ' ',
20
- "instead of traditional support."))),
21
13
  React.createElement("section", { id: `${props.section}-section`, tabIndex: -1, "aria-labelledby": `${props.section}-heading`, "aria-describedby": `${props.section}-description`, className: `main-step-content ${props.className ? props.className : ''}` },
14
+ isConfirmedStateSideSupport && (React.createElement(Alert, { isInline: true, variant: "warning", title: "You have a confirmed stateside support account", className: "pf-v5-u-mb-lg" },
15
+ React.createElement("p", null,
16
+ "To adhere to data regulations, open this case through",
17
+ ' ',
18
+ React.createElement("b", null,
19
+ React.createElement("a", { href: "https://css-redhat.zendesk.com", target: "_blank", rel: "noopener noreferrer", "data-tracking-id": "stateside-support-link" }, "Confirmed Stateside Support")),
20
+ ' ',
21
+ "instead of traditional support."))),
22
22
  React.createElement(LoadingIndicator, { show: props.isLoading, size: "lg" }),
23
23
  !props.isLoading && (React.createElement(React.Fragment, null,
24
24
  React.createElement("header", { className: "pf-v5-u-display-none-on-sm" },
@@ -1 +1 @@
1
- {"version":3,"file":"WizardLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardLayout.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAuC,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAavG,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,qBAoKzC"}
1
+ {"version":3,"file":"WizardLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardLayout.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAuC,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAavG,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,qBAiKzC"}
@@ -97,12 +97,8 @@ export function WizardLayout(props) {
97
97
  !isReSubmitting &&
98
98
  RouteUtils.navigateToSection(props.routeProps, `${RouteUtils.seBasePath}/${AppRouteSections.SUBMIT_CASE}`, false);
99
99
  });
100
- const confirmSupportModal = (isConfirmedStateSideSupport, hasPreferredSecureSupportAccount) => {
101
- // confirmed state side support show modal logic
102
- if (isConfirmedStateSideSupport) {
103
- setConfirmationModalType(PreCaseConfirmationModalsEnum.CSS_MODAL);
104
- }
105
- else if (hasPreferredSecureSupportAccount) {
100
+ const confirmSupportModal = (hasPreferredSecureSupportAccount) => {
101
+ if (hasPreferredSecureSupportAccount) {
106
102
  setConfirmationModalType(PreCaseConfirmationModalsEnum.PREFERRED_GS4_Modal);
107
103
  // track pendo event
108
104
  pendoTrackEvent(preferredSSModalOpenPendoEvent);
@@ -4,7 +4,7 @@ import { IRouteUrlParams } from '../../reducers/RouteConstNTypes';
4
4
  interface IProps {
5
5
  routeProps: RouteComponentProps<IRouteUrlParams>;
6
6
  submitCaseAndNavigate: (isReSubmitting: boolean) => void;
7
- confirmSupportModal: (isConfirmedStateSideSupport: boolean, hasPreferredSecureSupportAccount: boolean) => void;
7
+ confirmSupportModal: (hasPreferredSecureSupportAccount: boolean) => void;
8
8
  }
9
9
  declare function WizardMain(props: IProps): React.JSX.Element;
10
10
  export default WizardMain;
@@ -1 +1 @@
1
- {"version":3,"file":"WizardMain.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardMain.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAS,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAK9D,OAAO,EAAoB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAOpF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,qBAAqB,EAAE,CAAC,cAAc,EAAE,OAAO,KAAK,IAAI,CAAC;IACzD,mBAAmB,EAAE,CAAC,2BAA2B,EAAE,OAAO,EAAE,gCAAgC,EAAE,OAAO,KAAK,IAAI,CAAC;CAClH;AAED,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,qBA+GhC;AACD,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"WizardMain.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardMain.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAS,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAK9D,OAAO,EAAoB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAOpF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,qBAAqB,EAAE,CAAC,cAAc,EAAE,OAAO,KAAK,IAAI,CAAC;IACzD,mBAAmB,EAAE,CAAC,gCAAgC,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5E;AAED,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,qBA+GhC;AACD,eAAe,UAAU,CAAC"}
@@ -7,7 +7,7 @@ interface IProps {
7
7
  onBack: () => void;
8
8
  activeStep: Partial<ISectionConfiguration>;
9
9
  onSubmit: () => void;
10
- confirmSupportModal: (isConfirmedStateSideSupport: boolean, hasPreferredSecureSupportAccount: boolean) => void;
10
+ confirmSupportModal: (hasPreferredSecureSupportAccount: boolean) => void;
11
11
  onShowRestUpdate: (flag: boolean) => void;
12
12
  }
13
13
  declare function WizardNavigation(props: IProps): React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"WizardNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardNavigation.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAMnD,OAAO,EAAoB,eAAe,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAK3G,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC3C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,mBAAmB,EAAE,CAAC,2BAA2B,EAAE,OAAO,EAAE,gCAAgC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/G,gBAAgB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CAC7C;AAGD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,qBA8JtC;kBA9JQ,gBAAgB;;;AAgKzB,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"WizardNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardNavigation.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAMnD,OAAO,EAAoB,eAAe,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAK3G,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC3C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,mBAAmB,EAAE,CAAC,gCAAgC,EAAE,OAAO,KAAK,IAAI,CAAC;IACzE,gBAAgB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CAC7C;AAGD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,qBA0JtC;kBA1JQ,gBAAgB;;;AA4JzB,eAAe,gBAAgB,CAAC"}
@@ -47,16 +47,14 @@ function WizardNavigation(props) {
47
47
  }), isEqual);
48
48
  const caseDispatch = useCaseDispatch();
49
49
  const onNext = () => {
50
- var _a, _b;
50
+ var _a;
51
51
  updateisNextBtnClickedToShowValidationError(dispatchToRouteReducer, true);
52
52
  const userCanNotOpenCase = props.activeStep.id === AppRouteSections.TROUBLESHOOT && canCreateCase.alert();
53
53
  if (userCanNotOpenCase || !isSectionValidFn(props.activeStep.id))
54
54
  return;
55
- const isConfirmedStateSideSupport = (_a = loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data) === null || _a === void 0 ? void 0 : _a.hasConfirmedStatesideSupport;
56
- const hasPreferredSecureSupportAccount = (_b = loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data) === null || _b === void 0 ? void 0 : _b.hasPreferredSecureSupportAccount;
57
- if (props.activeStep.id === AppRouteSections.TROUBLESHOOT &&
58
- (isConfirmedStateSideSupport || hasPreferredSecureSupportAccount)) {
59
- props.confirmSupportModal(isConfirmedStateSideSupport, hasPreferredSecureSupportAccount);
55
+ const hasPreferredSecureSupportAccount = (_a = loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data) === null || _a === void 0 ? void 0 : _a.hasPreferredSecureSupportAccount;
56
+ if (props.activeStep.id === AppRouteSections.TROUBLESHOOT && hasPreferredSecureSupportAccount) {
57
+ props.confirmSupportModal(hasPreferredSecureSupportAccount);
60
58
  return;
61
59
  }
62
60
  if (props.activeStep.isLastStep) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "2.2.113",
3
+ "version": "2.2.115",
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": "6d24e9e1f94145c2da37d1eee00bea4d3e6a56e5"
134
+ "gitHead": "b97fc0dcf1be4fd610eaaaac840a568ee6bb9867"
135
135
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"CasePhoneNumberSev1ConfirmAlert.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAUpD,UAAU,MAAM;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AAMD,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,qBAoG5D"}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- isOpen: boolean;
4
- onClose: () => void;
5
- }
6
- export declare const ConfirmedStateSideSupportModal: (props: IProps) => React.JSX.Element;
7
- export {};
8
- //# sourceMappingURL=ConfirmedStateSideSupportModal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConfirmedStateSideSupportModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ConfirmationModals/ConfirmedStateSideSupportModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,8BAA8B,UAAW,MAAM,sBAiC3D,CAAC"}
@@ -1,21 +0,0 @@
1
- import { Modal, ModalVariant } from '@patternfly/react-core';
2
- import React from 'react';
3
- import { Trans, useTranslation } from 'react-i18next';
4
- export const ConfirmedStateSideSupportModal = (props) => {
5
- const { t } = useTranslation();
6
- return (React.createElement(Modal, { id: "confirmed-state-side-support-modal", title: t('Confirmed Stateside Support Account'), "aria-describedby": "confirmed-state-side-support-modal", isOpen: props.isOpen, onClose: props.onClose, showClose: true, variant: ModalVariant.small },
7
- React.createElement("p", null,
8
- React.createElement(Trans, null, "Thank you for being a Red Hat Confirmed Stateside Support customer. CSS customers receive their support via a special case management system and a separate phone support number."),
9
- "\u00A0",
10
- React.createElement(Trans, { i18nKey: "i18CSSZenDesk" },
11
- "For opening a CSS support case, please visit",
12
- ' ',
13
- React.createElement("a", { href: "https://css-redhat.zendesk.com", target: "_blank", rel: "noopener noreferrer" }, "css-redhat.zendesk.com"),
14
- ' ',
15
- "or you may dial 888-472-0031 for phone support."),
16
- React.createElement("br", null),
17
- React.createElement("br", null),
18
- React.createElement(Trans, null, "Thank You,"),
19
- React.createElement("br", null),
20
- React.createElement(Trans, null, "Red Hat Support Delivery"))));
21
- };