@rh-support/troubleshoot 2.2.18 → 2.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/components/AccountInfo/OwnerSelector.d.ts.map +1 -1
- package/lib/esm/components/AccountInfo/OwnerSelector.js +2 -2
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +18 -9
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.js +3 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseBugzilla/CaseBugzilla.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseBugzilla/CaseBugzilla.js +11 -7
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +13 -18
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInformation.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInformation.js +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseChat.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseChat.js +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +3 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseExternalTrackerUpdate.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseExternalTrackerUpdate.js +5 -3
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.js +4 -2
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.js +11 -17
- package/lib/esm/components/CaseInformation/Description.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Description.js +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.js +1 -1
- package/lib/esm/components/EditDescription/EditDescription.d.ts.map +1 -1
- package/lib/esm/components/EditDescription/EditDescription.js +2 -1
- package/lib/esm/components/ProductSelector/ProductSelector.js +1 -1
- package/lib/esm/components/Recommendations/EARules/EARule.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/EARules/EARule.js +4 -1
- package/lib/esm/components/Recommendations/InsightsRuleInfo.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/InsightsRuleInfo.js +5 -3
- package/lib/esm/components/Recommendations/Recommendations.d.ts +0 -1
- package/lib/esm/components/Recommendations/Recommendations.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/Recommendations.js +0 -4
- package/lib/esm/components/Recommendations/RulesModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/RulesModal.js +2 -2
- package/lib/esm/components/SessionRestore/SessionItem.js +4 -4
- package/lib/esm/components/SessionRestore/SessionRestore.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/SessionRestore.js +4 -4
- package/lib/esm/components/shared/Rule.d.ts.map +1 -1
- package/lib/esm/components/shared/Rule.js +2 -1
- package/lib/esm/components/shared/fileUpload/FileLister.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/FileLister.js +3 -6
- package/lib/esm/components/shared/utils.d.ts.map +1 -1
- package/lib/esm/components/shared/utils.js +1 -4
- package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardLayout.js +4 -3
- package/lib/esm/constants/caseDetailsConstants.d.ts +1 -2
- package/lib/esm/constants/caseDetailsConstants.d.ts.map +1 -1
- package/lib/esm/constants/caseDetailsConstants.js +1 -2
- package/lib/esm/reducers/CaseConstNTypes.d.ts +1 -1
- package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.js +1 -1
- package/lib/esm/reducers/CaseHelpers.d.ts.map +1 -1
- package/lib/esm/reducers/CaseHelpers.js +2 -0
- package/lib/esm/reducers/CaseReducer.d.ts +2 -1
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.js +5 -2
- package/lib/esm/reducers/SessionRestoreReducer.d.ts.map +1 -1
- package/package.json +6 -6
- package/lib/esm/components/Issue/Issue.d.ts +0 -2
- package/lib/esm/components/Issue/Issue.d.ts.map +0 -1
- package/lib/esm/components/Issue/Issue.js +0 -52
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import { pcm } from '@cee-eng/hydrajs';
|
|
3
|
+
import DOMPurify from 'dompurify';
|
|
3
4
|
import isEqual from 'lodash/isEqual';
|
|
4
5
|
import React, { useContext } from 'react';
|
|
5
6
|
import { Trans } from 'react-i18next';
|
|
@@ -49,7 +50,9 @@ function EARuleDescription() {
|
|
|
49
50
|
onCtaClick(target.href.split('?')[0])(ev);
|
|
50
51
|
}
|
|
51
52
|
};
|
|
52
|
-
return (React.createElement("div", { className: "ea-rule", onClick: onDescriptionClick, dangerouslySetInnerHTML:
|
|
53
|
+
return (React.createElement("div", { className: "ea-rule", onClick: onDescriptionClick, dangerouslySetInnerHTML: {
|
|
54
|
+
__html: DOMPurify.sanitize(parseMarkdownWithTracking(rule.description, SessionResourceSource.EDMOUND_ABOTT, 'ts-known-vuln', 'se-recommended-asa-rule').__html),
|
|
55
|
+
} }));
|
|
53
56
|
}
|
|
54
57
|
function EARuleArticle({ linkTitle = 'Related Article', className = '' }) {
|
|
55
58
|
const { rule, onCtaClick } = useEARuleContext();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightsRuleInfo.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/InsightsRuleInfo.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InsightsRuleInfo.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/InsightsRuleInfo.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAI7D,UAAU,MAAM;IACZ,GAAG,EAAE,wBAAwB,CAAC;IAC9B,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,EAAE,CAAC;CAC3B;AAOD,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,GAAG,CAAC;QACV,UAAU,iBAAiB;YACvB,SAAS,EAAE,GAAG,CAAC;SAClB;KACJ;CACJ;AAED,wBAAgB,gBAAgB,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE,MAAM,eAmK1E"}
|
|
@@ -3,6 +3,7 @@ import { Accordion, AccordionContent, AccordionItem, AccordionToggle, Label, Lab
|
|
|
3
3
|
import BullseyeIcon from '@patternfly/react-icons/dist/js/icons/bullseye-icon';
|
|
4
4
|
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
5
5
|
import { getRuleReasonHtml } from '@rh-support/utils';
|
|
6
|
+
import DOMPurify from 'dompurify';
|
|
6
7
|
import isEmpty from 'lodash/isEmpty';
|
|
7
8
|
import React, { useContext, useEffect, useRef, useState } from 'react';
|
|
8
9
|
import { Trans } from 'react-i18next';
|
|
@@ -41,7 +42,8 @@ export function InsightsRuleInfo({ doc, showNewTag, duplicateKeys }) {
|
|
|
41
42
|
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.INSIGHTS, [getSessResFromRules(link, SessionResourceVisibility.VISITED, ruleData.rule_id)]);
|
|
42
43
|
};
|
|
43
44
|
const parseMoreInfo = (moreInfo, reportDetails) => {
|
|
44
|
-
|
|
45
|
+
const result = parseDotMarkdownWithTracking(moreInfo, reportDetails, SessionResourceSource.INSIGHTS, 'ts-result-insights', 'se-recommended-insights-rule');
|
|
46
|
+
return { __html: DOMPurify.sanitize(result.__html) };
|
|
45
47
|
};
|
|
46
48
|
const onAdditionalInfoElemClick = (ev) => {
|
|
47
49
|
const target = ev.target;
|
|
@@ -69,8 +71,8 @@ export function InsightsRuleInfo({ doc, showNewTag, duplicateKeys }) {
|
|
|
69
71
|
React.createElement(Trans, null, "Detected issues")),
|
|
70
72
|
React.createElement(AccordionContent, { isHidden: !isIssueExpanded },
|
|
71
73
|
React.createElement("p", { dangerouslySetInnerHTML: {
|
|
72
|
-
__html: getRuleReasonHtml(ruleData === null || ruleData === void 0 ? void 0 : ruleData.reason, (_e = insightsReport === null || insightsReport === void 0 ? void 0 : insightsReport.current) === null || _e === void 0 ? void 0 : _e.details) ||
|
|
73
|
-
'N/A',
|
|
74
|
+
__html: DOMPurify.sanitize(getRuleReasonHtml(ruleData === null || ruleData === void 0 ? void 0 : ruleData.reason, (_e = insightsReport === null || insightsReport === void 0 ? void 0 : insightsReport.current) === null || _e === void 0 ? void 0 : _e.details) ||
|
|
75
|
+
'N/A'),
|
|
74
76
|
} }))),
|
|
75
77
|
((_f = ruleData === null || ruleData === void 0 ? void 0 : ruleData.more_info) !== null && _f !== void 0 ? _f : false) && (React.createElement(AccordionItem, null,
|
|
76
78
|
React.createElement(AccordionToggle, { isExpanded: isAdditionalExpanded, onClick: () => setIsAdditionalExpanded(!isAdditionalExpanded), id: `${doc.id}-additional-info` },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Recommendations.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/Recommendations.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Recommendations.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/Recommendations.tsx"],"names":[],"mappings":"AA4CA,UAAU,MAAM;CAAG;AACnB,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAAK,EAAE,MAAM,eAkOpD"}
|
|
@@ -20,8 +20,6 @@ import { fetchRecommendations, RecommendationsConstants, setCurrentPage, setVisi
|
|
|
20
20
|
import { AppRouteSections } from '../../reducers/RouteConstNTypes';
|
|
21
21
|
import { createOrUpdateSessionResources, getSessResFromRec, getSessResFromRecs, } from '../../reducers/SessionRestoreReducer';
|
|
22
22
|
import RouteUtils from '../../utils/routeUtils';
|
|
23
|
-
import Issue from '../Issue/Issue';
|
|
24
|
-
import { EARuleWidget } from './EARules/EARuleWidget';
|
|
25
23
|
const { SessionResourceSource, SessionResourceVisibility } = pcm.preCase.session;
|
|
26
24
|
export default function Recommendations(props) {
|
|
27
25
|
var _a, _b, _c;
|
|
@@ -130,9 +128,7 @@ export default function Recommendations(props) {
|
|
|
130
128
|
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.RECOMMENDATIONS, [getSessResFromRec(doc, SessionResourceVisibility.VISITED, index)], JSON.stringify(payload));
|
|
131
129
|
};
|
|
132
130
|
return (React.createElement(React.Fragment, null,
|
|
133
|
-
(!props.renderOnlyRecommendations || !props.renderOnlyRecommendations) && React.createElement(Issue, null),
|
|
134
131
|
React.createElement(LoadingDots, { show: recommendationState.isLoadingRecommendations && !isEmpty(summary) }),
|
|
135
|
-
(!props.renderOnlyRecommendations || !props.renderOnlyRecommendations) && React.createElement(EARuleWidget, null),
|
|
136
132
|
React.createElement("div", { className: "recommendation-list pf-u-mt-lg", ref: resultRowRef },
|
|
137
133
|
React.createElement("ul", { className: "list-flat" }, map(recommendationState.visibleDocs, (doc, i) => {
|
|
138
134
|
var _a, _b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RulesModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/RulesModal.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAI5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAG7D,UAAU,MAAM;IACZ,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"RulesModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/RulesModal.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAI5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAG7D,UAAU,MAAM;IACZ,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,eA8M/C"}
|
|
@@ -95,7 +95,7 @@ export function InsightResultModal(props) {
|
|
|
95
95
|
}, [selectedLocalFiles, props.EARule]);
|
|
96
96
|
if (props.isRenderedMain) {
|
|
97
97
|
setCaseState(caseDispatch, { isFileRecommendationsTriggered: true });
|
|
98
|
-
return (React.createElement(Card, { id: "expandable-card", className: "card-support top-recommendations", isExpanded: isExpanded, isCompact: true },
|
|
98
|
+
return (React.createElement(Card, { id: "expandable-card", className: "card-support top-recommendations pf-u-mt-md", isExpanded: isExpanded, isCompact: true },
|
|
99
99
|
React.createElement(CardHeader, { onExpand: onExpand, toggleButtonProps: {
|
|
100
100
|
id: 'toggle-button1',
|
|
101
101
|
'aria-label': t('File recommendations'),
|
|
@@ -105,7 +105,7 @@ export function InsightResultModal(props) {
|
|
|
105
105
|
React.createElement(CardTitle, { id: "expandable-card-title", className: "card-title" },
|
|
106
106
|
React.createElement(Trans, null, "File recommendations"))),
|
|
107
107
|
React.createElement(CardExpandableContent, null,
|
|
108
|
-
React.createElement(CardBody, { className: "file-recommendation" },
|
|
108
|
+
React.createElement(CardBody, { className: "file-recommendation", "data-tracking-id": "file-recommendation-tracking-id" },
|
|
109
109
|
React.createElement(Accordion, { headingLevel: "h5", asDefinitionList: false, isBordered: true },
|
|
110
110
|
props.insightResults.map((doc) => (React.createElement(InsightsRuleInfo, { duplicateKeys: duplicateKeys, showNewTag: canShowNewTag, key: doc.id + doc.attachmentId, doc: doc }))),
|
|
111
111
|
props.EARule.length > 0 &&
|
|
@@ -24,7 +24,7 @@ export function SessionItem(props) {
|
|
|
24
24
|
const sessionRestoreDispatch = useContext(SessionRestoreDispatchContext);
|
|
25
25
|
const { routeState: { isCaseCreate }, } = useContext(RouteContext);
|
|
26
26
|
const [isRestoring, setIsRestoring] = useState(false);
|
|
27
|
-
const [
|
|
27
|
+
const [isResolving, setIsResolving] = useState(false);
|
|
28
28
|
const [isDeactivating, setIsDeactivating] = useState(false);
|
|
29
29
|
const session = (_b = (_a = props.sessionItem) === null || _a === void 0 ? void 0 : _a.session) !== null && _b !== void 0 ? _b : {};
|
|
30
30
|
const sessionDetails = (_d = (_c = props.sessionItem) === null || _c === void 0 ? void 0 : _c.sessionDetails) !== null && _d !== void 0 ? _d : {};
|
|
@@ -43,12 +43,12 @@ export function SessionItem(props) {
|
|
|
43
43
|
});
|
|
44
44
|
const onResolve = (event) => __awaiter(this, void 0, void 0, function* () {
|
|
45
45
|
try {
|
|
46
|
-
|
|
46
|
+
setIsResolving(true);
|
|
47
47
|
const userAgent = getUserAgentForCaseMode(isCaseCreate);
|
|
48
48
|
yield updateSession(sessionRestoreDispatch, session.id, {}, { isActive: false, isResolved: true, userAgent });
|
|
49
49
|
}
|
|
50
50
|
finally {
|
|
51
|
-
|
|
51
|
+
setIsResolving(false);
|
|
52
52
|
setIsThumbsDownClicked(false);
|
|
53
53
|
}
|
|
54
54
|
});
|
|
@@ -80,7 +80,7 @@ export function SessionItem(props) {
|
|
|
80
80
|
askIfResolved && (React.createElement(React.Fragment, null,
|
|
81
81
|
React.createElement("label", null,
|
|
82
82
|
React.createElement(Trans, null, "Did you find a solution?")),
|
|
83
|
-
React.createElement("button", { className: "btn btn-link btn-app", onClick: onResolve, disabled:
|
|
83
|
+
React.createElement("button", { className: "btn btn-link btn-app", onClick: onResolve, disabled: isResolving, "data-tracking-id": "session-resolved-yes" }, isResolving ? React.createElement(LoadingIndicator, { isInline: true }) : React.createElement(OutlinedThumbsUpIcon, null)),
|
|
84
84
|
React.createElement("button", { className: "btn btn-link btn-app", onClick: onUnResolve, "data-tracking-id": "session-resolved-no" },
|
|
85
85
|
React.createElement(OutlinedThumbsDownIcon, null)))),
|
|
86
86
|
askToRestore && (React.createElement(React.Fragment, null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionRestore.d.ts","sourceRoot":"","sources":["../../../../src/components/SessionRestore/SessionRestore.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SessionRestore.d.ts","sourceRoot":"","sources":["../../../../src/components/SessionRestore/SessionRestore.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAQvD,OAAO,EAGH,eAAe,EAElB,MAAM,iCAAiC,CAAC;AAgBzC,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,eA+T3C"}
|
|
@@ -7,6 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
10
11
|
import { pcm } from '@cee-eng/hydrajs';
|
|
11
12
|
import { useDebounce, useDeepCompareDebounce, usePrevious } from '@rh-support/components';
|
|
12
13
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
@@ -130,10 +131,9 @@ export function SessionRestore(props) {
|
|
|
130
131
|
? existingUserAgent
|
|
131
132
|
: userAgent;
|
|
132
133
|
let session = { userAgent, originatingSystem, caseCreationError: caseCreation500ErrorStatus };
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
updateSession(sessionRestoreDispatch, sessionRestore.activeSessionId, getSessionDetailsFromCase(caseDetails, selectedNotificationContacts), session);
|
|
134
|
+
// PCM-12337 - Moved the session patch call to submit case function in CaseReducer.ts
|
|
135
|
+
isEmpty(caseDetails.caseNumber) &&
|
|
136
|
+
updateSession(sessionRestoreDispatch, sessionRestore.activeSessionId, getSessionDetailsFromCase(caseDetails, selectedNotificationContacts), session);
|
|
137
137
|
}, [
|
|
138
138
|
caseDetails,
|
|
139
139
|
currentUrlSeSessionId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rule.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/Rule.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Rule.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/Rule.tsx"],"names":[],"mappings":"AASA,UAAU,MAAM;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAK,EAAE,MAAM,eA2CzC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { pcm } from '@cee-eng/hydrajs';
|
|
2
2
|
import TimesIcon from '@patternfly/react-icons/dist/js/icons/times-icon';
|
|
3
|
+
import DOMPurify from 'dompurify';
|
|
3
4
|
import isEmpty from 'lodash/isEmpty';
|
|
4
5
|
import React from 'react';
|
|
5
6
|
import { useParseRuleMarkdown } from '../../hooks/useParseRuleMarkdown';
|
|
@@ -16,7 +17,7 @@ export default function Rule(props) {
|
|
|
16
17
|
return (React.createElement("div", { className: `pf-c-alert ea-rule-alert${props.isInline ? ' pf-m-inline' : ''}`, role: "alert" },
|
|
17
18
|
React.createElement("span", { className: "pf-c-alert__icon icon-info-circle", "aria-hidden": true }),
|
|
18
19
|
React.createElement("h3", { className: "pf-c-alert__title" }, !isEmpty(props.link) ? (React.createElement("a", { href: getTrackingULRWithQueryParams(props.link, SessionResourceSource.EDMOUND_ABOTT), target: "_blank", rel: "noopener noreferrer", className: "se-recommended ts-known-vuln", "data-tracking-id": "se-recommended-asa-rule", onClick: onCtaClick }, props.title)) : (props.title)),
|
|
19
|
-
React.createElement("div", { className: "pf-c-alert__description", dangerouslySetInnerHTML: { __html: parseMarkdown(props.description) } }),
|
|
20
|
+
React.createElement("div", { className: "pf-c-alert__description", dangerouslySetInnerHTML: { __html: DOMPurify.sanitize(parseMarkdown(props.description)) } }),
|
|
20
21
|
props.onHide && (React.createElement("div", { className: "pf-c-alert__action" },
|
|
21
22
|
React.createElement("button", { className: "pf-c-button pf-m-plain", type: "button", "aria-label": "Close", onClick: hide },
|
|
22
23
|
React.createElement(TimesIcon, { "aria-hidden": "true" }))))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileLister.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/FileLister.tsx"],"names":[],"mappings":"AA+BA,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,
|
|
1
|
+
{"version":3,"file":"FileLister.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/FileLister.tsx"],"names":[],"mappings":"AA+BA,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,eAwS/C"}
|
|
@@ -7,7 +7,7 @@ import capitalize from 'lodash/capitalize';
|
|
|
7
7
|
import isEmpty from 'lodash/isEmpty';
|
|
8
8
|
import isEqual from 'lodash/isEqual';
|
|
9
9
|
import map from 'lodash/map';
|
|
10
|
-
import React
|
|
10
|
+
import React from 'react';
|
|
11
11
|
import { Trans, useTranslation } from 'react-i18next';
|
|
12
12
|
import { useCaseSelector } from '../../../context/CaseContext';
|
|
13
13
|
import { ATTACHMENT_DESCRIPTION_LENGTH_LIMIT } from '../../../reducers/CaseConstNTypes';
|
|
@@ -40,10 +40,6 @@ export default function FileLister(props) {
|
|
|
40
40
|
const { caseType } = useCaseSelector((state) => ({
|
|
41
41
|
caseType: state.caseDetails.caseType,
|
|
42
42
|
}), isEqual);
|
|
43
|
-
const [isIdea, setIsIdea] = useState(false);
|
|
44
|
-
useEffect(() => {
|
|
45
|
-
setIsIdea(caseType === PreviousCaseTypes.FEATURE_ENHANCEMENT);
|
|
46
|
-
}, [caseType]);
|
|
47
43
|
// To retry file upload
|
|
48
44
|
const onRetry = (index) => () => {
|
|
49
45
|
props.onRetry && props.onRetry(index);
|
|
@@ -134,7 +130,8 @@ export default function FileLister(props) {
|
|
|
134
130
|
React.createElement("input", { id: `file-${index + 1}-description`, "data-tracking-id": `case-${props.isSessionId ? 'create' : 'details'}-file-${index + 1}-description`, className: "file-description form-control pf-u-my-sm", type: "text", value: localFile.description, onChange: onDescriptionChange(localFile, index), maxLength: 255, placeholder: t(`${shouldHideDescription(localFile, props.isSessionId)
|
|
135
131
|
? ''
|
|
136
132
|
: t('Enter a description')}`), hidden: shouldHideDescription(localFile, props.isSessionId) }),
|
|
137
|
-
isUploadedAndAnalysisSkipped(localFile) &&
|
|
133
|
+
isUploadedAndAnalysisSkipped(localFile) &&
|
|
134
|
+
!(caseType === PreviousCaseTypes.FEATURE_ENHANCEMENT) && (React.createElement("span", { className: "text-muted" }, localFile.analysisMetadata.analysisErrorMesssage)),
|
|
138
135
|
localFile.description.length === ATTACHMENT_DESCRIPTION_LENGTH_LIMIT ? (React.createElement("p", { className: "form-instructions" },
|
|
139
136
|
React.createElement(Trans, null, maxCaseAttachmentDescription))) : null,
|
|
140
137
|
isUploadedAndAnalysisFailed(localFile) && (React.createElement("span", { className: "text-danger" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/utils.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/utils.tsx"],"names":[],"mappings":"AAIA,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,OAUrE,CAAC;AAEF,eAAO,MAAM,kBAAkB,UAAW,MAAM,WAG/C,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import isEmpty from 'lodash/isEmpty';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Trans } from 'react-i18next';
|
|
4
|
-
import { PHONE_LIMIT } from '../../reducers/CaseConstNTypes';
|
|
5
4
|
/**
|
|
6
5
|
*
|
|
7
6
|
* A function that returns a translated string for a tooltip of the given case value that is being watched
|
|
@@ -32,9 +31,7 @@ export const isPhoneValid = (countryCode, phoneLine) => {
|
|
|
32
31
|
// To validate case state if country code and phoneline both are available
|
|
33
32
|
// or none of them are available (xor)
|
|
34
33
|
const isCountryCodeFollowsByPhone = isEmpty(trimAndReplacePlus(countryCode)) === isEmpty(phoneLine === null || phoneLine === void 0 ? void 0 : phoneLine.trim()) ? true : false;
|
|
35
|
-
|
|
36
|
-
const hasSuppliedPhoneValidLength = phoneLength <= PHONE_LIMIT;
|
|
37
|
-
return isCountryCodeFollowsByPhone && hasSuppliedPhoneValidLength && phoneIncludesCorrectChars;
|
|
34
|
+
return isCountryCodeFollowsByPhone && phoneIncludesCorrectChars;
|
|
38
35
|
};
|
|
39
36
|
export const trimAndReplacePlus = (value) => {
|
|
40
37
|
var _a;
|
|
@@ -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,
|
|
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,eA+IzC"}
|
|
@@ -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 { SessionRestoreStateContext } from '../../context/SessionRestoreContext';
|
|
21
|
+
import { SessionRestoreDispatchContext, 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,9 +33,10 @@ 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);
|
|
36
37
|
const caseDispatch = useCaseDispatch();
|
|
37
38
|
const { sessionRestore: { activeSessionId, previousSessions }, } = useContext(SessionRestoreStateContext);
|
|
38
|
-
const { globalMetadataState: { allProducts, loggedInUser }, } = useContext(GlobalMetadataStateContext);
|
|
39
|
+
const { globalMetadataState: { allProducts, loggedInUser, loggedInUsersAccount }, } = useContext(GlobalMetadataStateContext);
|
|
39
40
|
const canAddAttachments = ability.can(resourceActions.PATCH, resources.CASE_CREATE, CaseListFields.ATTACHMENTS);
|
|
40
41
|
const { attachmentState } = useContext(AttachmentStateContext);
|
|
41
42
|
const isAnyFileAttachedLocal = isAnyFileAttached(attachmentState.caseFiles.selectedLocalFiles);
|
|
@@ -84,7 +85,7 @@ export function WizardLayout(props) {
|
|
|
84
85
|
"Try submitting again after a minute. Please ",
|
|
85
86
|
React.createElement(SupportFeedbackForm, { isInline: true }),
|
|
86
87
|
" if you continue to see this message.")));
|
|
87
|
-
submitCase(caseDispatch, caseState, sessionItem, isCaseCreate, errorMessageCaseSubmit500, loggedInUser.data.ssoUsername);
|
|
88
|
+
submitCase(caseDispatch, sessionRestoreDispatch, caseState, sessionItem, isCaseCreate, errorMessageCaseSubmit500, loggedInUser.data.ssoUsername, loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data.secureSupport);
|
|
88
89
|
// reset viewedModals on case submit
|
|
89
90
|
viewedConfirmationModalsList.current = [];
|
|
90
91
|
!isReSubmitting &&
|
|
@@ -12,8 +12,7 @@ export declare enum CaseStatusEnum {
|
|
|
12
12
|
WAITING_ON_CUSTOMER = "Waiting on Customer",
|
|
13
13
|
WAITING_ON_REDHAT = "Waiting on Red Hat"
|
|
14
14
|
}
|
|
15
|
-
export declare const PHONE_LINE_CANNOT_BE_EMPTY = "Phone number cannot be empty when country code is given.";
|
|
16
15
|
export declare const PHONE_NO_CHAR_ERROR = "Phone number can only have digits.";
|
|
17
|
-
export declare const PHONE_IS_NOT_VALID = "Phone number is invalid.";
|
|
16
|
+
export declare const PHONE_IS_NOT_VALID = "Phone number length is invalid.";
|
|
18
17
|
export declare const PHONE_INSTRUCTION = "A current phone number with the country code helps us support you better.";
|
|
19
18
|
//# sourceMappingURL=caseDetailsConstants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"caseDetailsConstants.d.ts","sourceRoot":"","sources":["../../../src/constants/caseDetailsConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oCAAoC,yBAAyB,CAAC;AAE3E,oBAAY,mBAAmB;IAC3B,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,UAAU,gBAAgB;CAC7B;AAED,oBAAY,cAAc;IACtB,MAAM,WAAW;IACjB,mBAAmB,wBAAwB;IAC3C,iBAAiB,uBAAuB;CAC3C;AAED,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"caseDetailsConstants.d.ts","sourceRoot":"","sources":["../../../src/constants/caseDetailsConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oCAAoC,yBAAyB,CAAC;AAE3E,oBAAY,mBAAmB;IAC3B,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,UAAU,gBAAgB;CAC7B;AAED,oBAAY,cAAc;IACtB,MAAM,WAAW;IACjB,mBAAmB,wBAAwB;IAC3C,iBAAiB,uBAAuB;CAC3C;AAED,eAAO,MAAM,mBAAmB,uCAAuC,CAAC;AAExE,eAAO,MAAM,kBAAkB,oCAAoC,CAAC;AAEpE,eAAO,MAAM,iBAAiB,8EAA8E,CAAC"}
|
|
@@ -14,7 +14,6 @@ export var CaseStatusEnum;
|
|
|
14
14
|
CaseStatusEnum["WAITING_ON_CUSTOMER"] = "Waiting on Customer";
|
|
15
15
|
CaseStatusEnum["WAITING_ON_REDHAT"] = "Waiting on Red Hat";
|
|
16
16
|
})(CaseStatusEnum || (CaseStatusEnum = {}));
|
|
17
|
-
export const PHONE_LINE_CANNOT_BE_EMPTY = 'Phone number cannot be empty when country code is given.';
|
|
18
17
|
export const PHONE_NO_CHAR_ERROR = 'Phone number can only have digits.';
|
|
19
|
-
export const PHONE_IS_NOT_VALID = 'Phone number is invalid.';
|
|
18
|
+
export const PHONE_IS_NOT_VALID = 'Phone number length is invalid.';
|
|
20
19
|
export const PHONE_INSTRUCTION = 'A current phone number with the country code helps us support you better.';
|
|
@@ -16,7 +16,6 @@ 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 = 23;
|
|
20
19
|
export declare const SESSION_NOTIFIED_USERS_INTERNAL_LIMIT = 1024;
|
|
21
20
|
export declare const SESSION_NOTIFIED_USERS_EXTERNAL_LIMIT = 1024;
|
|
22
21
|
export declare const SESSION_TIME_FRAMES_URGENCY_LIMIT = 32768;
|
|
@@ -200,6 +199,7 @@ export interface ICaseState {
|
|
|
200
199
|
openshiftDisplayName?: string;
|
|
201
200
|
isCaseOwnerUpdating: boolean;
|
|
202
201
|
isFileRecommendationsTriggered?: boolean;
|
|
202
|
+
isPhoneLengthInvalid?: boolean;
|
|
203
203
|
}
|
|
204
204
|
export interface ICreateCasePayloadType extends ICaseState {
|
|
205
205
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseConstNTypes.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseConstNTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACjH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEnF,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,eAAO,MAAM,oBAAoB,MAAM,CAAC;AACxC,eAAO,MAAM,mCAAmC,MAAM,CAAC;AACvD,eAAO,MAAM,+BAA+B,MAAM,CAAC;AACnD,eAAO,MAAM,wBAAwB,QAAQ,CAAC;AAC9C,eAAO,MAAM,iCAAiC,QAAQ,CAAC;AACvD,eAAO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D,oBAAY,eAAe,GAAG,OAAO,CAAC,oBAAoB,EAAE,sBAAsB,CAAC,CAAC;AACpF,oBAAY,uBAAuB,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;AAEhE,eAAO,MAAM,qCAAqC,+CAA+C,CAAC;AAClG,eAAO,MAAM,yCAAyC,+CAA+C,CAAC"}
|
|
@@ -8,7 +8,6 @@ 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 = 23;
|
|
12
11
|
export const SESSION_NOTIFIED_USERS_INTERNAL_LIMIT = 1024;
|
|
13
12
|
export const SESSION_NOTIFIED_USERS_EXTERNAL_LIMIT = 1024;
|
|
14
13
|
export const SESSION_TIME_FRAMES_URGENCY_LIMIT = 32768;
|
|
@@ -193,6 +192,7 @@ export const initialCaseState = {
|
|
|
193
192
|
openshiftDisplayName: '',
|
|
194
193
|
isCaseOwnerUpdating: false,
|
|
195
194
|
isFileRecommendationsTriggered: false,
|
|
195
|
+
isPhoneLengthInvalid: false,
|
|
196
196
|
};
|
|
197
197
|
export const ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967811';
|
|
198
198
|
export const NON_ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967831';
|
|
@@ -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,iDAAi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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,CA4EtB,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,eAgDF,CAAC"}
|
|
@@ -182,6 +182,7 @@ export const isIdeaCaseStateValid = (caseState, loggedInUserJwtToken) => {
|
|
|
182
182
|
};
|
|
183
183
|
export const isCaseManagementStateValid = (caseState, loggedInUserJwtToken) => {
|
|
184
184
|
const case_details = caseState.caseDetails;
|
|
185
|
+
const isPhoneLengthInvalid = caseState.isPhoneLengthInvalid;
|
|
185
186
|
return (isEmpty(case_details.caseNumber) &&
|
|
186
187
|
!caseState.hasLargeCaseDescription &&
|
|
187
188
|
!isEmpty(case_details.product) &&
|
|
@@ -195,6 +196,7 @@ export const isCaseManagementStateValid = (caseState, loggedInUserJwtToken) => {
|
|
|
195
196
|
? !isEmpty(case_details.groupNumber) && case_details.groupNumber !== '-1'
|
|
196
197
|
: true) &&
|
|
197
198
|
isPhoneValid(case_details.phoneCountryCode, case_details.phoneAreaCodePrefixLineNumber) &&
|
|
199
|
+
!isPhoneLengthInvalid &&
|
|
198
200
|
canManageCase(loggedInUserJwtToken));
|
|
199
201
|
};
|
|
200
202
|
// Add a !isEmpty to to make any KTQuestion Mandatory in isCaseInformationSectionValid
|
|
@@ -7,11 +7,12 @@ 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';
|
|
10
11
|
export declare const caseReducer: (pState: ICaseState, action: any) => ICaseState;
|
|
11
12
|
export declare const setCaseDetails: (dispatch: CaseReducerDispatchType, caseState: Partial<ICasePayload>) => void;
|
|
12
13
|
export declare const setCaseState: (dispatch: CaseReducerDispatchType, caseState: Partial<ICaseState>) => void;
|
|
13
14
|
export declare const setNotifiedUser: (dispatch: CaseReducerDispatchType, selectedNotificationContacts: IContact[]) => void;
|
|
14
|
-
export declare const submitCase: (dispatch: CaseReducerDispatchType, caseDetails: ICaseState, sessionItem: ISessionItem, isCaseCreate: boolean, errorMessage500: string | JSX.Element,
|
|
15
|
+
export declare const submitCase: (dispatch: CaseReducerDispatchType, sessionRestoreDispatch: SessionReducerDispatchType, caseDetails: ICaseState, sessionItem: ISessionItem, isCaseCreate: boolean, errorMessage500: string | JSX.Element, loggedInUserSsoUsername: string, isSecureSupport?: boolean) => Promise<void>;
|
|
15
16
|
/**
|
|
16
17
|
* Update case details if there is HTTP 500 error while submitting case
|
|
17
18
|
* @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,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AAC"}
|
|
@@ -19,6 +19,7 @@ import uniqBy from 'lodash/uniqBy';
|
|
|
19
19
|
import { trimAndReplacePlus } from '../components/shared/utils';
|
|
20
20
|
import { CaseReducerConstants, DESCRIPTION_LENGTH_LIMIT, initialCaseState, } from './CaseConstNTypes';
|
|
21
21
|
import { createCasePayload, getCaseFromSessionDetails, getCaseRecommendations, getCepCommentFromCepDetails, getHasInvalidEntitlements, getProcessedEntitlements, } from './CaseHelpers';
|
|
22
|
+
import { updateSession } from './SessionRestoreReducer';
|
|
22
23
|
export const caseReducer = (pState, action) => {
|
|
23
24
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
24
25
|
switch (action.type) {
|
|
@@ -149,13 +150,13 @@ export const setNotifiedUser = (dispatch, selectedNotificationContacts) => {
|
|
|
149
150
|
payload: { selectedNotificationContacts },
|
|
150
151
|
});
|
|
151
152
|
};
|
|
152
|
-
export const submitCase = (dispatch, caseDetails, sessionItem, isCaseCreate, errorMessage500,
|
|
153
|
+
export const submitCase = (dispatch, sessionRestoreDispatch, caseDetails, sessionItem, isCaseCreate, errorMessage500, loggedInUserSsoUsername, isSecureSupport = false) => __awaiter(void 0, void 0, void 0, function* () {
|
|
153
154
|
var _a;
|
|
154
155
|
dispatch({ type: CaseReducerConstants.isCreatingCase });
|
|
155
156
|
try {
|
|
156
157
|
const casePayload = createCasePayload(caseDetails, sessionItem, isCaseCreate);
|
|
157
158
|
const caseNumber = yield publicApi.kase.createCase(casePayload, caseDetails.selectedAccountDetails.data.secureSupport);
|
|
158
|
-
if (casePayload.contactSSOName ===
|
|
159
|
+
if (casePayload.contactSSOName === loggedInUserSsoUsername &&
|
|
159
160
|
!isEmpty((_a = casePayload.phoneAreaCodePrefixLineNumber) === null || _a === void 0 ? void 0 : _a.trim()) &&
|
|
160
161
|
!isEmpty(trimAndReplacePlus((casePayload === null || casePayload === void 0 ? void 0 : casePayload.phoneCountryCode) || ''))) {
|
|
161
162
|
contacts.updateContactBySSO(casePayload.contactSSOName, {
|
|
@@ -164,6 +165,8 @@ export const submitCase = (dispatch, caseDetails, sessionItem, isCaseCreate, err
|
|
|
164
165
|
});
|
|
165
166
|
}
|
|
166
167
|
postCaseCreationProcessing(dispatch, caseNumber, caseDetails);
|
|
168
|
+
!isSecureSupport &&
|
|
169
|
+
(yield updateSession(sessionRestoreDispatch, sessionItem.session.id, sessionItem.sessionDetails, sessionItem.session));
|
|
167
170
|
dispatch({ type: CaseReducerConstants.caseCreated, payload: { caseDetails: { caseNumber } } });
|
|
168
171
|
}
|
|
169
172
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionRestoreReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/SessionRestoreReducer.ts"],"names":[],"mappings":"AACA,OAAO,EACH,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,IAAI,sBAAsB,EAC/C,yBAAyB,IAAI,0BAA0B,EAC1D,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AACzG,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAkB1G,OAAO,EAAwB,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAWlF,MAAM,WAAW,aAAa;IAC1B,CAAC,SAAS,EAAE,MAAM,GAAG,YAAY,CAAC;CACrC;AAED,MAAM,WAAW,iBAAiB;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,gBAA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,EAAE,0BAA0B,GAC7C,gBAAgB,EAAE,CAIpB;AAED,eAAO,MAAM,oBAAoB,eACjB,eAAe,oBACT,0BAA0B,KAC7C,gBAAgB,EAIlB,CAAC;AAEF,eAAO,MAAM,YAAY,OACjB,WAAW,oBACG,0BAA0B,qBACzB,MAAM,SAClB,MAAM,KACd,gBAMD,CAAC;AAEH,wBAAgB,kBAAkB,CAC9B,IAAI,EAAE,mBAAmB,EAAE,EAC3B,gBAAgB,EAAE,0BAA0B,GAC7C,gBAAgB,EAAE,CAIpB;AAGD,eAAO,MAAM,iBAAiB,QACrB,mBAAmB,oBACN,0BAA0B,SACrC,MAAM,KACd,gBAMD,CAAC;AAEH,eAAO,MAAM,mBAAmB,QACvB,MAAM,oBACO,0BAA0B,iCAErC,MAAM,KACd,gBAMD,CAAC;AAEH,eAAO,MAAM,cAAc,gFAa1B,CAAC;AAEF,eAAO,MAAM,qBAAqB,gFAajC,CAAC;AAGF,eAAO,MAAM,gBAAgB,QACpB,MAAM,oBACO,0BAA0B,6BAE7C,gBAKD,CAAC;AAGH,eAAO,MAAM,mCAAmC,QACvC,MAAM,oBACO,0BAA0B,6BAE7C,gBAKD,CAAC;AAEH,wBAAgB,oCAAoC,CAChD,IAAI,KAAA,EACJ,gBAAgB,EAAE,0BAA0B,GAC7C,gBAAgB,EAAE,CAIpB;AAID,eAAO,MAAM,YAAY,eACT,mBAAmB,mBACd,mBAAmB,EAAE,YAC7B,mBAAmB,EAAE,uBAWjC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.19",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -66,11 +66,11 @@
|
|
|
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.
|
|
70
|
-
"@rh-support/react-context": "2.1.
|
|
69
|
+
"@rh-support/components": "2.1.9",
|
|
70
|
+
"@rh-support/react-context": "2.1.9",
|
|
71
71
|
"@rh-support/types": "2.0.2",
|
|
72
|
-
"@rh-support/user-permissions": "2.1.
|
|
73
|
-
"@rh-support/utils": "2.1.
|
|
72
|
+
"@rh-support/user-permissions": "2.1.4",
|
|
73
|
+
"@rh-support/utils": "2.1.2",
|
|
74
74
|
"@types/react-redux": "^7.1.12",
|
|
75
75
|
"@types/redux": "^3.6.0",
|
|
76
76
|
"dompurify": "^2.4.1",
|
|
@@ -133,5 +133,5 @@
|
|
|
133
133
|
"defaults and supports es6-module",
|
|
134
134
|
"maintained node versions"
|
|
135
135
|
],
|
|
136
|
-
"gitHead": "
|
|
136
|
+
"gitHead": "8f7f0aee0461c78e8a5cc0e16777371c4ae1305d"
|
|
137
137
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Issue.d.ts","sourceRoot":"","sources":["../../../../src/components/Issue/Issue.tsx"],"names":[],"mappings":"AAmBA,MAAM,CAAC,OAAO,UAAU,KAAK,gBA2F5B"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { TextArea } from '@patternfly/react-core';
|
|
2
|
-
import { InlineEdit, MoreOrLess } from '@rh-support/components';
|
|
3
|
-
import { useGlobalStateContext } from '@rh-support/react-context';
|
|
4
|
-
import isEmpty from 'lodash/isEmpty';
|
|
5
|
-
import isEqual from 'lodash/isEqual';
|
|
6
|
-
import React, { useState } from 'react';
|
|
7
|
-
import { Trans, useTranslation } from 'react-i18next';
|
|
8
|
-
import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
|
|
9
|
-
import { CASE_DEATILS_ISSUE_LIMIT, DESCRIPTION_LENGTH_LIMIT, MODIFIED_DESCRIPTION_LENGTH_LIMIT, } from '../../reducers/CaseConstNTypes';
|
|
10
|
-
import { getUpdatedDescription } from '../../reducers/CaseHelpers';
|
|
11
|
-
import { setCaseDetails } from '../../reducers/CaseReducer';
|
|
12
|
-
import OpenCaseIssue from '../CaseInformation/OpenCaseIssue';
|
|
13
|
-
export default function Issue() {
|
|
14
|
-
var _a, _b, _c;
|
|
15
|
-
const { t } = useTranslation();
|
|
16
|
-
const { summary, issue, environment, periodicityOfIssue, timeFramesAndUrgency, v3ClusterName } = useCaseSelector((state) => ({
|
|
17
|
-
summary: state.caseDetails.summary,
|
|
18
|
-
issue: state.caseDetails.issue,
|
|
19
|
-
environment: state.caseDetails.environment,
|
|
20
|
-
periodicityOfIssue: state.caseDetails.periodicityOfIssue,
|
|
21
|
-
timeFramesAndUrgency: state.caseDetails.timeFramesAndUrgency,
|
|
22
|
-
v3ClusterName: state.v3ClusterName,
|
|
23
|
-
}), isEqual);
|
|
24
|
-
const caseDispatch = useCaseDispatch();
|
|
25
|
-
const { globalMetadataState: { navBarRef }, } = useGlobalStateContext();
|
|
26
|
-
const [hasLargeDescription, setHasLargeDescription] = useState(false);
|
|
27
|
-
const onCaseDetailsChange = (caseDetails) => {
|
|
28
|
-
setCaseDetails(caseDispatch, caseDetails);
|
|
29
|
-
};
|
|
30
|
-
// To handle change of KTQ1
|
|
31
|
-
const onKTQ1IssueChange = (value, e) => {
|
|
32
|
-
const ktQ1Local = isEmpty(value === null || value === void 0 ? void 0 : value.trim()) ? '' : value;
|
|
33
|
-
const description = getUpdatedDescription(ktQ1Local, environment, periodicityOfIssue, timeFramesAndUrgency, v3ClusterName);
|
|
34
|
-
setHasLargeDescription(description.length > DESCRIPTION_LENGTH_LIMIT);
|
|
35
|
-
onCaseDetailsChange({ issue: ktQ1Local, description });
|
|
36
|
-
};
|
|
37
|
-
const maxLengtMessage = t('Case description cannot be more than {{limit}} characters', {
|
|
38
|
-
limit: MODIFIED_DESCRIPTION_LENGTH_LIMIT,
|
|
39
|
-
});
|
|
40
|
-
return (React.createElement(React.Fragment, null,
|
|
41
|
-
React.createElement("form", { className: "push-bottom" },
|
|
42
|
-
React.createElement(OpenCaseIssue, { inlineEditable: false, hideSaveCancel: true, initialIsEditing: isEmpty(summary), required: true }),
|
|
43
|
-
React.createElement(MoreOrLess, { maxHeight: 600, appStickyHeaderRef: navBarRef },
|
|
44
|
-
React.createElement(InlineEdit, { labelProps: { htmlFor: 'issue-section-ktQ1-issue' }, labelContent: React.createElement(React.Fragment, null,
|
|
45
|
-
React.createElement(Trans, null, "What are you experiencing? What are you expecting to happen?")), allowInlineEdit: false, hideSaveCancel: true, initialIsEditing: isEmpty(issue), usePreformattedTag: true, content: issue },
|
|
46
|
-
React.createElement(TextArea, { id: "issue-section-ktQ1-issue", name: "issue-section-ktQ1-issue", className: `form-control${hasLargeDescription ? ' form-invalid' : ''}`, "aria-invalid": ((_a = issue) === null || _a === void 0 ? void 0 : _a.length) > CASE_DEATILS_ISSUE_LIMIT ? 'true' : 'false', value: issue, onChange: onKTQ1IssueChange, "data-tracking-id": "get-support-describe-ktQ1-issue", "aria-describedby": "describeIssueDesc", placeholder: t('Elaborate more on your issue') }),
|
|
47
|
-
React.createElement("p", { className: "form-instructions", "data-tracking-id": "large-20k-warning-ktQ1-environment" }, `${((_b = issue) === null || _b === void 0 ? void 0 : _b.length) > CASE_DEATILS_ISSUE_LIMIT
|
|
48
|
-
? `Description cannot be more than ${CASE_DEATILS_ISSUE_LIMIT} characters`
|
|
49
|
-
: ''}`))),
|
|
50
|
-
((_c = getUpdatedDescription(issue, environment, periodicityOfIssue, timeFramesAndUrgency, v3ClusterName)) === null || _c === void 0 ? void 0 : _c.length) > DESCRIPTION_LENGTH_LIMIT && (React.createElement("div", { className: "pull-top" },
|
|
51
|
-
React.createElement("p", { className: "form-instructions form-invalid" }, maxLengtMessage))))));
|
|
52
|
-
}
|