@rh-support/troubleshoot 2.2.2 → 2.2.4

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 (48) hide show
  1. package/lib/esm/components/AccountInfo/OwnerSelector.d.ts.map +1 -1
  2. package/lib/esm/components/AccountInfo/OwnerSelector.js +1 -1
  3. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
  4. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +15 -6
  5. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.d.ts.map +1 -1
  6. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.js +4 -2
  7. package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts.map +1 -1
  8. package/lib/esm/components/CaseInformation/ContactPhoneNumber.js +13 -3
  9. package/lib/esm/components/CaseManagement/CaseLanguageSelector.d.ts.map +1 -1
  10. package/lib/esm/components/CaseManagement/CaseLanguageSelector.js +1 -1
  11. package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.d.ts.map +1 -1
  12. package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.js +1 -1
  13. package/lib/esm/components/CaseManagement/OpenShiftV3Inputbox.d.ts.map +1 -1
  14. package/lib/esm/components/CaseManagement/OpenShiftV3Inputbox.js +1 -1
  15. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
  16. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +1 -1
  17. package/lib/esm/components/CaseManagement/RHAssociatesSelector.d.ts.map +1 -1
  18. package/lib/esm/components/CaseManagement/RHAssociatesSelector.js +1 -1
  19. package/lib/esm/components/EditDescription/EditDescription.d.ts.map +1 -1
  20. package/lib/esm/components/EditDescription/EditDescription.js +4 -2
  21. package/lib/esm/components/OpenCase/OpenCase.js +2 -2
  22. package/lib/esm/components/OpenCase/SupportTypeSelectorPage.d.ts.map +1 -1
  23. package/lib/esm/components/OpenCase/SupportTypeSelectorPage.js +9 -1
  24. package/lib/esm/components/Recommendations/ClusterRecommendations.d.ts.map +1 -1
  25. package/lib/esm/components/Recommendations/ClusterRecommendations.js +1 -1
  26. package/lib/esm/components/Recommendations/CriticalSolutionsToast.d.ts.map +1 -1
  27. package/lib/esm/components/Recommendations/CriticalSolutionsToast.js +2 -2
  28. package/lib/esm/components/Recommendations/InsightsResults.js +1 -1
  29. package/lib/esm/components/Recommendations/InsightsRuleInfo.js +1 -1
  30. package/lib/esm/components/Review/Review.js +1 -1
  31. package/lib/esm/components/Suggestions/Suggestions.d.ts.map +1 -1
  32. package/lib/esm/components/Suggestions/Suggestions.js +1 -1
  33. package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts.map +1 -1
  34. package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +2 -2
  35. package/lib/esm/components/shared/fileUpload/FileLister.d.ts.map +1 -1
  36. package/lib/esm/components/shared/fileUpload/FileLister.js +2 -2
  37. package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.js +1 -1
  38. package/lib/esm/components/shared/useIsSectionValid.js +12 -10
  39. package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
  40. package/lib/esm/components/wizardLayout/WizardLayout.js +2 -3
  41. package/lib/esm/hooks/useWizard.d.ts.map +1 -1
  42. package/lib/esm/hooks/useWizard.js +3 -2
  43. package/lib/esm/reducers/CaseHelpers.d.ts.map +1 -1
  44. package/lib/esm/reducers/CaseHelpers.js +2 -0
  45. package/lib/esm/reducers/CaseReducer.d.ts +1 -2
  46. package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
  47. package/lib/esm/reducers/CaseReducer.js +1 -3
  48. package/package.json +5 -5
@@ -1 +1 @@
1
- {"version":3,"file":"OwnerSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountInfo/OwnerSelector.tsx"],"names":[],"mappings":"AAqCA,UAAU,MAAM;CAAG;AAEnB,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,eA6TnC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"OwnerSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountInfo/OwnerSelector.tsx"],"names":[],"mappings":"AAqCA,UAAU,MAAM;CAAG;AAEnB,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,eA8TnC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -252,6 +252,6 @@ function OwnerSelector(props) {
252
252
  React.createElement(Trans, null, "Owner"),
253
253
  React.createElement(ValueChangedIcon, { afterLocalChange: afterLocalChange, comparator: ownerComparator, isLocalChange: localOwnerChange, value: selectedOwner.data, getTooltipContent: getChangedValueTooltip(() => CaseValuesToWatch.owner, (v) => v.fullNameCustom) }),
254
254
  React.createElement("span", { className: `form-required ${isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-hidden": true }, "*")),
255
- showUsersWithSelectedGroupAccess ? (React.createElement(Typeahead, { id: "get-support-owner", className: "react-select-custom", clearButton: true, isLoading: selectedCaseGroupUsers.isFetching || isCaseOwnerUpdating, options: usersWithGroupAccess, selected: !isEmpty(selectedOwner.data) ? [selectedOwner.data] : [], onChange: onCustomerContactSelect, labelKey: getHydraContactLabel, placeholder: t(`Search by name or username`), disabled: selectedCaseGroupUsers.isFetching || isCaseOwnerUpdating, renderMenuItemChildren: renderMenuItemChildren, "data-tracking-id": "get-support-owner" })) : (React.createElement(CaseContactsSelectorExternal, { loggedInUserRights: loggedInUserRights.data, selectedAccountNumber: accountNumber, selected: !isEmpty(selectedOwner.data) ? [selectedOwner.data] : [], onChange: onCustomerContactSelect, placeholder: t(`Search by name or username`), clearButton: true, id: "get-support-owner", name: "get-support-owner", className: "react-select-custom", isUpdating: isCaseOwnerUpdating, isInvalid: isNextBtnClickedToShowValidationError && isEmpty(selectedOwner.data) }))));
255
+ showUsersWithSelectedGroupAccess ? (React.createElement(Typeahead, { id: "get-support-owner", className: "react-select-custom", clearButton: true, isLoading: selectedCaseGroupUsers.isFetching || isCaseOwnerUpdating, options: usersWithGroupAccess, selected: !isEmpty(selectedOwner.data) ? [selectedOwner.data] : [], onChange: onCustomerContactSelect, labelKey: getHydraContactLabel, placeholder: t(`Search by name or username`), disabled: selectedCaseGroupUsers.isFetching || isCaseOwnerUpdating, renderMenuItemChildren: renderMenuItemChildren, "data-tracking-id": "get-support-selected-group-owner" })) : (React.createElement(CaseContactsSelectorExternal, { loggedInUserRights: loggedInUserRights.data, selectedAccountNumber: accountNumber, selected: !isEmpty(selectedOwner.data) ? [selectedOwner.data] : [], onChange: onCustomerContactSelect, placeholder: t(`Search by name or username`), clearButton: true, id: "get-support-owner", name: "get-support-owner", className: "react-select-custom", isUpdating: isCaseOwnerUpdating, isInvalid: isNextBtnClickedToShowValidationError && isEmpty(selectedOwner.data), "data-tracking-id": "get-support-owner" }))));
256
256
  }
257
257
  export { OwnerSelector };
@@ -1 +1 @@
1
- {"version":3,"file":"CaseContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.tsx"],"names":[],"mappings":"AAgBA,wBAAgB,sBAAsB,gBAuKrC"}
1
+ {"version":3,"file":"CaseContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.tsx"],"names":[],"mappings":"AAiBA,wBAAgB,sBAAsB,gBAgLrC"}
@@ -13,6 +13,7 @@ import CheckIcon from '@patternfly/react-icons/dist/js/icons/check-icon';
13
13
  import TimesIcon from '@patternfly/react-icons/dist/js/icons/times-icon';
14
14
  import { PhoneInput, ToastNotification } from '@rh-support/components';
15
15
  import { GlobalMetadataStateContext, useCanEditCase } from '@rh-support/react-context';
16
+ import { isEmpty } from 'lodash';
16
17
  import isEqual from 'lodash/isEqual';
17
18
  import React, { useContext, useState } from 'react';
18
19
  import { Trans, useTranslation } from 'react-i18next';
@@ -36,6 +37,7 @@ export function CaseContactPhoneNumber() {
36
37
  const [isCasePhoneUpdating, setCasePhoneUpdating] = useState(false);
37
38
  const [localFullPhoneState, setLocalFullPhoneState] = useState(phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber);
38
39
  const [localCountryCodeState, setLocalCountryCodeState] = useState(phoneCountryCode);
40
+ const [invalid, setInvalid] = useState(false);
39
41
  const caseDispatch = useCaseDispatch();
40
42
  const caseUpdateError = useCaseUpdateErrorMessage();
41
43
  const { t } = useTranslation();
@@ -108,20 +110,27 @@ export function CaseContactPhoneNumber() {
108
110
  limit: PHONE_LIMIT,
109
111
  });
110
112
  const isPhoneNeedsReview = contactSSOName === loggedInUser.data.ssoUsername && suppliedPhoneNumberVerified === 'Deferred';
113
+ const noCharErrorMessage = t('Phone number can only have digits.');
114
+ const isPhoneNumberValid = (localFullPhoneState === null || localFullPhoneState === void 0 ? void 0 : localFullPhoneState.length) > PHONE_LIMIT
115
+ ? ValidatedOptions.error
116
+ : isPhoneNeedsReview
117
+ ? ValidatedOptions.warning
118
+ : invalid
119
+ ? ValidatedOptions.error
120
+ : ValidatedOptions.default;
111
121
  return (React.createElement("div", { className: "form-group pf-u-pb-sm", style: { minWidth: '200px' } },
112
122
  React.createElement("h3", { className: `subheading subheading-sm ${isExportingPDF ? 'expand-input' : ''}` },
113
123
  React.createElement(Trans, null, "Case owner's phone number"),
114
124
  !isExportingPDF ? ContactPhoneNumberPopOver() : ''),
115
125
  React.createElement(InputGroupText, { variant: InputGroupTextVariant.plain },
116
- React.createElement(PhoneInput, { phoneValue: localFullPhoneState, onPhoneValueChange: onPhoneChange, onCountryCodeChange: onCountryCodeChange, validations: (localFullPhoneState === null || localFullPhoneState === void 0 ? void 0 : localFullPhoneState.length) > PHONE_LIMIT
117
- ? ValidatedOptions.error
118
- : isPhoneNeedsReview
119
- ? ValidatedOptions.warning
120
- : ValidatedOptions.default, isDisabled: isCasePhoneUpdating || isCaseOwnerUpdating, isLoading: isCasePhoneUpdating, "data-tracking-id": "case-details-page-supplied-phone" }),
126
+ React.createElement(PhoneInput, { phoneValue: localFullPhoneState, onPhoneValueChange: onPhoneChange, onCountryCodeChange: onCountryCodeChange, validations: isPhoneNumberValid, isDisabled: isCasePhoneUpdating || isCaseOwnerUpdating, isLoading: isCasePhoneUpdating, "data-tracking-id": "case-details-page-supplied-phone", invalid: invalid, setInvalid: setInvalid }),
121
127
  React.createElement("button", { className: "btn btn-app btn-link pf-u-ml-sm", type: "button", "data-tracking-id": "case-details-page-supplied-phone-save", onClick: () => onSave(), disabled: (localFullPhoneState === null || localFullPhoneState === void 0 ? void 0 : localFullPhoneState.length) > PHONE_LIMIT ||
122
128
  localFullPhoneState === phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber, style: { display: isExportingPDF ? 'none' : '' } },
123
129
  React.createElement(CheckIcon, null)),
124
- React.createElement("button", { className: "btn btn-app btn-link", type: "button", onClick: onClear, "data-tracking-id": "case-details-page-supplied-phone-cancel", style: { display: isExportingPDF ? 'none' : '' } },
130
+ React.createElement("button", { className: "btn btn-app btn-link", type: "button", onClick: onClear, "data-tracking-id": "case-details-page-supplied-phone-cancel", style: { display: isExportingPDF ? 'none' : '' }, disabled: isEmpty(localFullPhoneState) },
125
131
  React.createElement(TimesIcon, { color: "#6A6E73" }))),
132
+ invalid && React.createElement("p", { className: "form-instructions form-invalid" },
133
+ noCharErrorMessage,
134
+ " "),
126
135
  (localFullPhoneState === null || localFullPhoneState === void 0 ? void 0 : localFullPhoneState.length) > PHONE_LIMIT && (React.createElement("p", { className: "form-instructions form-invalid" }, maxLengthErrorMessage))));
127
136
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CaseHostname.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseHostname.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAa5D,UAAU,MAAO,SAAQ,gBAAgB;IACrC,cAAc,EAAE,OAAO,CAAC;CAC3B;AAMD,iBAAS,YAAY,CAAC,KAAK,EAAE,MAAM,eAqKlC;kBArKQ,YAAY;;;AAwKrB,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"CaseHostname.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseHostname.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAc5D,UAAU,MAAO,SAAQ,gBAAgB;IACrC,cAAc,EAAE,OAAO,CAAC;CAC3B;AAMD,iBAAS,YAAY,CAAC,KAAK,EAAE,MAAM,eA0KlC;kBA1KQ,YAAY;;;AA6KrB,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -22,6 +22,7 @@ import { HOSTNAME_LENGTH_LIMIT } from '../../../../reducers/CaseConstNTypes';
22
22
  import { updateCaseDetails } from '../../../../reducers/CaseReducer';
23
23
  import { CaseValuesToWatch } from '../../../shared/Constants';
24
24
  import { getChangedValueTooltip } from '../../../shared/utils';
25
+ import { PDFContext } from '../../PDFContainer';
25
26
  const defaultProps = {
26
27
  inlineEditable: false,
27
28
  };
@@ -38,6 +39,7 @@ function CaseHostname(props) {
38
39
  const canUseHostName = ability.can(resourceActions.PATCH, resources.CASE_CREATE, CaseListFields.HOSTNAME);
39
40
  const [isShareHostNamesChecked, setIsShareHostNamesChecked] = useState(false);
40
41
  const [isHostnamesLoading, setIsHostnamesLoading] = useState(true);
42
+ const { isExportingPDF } = useContext(PDFContext);
41
43
  const { globalMetadataState: { loggedInUsersAccount }, } = useContext(GlobalMetadataStateContext);
42
44
  const { request: fetchHostnameDefault } = useFetch(accounts.getIsSharingHostname);
43
45
  const userOriginalHostnameValue = () => __awaiter(this, void 0, void 0, function* () {
@@ -108,8 +110,8 @@ function CaseHostname(props) {
108
110
  return (React.createElement(React.Fragment, null,
109
111
  React.createElement(InlineEdit, { labelProps: { htmlFor: 'case-details-hostname' }, formClassName: props.className || '', labelContent: React.createElement(React.Fragment, null,
110
112
  React.createElement(Trans, null, "Hostname"),
111
- React.createElement(ValueChangedIcon, { afterLocalChange: afterLocalChange, isLocalChange: localHostnameChange, value: hostname, getTooltipContent: getChangedValueTooltip(() => CaseValuesToWatch.hostname) })), helperContent: React.createElement(Popover, { "aria-label": "Hostname Info", position: PopoverPosition.auto, bodyContent: hostNameVisibilityContent, closeBtnAriaLabel: "Close", headerContent: 'Share hostname?', onShow: () => userOriginalHostnameValue() },
112
- React.createElement(QuestionCircleIcon, { className: "pf-u-ml-xs icon-size", "aria-label": "Hostname Info" })), allowInlineEdit: props.inlineEditable, content: hostname, saveDisabled: hostnameState === hostname || isHostnameUpdating || lengthError, onSave: onSave, onCancel: onCancel, initialIsEditing: false, loadingIndicator: isHostnameUpdating ? React.createElement(LoadingIndicator, { show: isHostnameUpdating, isInline: true }) : undefined },
113
+ React.createElement(ValueChangedIcon, { afterLocalChange: afterLocalChange, isLocalChange: localHostnameChange, value: hostname, getTooltipContent: getChangedValueTooltip(() => CaseValuesToWatch.hostname) })), helperContent: !isExportingPDF ? (React.createElement(Popover, { "aria-label": "Hostname Info", position: PopoverPosition.auto, bodyContent: hostNameVisibilityContent, closeBtnAriaLabel: "Close", headerContent: 'Share hostname?', onShow: () => userOriginalHostnameValue() },
114
+ React.createElement(QuestionCircleIcon, { className: "pf-u-ml-xs icon-size", "aria-label": "Hostname Info" }))) : undefined, allowInlineEdit: props.inlineEditable, content: hostname, saveDisabled: hostnameState === hostname || isHostnameUpdating || lengthError, onSave: onSave, onCancel: onCancel, initialIsEditing: false, loadingIndicator: isHostnameUpdating ? React.createElement(LoadingIndicator, { show: isHostnameUpdating, isInline: true }) : undefined, isExportingPDF: isExportingPDF },
113
115
  React.createElement("input", { type: "text", id: "case-details-hostname", className: `form-control${lengthError ? ' form-invalid' : ''}`, name: "case-details-hostname", value: hostnameState, onChange: onHostnameChange, disabled: isHostnameUpdating, "data-tracking-id": "case-details-hostname", "aria-invalid": lengthError })),
114
116
  lengthError && (React.createElement("div", { className: "pull-top" },
115
117
  React.createElement("p", { className: "form-instructions form-invalid" },
@@ -1 +1 @@
1
- {"version":3,"file":"ContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumber.tsx"],"names":[],"mappings":"AAYA,wBAAgB,kBAAkB,gBAsEjC"}
1
+ {"version":3,"file":"ContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumber.tsx"],"names":[],"mappings":"AAYA,wBAAgB,kBAAkB,gBAkFjC"}
@@ -2,7 +2,7 @@ import { ValidatedOptions } from '@patternfly/react-core';
2
2
  import { PhoneInput } from '@rh-support/components';
3
3
  import isEmpty from 'lodash/isEmpty';
4
4
  import isEqual from 'lodash/isEqual';
5
- import React from 'react';
5
+ import React, { useState } from 'react';
6
6
  import { Trans, useTranslation } from 'react-i18next';
7
7
  import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
8
8
  import { PHONE_LIMIT } from '../../reducers/CaseConstNTypes';
@@ -16,10 +16,14 @@ export function ContactPhoneNumber() {
16
16
  phoneCountryCode: state.caseDetails.phoneCountryCode,
17
17
  phoneAreaCodePrefixLineNumber: state.caseDetails.phoneAreaCodePrefixLineNumber,
18
18
  }), isEqual);
19
+ const [invalid, setInvalid] = useState(false);
19
20
  const getPhone = () => phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber.replace(phoneCountryCode, '');
20
21
  const caseDispatch = useCaseDispatch();
21
22
  const { t } = useTranslation();
22
23
  const onPhoneChange = (fullPhone) => {
24
+ if (isEmpty(fullPhone)) {
25
+ setInvalid(false);
26
+ }
23
27
  setCaseDetails(caseDispatch, {
24
28
  phoneAreaCodePrefixLineNumber: phoneCountryCode
25
29
  ? fullPhone.substring(phoneCountryCode.length, fullPhone.length).trim()
@@ -41,12 +45,18 @@ export function ContactPhoneNumber() {
41
45
  ? ValidatedOptions.warning
42
46
  : isPhoneNumberEmpty
43
47
  ? ValidatedOptions.error
44
- : ValidatedOptions.default;
48
+ : invalid
49
+ ? ValidatedOptions.error
50
+ : ValidatedOptions.default;
51
+ const noCharErrorMessage = t('Phone number can only have digits.');
45
52
  return (React.createElement("div", { className: "form-group pf-u-pb-xl", style: { minWidth: '200px' } },
46
53
  React.createElement("label", null,
47
54
  React.createElement(Trans, null, "Case owner's phone number"),
48
55
  ContactPhoneNumberPopOver()),
49
- React.createElement(PhoneInput, { phoneValue: getPhone(), onPhoneValueChange: onPhoneChange, onCountryCodeChange: onCountryCodeChange, validations: isPhoneNumberValid }),
56
+ React.createElement(PhoneInput, { phoneValue: getPhone(), onPhoneValueChange: onPhoneChange, onCountryCodeChange: onCountryCodeChange, validations: isPhoneNumberValid, invalid: invalid, setInvalid: setInvalid }),
57
+ invalid && React.createElement("p", { className: "form-instructions form-invalid" },
58
+ noCharErrorMessage,
59
+ " "),
50
60
  ((_b = getPhone()) === null || _b === void 0 ? void 0 : _b.length) > PHONE_LIMIT && (React.createElement("p", { className: "form-instructions form-invalid" }, maxLengthErrorMessage)),
51
61
  isPhoneNumberEmpty && React.createElement("p", { className: "form-instructions form-invalid" }, phoneNumberEmptyError)));
52
62
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CaseLanguageSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/CaseLanguageSelector.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,MAAM;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,KAAK,EAAE,MAAM,eA4FzD"}
1
+ {"version":3,"file":"CaseLanguageSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/CaseLanguageSelector.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,MAAM;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,KAAK,EAAE,MAAM,eA6FzD"}
@@ -55,7 +55,7 @@ export default function CaseLanguageSelector(props) {
55
55
  React.createElement(Trans, null, "Preferred language"),
56
56
  ' ',
57
57
  React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
58
- React.createElement(Select, { variant: SelectVariant.single, "aria-label": t(`Select a language`), onToggle: onToggle, onSelect: onLanguageChange, selections: caseLanguage, isOpen: isOpen, "aria-labelledby": 'get-support-language', isDisabled: caseLanguages.isError, validated: caseLanguages.isError ? ValidatedOptions.error : ValidatedOptions.default }, caseLanguages.data.map((sla, index) => (React.createElement(SelectOption, { value: sla, key: index }, Constants.languagesMap[sla])))),
58
+ React.createElement(Select, { variant: SelectVariant.single, "aria-label": t(`Select a language`), onToggle: onToggle, onSelect: onLanguageChange, selections: caseLanguage, isOpen: isOpen, "aria-labelledby": 'get-support-language', isDisabled: caseLanguages.isError, validated: caseLanguages.isError ? ValidatedOptions.error : ValidatedOptions.default, "data-tracking-id": "preferred-language-select" }, caseLanguages.data.map((sla, index) => (React.createElement(SelectOption, { value: sla, key: index }, Constants.languagesMap[sla])))),
59
59
  React.createElement("p", { className: "form-instructions" },
60
60
  React.createElement(Trans, null, "Select a language for communicating with our support engineers."))));
61
61
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NoClusterIDReasonSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/NoClusterIDReasonSelector.tsx"],"names":[],"mappings":"AAgBA,UAAU,MAAM;IACZ,uBAAuB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,4BAA4B,EAAE,MAAM,CAAC;IACrC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAeD,QAAA,MAAM,yBAAyB,UAAW,MAAM,gBAmJ/C,CAAC;AAEF,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
1
+ {"version":3,"file":"NoClusterIDReasonSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/NoClusterIDReasonSelector.tsx"],"names":[],"mappings":"AAgBA,UAAU,MAAM;IACZ,uBAAuB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,4BAA4B,EAAE,MAAM,CAAC;IACrC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAeD,QAAA,MAAM,yBAAyB,UAAW,MAAM,gBAoJ/C,CAAC;AAEF,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
@@ -98,7 +98,7 @@ const NoClusterIDReasonSelector = (props) => {
98
98
  React.createElement("span", { className: `form-required ${isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-hidden": true },
99
99
  ' ',
100
100
  "*")),
101
- React.createElement(Select, { variant: SelectVariant.typeahead, typeAheadAriaLabel: t('Select an option or briefly describe your reason'), onToggle: onToggle, onSelect: onSelect, selections: getSelectedItem(), isOpen: isOpen, placeholderText: t('Select an option or briefly describe your reason'), noValidate: props.isInValid, "aria-labelledby": titleId, "aria-invalid": props.isInValid, "aria-describedby": "validate-reason-helper", validated: validated, className: `form-control${props.isInValid ? ' form-invalid' : ''}`, isDisabled: caseNoClusterIdReasons.isFetching || props.isDisabled, required: true, onFilter: () => null, ref: selectRef, onTypeaheadInputChanged: onTypeaheadInputChanged }, (caseNoClusterIdReasonsList || []).map((option, index) => (React.createElement(SelectOption, { key: index, value: createState(option, t(option)) })))),
101
+ React.createElement(Select, { variant: SelectVariant.typeahead, typeAheadAriaLabel: t('Select an option or briefly describe your reason'), onToggle: onToggle, onSelect: onSelect, selections: getSelectedItem(), isOpen: isOpen, placeholderText: t('Select an option or briefly describe your reason'), noValidate: props.isInValid, "aria-labelledby": titleId, "aria-invalid": props.isInValid, "aria-describedby": "validate-reason-helper", validated: validated, className: `form-control${props.isInValid ? ' form-invalid' : ''}`, isDisabled: caseNoClusterIdReasons.isFetching || props.isDisabled, required: true, onFilter: () => null, ref: selectRef, onTypeaheadInputChanged: onTypeaheadInputChanged, "data-tracking-id": "no-openshift-cluster-id-reason" }, (caseNoClusterIdReasonsList || []).map((option, index) => (React.createElement(SelectOption, { key: index, value: createState(option, t(option)) })))),
102
102
  React.createElement(LoadingIndicator, { show: caseNoClusterIdReasons.isFetching, size: "xs" }),
103
103
  React.createElement("p", { id: "validate-reason-helper", className: `form-instructions ${props.isInValid ? 'form-invalid' : ''}` },
104
104
  React.createElement(React.Fragment, null,
@@ -1 +1 @@
1
- {"version":3,"file":"OpenShiftV3Inputbox.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenShiftV3Inputbox.tsx"],"names":[],"mappings":"AAQA,UAAU,MAAM;IACZ,uBAAuB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;CACvB;AAED,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,eA8BzC;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"OpenShiftV3Inputbox.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenShiftV3Inputbox.tsx"],"names":[],"mappings":"AAQA,UAAU,MAAM;IACZ,uBAAuB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;CACvB;AAED,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,eA+BzC;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -12,7 +12,7 @@ function OpenShiftV3Inputbox(props) {
12
12
  React.createElement(Trans, null, "OpenShift Cluster Name"),
13
13
  React.createElement("span", { className: "form-required", "aria-hidden": true }, "*"),
14
14
  React.createElement(CaseOpenShiftV3Popover, null)),
15
- React.createElement(TextInput, { id: "case-details-v3-cluster-name", value: props.v3ClusterName, type: "text", onChange: props.onReasonInputBoxChanged, "aria-label": t('Enter your Cluster Name'), placeholder: t('Enter your Cluster Name'), required: true, className: `form-control ${props.isInValid ? 'form-invalid' : ''}` }),
15
+ React.createElement(TextInput, { id: "case-details-v3-cluster-name", value: props.v3ClusterName, type: "text", onChange: props.onReasonInputBoxChanged, "aria-label": t('Enter your Cluster Name'), placeholder: t('Enter your Cluster Name'), required: true, className: `form-control ${props.isInValid ? 'form-invalid' : ''}`, "data-tracking-id": "openshift-v3-cluster-name" }),
16
16
  React.createElement("p", { id: "validated-helper", className: `form-instructions ${props.isInValid ? 'form-invalid' : ''}` },
17
17
  "If you do not have your Cluster Name available, briefly explain why.",
18
18
  ' ',
@@ -1 +1 @@
1
- {"version":3,"file":"OpenshiftDropdownV4.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenshiftDropdownV4.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAG5E,OAAO,EAAE,gBAAgB,EAAuB,MAAM,0BAA0B,CAAC;AAWjF,UAAU,MAAO,SAAQ,gBAAgB;IACrC,uBAAuB,EAAE,MAAM,CAAC;IAChC,sBAAsB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzF,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iCAAiC,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAChD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC;AAuBD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,eAgXzC;kBAhXQ,mBAAmB;;;AAmX5B,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"OpenshiftDropdownV4.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenshiftDropdownV4.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAG5E,OAAO,EAAE,gBAAgB,EAAuB,MAAM,0BAA0B,CAAC;AAWjF,UAAU,MAAO,SAAQ,gBAAgB;IACrC,uBAAuB,EAAE,MAAM,CAAC;IAChC,sBAAsB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzF,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iCAAiC,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAChD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC;AAuBD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,eAiXzC;kBAjXQ,mBAAmB;;;AAoX5B,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -294,7 +294,7 @@ function OpenshiftDropdownV4(props) {
294
294
  text: 'Display additional results',
295
295
  onClick: onViewMoreClick,
296
296
  },
297
- })), clustersSelectOptions),
297
+ }), { "data-tracking-id": "openshift-cluster-id" }), clustersSelectOptions),
298
298
  React.createElement("div", { id: "clusterID-validate-helper", className: `form-instructions ${props.isClusterIdInvalid ? 'form-invalid' : ''}` }, props.clusterIdDropdownFormInstructions))));
299
299
  }
300
300
  OpenshiftDropdownV4.defaultProps = defaultProps;
@@ -1 +1 @@
1
- {"version":3,"file":"RHAssociatesSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/RHAssociatesSelector.tsx"],"names":[],"mappings":"AAoBA,MAAM,WAAW,MAAM;CAAG;AAG1B,iBAAS,oBAAoB,CAAC,KAAK,EAAE,MAAM,eAiM1C;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"RHAssociatesSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/RHAssociatesSelector.tsx"],"names":[],"mappings":"AAoBA,MAAM,WAAW,MAAM;CAAG;AAG1B,iBAAS,oBAAoB,CAAC,KAAK,EAAE,MAAM,eAkM1C;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -110,7 +110,7 @@ function RHAssociatesSelector(props) {
110
110
  React.createElement(ContactSelectorInternal, { className: "push-bottom-narrow", selectedContacts: filter(selectedNotificationContacts, (c) => c.isInternal), showSelectedContacts: true, contactsToExclude: !isEmpty(selectedOwner.data) ? [{ ssoUsername: selectedOwner.data.ssoUsername }] : [], id: "open-case-rh-notifications", name: "open-case-rh-notifications", multiple: true, contactListParams: {
111
111
  internal: false,
112
112
  isInternalContact: true,
113
- }, placeholder: t(`Add an internal associate to watch this case`), onSelect: onNotifiedUserChange, renderToken: renderToken, isUpdating: isRHAssociatesUpdating }),
113
+ }, placeholder: t(`Add an internal associate to watch this case`), onSelect: onNotifiedUserChange, renderToken: renderToken, isUpdating: isRHAssociatesUpdating, "data-tracking-id": "case-contact-select-rh-watcher" }),
114
114
  caseNumber && showAddWatchButton() && (React.createElement(Button, { variant: "secondary", onClick: addCurrentUser, type: "button", "data-tracking-id": "case-add-me-rh-watcher" },
115
115
  React.createElement(Trans, null, "Add me as a watcher"))),
116
116
  caseNumber && showRemoveWatchButton() && (React.createElement("div", { ref: toolTipRef, className: "remove-me-as-watcher pf-u-display-inline-block" }, isCurrentUserCaseContact ? (React.createElement(React.Fragment, null,
@@ -1 +1 @@
1
- {"version":3,"file":"EditDescription.d.ts","sourceRoot":"","sources":["../../../../src/components/EditDescription/EditDescription.tsx"],"names":[],"mappings":"AAaA,UAAU,MAAM;IACZ,cAAc,EAAE,OAAO,CAAC;CAC3B;AAUD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAAK,EAAE,MAAM,eAoEpD"}
1
+ {"version":3,"file":"EditDescription.d.ts","sourceRoot":"","sources":["../../../../src/components/EditDescription/EditDescription.tsx"],"names":[],"mappings":"AAcA,UAAU,MAAM;IACZ,cAAc,EAAE,OAAO,CAAC;CAC3B;AAUD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAAK,EAAE,MAAM,eAuEpD"}
@@ -11,12 +11,13 @@ import { kase } from '@cee-eng/hydrajs';
11
11
  import { encodeAngularBrackets, linkifyBZIDs, linkifyWithCaseIDs } from '@cee-eng/ui-toolkit';
12
12
  import { InlineEdit, LoadingIndicator, TextAreaAutosize, ToastNotification } from '@rh-support/components';
13
13
  import isEqual from 'lodash/isEqual';
14
- import React, { useState } from 'react';
14
+ import React, { useContext, useState } from 'react';
15
15
  import { Trans, useTranslation } from 'react-i18next';
16
16
  import { useParams } from 'react-router-dom';
17
17
  import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
18
18
  import { DESCRIPTION_LENGTH_LIMIT, LargeDescriptionErrorMessage } from '../../reducers/CaseConstNTypes';
19
19
  import { setCaseDetails } from '../../reducers/CaseReducer';
20
+ import { PDFContext } from '../CaseEditView/PDFContainer';
20
21
  const linkifiedDescription = (text) => {
21
22
  text = encodeAngularBrackets(text);
22
23
  text = linkifyWithCaseIDs(text);
@@ -33,6 +34,7 @@ export default function EditDescription(props) {
33
34
  const caseDispatch = useCaseDispatch();
34
35
  const [localDescription, setLocalDescription] = useState(description);
35
36
  const [isUpdating, setIsUpdating] = useState(false);
37
+ const { isExportingPDF } = useContext(PDFContext);
36
38
  const [isDescriptionTextAreaFocused, setDescriptionTextAreaFocused] = useState(false);
37
39
  const onDescriptionSave = () => __awaiter(this, void 0, void 0, function* () {
38
40
  setDescriptionTextAreaFocused(false);
@@ -58,7 +60,7 @@ export default function EditDescription(props) {
58
60
  };
59
61
  const descriptionErrorMessage = t(LargeDescriptionErrorMessage, { limit: DESCRIPTION_LENGTH_LIMIT });
60
62
  return (React.createElement(InlineEdit, { labelContent: React.createElement(React.Fragment, null,
61
- React.createElement(Trans, null, "Description")), loadingIndicator: isUpdating ? React.createElement(LoadingIndicator, { size: "xs" }) : null, labelProps: { htmlFor: 'edit-description' }, content: React.createElement("div", { dangerouslySetInnerHTML: { __html: linkifiedDescription(localDescription) } }), allowInlineEdit: !!props.inlineEditable, saveDisabled: localDescription === description || isUpdating, usePreformattedTag: true, onSave: onDescriptionSave },
63
+ React.createElement(Trans, null, "Description")), loadingIndicator: isUpdating ? React.createElement(LoadingIndicator, { size: "xs" }) : null, labelProps: { htmlFor: 'edit-description' }, content: React.createElement("div", { dangerouslySetInnerHTML: { __html: linkifiedDescription(localDescription) } }), allowInlineEdit: !!props.inlineEditable, saveDisabled: localDescription === description || isUpdating, usePreformattedTag: true, onSave: onDescriptionSave, isExportingPDF: isExportingPDF },
62
64
  React.createElement(TextAreaAutosize, { id: "edit-description", name: "edit-description", className: `form-control${hasLargeCaseDescription ? ' form-invalid' : ''}`, value: localDescription, disabled: isUpdating, onChange: onDescriptionChange, "data-tracking-id": "edit-description" }),
63
65
  React.createElement("p", { className: "form-instructions" }, `${hasLargeCaseDescription && isDescriptionTextAreaFocused ? descriptionErrorMessage : ''}`)));
64
66
  }
@@ -7,7 +7,7 @@ export default function OpenCase(props) {
7
7
  const canChangeAccountInfo = ability.can(resourceActions.PATCH, resources.CASE_CREATE, CaseListFields.ACCOUNT_AND_OWNER);
8
8
  return (React.createElement("form", null,
9
9
  canChangeAccountInfo && (React.createElement(React.Fragment, null,
10
- React.createElement(AccountSelector, null),
11
- React.createElement(OwnerSelector, null))),
10
+ React.createElement(AccountSelector, { "data-tracking-id": "get-support-account-selector" }),
11
+ React.createElement(OwnerSelector, { "data-tracking-id": "get-support-owner-selector" }))),
12
12
  React.createElement(SupportTypeSelectorPage, null)));
13
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SupportTypeSelectorPage.d.ts","sourceRoot":"","sources":["../../../../src/components/OpenCase/SupportTypeSelectorPage.tsx"],"names":[],"mappings":"AAqBA,MAAM,CAAC,OAAO,UAAU,uBAAuB,gBA+K9C"}
1
+ {"version":3,"file":"SupportTypeSelectorPage.d.ts","sourceRoot":"","sources":["../../../../src/components/OpenCase/SupportTypeSelectorPage.tsx"],"names":[],"mappings":"AAqBA,MAAM,CAAC,OAAO,UAAU,uBAAuB,gBAwL9C"}
@@ -60,6 +60,7 @@ export default function SupportTypeSelectorPage() {
60
60
  oldSupportType: PreviousCaseTypes.DEFECT_BUG,
61
61
  supportTypeHeading: NewCaseTypes.BUG_DEFECT,
62
62
  supportTypeDescription: 'Report an issue with a product',
63
+ dataTrackingID: 'bug-or-defect-support-type',
63
64
  },
64
65
  {
65
66
  id: 1,
@@ -67,6 +68,7 @@ export default function SupportTypeSelectorPage() {
67
68
  oldSupportType: PreviousCaseTypes.CERTIFICATION,
68
69
  supportTypeHeading: NewCaseTypes.CERTIFICATION,
69
70
  supportTypeDescription: 'Hardware and software certification support',
71
+ dataTrackingID: 'certification-support-type',
70
72
  },
71
73
  {
72
74
  id: 2,
@@ -74,6 +76,7 @@ export default function SupportTypeSelectorPage() {
74
76
  oldSupportType: PreviousCaseTypes.CONFIGURATION_ISSUE,
75
77
  supportTypeHeading: NewCaseTypes.CONFIGURATION,
76
78
  supportTypeDescription: 'Set-up and configuration support',
79
+ dataTrackingID: 'configuration-support-type',
77
80
  },
78
81
  {
79
82
  id: 3,
@@ -81,6 +84,7 @@ export default function SupportTypeSelectorPage() {
81
84
  oldSupportType: PreviousCaseTypes.ACCOUNT_CUSTOMERSERVICE_REQUEST,
82
85
  supportTypeHeading: NewCaseTypes.CUSTOMER_SERVICE,
83
86
  supportTypeDescription: 'Account, billing, or subscription support',
87
+ dataTrackingID: 'customer-service-support-type',
84
88
  },
85
89
  {
86
90
  id: 4,
@@ -88,6 +92,7 @@ export default function SupportTypeSelectorPage() {
88
92
  oldSupportType: PreviousCaseTypes.USAGE_DOCUMENTATION_HELP,
89
93
  supportTypeHeading: NewCaseTypes.USAGE_DOCS_HELP,
90
94
  supportTypeDescription: 'Suggest or request an update to content',
95
+ dataTrackingID: 'usage-docs-help-support-type',
91
96
  },
92
97
  {
93
98
  id: 5,
@@ -95,6 +100,7 @@ export default function SupportTypeSelectorPage() {
95
100
  oldSupportType: PreviousCaseTypes.FEATURE_ENHANCEMENT,
96
101
  supportTypeHeading: NewCaseTypes.IDEA,
97
102
  supportTypeDescription: 'Request a feature or product enhancement',
103
+ dataTrackingID: 'idea-support-type',
98
104
  },
99
105
  {
100
106
  id: 6,
@@ -102,11 +108,13 @@ export default function SupportTypeSelectorPage() {
102
108
  oldSupportType: PreviousCaseTypes.RCA_ONLY,
103
109
  supportTypeHeading: NewCaseTypes.ROOT_CAUSE_ANALYSIS,
104
110
  supportTypeDescription: 'Only for identifying the source of an issue',
111
+ dataTrackingID: 'rca-support-type',
105
112
  },
106
113
  {
107
114
  id: 7,
108
115
  oldSupportType: PreviousCaseTypes.OTHER,
109
116
  supportTypeHeading: NewCaseTypes.OTHER,
117
+ dataTrackingID: 'other-support-type',
110
118
  },
111
119
  ];
112
120
  return (React.createElement("div", { className: "form-group" },
@@ -117,7 +125,7 @@ export default function SupportTypeSelectorPage() {
117
125
  React.createElement(Gallery, { hasGutter: true, className: "pf-u-mt-sm" }, SupportTypesArray.map((supportTypesArrayValues) => {
118
126
  var _a;
119
127
  return (React.createElement(GalleryItem, { key: supportTypesArrayValues.id },
120
- React.createElement(Card, { id: supportTypesArrayValues.oldSupportType, key: supportTypesArrayValues.oldSupportType, className: `support-types-card${isNextBtnClickedToShowValidationError && !caseType ? ' support-types-invalid' : ''}`, onKeyDown: onKeyDown, onClick: onSupportTypeClick, onSelectableInputChange: onChange, isSelected: !!caseType && supportTypesArrayValues.oldSupportType === caseType, hasSelectableInput: true, isSelectable: true, isSelectableRaised: true, isFullHeight: true, isDisabledRaised: ((_a = selectedAccountDetails === null || selectedAccountDetails === void 0 ? void 0 : selectedAccountDetails.data) === null || _a === void 0 ? void 0 : _a.subscriptionAbuse) || false, selectableInputAriaLabel: t(supportTypesArrayValues.supportTypeHeading) },
128
+ React.createElement(Card, { id: supportTypesArrayValues.oldSupportType, key: supportTypesArrayValues.oldSupportType, className: `support-types-card${isNextBtnClickedToShowValidationError && !caseType ? ' support-types-invalid' : ''}`, onKeyDown: onKeyDown, onClick: onSupportTypeClick, onSelectableInputChange: onChange, isSelected: !!caseType && supportTypesArrayValues.oldSupportType === caseType, hasSelectableInput: true, isSelectable: true, isSelectableRaised: true, isFullHeight: true, isDisabledRaised: ((_a = selectedAccountDetails === null || selectedAccountDetails === void 0 ? void 0 : selectedAccountDetails.data) === null || _a === void 0 ? void 0 : _a.subscriptionAbuse) || false, selectableInputAriaLabel: t(supportTypesArrayValues.supportTypeHeading), "data-tracking-id": supportTypesArrayValues.dataTrackingID },
121
129
  React.createElement(CardBody, null, supportTypesArrayValues.icon ? (React.createElement(Split, null,
122
130
  React.createElement(SplitItem, { className: "pf-u-pr-lg" },
123
131
  React.createElement(Bullseye, null, supportTypesArrayValues.icon && supportTypesArrayValues.icon)),
@@ -1 +1 @@
1
- {"version":3,"file":"ClusterRecommendations.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/ClusterRecommendations.tsx"],"names":[],"mappings":"AAgBA,UAAU,MAAM;IACZ,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAC1C,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,KAAK,EAAE,MAAM,eA0D3D"}
1
+ {"version":3,"file":"ClusterRecommendations.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/ClusterRecommendations.tsx"],"names":[],"mappings":"AAgBA,UAAU,MAAM;IACZ,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAC1C,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,KAAK,EAAE,MAAM,eAgE3D"}
@@ -36,7 +36,7 @@ export default function ClusterRecommendations(props) {
36
36
  React.createElement(Trans, null, "Cluster recommendations")),
37
37
  React.createElement("div", null,
38
38
  React.createElement(ClusterRecommendationItems, { clusterRecommendations: clusterRecommendations.data.slice(0, NUMBER_OF_RULES_TO_DISPLAY) }),
39
- clusterRecommendations.data.length > NUMBER_OF_RULES_TO_DISPLAY && (React.createElement(Button, { className: "pf-u-p-md", variant: "link", isBlock: true, onClick: onViewMoreRecommendation },
39
+ clusterRecommendations.data.length > NUMBER_OF_RULES_TO_DISPLAY && (React.createElement(Button, { className: "pf-u-p-md", variant: "link", isBlock: true, onClick: onViewMoreRecommendation, "data-tracking-id": "cluster-recs-view-more" },
40
40
  React.createElement(Trans, null, "View more recommendations")))))),
41
41
  showClusterRecommendationsModal && React.createElement(ClusterRecommendationsModal, null)));
42
42
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CriticalSolutionsToast.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/CriticalSolutionsToast.tsx"],"names":[],"mappings":"AAGA,OAAc,EAAE,EAAE,EAAmC,MAAM,OAAO,CAAC;AAOnE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,QAAA,MAAM,sBAAsB,EAAE,EAAE,CAAC,MAAM,CA4DtC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"CriticalSolutionsToast.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/CriticalSolutionsToast.tsx"],"names":[],"mappings":"AAGA,OAAc,EAAE,EAAE,EAAmC,MAAM,OAAO,CAAC;AAOnE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,QAAA,MAAM,sBAAsB,EAAE,EAAE,CAAC,MAAM,CAiEtC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -44,7 +44,7 @@ const CriticalSolutionsToast = (props) => {
44
44
  };
45
45
  if (!showNotification && !rulesState.triggerRuleNotification)
46
46
  return null;
47
- return (React.createElement(Alert, { isLiveRegion: true, variant: "success", title: t('File recommendations are ready to view'), "data-tracking-id": "toast-view-critical-solutions", actionLinks: React.createElement(Button, { isInline: true, variant: "link", onClick: viewCriticalSolution },
48
- React.createElement(Trans, null, "Troubleshooting specific for your uploaded files.")), actionClose: React.createElement(AlertActionCloseButton, { variantLabel: "success alert", onClose: onClose }), timeout: caseType !== PreviousCaseTypes.FEATURE_ENHANCEMENT }));
47
+ return (React.createElement(Alert, { isLiveRegion: true, variant: "success", title: t('File recommendations are ready to view'), actionLinks: React.createElement(Button, { isInline: true, variant: "link", onClick: viewCriticalSolution, "data-tracking-id": "critical-solutions-alert-view" },
48
+ React.createElement(Trans, null, "Troubleshooting specific for your uploaded files.")), actionClose: React.createElement(AlertActionCloseButton, { variantLabel: "success alert", onClose: onClose }), timeout: caseType !== PreviousCaseTypes.FEATURE_ENHANCEMENT, "data-tracking-id": "critical-solutions-alert" }));
49
49
  };
50
50
  export default CriticalSolutionsToast;
@@ -239,7 +239,7 @@ function InsightsResults(props) {
239
239
  return (React.createElement(InsightResultModal, { EARule: validEARules, onModalToggle: insightsModalToggle, isOpen: isRuleModalVisible, insightResults: allResults, isRenderedMain: true }));
240
240
  }
241
241
  return (React.createElement(React.Fragment, null,
242
- !rulesState.triggerRuleNotification && caseType !== PreviousCaseTypes.FEATURE_ENHANCEMENT && (React.createElement(Alert, { isInline: true, title: t('File recommendations are ready to view'), "data-tracking-id": "inline-view-critical-solution", children: React.createElement("p", null,
242
+ !rulesState.triggerRuleNotification && caseType !== PreviousCaseTypes.FEATURE_ENHANCEMENT && (React.createElement(Alert, { isInline: true, title: t('File recommendations are ready to view'), "data-tracking-id": "inline-view-critical-solution-alert", children: React.createElement("p", null,
243
243
  React.createElement(Trans, null, "Troubleshooting specific for your uploaded files.")) })),
244
244
  React.createElement(InsightResultModal, { EARule: validEARules, onModalToggle: insightsModalToggle, isOpen: isRuleModalVisible, insightResults: allResults })));
245
245
  }
@@ -79,6 +79,6 @@ export function InsightsRuleInfo({ doc, showNewTag, duplicateKeys }) {
79
79
  React.createElement(AccordionContent, { isHidden: !isAdditionalExpanded },
80
80
  React.createElement("p", { onClick: onAdditionalInfoElemClick, dangerouslySetInnerHTML: parseMoreInfo(ruleData === null || ruleData === void 0 ? void 0 : ruleData.more_info, (_g = insightsReport === null || insightsReport === void 0 ? void 0 : insightsReport.current) === null || _g === void 0 ? void 0 : _g.details) }))))),
81
81
  React.createElement("pfe-cta", null,
82
- React.createElement("a", { className: "se-recommended ts-result-insights pf-u-font-size-sm", rel: "noopener noreferrer", target: "_blank", onClick: onCtaClick(doc.view_uri), "data-tracking-id": "se-recommended-insights-rule", "aria-label": "Related article", role: "button", href: getTrackingULRWithQueryParams(doc.view_uri, SessionResourceSource.INSIGHTS) },
82
+ React.createElement("a", { className: "se-recommended ts-result-insights pf-u-font-size-sm", rel: "noopener noreferrer", target: "_blank", onClick: onCtaClick(doc.view_uri), "data-tracking-id": "get-support-recommended-insights-rule", "aria-label": "Related article", role: "button", href: getTrackingULRWithQueryParams(doc.view_uri, SessionResourceSource.INSIGHTS) },
83
83
  React.createElement(Trans, null, "Related article"))))))));
84
84
  }
@@ -54,7 +54,7 @@ export default function Review(props) {
54
54
  React.createElement(ContactPhoneNumber, null))),
55
55
  React.createElement(ContactPhoneNumberAlert, null),
56
56
  React.createElement(Fts, { inlineEditable: true, initialIsEditing: isEmpty(contactInfo24x7), hideSaveCancel: true }),
57
- React.createElement(CaseLanguageSelector, null),
57
+ React.createElement(CaseLanguageSelector, { "data-tracking-id": "review-preferred-language" }),
58
58
  React.createElement(CaseGroup, null),
59
59
  canSeeEmailNotifications && React.createElement(CaseContactSelector, null),
60
60
  React.createElement(RHAssociatesSelector, null),
@@ -1 +1 @@
1
- {"version":3,"file":"Suggestions.d.ts","sourceRoot":"","sources":["../../../../src/components/Suggestions/Suggestions.tsx"],"names":[],"mappings":"AAgBA,UAAU,MAAM;IACZ,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,MAAM,eAiGhD"}
1
+ {"version":3,"file":"Suggestions.d.ts","sourceRoot":"","sources":["../../../../src/components/Suggestions/Suggestions.tsx"],"names":[],"mappings":"AAgBA,UAAU,MAAM;IACZ,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,MAAM,eAsGhD"}
@@ -53,5 +53,5 @@ export default function Suggestions(props) {
53
53
  return (React.createElement(TopContent, { seSessionId: activeSessionId, seResourceOriginID: (_b = (_a = sessionResourceTracking[SessionResourceSource.TOP_CONTENT]) === null || _a === void 0 ? void 0 : _a.resourceOriginId) !== null && _b !== void 0 ? _b : '', topContentIndex: index, onResourceClick: onResourceClick, name: sug.categoryName, key: sug.categoryName, items: sug.content, helperText: (sug === null || sug === void 0 ? void 0 : sug.helperText) || '' }));
54
54
  })),
55
55
  showMax && filteredTC.length > maxTC && (React.createElement("div", { className: "text-right" },
56
- React.createElement("button", { className: "btn btn-app btn-link", type: "button", onClick: showAllCategories }, "More catagories")))));
56
+ React.createElement("button", { className: "btn btn-app btn-link", type: "button", onClick: showAllCategories, "data-tracking-id": "suggestions-more-categories" }, "More categories")))));
57
57
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TroubleshootSection.d.ts","sourceRoot":"","sources":["../../../../src/components/TroubleshootSection/TroubleshootSection.tsx"],"names":[],"mappings":"AAmBA,UAAU,MAAM;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AASD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,eAqHzC;kBArHQ,mBAAmB;;;AAwH5B,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"TroubleshootSection.d.ts","sourceRoot":"","sources":["../../../../src/components/TroubleshootSection/TroubleshootSection.tsx"],"names":[],"mappings":"AAmBA,UAAU,MAAM;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AASD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,eA0HzC;kBA1HQ,mBAAmB;;;AA6H5B,eAAe,mBAAmB,CAAC"}
@@ -45,7 +45,7 @@ function TroubleshootSection(props) {
45
45
  };
46
46
  return (React.createElement(React.Fragment, null,
47
47
  !isCreatingCase && (React.createElement(ParentSection, null,
48
- React.createElement(OpenShiftClusterId, { className: "push-bottom" }))),
48
+ React.createElement(OpenShiftClusterId, { className: "push-bottom", "data-tracking-id": "troubleshoot-section-openshift-cluster-id" }))),
49
49
  React.createElement("section", null,
50
50
  React.createElement("header", null,
51
51
  React.createElement("h3", null,
@@ -63,7 +63,7 @@ function TroubleshootSection(props) {
63
63
  React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading suggestions') } }, canShowTopContent && !isEmpty(version) && React.createElement(Suggestions, null)),
64
64
  !isCreatingCase && React.createElement(ClusterRecommendations, { className: "pf-u-mt-lg" }))),
65
65
  React.createElement("section", { className: "pf-u-mt-lg" },
66
- isNotAnIdea && React.createElement(InsightsResults, { isDisplayOnMain: true }),
66
+ isNotAnIdea && (React.createElement(InsightsResults, { isDisplayOnMain: true, "data-tracking-id": "troubleshoot-section-file-recs" })),
67
67
  React.createElement("div", { className: "pf-u-mt-lg" }, canAddAttachments ? (React.createElement(FileDiag, null)) : (React.createElement(React.Fragment, null,
68
68
  React.createElement(Card, { id: "card", className: "card-support card-white file-diag", isCompact: true },
69
69
  React.createElement(CardHeader, { "aria-label": !isNotAnIdea || loggedInUsersAccount.data.secureSupport
@@ -1 +1 @@
1
- {"version":3,"file":"FileLister.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/FileLister.tsx"],"names":[],"mappings":"AA6BA,OAAO,EAAiB,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGxE,eAAO,MAAM,qBAAqB,2FAAyC,CAAC;AAiB5E,UAAU,MAAM;IACZ,kBAAkB,EAAE,UAAU,EAAE,CAAC;IACjC,UAAU,EAAE,CAAC,eAAe,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IACtG,YAAY,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACtE,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,eAAe,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,eAsR/C"}
1
+ {"version":3,"file":"FileLister.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/FileLister.tsx"],"names":[],"mappings":"AA6BA,OAAO,EAAiB,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGxE,eAAO,MAAM,qBAAqB,2FAAyC,CAAC;AAiB5E,UAAU,MAAM;IACZ,kBAAkB,EAAE,UAAU,EAAE,CAAC;IACjC,UAAU,EAAE,CAAC,eAAe,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IACtG,YAAY,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACtE,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,eAAe,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,eAgS/C"}
@@ -130,7 +130,7 @@ export default function FileLister(props) {
130
130
  React.createElement(Trans, null, maxCaseAttachmentDescription))) : null,
131
131
  isUploadedAndAnalysisFailed(localFile) && (React.createElement("span", { className: "text-danger" },
132
132
  React.createElement(Trans, null, "Something went wrong during file analysis."),
133
- React.createElement(Button, { onClick: onRetryAnalysis(index), isInline: true, variant: ButtonVariant.link },
133
+ React.createElement(Button, { onClick: onRetryAnalysis(index), isInline: true, variant: ButtonVariant.link, "data-tracking-id": "something-wrong-try-again" },
134
134
  React.createElement(Trans, null, "Try analyzing again.")))),
135
135
  isUploadFailed(localFile.uploadProgress.uploadStatus) && (React.createElement("span", { className: "text-danger" },
136
136
  React.createElement(Trans, null,
@@ -139,7 +139,7 @@ export default function FileLister(props) {
139
139
  sosReportErrorText(localFile.uploadProgress.uploadErrorMessage),
140
140
  ".",
141
141
  ' '),
142
- React.createElement(Button, { onClick: onRetry(index), isInline: true, variant: ButtonVariant.link },
142
+ React.createElement(Button, { onClick: onRetry(index), isInline: true, variant: ButtonVariant.link, "data-tracking-id": "upload-fail-try-again" },
143
143
  React.createElement(Trans, null, "Try again"))))));
144
144
  })),
145
145
  props.showSlowUploadMsg && isUploadingAttachment(props.selectedLocalFiles) && (React.createElement("span", { className: "text-muted" },
@@ -25,6 +25,6 @@ function FileSelectorButton(_a) {
25
25
  React.createElement("label", { className: "sr-only", htmlFor: "upload-btn" },
26
26
  React.createElement(Trans, null, "Upload new file")),
27
27
  React.createElement("input", Object.assign({ value: "", style: { display: 'none !important' }, id: `${id !== null && id !== void 0 ? id : 'upload-btn'}` }, getInputProps())),
28
- React.createElement("button", Object.assign({}, btnProps, { type: "button", className: `pf-c-button ${className}` }), buttonLabel)));
28
+ React.createElement("button", Object.assign({}, btnProps, { type: "button", className: `pf-c-button ${className}`, "data-tracking-id": "upload-a-file" }), buttonLabel)));
29
29
  }
30
30
  export default FileSelectorButton;
@@ -43,7 +43,7 @@ export function useIsSectionValid(sectionName) {
43
43
  if (caseType === 'Feature / Enhancement Request') {
44
44
  unallowedFiles = selectedLocalFiles.filter((file) => !allowedTypesIdea.includes(file.type));
45
45
  }
46
- let hasUnallowedFiles = unallowedFiles.length > 0;
46
+ let hasUnallowedFiles = (unallowedFiles === null || unallowedFiles === void 0 ? void 0 : unallowedFiles.length) > 0;
47
47
  return !hasUnallowedFiles; // we want it false to trigger the error if its true
48
48
  };
49
49
  const isGetSupportSectionValidLocal = () => {
@@ -53,6 +53,7 @@ export function useIsSectionValid(sectionName) {
53
53
  !selectedAccountDetails.data.subscriptionAbuse);
54
54
  };
55
55
  const isSummarizeSectionValid = () => {
56
+ var _a;
56
57
  return (!isEmpty(product) &&
57
58
  !isEmpty(version) &&
58
59
  !allProducts.isFetching &&
@@ -60,15 +61,16 @@ export function useIsSectionValid(sectionName) {
60
61
  !topContent.isFetching &&
61
62
  !isEmpty(summary) &&
62
63
  !recommendationState.isLoadingRecommendations &&
63
- summary.length < SUMMARY_LENGTH_LIMIT);
64
+ ((_a = summary) === null || _a === void 0 ? void 0 : _a.length) < SUMMARY_LENGTH_LIMIT);
64
65
  };
65
66
  const isCaseManagementSectionValid = () => {
67
+ var _a, _b;
66
68
  const hasContactInfo24x7ValidLength = contactInfo24x7
67
- ? contactInfo24x7.length <= CONTACT_INFO_24X7_LIMIT
69
+ ? (contactInfo24x7 === null || contactInfo24x7 === void 0 ? void 0 : contactInfo24x7.length) <= CONTACT_INFO_24X7_LIMIT
68
70
  : true;
69
- const hasAlternateCaseIdValidLength = alternateId ? alternateId.length <= CASE_REFERENCE_NUMBER_LIMIT : true;
71
+ const hasAlternateCaseIdValidLength = alternateId ? (alternateId === null || alternateId === void 0 ? void 0 : alternateId.length) <= CASE_REFERENCE_NUMBER_LIMIT : true;
70
72
  const hasSuppliedPhoneValidLength = phoneAreaCodePrefixLineNumber || phoneCountryCode
71
- ? phoneCountryCode.length + phoneAreaCodePrefixLineNumber.length + 1 <= PHONE_LIMIT
73
+ ? ((_a = phoneCountryCode) === null || _a === void 0 ? void 0 : _a.length) + ((_b = phoneAreaCodePrefixLineNumber) === null || _b === void 0 ? void 0 : _b.length) + 1 <= PHONE_LIMIT
72
74
  : true;
73
75
  return (isCaseManagementStateValid(caseState, loggedInUserJwtToken) &&
74
76
  hasContactInfo24x7ValidLength &&
@@ -76,15 +78,15 @@ export function useIsSectionValid(sectionName) {
76
78
  hasSuppliedPhoneValidLength);
77
79
  };
78
80
  const isTroubleshootSectionValid = () => {
79
- var _a;
81
+ var _a, _b, _c;
80
82
  // don't check for entitled product if user is on search intent flow
81
83
  const isEntitledProductLocal = isSearchIntent ? true : isEntitledProduct;
82
84
  return (!recommendationState.isLoadingRecommendations &&
83
85
  !isEmpty(summary) &&
84
86
  isEntitledProductLocal &&
85
- summary.length <= SUMMARY_LENGTH_LIMIT &&
86
- description.length <= DESCRIPTION_LENGTH_LIMIT &&
87
- isClusterIDValid(caseState, (_a = allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult));
87
+ ((_a = summary) === null || _a === void 0 ? void 0 : _a.length) <= SUMMARY_LENGTH_LIMIT &&
88
+ ((_b = description) === null || _b === void 0 ? void 0 : _b.length) <= DESCRIPTION_LENGTH_LIMIT &&
89
+ isClusterIDValid(caseState, (_c = allProducts.data) === null || _c === void 0 ? void 0 : _c.productsResult));
88
90
  };
89
91
  const isReviewSectionValid = () => {
90
92
  var _a;
@@ -103,7 +105,7 @@ export function useIsSectionValid(sectionName) {
103
105
  };
104
106
  const isCaseDescribeMoreSectionValidLocal = () => {
105
107
  var _a;
106
- const hostnameIsValid = hostname ? hostname.length <= HOSTNAME_LENGTH_LIMIT : true;
108
+ const hostnameIsValid = hostname ? (hostname === null || hostname === void 0 ? void 0 : hostname.length) <= HOSTNAME_LENGTH_LIMIT : true;
107
109
  return (!caseState.hasInvalidEntitlements &&
108
110
  isClusterIDValid(caseState, (_a = allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult) &&
109
111
  isCaseInformationSectionValid(caseState, loggedInUserJwtToken) &&
@@ -1 +1 @@
1
- {"version":3,"file":"WizardLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardLayout.tsx"],"names":[],"mappings":"AASA,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,eA8IzC"}
1
+ {"version":3,"file":"WizardLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardLayout.tsx"],"names":[],"mappings":"AASA,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,eAqIzC"}
@@ -18,7 +18,7 @@ import React, { useContext, useRef, useState } from 'react';
18
18
  import { Trans } from 'react-i18next';
19
19
  import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
20
20
  import { RouteContext } from '../../context/RouteContext';
21
- import { SessionRestoreDispatchContext, SessionRestoreStateContext } from '../../context/SessionRestoreContext';
21
+ import { SessionRestoreStateContext } from '../../context/SessionRestoreContext';
22
22
  import { submitCase } from '../../reducers/CaseReducer';
23
23
  import { AppRouteSections } from '../../reducers/RouteConstNTypes';
24
24
  import RouteUtils from '../../utils/routeUtils';
@@ -33,7 +33,6 @@ import WizardMain from './WizardMain';
33
33
  export function WizardLayout(props) {
34
34
  const { routeState: { activeSection, isCaseCreate }, } = useContext(RouteContext);
35
35
  const caseState = useCaseSelector((state) => state, isEqual);
36
- const sessionRestoreDispatch = useContext(SessionRestoreDispatchContext);
37
36
  const caseDispatch = useCaseDispatch();
38
37
  const { sessionRestore: { activeSessionId, previousSessions }, } = useContext(SessionRestoreStateContext);
39
38
  const { globalMetadataState: { allProducts }, } = useContext(GlobalMetadataStateContext);
@@ -85,7 +84,7 @@ export function WizardLayout(props) {
85
84
  "Try submitting again after a minute. Please ",
86
85
  React.createElement(SupportFeedbackForm, { isInline: true }),
87
86
  " if you continue to see this message.")));
88
- submitCase(caseDispatch, sessionRestoreDispatch, caseState, sessionItem, isCaseCreate, errorMessageCaseSubmit500);
87
+ submitCase(caseDispatch, caseState, sessionItem, isCaseCreate, errorMessageCaseSubmit500);
89
88
  // reset viewedModals on case submit
90
89
  viewedConfirmationModalsList.current = [];
91
90
  !isReSubmitting &&
@@ -1 +1 @@
1
- {"version":3,"file":"useWizard.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWizard.tsx"],"names":[],"mappings":"AA+BA,wBAAgB,SAAS,CAAC,UAAU,KAAA;iCAuNG,OAAO;EAwC7C"}
1
+ {"version":3,"file":"useWizard.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWizard.tsx"],"names":[],"mappings":"AA+BA,wBAAgB,SAAS,CAAC,UAAU,KAAA;iCAwNG,OAAO;EAwC7C"}
@@ -40,10 +40,11 @@ export function useWizard(routeProps) {
40
40
  };
41
41
  const alertMessage = () => {
42
42
  // alert title and variant based on multiple conditions for two different sections
43
- const title = topContent.isFetching || (isLoadingRecommendations && summary)
43
+ const isLoading = topContent.isFetching || (isLoadingRecommendations && summary);
44
+ const title = isLoading
44
45
  ? t('Please wait while recommendations are loading')
45
46
  : t('Please address the errors to proceed');
46
- return (React.createElement(AlertMessage, { show: isNextBtnClickedToShowValidationError && !isActiveSectionValid, variant: (isLoadingRecommendations && summary) || topContent.isFetching ? AlertType.INFO : AlertType.DANGER, isInline: true, title: title, className: "pf-u-mb-lg" }));
47
+ return (React.createElement(AlertMessage, { show: isNextBtnClickedToShowValidationError && !isActiveSectionValid, variant: (isLoadingRecommendations && summary) || topContent.isFetching ? AlertType.INFO : AlertType.DANGER, isInline: true, title: title, className: "pf-u-mb-lg", "data-tracking-id": isLoading ? 'wait-recommendations-loading' : 'proceed-address-errors' }));
47
48
  };
48
49
  // components that are used in wizard steps
49
50
  const appRouteConfugurations = {
@@ -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,E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id = (caseState, allProducts) => {
132
132
  export const isCaseStateValid = (caseState, loggedInUserJwtToken) => {
133
133
  var _a, _b;
134
134
  const case_details = caseState.caseDetails;
135
+ const regex = /^[\d ()+-]+$/;
135
136
  return (!isEmpty(case_details.issue) &&
136
137
  isEmpty(case_details.caseNumber) &&
137
138
  !caseState.hasLargeCaseDescription &&
@@ -161,6 +162,7 @@ export const isCaseStateValid = (caseState, loggedInUserJwtToken) => {
161
162
  isEmpty(case_details.phoneAreaCodePrefixLineNumber.replace(case_details.phoneCountryCode, ''))
162
163
  ? false
163
164
  : true) &&
165
+ regex.test(case_details.phoneAreaCodePrefixLineNumber.replace(case_details.phoneCountryCode, '')) &&
164
166
  (caseState.selectedAccountDetails.data.requireCGroupOnCreate
165
167
  ? !isEmpty(case_details.groupNumber) && case_details.groupNumber !== '-1'
166
168
  : true) &&
@@ -7,12 +7,11 @@ import { ISolrRecommendation } from '@cee-eng/hydrajs/@types/models/solr/solr';
7
7
  import { IApiResponseDetails } from '@rh-support/types/shared';
8
8
  import { UserAuth } from '@rh-support/user-permissions';
9
9
  import { CaseReducerDispatchType, ICaseState } from './CaseConstNTypes';
10
- import { SessionReducerDispatchType } from './SessionRestoreReducer';
11
10
  export declare const caseReducer: (pState: ICaseState, action: any) => ICaseState;
12
11
  export declare const setCaseDetails: (dispatch: CaseReducerDispatchType, caseState: Partial<ICasePayload>) => void;
13
12
  export declare const setCaseState: (dispatch: CaseReducerDispatchType, caseState: Partial<ICaseState>) => void;
14
13
  export declare const setNotifiedUser: (dispatch: CaseReducerDispatchType, selectedNotificationContacts: IContact[]) => void;
15
- export declare const submitCase: (dispatch: CaseReducerDispatchType, sessionRestoreDispatch: SessionReducerDispatchType, caseDetails: ICaseState, sessionItem: ISessionItem, isCaseCreate: boolean, errorMessage500: string | JSX.Element) => Promise<void>;
14
+ export declare const submitCase: (dispatch: CaseReducerDispatchType, caseDetails: ICaseState, sessionItem: ISessionItem, isCaseCreate: boolean, errorMessage500: string | JSX.Element) => Promise<void>;
16
15
  /**
17
16
  * Update case details if there is HTTP 500 error while submitting case
18
17
  * @param dispatch CaseReducerDispatchType
@@ -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;AASxD,OAAO,EAEH,uBAAuB,EAEvB,UAAU,EAEb,MAAM,mBAAmB,CAAC;AAS3B,OAAO,EAAE,0BAA0B,EAAiB,MAAM,yBAAyB,CAAC;AAEpF,eAAO,MAAM,WAAW,WAAY,UAAU,UAAU,GAAG,KAAG,UA6L7D,CAAC;AAGF,eAAO,MAAM,cAAc,aAAc,uBAAuB,aAAa,QAAQ,YAAY,CAAC,SAEjG,CAAC;AAEF,eAAO,MAAM,YAAY,aAAc,uBAAuB,aAAa,QAAQ,UAAU,CAAC,SAE7F,CAAC;AAEF,eAAO,MAAM,eAAe,aAAc,uBAAuB,gCAAgC,QAAQ,EAAE,SAK1G,CAAC;AAEF,eAAO,MAAM,UAAU,aACT,uBAAuB,0BACT,0BAA0B,eACrC,UAAU,eACV,YAAY,gBACX,OAAO,mBACJ,MAAM,GAAG,WAAW,kBA8BxC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oCAAoC,aAAc,u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,CAAC;AAIF,eAAO,MAAM,yBAAyB,aACxB,uBAAuB,iBAClB,MAAM,eACR,MAAM,sBACC,QAAQ,kBA6B/B,CAAC;AAEF,wBAAsB,2BAA2B,CAAC,QAAQ,EAAE,uBAAuB,EAAE,UAAU,EAAE,MAAM,iBAmBtG;AAGD,wBAAgB,oBAAoB,CAChC,QAAQ,EAAE,uBAAuB,EACjC,KAAK,EAAE,MAAM,EACb,gBAAgB,EAAE,mBAAmB,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"}
@@ -18,7 +18,6 @@ import uniq from 'lodash/uniq';
18
18
  import uniqBy from 'lodash/uniqBy';
19
19
  import { CaseReducerConstants, DESCRIPTION_LENGTH_LIMIT, initialCaseState, } from './CaseConstNTypes';
20
20
  import { createCasePayload, getCaseFromSessionDetails, getCaseRecommendations, getCepCommentFromCepDetails, getHasInvalidEntitlements, getProcessedEntitlements, } from './CaseHelpers';
21
- import { updateSession } from './SessionRestoreReducer';
22
21
  export const caseReducer = (pState, action) => {
23
22
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
24
23
  switch (action.type) {
@@ -149,7 +148,7 @@ export const setNotifiedUser = (dispatch, selectedNotificationContacts) => {
149
148
  payload: { selectedNotificationContacts },
150
149
  });
151
150
  };
152
- export const submitCase = (dispatch, sessionRestoreDispatch, caseDetails, sessionItem, isCaseCreate, errorMessage500) => __awaiter(void 0, void 0, void 0, function* () {
151
+ export const submitCase = (dispatch, caseDetails, sessionItem, isCaseCreate, errorMessage500) => __awaiter(void 0, void 0, void 0, function* () {
153
152
  dispatch({ type: CaseReducerConstants.isCreatingCase });
154
153
  try {
155
154
  const casePayload = createCasePayload(caseDetails, sessionItem, isCaseCreate);
@@ -159,7 +158,6 @@ export const submitCase = (dispatch, sessionRestoreDispatch, caseDetails, sessio
159
158
  supportPhoneAreaCodePrefixLineNumber: casePayload.phoneAreaCodePrefixLineNumber,
160
159
  });
161
160
  postCaseCreationProcessing(dispatch, caseNumber, caseDetails);
162
- yield updateSession(sessionRestoreDispatch, sessionItem.session.id, sessionItem.sessionDetails, sessionItem.session);
163
161
  dispatch({ type: CaseReducerConstants.caseCreated, payload: { caseDetails: { caseNumber } } });
164
162
  }
165
163
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "2.2.2",
3
+ "version": "2.2.4",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -66,10 +66,10 @@
66
66
  "@patternfly/react-core": "4.264.0",
67
67
  "@progress/kendo-drawing": "^1.6.0",
68
68
  "@progress/kendo-react-pdf": "^3.12.0",
69
- "@rh-support/components": "2.1.1",
70
- "@rh-support/react-context": "2.1.1",
69
+ "@rh-support/components": "2.1.3",
70
+ "@rh-support/react-context": "2.1.3",
71
71
  "@rh-support/types": "2.0.2",
72
- "@rh-support/user-permissions": "2.1.1",
72
+ "@rh-support/user-permissions": "2.1.2",
73
73
  "@rh-support/utils": "2.1.0",
74
74
  "@types/react-redux": "^7.1.12",
75
75
  "@types/redux": "^3.6.0",
@@ -133,5 +133,5 @@
133
133
  "defaults and supports es6-module",
134
134
  "maintained node versions"
135
135
  ],
136
- "gitHead": "edc82728887d89d9975d36c7a08b2ab6d7b73085"
136
+ "gitHead": "bf789446dfb9720390fb2f595c43f4c1928d6529"
137
137
  }