@rh-support/troubleshoot 2.2.7 → 2.2.9

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 (26) hide show
  1. package/lib/esm/components/AccountInfo/OwnerSelector.d.ts.map +1 -1
  2. package/lib/esm/components/AccountInfo/OwnerSelector.js +5 -3
  3. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
  4. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +26 -5
  5. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts.map +1 -1
  6. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +2 -2
  7. package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts.map +1 -1
  8. package/lib/esm/components/CaseInformation/ContactPhoneNumber.js +29 -1
  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/CaseManagement.js +3 -3
  12. package/lib/esm/components/IdeaInformation/IdeaInformtion.d.ts.map +1 -1
  13. package/lib/esm/components/IdeaInformation/IdeaInformtion.js +3 -3
  14. package/lib/esm/components/Review/Review.js +2 -2
  15. package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
  16. package/lib/esm/components/SubmitCase/SubmitCase.js +5 -5
  17. package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
  18. package/lib/esm/components/shared/useIsSectionValid.js +2 -6
  19. package/lib/esm/components/shared/utils.d.ts.map +1 -1
  20. package/lib/esm/components/shared/utils.js +6 -10
  21. package/lib/esm/reducers/CaseConstNTypes.d.ts +2 -2
  22. package/lib/esm/reducers/CaseConstNTypes.js +2 -2
  23. package/lib/esm/reducers/CaseHelpers.d.ts.map +1 -1
  24. package/lib/esm/reducers/CaseHelpers.js +3 -7
  25. package/lib/esm/scss/_pf4-overrides.scss +0 -4
  26. package/package.json +2 -2
@@ -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,eA0VnC;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,eA6VnC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -63,10 +63,12 @@ function OwnerSelector(props) {
63
63
  });
64
64
  }
65
65
  else {
66
+ const phoneLine = getPhoneObj(loggedInUser.data.phone).phoneLine || '';
67
+ const countryCode = getPhoneObj(loggedInUser.data.phone).countryCode;
66
68
  setCaseDetails(caseDispatch, {
67
- phoneAreaCodePrefixLineNumber: getPhoneObj(loggedInUser.data.phone).phoneLine || '',
68
- phoneCountryCode: getPhoneObj(loggedInUser.data.phone).countryCode,
69
- suppliedPhoneNumberVerified: 'True',
69
+ phoneAreaCodePrefixLineNumber: phoneLine,
70
+ phoneCountryCode: countryCode,
71
+ suppliedPhoneNumberVerified: phoneLine && countryCode ? 'True' : 'False',
70
72
  });
71
73
  }
72
74
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CaseContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,sBAAsB,gBA8MrC"}
1
+ {"version":3,"file":"CaseContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,sBAAsB,gBAqOrC"}
@@ -11,7 +11,7 @@ import { contacts } from '@cee-eng/hydrajs';
11
11
  import { InputGroupText, InputGroupTextVariant, ValidatedOptions } from '@patternfly/react-core';
12
12
  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
- import { PhoneInput, ToastNotification } from '@rh-support/components';
14
+ import { getPhoneObj, PhoneInput, ToastNotification } from '@rh-support/components';
15
15
  import { GlobalMetadataStateContext, useCanEditCase } from '@rh-support/react-context';
16
16
  import isEmpty from 'lodash/isEmpty';
17
17
  import isEqual from 'lodash/isEqual';
@@ -25,13 +25,14 @@ import { updateCaseDetails } from '../../../../reducers/CaseReducer';
25
25
  import { ContactPhoneNumberPopOver } from '../../../CaseInformation/ContactPhoneNumberPopOver';
26
26
  import { PDFContext } from '../../PDFContainer';
27
27
  export function CaseContactPhoneNumber() {
28
- const { phoneCountryCode = '', phoneAreaCodePrefixLineNumber = '', caseNumber, contactSSOName, suppliedPhoneNumberVerified, isCaseOwnerUpdating, } = useCaseSelector((state) => ({
28
+ const { phoneCountryCode = '', phoneAreaCodePrefixLineNumber = '', caseNumber, contactSSOName, suppliedPhoneNumberVerified, isCaseOwnerUpdating, phone, } = useCaseSelector((state) => ({
29
29
  phoneCountryCode: state.caseDetails.phoneCountryCode || '',
30
30
  phoneAreaCodePrefixLineNumber: state.caseDetails.phoneAreaCodePrefixLineNumber || '',
31
31
  caseNumber: state.caseDetails.caseNumber,
32
32
  contactSSOName: state.caseDetails.contactSSOName,
33
33
  suppliedPhoneNumberVerified: state.caseDetails.suppliedPhoneNumberVerified,
34
34
  isCaseOwnerUpdating: state.isCaseOwnerUpdating,
35
+ phone: state.caseDetails.phone,
35
36
  }), isEqual);
36
37
  const { globalMetadataState: { loggedInUser }, } = useContext(GlobalMetadataStateContext);
37
38
  const canEditCase = useCanEditCase();
@@ -40,6 +41,7 @@ export function CaseContactPhoneNumber() {
40
41
  const [localCountryCodeState, setLocalCountryCodeState] = useState(phoneCountryCode);
41
42
  const [invalid, setInvalid] = useState(false);
42
43
  const [isSaveClicked, setIsSavedClicked] = useState(false);
44
+ const [isShowOldPhone, setIsShowOldPhone] = useState(false);
43
45
  const caseDispatch = useCaseDispatch();
44
46
  const caseUpdateError = useCaseUpdateErrorMessage();
45
47
  const { t } = useTranslation();
@@ -121,8 +123,22 @@ export function CaseContactPhoneNumber() {
121
123
  ? ValidatedOptions.error
122
124
  : ValidatedOptions.default;
123
125
  useEffect(() => {
124
- setLocalFullPhoneState(phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber);
125
- }, [phoneCountryCode, phoneAreaCodePrefixLineNumber]);
126
+ var _a, _b;
127
+ if (isEmpty(phoneCountryCode) && isEmpty(phoneAreaCodePrefixLineNumber && !isEmpty(phone))) {
128
+ const oldPhoneline = ((_a = getPhoneObj(phone)) === null || _a === void 0 ? void 0 : _a.phoneLine) || '';
129
+ const oldCountryCode = ((_b = getPhoneObj(phone)) === null || _b === void 0 ? void 0 : _b.countryCode) || '';
130
+ if (oldPhoneline && oldCountryCode.replace('+', '')) {
131
+ setLocalFullPhoneState(oldCountryCode + ' ' + oldPhoneline);
132
+ }
133
+ else {
134
+ setIsShowOldPhone(true);
135
+ }
136
+ }
137
+ else {
138
+ setLocalFullPhoneState(phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber);
139
+ setIsShowOldPhone(false);
140
+ }
141
+ }, [phoneCountryCode, phoneAreaCodePrefixLineNumber, phone]);
126
142
  return (React.createElement("div", { className: "form-group pf-u-pb-md", style: { minWidth: '200px' } },
127
143
  React.createElement("h3", { className: `subheading subheading-sm ${isExportingPDF ? 'expand-input' : ''}` },
128
144
  React.createElement(Trans, null, "Case owner's phone number"),
@@ -141,5 +157,10 @@ export function CaseContactPhoneNumber() {
141
157
  isSaveClicked && isPhoneLineEmpty && (React.createElement("p", { className: "form-instructions form-invalid" },
142
158
  React.createElement(Trans, null, PHONE_LINE_CANNOT_BE_EMPTY))),
143
159
  isSaveClicked && isPhoneNumberInvalid && (React.createElement("p", { className: "form-instructions form-invalid" },
144
- React.createElement(Trans, null, PHONE_IS_NOT_VALID)))));
160
+ React.createElement(Trans, null, PHONE_IS_NOT_VALID))),
161
+ isShowOldPhone && (React.createElement("p", { className: "form-instructions form-invalid" },
162
+ React.createElement(Trans, null,
163
+ "The phone number on case is ",
164
+ phone,
165
+ ". The format of the phone field is changed and this phone does not fit.")))));
145
166
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CaseComments.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AA6BvE,OAAO,KAA+B,MAAM,OAAO,CAAC;AAQpD,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,YAAY,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAClF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,kBAAkB,EAAE,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAChH;AAED,QAAA,MAAM,YAAY,4EAmThB,CAAC;AAEH,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"CaseComments.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AA6BvE,OAAO,KAA+B,MAAM,OAAO,CAAC;AAQpD,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,YAAY,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAClF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,kBAAkB,EAAE,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAChH;AAED,QAAA,MAAM,YAAY,4EAqThB,CAAC;AAEH,eAAe,YAAY,CAAC"}
@@ -177,10 +177,10 @@ const CaseComments = React.forwardRef((props, ref) => {
177
177
  return (React.createElement("div", { className: "push-top-narrow comment-markdown-text", dangerouslySetInnerHTML: commentMarkdown(comment.commentBody) }));
178
178
  }
179
179
  else if (!isEmpty(comment.commentBody) && comment.contentType === EditorMode.PLAIN) {
180
- return (React.createElement("pre", { className: "push-top-narrow comment-plaintext reset-pre-text", dangerouslySetInnerHTML: commentText(parseComment) }));
180
+ return (React.createElement("pre", { className: "push-top-narrow comment-plaintext reset-pre-text", dangerouslySetInnerHTML: commentText(parseComment), style: { fontFamily: isExportingPDF ? 'DejaVu Sans' : '' } }));
181
181
  }
182
182
  else {
183
- return (React.createElement("pre", { className: "push-top-narrow comment-plaintext reset-pre-text", dangerouslySetInnerHTML: commentText(parseComment) }));
183
+ return (React.createElement("pre", { className: "push-top-narrow comment-plaintext reset-pre-text", dangerouslySetInnerHTML: commentText(parseComment), style: { fontFamily: isExportingPDF ? 'DejaVu Sans' : '' } }));
184
184
  }
185
185
  };
186
186
  if (!((_a = props.comment) === null || _a === void 0 ? void 0 : _a.isPublic) && !canSeePrivateComments)
@@ -1 +1 @@
1
- {"version":3,"file":"ContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumber.tsx"],"names":[],"mappings":"AAkBA,wBAAgB,kBAAkB,gBAuGjC"}
1
+ {"version":3,"file":"ContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumber.tsx"],"names":[],"mappings":"AAoBA,wBAAgB,kBAAkB,gBA0IjC"}
@@ -1,8 +1,10 @@
1
1
  import { ValidatedOptions } from '@patternfly/react-core';
2
2
  import { getPhoneObj, PhoneInput } from '@rh-support/components';
3
+ import { GlobalMetadataStateContext } from '@rh-support/react-context';
4
+ import { ability, CaseListFields, resourceActions, resources } from '@rh-support/user-permissions';
3
5
  import isEmpty from 'lodash/isEmpty';
4
6
  import isEqual from 'lodash/isEqual';
5
- import React, { useContext, useState } from 'react';
7
+ import React, { useContext, useEffect, useState } from 'react';
6
8
  import { Trans, useTranslation } from 'react-i18next';
7
9
  import { PHONE_IS_NOT_VALID, PHONE_LINE_CANNOT_BE_EMPTY, PHONE_NO_CHAR_ERROR, } from '../../constants/caseDetailsConstants';
8
10
  import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
@@ -18,8 +20,10 @@ export function ContactPhoneNumber() {
18
20
  phoneAreaCodePrefixLineNumber: state.caseDetails.phoneAreaCodePrefixLineNumber,
19
21
  }), isEqual);
20
22
  const { routeState: { isNextBtnClickedToShowValidationError }, } = useContext(RouteContext);
23
+ const { globalMetadataState: { loggedInUser }, } = useContext(GlobalMetadataStateContext);
21
24
  const [invalid, setInvalid] = useState(false);
22
25
  const [localFullPhone, setLocalFullPhone] = useState(phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber);
26
+ const canChangeAccountInfo = ability.can(resourceActions.PATCH, resources.CASE_CREATE, CaseListFields.ACCOUNT_AND_OWNER);
23
27
  const getPhone = () => phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber;
24
28
  const caseDispatch = useCaseDispatch();
25
29
  const { t } = useTranslation();
@@ -52,6 +56,30 @@ export function ContactPhoneNumber() {
52
56
  : invalid
53
57
  ? ValidatedOptions.error
54
58
  : ValidatedOptions.default;
59
+ useEffect(() => {
60
+ // when canChangeAccountInfo is false OwnerSelector is hidden
61
+ // need to set phone on load here instead of OwnerSelector
62
+ if (!canChangeAccountInfo) {
63
+ if (loggedInUser.data.supportPhoneAreaCodePrefixLineNumber) {
64
+ setCaseDetails(caseDispatch, {
65
+ phoneAreaCodePrefixLineNumber: loggedInUser.data.supportPhoneAreaCodePrefixLineNumber,
66
+ phoneCountryCode: loggedInUser.data.supportPhoneCountryCode,
67
+ suppliedPhoneNumberVerified: 'True',
68
+ });
69
+ }
70
+ else {
71
+ const phoneLine = getPhoneObj(loggedInUser.data.phone).phoneLine || '';
72
+ const countryCode = getPhoneObj(loggedInUser.data.phone).countryCode;
73
+ setCaseDetails(caseDispatch, {
74
+ phoneAreaCodePrefixLineNumber: phoneLine,
75
+ phoneCountryCode: countryCode,
76
+ suppliedPhoneNumberVerified: phoneLine && countryCode ? 'True' : 'False',
77
+ });
78
+ }
79
+ }
80
+ setLocalFullPhone(phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber);
81
+ // eslint-disable-next-line react-hooks/exhaustive-deps
82
+ }, [phoneAreaCodePrefixLineNumber, phoneCountryCode, loggedInUser.data]);
55
83
  return (React.createElement("div", { className: "form-group", style: { minWidth: '200px' } },
56
84
  React.createElement("label", null,
57
85
  React.createElement(Trans, null, "Case owner's phone number"),
@@ -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,eA6FzD"}
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,eA8FzD"}
@@ -38,6 +38,7 @@ export default function CaseLanguageSelector(props) {
38
38
  if (!props.isManageStep || !isEmpty(caseLanguage) || isLoadingLang || !canUseLanguageDetection)
39
39
  return;
40
40
  setDetectedLanguage(caseDispatch, summary, getDescriptionWOQues(issue, environment, periodicityOfIssue, timeFramesAndUrgency));
41
+ // eslint-disable-next-line react-hooks/exhaustive-deps
41
42
  }, [
42
43
  caseDispatch,
43
44
  environment,
@@ -46,7 +47,6 @@ export default function CaseLanguageSelector(props) {
46
47
  periodicityOfIssue,
47
48
  summary,
48
49
  timeFramesAndUrgency,
49
- isLoadingLang,
50
50
  canUseLanguageDetection,
51
51
  props.isManageStep,
52
52
  ]);
@@ -20,10 +20,10 @@ export default function CaseManagement(props) {
20
20
  };
21
21
  return (React.createElement("form", null,
22
22
  React.createElement(SupportLevel, null),
23
- React.createElement(Flex, { direction: { default: 'column', '2xl': 'row' }, className: "severity-flex-case-management" },
24
- React.createElement(FlexItem, { flex: { default: 'flex_1' } },
23
+ React.createElement(Flex, { direction: { default: 'column', '2xl': 'row' } },
24
+ React.createElement(FlexItem, { flex: { default: 'flex_1' }, className: "pf-u-mb-xl" },
25
25
  React.createElement(Severity, { showSeverityInfoIcon: true, onSeverityChange: onSeverityChange })),
26
- React.createElement(FlexItem, { flex: { default: 'flex_1' } },
26
+ React.createElement(FlexItem, { flex: { default: 'flex_1' }, className: "pf-u-mb-xl" },
27
27
  React.createElement(ContactPhoneNumber, null))),
28
28
  React.createElement(ContactPhoneNumberAlert, null),
29
29
  React.createElement(Fts, { inlineEditable: false }),
@@ -1 +1 @@
1
- {"version":3,"file":"IdeaInformtion.d.ts","sourceRoot":"","sources":["../../../../src/components/IdeaInformation/IdeaInformtion.tsx"],"names":[],"mappings":"AA8BA,MAAM,CAAC,OAAO,UAAU,eAAe,gBAyItC"}
1
+ {"version":3,"file":"IdeaInformtion.d.ts","sourceRoot":"","sources":["../../../../src/components/IdeaInformation/IdeaInformtion.tsx"],"names":[],"mappings":"AA8BA,MAAM,CAAC,OAAO,UAAU,eAAe,gBAsItC"}
@@ -93,10 +93,10 @@ export default function IdeaInformation() {
93
93
  React.createElement("form", null,
94
94
  React.createElement(Description, { inlineEditable: false, customTitle: t('Please describe your request') }),
95
95
  React.createElement(KtQuestions, { onlyShowKT4: true }),
96
- React.createElement(Flex, { direction: { default: 'column', '2xl': 'row' }, className: "severity-flex-case-management" },
97
- React.createElement(FlexItem, { flex: { default: 'flex_1' } },
96
+ React.createElement(Flex, { direction: { default: 'column', '2xl': 'row' } },
97
+ React.createElement(FlexItem, { flex: { default: 'flex_1' }, className: "pf-u-mb-xl" },
98
98
  React.createElement(SupportLevel, null)),
99
- React.createElement(FlexItem, { flex: { default: 'flex_1' } },
99
+ React.createElement(FlexItem, { flex: { default: 'flex_1' }, className: "pf-u-mb-xl" },
100
100
  React.createElement(Severity, { showSeverityInfoIcon: true, onSeverityChange: onSeverityChange }))),
101
101
  React.createElement(ContactPhoneNumber, null),
102
102
  React.createElement(ContactPhoneNumberAlert, null),
@@ -48,9 +48,9 @@ export default function Review(props) {
48
48
  React.createElement(CaseType, { hideIdea: true }),
49
49
  React.createElement(SupportLevel, null),
50
50
  React.createElement(Flex, { direction: { default: 'column', '2xl': 'row' } },
51
- React.createElement(FlexItem, { flex: { default: 'flex_1' } },
51
+ React.createElement(FlexItem, { flex: { default: 'flex_1' }, className: "pf-u-mb-xl" },
52
52
  React.createElement(Severity, { showSeverityInfoIcon: true, onSeverityChange: onSeverityChange })),
53
- React.createElement(FlexItem, { flex: { default: 'flex_1' } },
53
+ React.createElement(FlexItem, { flex: { default: 'flex_1' }, className: "pf-u-mb-xl" },
54
54
  React.createElement(ContactPhoneNumber, null))),
55
55
  React.createElement(ContactPhoneNumberAlert, null),
56
56
  React.createElement(Fts, { inlineEditable: true, initialIsEditing: isEmpty(contactInfo24x7), hideSaveCancel: true }),
@@ -1 +1 @@
1
- {"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AA4BA,MAAM,CAAC,OAAO,UAAU,UAAU,gBAqSjC"}
1
+ {"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AA4BA,MAAM,CAAC,OAAO,UAAU,UAAU,gBAmTjC"}
@@ -7,7 +7,7 @@ import { getConfigField, getRedhatDotComHost, PCM_CONFIG_FIELD_TYPE, PreviousCas
7
7
  import find from 'lodash/find';
8
8
  import isEmpty from 'lodash/isEmpty';
9
9
  import isEqual from 'lodash/isEqual';
10
- import React, { useContext, useEffect, useState } from 'react';
10
+ import React, { useContext, useEffect, useRef, useState } from 'react';
11
11
  import { Trans, useTranslation } from 'react-i18next';
12
12
  import { Link } from 'react-router-dom';
13
13
  import { useCaseSelector } from '../../context/CaseContext';
@@ -40,6 +40,7 @@ export default function SubmitCase() {
40
40
  }), isEqual);
41
41
  const isIdea = caseType === PreviousCaseTypes.FEATURE_ENHANCEMENT;
42
42
  const { topContentState: { topContent }, } = useContext(TCStateContext);
43
+ const tooltipRef = useRef();
43
44
  const { rulesState } = useContext(RulesStateContext);
44
45
  const { clusterRecommendationsState: { clusterRecommendations }, } = useContext(ClusterRecommendationsContext);
45
46
  const { attachmentState } = useContext(AttachmentStateContext);
@@ -133,10 +134,9 @@ export default function SubmitCase() {
133
134
  React.createElement(ActionList, null,
134
135
  React.createElement(ActionListItem, null,
135
136
  React.createElement(Button, { component: "a", href: `${getRedhatDotComHost(Env.getEnvName())}/wapps/ugc/protected/${'personalInfo.html'}`, target: "_blank", variant: "secondary", "data-tracking-id": "get-support-update-info", className: "update-info-button" }, "Update info")),
136
- React.createElement(ActionListItem, null,
137
- React.createElement(Tooltip, { content: React.createElement("div", null, "File upload in progress."), position: "bottom", isVisible: viewDisabled },
138
- React.createElement("div", null,
139
- React.createElement(Button, { className: "pf-u-ml-md", component: (props) => (React.createElement(Link, Object.assign({}, props, { to: `/case/${caseNumber}` }))), variant: "primary", "data-tracking-id": "get-support-view-case", isDisabled: viewDisabled }, "View case"))))))),
137
+ React.createElement(ActionListItem, null, viewDisabled ? (React.createElement(React.Fragment, null,
138
+ React.createElement(Tooltip, { content: t('File upload in progress.'), "aria-live": 'polite', reference: tooltipRef }),
139
+ React.createElement(Button, { className: "pf-u-ml-md", component: "a", href: getCaseURL(), variant: "primary", "data-tracking-id": "get-support-view-case", isDisabled: viewDisabled, ref: tooltipRef, "aria-label": t('View case') }, "View case"))) : (React.createElement(Button, { className: "pf-u-ml-md", component: (props) => React.createElement(Link, Object.assign({}, props, { to: `/case/${caseNumber}` })), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case') }, "View case")))))),
140
140
  !isEmpty(attachmentState.caseFiles.selectedLocalFiles) && (React.createElement(FileUploader, { idToUploadTo: caseNumber, isSessionId: false, isSecureSupport: loggedInUsersAccount.data.secureSupport })),
141
141
  React.createElement("div", null,
142
142
  (!isEmpty(topContent.data) || !rulesState.EARules.rules || !clusterRecommendations) &&
@@ -1 +1 @@
1
- {"version":3,"file":"useIsSectionValid.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/useIsSectionValid.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAKnE,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,gBAAgB;;;;;EA8L9D"}
1
+ {"version":3,"file":"useIsSectionValid.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/useIsSectionValid.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAInE,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,gBAAgB;;;;;EAyL9D"}
@@ -11,10 +11,9 @@ import { CASE_REFERENCE_NUMBER_LIMIT, CONTACT_INFO_24X7_LIMIT, DESCRIPTION_LENGT
11
11
  import { isCaseInformationSectionValid, isCaseManagementStateValid, isCaseStateValid, isClusterIDValid, isIdeaCaseStateValid, } from '../../reducers/CaseHelpers';
12
12
  import { AppRouteSections } from '../../reducers/RouteConstNTypes';
13
13
  import { AttachmentStateContext } from './fileUpload/reducer/AttachmentReducerContext';
14
- import { isPhoneValid } from './utils';
15
14
  export function useIsSectionValid(sectionName) {
16
15
  var _a, _b;
17
- const { caseState, caseType, product, version, contactSSOName, accountNumber, summary, description, hostname, contactInfo24x7, alternateId, selectedAccountDetails, phoneCountryCode, phoneAreaCodePrefixLineNumber, } = useCaseSelector((state) => ({
16
+ const { caseState, caseType, product, version, contactSSOName, accountNumber, summary, description, hostname, contactInfo24x7, alternateId, selectedAccountDetails, } = useCaseSelector((state) => ({
18
17
  caseState: state,
19
18
  caseType: state.caseDetails.caseType,
20
19
  product: state.caseDetails.product,
@@ -28,8 +27,6 @@ export function useIsSectionValid(sectionName) {
28
27
  contactInfo24x7: state.caseDetails.contactInfo24x7,
29
28
  alternateId: state.caseDetails.alternateId,
30
29
  selectedAccountDetails: state.selectedAccountDetails,
31
- phoneCountryCode: state.caseDetails.phoneCountryCode,
32
- phoneAreaCodePrefixLineNumber: state.caseDetails.phoneAreaCodePrefixLineNumber,
33
30
  }), isEqual);
34
31
  const { globalMetadataState: { allProducts, loggedInUserJwtToken }, } = useContext(GlobalMetadataStateContext);
35
32
  const { topContentState: { topContent }, } = useContext(TCStateContext);
@@ -71,8 +68,7 @@ export function useIsSectionValid(sectionName) {
71
68
  const hasAlternateCaseIdValidLength = alternateId ? (alternateId === null || alternateId === void 0 ? void 0 : alternateId.length) <= CASE_REFERENCE_NUMBER_LIMIT : true;
72
69
  return (isCaseManagementStateValid(caseState, loggedInUserJwtToken) &&
73
70
  hasContactInfo24x7ValidLength &&
74
- hasAlternateCaseIdValidLength &&
75
- isPhoneValid(phoneCountryCode, phoneAreaCodePrefixLineNumber));
71
+ hasAlternateCaseIdValidLength);
76
72
  };
77
73
  const isTroubleshootSectionValid = () => {
78
74
  var _a, _b, _c;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/utils.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EACpC,WAAW,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,iBAAiB,EAC3D,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,KAAK,GAAG,kBAErB,CAAC,iBAAiB,CAAC,iBAQ5C;AAED,eAAO,MAAM,YAAY,gBAAiB,MAAM,aAAa,MAAM,KAAG,OAmBrE,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/utils.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EACpC,WAAW,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,iBAAiB,EAC3D,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,KAAK,GAAG,kBAErB,CAAC,iBAAiB,CAAC,iBAQ5C;AAED,eAAO,MAAM,YAAY,gBAAiB,MAAM,aAAa,MAAM,KAAG,OAarE,CAAC"}
@@ -28,15 +28,11 @@ export function getChangedValueTooltip(valueNameCb, accessor) {
28
28
  }
29
29
  export const isPhoneValid = (countryCode, phoneLine) => {
30
30
  const regex = /^[\d ()+-]+$/;
31
- const phoneIncludesCorrectChars = phoneLine && regex.test(phoneLine.replace(countryCode, ''));
31
+ const phoneIncludesCorrectChars = phoneLine ? regex.test(phoneLine.replace(countryCode, '')) : true;
32
32
  // To validate case state if country code and phoneline both are available
33
- // we cannot have only country code or only phoneline
34
- // phone is optional
35
- const isCountryCodeFollowsByPhone = !isEmpty(countryCode) ? !isEmpty(phoneLine) : false;
36
- const isPhoneLineHasCountryCode = !isEmpty(phoneLine) ? !isEmpty(countryCode) : false;
37
- const hasSuppliedPhoneValidLength = (phoneLine || countryCode) && ((countryCode === null || countryCode === void 0 ? void 0 : countryCode.length) || 0) + ((phoneLine === null || phoneLine === void 0 ? void 0 : phoneLine.length) || 0) + 1 <= PHONE_LIMIT;
38
- return (!!isCountryCodeFollowsByPhone &&
39
- !!isPhoneLineHasCountryCode &&
40
- !!hasSuppliedPhoneValidLength &&
41
- !!phoneIncludesCorrectChars);
33
+ // or none of them are available (xor)
34
+ const isCountryCodeFollowsByPhone = isEmpty(countryCode === null || countryCode === void 0 ? void 0 : countryCode.replace('+', '')) === isEmpty(phoneLine) ? true : false;
35
+ const phoneLength = ((countryCode === null || countryCode === void 0 ? void 0 : countryCode.length) || 0) + ((phoneLine === null || phoneLine === void 0 ? void 0 : phoneLine.length) || 0) + 1;
36
+ const hasSuppliedPhoneValidLength = phoneLength <= PHONE_LIMIT;
37
+ return isCountryCodeFollowsByPhone && hasSuppliedPhoneValidLength && phoneIncludesCorrectChars;
42
38
  };
@@ -16,7 +16,7 @@ export declare const HOSTNAME_LENGTH_LIMIT = 255;
16
16
  export declare const CONTACT_INFO_24X7_LIMIT = 32768;
17
17
  export declare const CLUSTER_ID_LIMIT = 255;
18
18
  export declare const CASE_REFERENCE_NUMBER_LIMIT = 100;
19
- export declare const PHONE_LIMIT = 40;
19
+ export declare const PHONE_LIMIT = 23;
20
20
  export declare const SESSION_NOTIFIED_USERS_INTERNAL_LIMIT = 1024;
21
21
  export declare const SESSION_NOTIFIED_USERS_EXTERNAL_LIMIT = 1024;
22
22
  export declare const SESSION_TIME_FRAMES_URGENCY_LIMIT = 32768;
@@ -26,7 +26,7 @@ export declare const SESSION_ENVIRONMENT_LIMIT = 32768;
26
26
  export declare const SESSION_REFERRER_URL_LIMIT = 1024;
27
27
  export declare const SESSION_NO_CLUSTER_REASON_LENGTH_LIMIT = 255;
28
28
  export declare const SESSION_NO_CLUSTER_REASON_EXPLANATION_LENGTH_LIMIT = 255;
29
- export declare const SESSION_PHONE_LENGTH_LIMIT = 45;
29
+ export declare const SESSION_PHONE_LENGTH_LIMIT = 23;
30
30
  export declare const CASE_DEATILS_ISSUE_LIMIT = 20000;
31
31
  export declare const CASE_DETAILS_TIMEFRAMESANDURGENCY_LIMIT = 4000;
32
32
  export declare const CASE_DEATILS_ENVIRONMENT_LIMIT = 3000;
@@ -8,7 +8,7 @@ export const HOSTNAME_LENGTH_LIMIT = 255;
8
8
  export const CONTACT_INFO_24X7_LIMIT = 32768;
9
9
  export const CLUSTER_ID_LIMIT = 255;
10
10
  export const CASE_REFERENCE_NUMBER_LIMIT = 100;
11
- export const PHONE_LIMIT = 40;
11
+ export const PHONE_LIMIT = 23;
12
12
  export const SESSION_NOTIFIED_USERS_INTERNAL_LIMIT = 1024;
13
13
  export const SESSION_NOTIFIED_USERS_EXTERNAL_LIMIT = 1024;
14
14
  export const SESSION_TIME_FRAMES_URGENCY_LIMIT = 32768;
@@ -18,7 +18,7 @@ export const SESSION_ENVIRONMENT_LIMIT = 32768;
18
18
  export const SESSION_REFERRER_URL_LIMIT = 1024;
19
19
  export const SESSION_NO_CLUSTER_REASON_LENGTH_LIMIT = 255;
20
20
  export const SESSION_NO_CLUSTER_REASON_EXPLANATION_LENGTH_LIMIT = 255;
21
- export const SESSION_PHONE_LENGTH_LIMIT = 45;
21
+ export const SESSION_PHONE_LENGTH_LIMIT = 23;
22
22
  //Case detail limits for each individual KT Question in order as they appear on troubleshoot/opencase
23
23
  //We are totaling 31k here to allow for the backend to accept response when combined with question copy.
24
24
  export const CASE_DEATILS_ISSUE_LIMIT = 20000; // 1st Q
@@ -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,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACvG,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAmB3D,OAAO,EAUH,UAAU,EAeb,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,sBAAsB,SAAU,mBAAmB,EAAE,wBAMjE,CAAC;AAEF,eAAO,MAAM,2BAA2B,eAAgB,WAAW,KAAG,MAOrE,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAAS,mBAAmB,SAAS,MAAM,sBAyB9E,CAAC;AAIF,eAAO,MAAM,qBAAqB,UACvB,MAAM,gBACC,MAAM,uBACC,MAAM,yBACJ,MAAM,kBACb,MAAM,YACZ,MAAM,YACN,MAAM,KACjB,MAyBF,CAAC;AAIF,eAAO,MAAM,oBAAoB,UACtB,MAAM,gBACC,MAAM,uBACC,MAAM,yBACJ,MAAM,KAC9B,MAQF,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBAAkB,MAAM,YAAY,MAAM,KAAG,MAQhF,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBAAkB,MAAM,YAAY,MAAM,KAAG,MAQhF,CAAC;AAEF,eAAO,MAAM,sBAAsB,aAAc,MAAM,KAAG,MAKzD,CAAC;AAEF,eAAO,MAAM,gBAAgB,+CAqC5B,CAAC;AAIF,eAAO,MAAM,gBAAgB,cAAe,UAAU,wBAAwB,QAAQ,eAAe,CAAC,KAAG,OA6BxG,CAAC;AAEF,eAAO,MAAM,oBAAoB,cAClB,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAyBF,CAAC;AAEF,eAAO,MAAM,0BAA0B,cACxB,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAqBF,CAAC;AAIF,eAAO,MAAM,6BAA6B,cAC3B,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAuBF,CAAC;AAEF,eAAO,MAAM,iBAAiB,cACf,UAAU,gBACP,YAAY,iBACZ,OAAO,KACtB,QAAQ,YAAY,CA2EtB,CAAC;AAEF,eAAO,MAAM,wBAAwB,qBAAsB,YAAY,EAAE,KAAG,YAAY,EAEvF,CAAC;AACF,eAAO,MAAM,yBAAyB,qBAAsB,YAAY,EAAE,KAAG,OAE5E,CAAC;AAEF,eAAO,MAAM,yBAAyB,gBACrB,YAAY,6BACE,MAAM,mBAChB,MAAM,KACxB,QAAQ,YAAY,CAgCtB,CAAC;AACF,eAAO,MAAM,yBAAyB,gBACrB,QAAQ,YAAY,CAAC,gCACJ,QAAQ,EAAE,KACzC,eA+CF,CAAC"}
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,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACvG,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAmB3D,OAAO,EAUH,UAAU,EAeb,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,sBAAsB,SAAU,mBAAmB,EAAE,wBAMjE,CAAC;AAEF,eAAO,MAAM,2BAA2B,eAAgB,WAAW,KAAG,MAOrE,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAAS,mBAAmB,SAAS,MAAM,sBAyB9E,CAAC;AAIF,eAAO,MAAM,qBAAqB,UACvB,MAAM,gBACC,MAAM,uBACC,MAAM,yBACJ,MAAM,kBACb,MAAM,YACZ,MAAM,YACN,MAAM,KACjB,MAyBF,CAAC;AAIF,eAAO,MAAM,oBAAoB,UACtB,MAAM,gBACC,MAAM,uBACC,MAAM,yBACJ,MAAM,KAC9B,MAQF,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBAAkB,MAAM,YAAY,MAAM,KAAG,MAQhF,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBAAkB,MAAM,YAAY,MAAM,KAAG,MAQhF,CAAC;AAEF,eAAO,MAAM,sBAAsB,aAAc,MAAM,KAAG,MAKzD,CAAC;AAEF,eAAO,MAAM,gBAAgB,+CAqC5B,CAAC;AAIF,eAAO,MAAM,gBAAgB,cAAe,UAAU,wBAAwB,QAAQ,eAAe,CAAC,KAAG,OA6BxG,CAAC;AAEF,eAAO,MAAM,oBAAoB,cAClB,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAyBF,CAAC;AAEF,eAAO,MAAM,0BAA0B,cACxB,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAmBF,CAAC;AAIF,eAAO,MAAM,6BAA6B,cAC3B,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAuBF,CAAC;AAEF,eAAO,MAAM,iBAAiB,cACf,UAAU,gBACP,YAAY,iBACZ,OAAO,KACtB,QAAQ,YAAY,CA2EtB,CAAC;AAEF,eAAO,MAAM,wBAAwB,qBAAsB,YAAY,EAAE,KAAG,YAAY,EAEvF,CAAC;AACF,eAAO,MAAM,yBAAyB,qBAAsB,YAAY,EAAE,KAAG,OAE5E,CAAC;AAEF,eAAO,MAAM,yBAAyB,gBACrB,YAAY,6BACE,MAAM,mBAChB,MAAM,KACxB,QAAQ,YAAY,CAgCtB,CAAC;AACF,eAAO,MAAM,yBAAyB,gBACrB,QAAQ,YAAY,CAAC,gCACJ,QAAQ,EAAE,KACzC,eA+CF,CAAC"}
@@ -181,7 +181,6 @@ export const isIdeaCaseStateValid = (caseState, loggedInUserJwtToken) => {
181
181
  canManageCase(loggedInUserJwtToken));
182
182
  };
183
183
  export const isCaseManagementStateValid = (caseState, loggedInUserJwtToken) => {
184
- var _a;
185
184
  const case_details = caseState.caseDetails;
186
185
  return (isEmpty(case_details.caseNumber) &&
187
186
  !caseState.hasLargeCaseDescription &&
@@ -195,10 +194,7 @@ export const isCaseManagementStateValid = (caseState, loggedInUserJwtToken) => {
195
194
  (caseState.selectedAccountDetails.data.requireCGroupOnCreate
196
195
  ? !isEmpty(case_details.groupNumber) && case_details.groupNumber !== '-1'
197
196
  : true) &&
198
- (!isEmpty(case_details.phoneCountryCode) &&
199
- isEmpty((_a = case_details.phoneAreaCodePrefixLineNumber) === null || _a === void 0 ? void 0 : _a.replace(case_details.phoneCountryCode, ''))
200
- ? false
201
- : true) &&
197
+ isPhoneValid(case_details.phoneCountryCode, case_details.phoneAreaCodePrefixLineNumber) &&
202
198
  canManageCase(loggedInUserJwtToken));
203
199
  };
204
200
  // Add a !isEmpty to to make any KTQuestion Mandatory in isCaseInformationSectionValid
@@ -330,7 +326,7 @@ export const getCaseFromSessionDetails = (sessionItem, loggedInUserAccountNumber
330
326
  };
331
327
  };
332
328
  export const getSessionDetailsFromCase = (caseDetails, selectedNotificationContacts) => {
333
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
329
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
334
330
  const notifiedUsersInternal = [];
335
331
  const notifiedUsersExternal = [];
336
332
  forEach(selectedNotificationContacts, (contact) => {
@@ -367,7 +363,7 @@ export const getSessionDetailsFromCase = (caseDetails, selectedNotificationConta
367
363
  caseAlternateId: (_o = (_m = caseDetails.alternateId) === null || _m === void 0 ? void 0 : _m.substring(0, CASE_REFERENCE_NUMBER_LIMIT)) !== null && _o !== void 0 ? _o : '',
368
364
  noClusterIdReason: (_q = (_p = caseDetails.noClusterIdReason) === null || _p === void 0 ? void 0 : _p.substring(0, SESSION_NO_CLUSTER_REASON_LENGTH_LIMIT)) !== null && _q !== void 0 ? _q : '',
369
365
  noClusterIdReasonExplanation: (_s = (_r = caseDetails.noClusterIdReasonExplanation) === null || _r === void 0 ? void 0 : _r.substring(0, SESSION_NO_CLUSTER_REASON_EXPLANATION_LENGTH_LIMIT)) !== null && _s !== void 0 ? _s : '',
370
- phoneAreaCodePrefixLineNumber: (_t = caseDetails.phoneAreaCodePrefixLineNumber) === null || _t === void 0 ? void 0 : _t.substring(0, SESSION_PHONE_LENGTH_LIMIT - caseDetails.phoneCountryCode.length - 1),
366
+ phoneAreaCodePrefixLineNumber: (_t = caseDetails.phoneAreaCodePrefixLineNumber) === null || _t === void 0 ? void 0 : _t.substring(0, SESSION_PHONE_LENGTH_LIMIT - (((_u = caseDetails.phoneCountryCode) === null || _u === void 0 ? void 0 : _u.length) || 0) - 1),
371
367
  phoneCountryCode: caseDetails.phoneCountryCode,
372
368
  suppliedPhoneNumberVerified: caseDetails.suppliedPhoneNumberVerified,
373
369
  };
@@ -465,10 +465,6 @@ div.suggestions-result-section {
465
465
  font-size: 16px !important;
466
466
  }
467
467
 
468
- .severity-flex-case-management {
469
- margin-bottom: 2rem;
470
- }
471
-
472
468
  .update-info-button {
473
469
  --pf-c-button--BackgroundColor: #fff;
474
470
  --pf-c-button--hover--BackgroundColor: #ededed;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "2.2.7",
3
+ "version": "2.2.9",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -133,5 +133,5 @@
133
133
  "defaults and supports es6-module",
134
134
  "maintained node versions"
135
135
  ],
136
- "gitHead": "333022fdb903794283d86e4ba132c9fb135444fd"
136
+ "gitHead": "c49d603ef2cfff4400439dcdeb4e09ead60d5180"
137
137
  }