@rh-support/troubleshoot 2.2.162 → 2.2.164
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/AccountSelector.d.ts.map +1 -1
- package/lib/esm/components/AccountInfo/AccountSelector.js +3 -3
- package/lib/esm/components/AccountInfo/ManagedAccountsDropdown.d.ts.map +1 -1
- package/lib/esm/components/AccountInfo/ManagedAccountsDropdown.js +35 -10
- package/lib/esm/components/AccountInfo/css/accountSelector.css +6 -0
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/index.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/index.js +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.js +2 -2
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.js +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.js +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.js +11 -10
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.js +2 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInternalStatus.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInternalStatus.js +29 -12
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/SFDCUrl.d.ts +3 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/SFDCUrl.d.ts.map +1 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/SFDCUrl.js +37 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +3 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +8 -4
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.js +1 -1
- package/lib/esm/components/CaseManagement/Cep.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/Cep.js +2 -2
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +39 -18
- package/lib/esm/components/Recommendations/EARules/EARule.js +2 -2
- package/lib/esm/components/Recommendations/EARules/EARuleInfoInline.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/EARules/EARuleInfoInline.js +2 -2
- package/lib/esm/components/Recommendations/Recommendations.js +2 -2
- package/lib/esm/components/Suggestions/TopContent.js +2 -2
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts.map +1 -1
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.d.ts +2 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.js +3 -2
- package/lib/esm/components/shared/usePostComment.d.ts.map +1 -1
- package/lib/esm/components/shared/usePostComment.js +3 -1
- package/lib/esm/components/wizardLayout/MainSection.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/MainSection.js +13 -3
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardNavigation.js +3 -1
- package/lib/esm/reducers/CaseConstNTypes.d.ts +2 -1
- package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.js +1 -0
- package/lib/esm/reducers/CaseDiscussionTabReducer.d.ts +2 -1
- package/lib/esm/reducers/CaseDiscussionTabReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseDiscussionTabReducer.js +3 -1
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.js +4 -2
- package/lib/esm/scss/_main.scss +21 -0
- package/lib/esm/scss/_pf-overrides.scss +38 -0
- package/package.json +6 -6
- package/lib/esm/components/CaseInformation/ProductNVersion.d.ts +0 -6
- package/lib/esm/components/CaseInformation/ProductNVersion.d.ts.map +0 -1
- package/lib/esm/components/CaseInformation/ProductNVersion.js +0 -20
|
@@ -58,8 +58,7 @@ export function OpenShiftClusterId(props) {
|
|
|
58
58
|
const { routeState: { isNextBtnClickedToShowValidationError }, } = useContext(RouteContext);
|
|
59
59
|
const clusterRecommendationsDispatch = useContext(ClusterRecommendationsDispatchContext);
|
|
60
60
|
const { clusterRecommendationsState: { clusterRecommendationsCache }, } = useContext(ClusterRecommendationsContext);
|
|
61
|
-
const
|
|
62
|
-
const isOpenShiftV3 = product === 'OpenShift Container Platform' && majorVersion === '3';
|
|
61
|
+
const [showV3TextBox, setShowV3TextBox] = useState(false);
|
|
63
62
|
const isCustomer = loggedInUserRights.data.isAccountSameAsLoggedInAccount(selectedAccountDetails.data.accountNumber);
|
|
64
63
|
const [showClusterId, setShowClusterId] = useState(false);
|
|
65
64
|
const [isClusterIdInvalid, setIsClusterIdInValid] = useState(false);
|
|
@@ -86,9 +85,15 @@ export function OpenShiftClusterId(props) {
|
|
|
86
85
|
*/
|
|
87
86
|
useEffect(() => {
|
|
88
87
|
var _a;
|
|
88
|
+
if (isEmpty(product) || isEmpty(version))
|
|
89
|
+
return;
|
|
89
90
|
const isClusterVisible = () => __awaiter(this, void 0, void 0, function* () {
|
|
90
|
-
var _b;
|
|
91
|
+
var _b, _c;
|
|
91
92
|
const hasCluster = yield isClusterIdEnabledForProduct(product, (_b = allProducts.data) === null || _b === void 0 ? void 0 : _b.productsResult);
|
|
93
|
+
if (!hasCluster) {
|
|
94
|
+
resetClusterData();
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
92
97
|
setShowClusterId(hasCluster);
|
|
93
98
|
// if clusterId is already populated it means it comes from session and
|
|
94
99
|
// we ignore url clusterId otherwise we get cluster id from url and validate it
|
|
@@ -110,8 +115,34 @@ export function OpenShiftClusterId(props) {
|
|
|
110
115
|
setIsClusterIdInValid(false);
|
|
111
116
|
}
|
|
112
117
|
}
|
|
113
|
-
|
|
114
|
-
|
|
118
|
+
const majorVersion = (_c = getVersion(version)) === null || _c === void 0 ? void 0 : _c.major;
|
|
119
|
+
const isOpenShiftV3 = product === 'OpenShift Container Platform' && majorVersion === '3';
|
|
120
|
+
setShowV3TextBox(isOpenShiftV3);
|
|
121
|
+
if (isOpenShiftV3 || noClusterIdReasonExplanation === 'v3-cluster') {
|
|
122
|
+
setCaseDetails(caseDispatch, Object.assign({ openshiftClusterID: '' }, (noClusterIdReasonExplanation !== 'v3-cluster' && {
|
|
123
|
+
noClusterIdReason: '',
|
|
124
|
+
noClusterIdReasonExplanation: '',
|
|
125
|
+
})));
|
|
126
|
+
if (noClusterIdReasonExplanation === 'v3-cluster') {
|
|
127
|
+
setV3Selected(true);
|
|
128
|
+
setSelectedReason('v3-cluster');
|
|
129
|
+
}
|
|
130
|
+
else if (!isEmpty(noClusterIdReason)) {
|
|
131
|
+
setDontKnowSelected(true);
|
|
132
|
+
setSelectedReason('dont-have-id');
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
setCaseState(caseDispatch, { v3ClusterName: '' });
|
|
137
|
+
setCaseDetails(caseDispatch, Object.assign({}, (noClusterIdReasonExplanation === 'v3-cluster' && {
|
|
138
|
+
noClusterIdReason: '',
|
|
139
|
+
noClusterIdReasonExplanation: '',
|
|
140
|
+
})));
|
|
141
|
+
setV3Selected(false);
|
|
142
|
+
if (!isEmpty(noClusterIdReason)) {
|
|
143
|
+
setDontKnowSelected(true);
|
|
144
|
+
setSelectedReason('dont-have-id');
|
|
145
|
+
}
|
|
115
146
|
}
|
|
116
147
|
});
|
|
117
148
|
if ((((_a = allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult) || []).length > 0) {
|
|
@@ -125,16 +156,6 @@ export function OpenShiftClusterId(props) {
|
|
|
125
156
|
useEffect(() => {
|
|
126
157
|
const isClusterIdInvalid = getIsClusterIdInvalid(openshiftClusterID);
|
|
127
158
|
setIsClusterIdInValid(isClusterIdInvalid);
|
|
128
|
-
// when user click on back and continue button, need to show v3 text box or reasons dropdown
|
|
129
|
-
if (!isEmpty(v3ClusterName) ||
|
|
130
|
-
(noClusterIdReason === 'Other' && noClusterIdReasonExplanation === 'v3-cluster')) {
|
|
131
|
-
setV3Selected(true);
|
|
132
|
-
setSelectedReason('v3-cluster');
|
|
133
|
-
}
|
|
134
|
-
else if (!isEmpty(noClusterIdReason)) {
|
|
135
|
-
setDontKnowSelected(true);
|
|
136
|
-
setSelectedReason('dont-have-id');
|
|
137
|
-
}
|
|
138
159
|
const canFetchClusterRecommendation = !isClusterIdInvalid && !isEmpty(openshiftClusterID);
|
|
139
160
|
canFetchClusterRecommendation &&
|
|
140
161
|
fetchClusterRecommendations(clusterRecommendationsDispatch, openshiftClusterID, clusterRecommendationsCache);
|
|
@@ -204,8 +225,8 @@ export function OpenShiftClusterId(props) {
|
|
|
204
225
|
if (!showClusterId)
|
|
205
226
|
return null;
|
|
206
227
|
return (React.createElement("div", { className: `${props.className ? props.className : ''}` },
|
|
207
|
-
!
|
|
228
|
+
!showV3TextBox && (React.createElement(OpenshiftDropdownV4, { openshiftDisplayName: openshiftDisplayName, openshiftClusterIDState: openshiftClusterID || selectedReason, onClusterIdStateUpdate: onClusterIdStateUpdate, isClusterIdInvalid: isNextBtnClickedToShowValidationError &&
|
|
208
229
|
((isEmpty(openshiftClusterID) && isEmpty(selectedReason)) || isClusterIdInvalid), clusterIdDropdownFormInstructions: clusterIdDropdownFormInstructions(), onClusterClear: resetClusterData, isV3: product !== 'OpenShift Container Platform' })),
|
|
209
|
-
noClusterIdReasonExplanation !== 'v3-cluster' && dontKnowSelected && !
|
|
210
|
-
(v3Selected ||
|
|
230
|
+
noClusterIdReasonExplanation !== 'v3-cluster' && dontKnowSelected && !showV3TextBox && (React.createElement(NoClusterIDReasonSelector, { noClusterIdReasonExplanation: noClusterIdReasonExplanation, noClusterIdReason: noClusterIdReason, onReasonInputBoxChanged: onReasonExplanationInputBoxChanged, onReasonChange: onReasonChange, isInValid: isInVaidNoClusterIdReason, isCustomer: isCustomer })),
|
|
231
|
+
(v3Selected || showV3TextBox) && (React.createElement(OpenShiftV3Inputbox, { v3ClusterName: v3ClusterName, onReasonInputBoxChanged: v3ClusterNameInputBoxChanged, isInValid: isEmpty(v3ClusterName.trim()) && isNextBtnClickedToShowValidationError, v3Selected: v3Selected }))));
|
|
211
232
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import { pcm } from '@cee-eng/hydrajs';
|
|
3
|
-
import {
|
|
3
|
+
import { dtmTrackEventCaseStartStopped } from '@rh-support/utils';
|
|
4
4
|
import DOMPurify from 'dompurify';
|
|
5
5
|
import isEqual from 'lodash/isEqual';
|
|
6
6
|
import React, { useContext } from 'react';
|
|
@@ -31,7 +31,7 @@ export function EARule({ children, rule, ruleRank }) {
|
|
|
31
31
|
const sessionRestoreDispatch = useContext(SessionRestoreDispatchContext);
|
|
32
32
|
const onCtaClick = (link, title) => () => {
|
|
33
33
|
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.EDMOUND_ABOTT, [getSessResFromEA(link, SessionResourceVisibility.VISITED, ruleRank, rule.rule_id)], JSON.stringify({ product, version, summary }));
|
|
34
|
-
|
|
34
|
+
dtmTrackEventCaseStartStopped(`insight rule button click: ${title}`, undefined, `${product}|${version}`);
|
|
35
35
|
};
|
|
36
36
|
return (React.createElement(EARuleContext.Provider, { value: {
|
|
37
37
|
rule,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EARuleInfoInline.d.ts","sourceRoot":"","sources":["../../../../../src/components/Recommendations/EARules/EARuleInfoInline.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EARuleInfoInline.d.ts","sourceRoot":"","sources":["../../../../../src/components/Recommendations/EARules/EARuleInfoInline.tsx"],"names":[],"mappings":"AAeA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAM/D,OAAO,EAAE,aAAa,EAAkD,MAAM,gCAAgC,CAAC;AAO/G,UAAU,MAAM;IACZ,OAAO,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED,wBAAgB,gBAAgB,CAAC,EAAE,OAAY,EAAE,EAAE,MAAM,qBAiKxD"}
|
|
@@ -14,7 +14,7 @@ import CloseIcon from '@patternfly/react-icons/dist/js/icons/close-icon';
|
|
|
14
14
|
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
15
15
|
import { PaginationCompact, useFetch } from '@rh-support/components';
|
|
16
16
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
17
|
-
import {
|
|
17
|
+
import { dtmTrackEventCaseStartStopped, getResTypeFromUrl, getStyleVariantColor, StyleVariants, } from '@rh-support/utils';
|
|
18
18
|
import isEqual from 'lodash/isEqual';
|
|
19
19
|
import some from 'lodash/some';
|
|
20
20
|
import React, { useContext, useEffect, useState } from 'react';
|
|
@@ -102,7 +102,7 @@ export function EARuleInfoInline({ eaRules = [] }) {
|
|
|
102
102
|
React.createElement(EARuleTitle, null))),
|
|
103
103
|
React.createElement("div", { className: "pf-v5-c-alert__action" },
|
|
104
104
|
React.createElement(Button, { style: { fontSize: 15 }, variant: ButtonVariant.link, "data-tracking-id": "se-recommended-asa-ignore", type: "button", onClick: onIgnoreBtnClick }, validEARulesLength > 1 ? React.createElement(Trans, null, "Skip") : React.createElement(CloseIcon, null))),
|
|
105
|
-
React.createElement("div", { className: "pf-v5-c-alert__description", onClick: () =>
|
|
105
|
+
React.createElement("div", { className: "pf-v5-c-alert__description", onClick: () => dtmTrackEventCaseStartStopped('insight rule description click', undefined, `${product}|${version}`) },
|
|
106
106
|
React.createElement(EARuleDescription, null)),
|
|
107
107
|
React.createElement("div", { className: "pf-v5-c-alert__action-group pf-v5-u-display-flex" },
|
|
108
108
|
React.createElement(EARuleArticle, { className: "pf-v5-u-align-self-center pf-v5-u-mr-sm", linkTitle: "View details" }),
|
|
@@ -2,7 +2,7 @@ import { pcm } from '@cee-eng/hydrajs';
|
|
|
2
2
|
import { Label, Pagination, PaginationVariant } from '@patternfly/react-core';
|
|
3
3
|
import { LoadingDots, useDebounce, usePrevious } from '@rh-support/components';
|
|
4
4
|
import { useGlobalStateContext } from '@rh-support/react-context';
|
|
5
|
-
import { computeRecommendationAbstract, computeRecommendationTitle,
|
|
5
|
+
import { computeRecommendationAbstract, computeRecommendationTitle, dtmTrackEventCaseStartStopped, formatDate, scrollIntoView, } from '@rh-support/utils';
|
|
6
6
|
import differenceBy from 'lodash/differenceBy';
|
|
7
7
|
import isEmpty from 'lodash/isEmpty';
|
|
8
8
|
import isEqual from 'lodash/isEqual';
|
|
@@ -150,7 +150,7 @@ export default function Recommendations(props) {
|
|
|
150
150
|
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.RECOMMENDATIONS, [
|
|
151
151
|
getSessResFromRec(doc, SessionResourceVisibility.VISITED, index + 1 + (pageSize || DEFAULTPAGESIZE) * ((recommendationState.currentPage || 1) - 1)),
|
|
152
152
|
], JSON.stringify(payload));
|
|
153
|
-
|
|
153
|
+
dtmTrackEventCaseStartStopped('recommendation click', caseNumber, `${product}|${version}`);
|
|
154
154
|
};
|
|
155
155
|
return (React.createElement(React.Fragment, null,
|
|
156
156
|
React.createElement(LoadingDots, { className: "recommendation-loading-dots", show: recommendationState.isLoadingRecommendations && !isEmpty(summary) && !isEmpty(issue) }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { pcm } from '@cee-eng/hydrajs';
|
|
2
2
|
import { Accordion, AccordionContent, AccordionItem, AccordionToggle, Tooltip } from '@patternfly/react-core';
|
|
3
|
-
import {
|
|
3
|
+
import { dtmTrackEventCaseStartStopped } from '@rh-support/utils';
|
|
4
4
|
import isEqual from 'lodash/isEqual';
|
|
5
5
|
import map from 'lodash/map';
|
|
6
6
|
import React, { useState } from 'react';
|
|
@@ -26,7 +26,7 @@ export default function TopContent(props) {
|
|
|
26
26
|
}), isEqual);
|
|
27
27
|
const onLinkClick = (item) => (event) => {
|
|
28
28
|
props.onResourceClick && props.onResourceClick(item);
|
|
29
|
-
|
|
29
|
+
dtmTrackEventCaseStartStopped('top content click', caseNumber, `${product}|${version}`);
|
|
30
30
|
};
|
|
31
31
|
const onToggle = (id) => {
|
|
32
32
|
if (id === expanded) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateSeverityModal.d.ts","sourceRoot":"","sources":["../../../../src/components/UpdateSeverityModal/UpdateSeverityModal.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAA8D,MAAM,OAAO,CAAC;AAgBnF,UAAU,MAAM;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"UpdateSeverityModal.d.ts","sourceRoot":"","sources":["../../../../src/components/UpdateSeverityModal/UpdateSeverityModal.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAA8D,MAAM,OAAO,CAAC;AAgBnF,UAAU,MAAM;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,MAAM,qBA4iBxD"}
|
|
@@ -243,7 +243,7 @@ export default function UpdateSeverityModal(props) {
|
|
|
243
243
|
setDescriptionValue(descriptionValue === null || descriptionValue === void 0 ? void 0 : descriptionValue.trim());
|
|
244
244
|
}
|
|
245
245
|
finally {
|
|
246
|
-
yield updateDiscussionStateComments(dispatchDiscussion, caseDetails.caseNumber, allDiscussions, sort, caseFeedbacksHydra.data, discussionFiltersListState);
|
|
246
|
+
yield updateDiscussionStateComments(dispatchDiscussion, caseDispatch, caseDetails.caseNumber, allDiscussions, sort, caseFeedbacksHydra.data, discussionFiltersListState);
|
|
247
247
|
setIsUpdateClickedToShowError(false);
|
|
248
248
|
setDescriptionValue('');
|
|
249
249
|
}
|
|
@@ -3,7 +3,8 @@ interface IProps extends React.HTMLProps<HTMLButtonElement> {
|
|
|
3
3
|
isSessionId: boolean;
|
|
4
4
|
isPrivate?: boolean;
|
|
5
5
|
buttonLabel?: string;
|
|
6
|
+
isDisabled?: boolean;
|
|
6
7
|
}
|
|
7
|
-
declare function FileSelectorButton({ isSessionId, id, className, buttonLabel, isPrivate, ...btnProps }: IProps): React.JSX.Element;
|
|
8
|
+
declare function FileSelectorButton({ isSessionId, id, className, buttonLabel, isPrivate, isDisabled, ...btnProps }: IProps): React.JSX.Element;
|
|
8
9
|
export default FileSelectorButton;
|
|
9
10
|
//# sourceMappingURL=FileSelectorButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileSelectorButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/fileUpload/fileSelectors/FileSelectorButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,UAAU,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC;IACvD,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,iBAAS,kBAAkB,CAAC,EACxB,WAAW,EACX,EAAO,EACP,SAA4B,EAC5B,WAA6B,EAC7B,SAAiB,EACjB,GAAG,QAAQ,EACd,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"FileSelectorButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/fileUpload/fileSelectors/FileSelectorButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,UAAU,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC;IACvD,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,iBAAS,kBAAkB,CAAC,EACxB,WAAW,EACX,EAAO,EACP,SAA4B,EAC5B,WAA6B,EAC7B,SAAiB,EACjB,UAAkB,EAClB,GAAG,QAAQ,EACd,EAAE,MAAM,qBA8BR;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -15,16 +15,17 @@ import { Trans } from 'react-i18next';
|
|
|
15
15
|
import { onDrop } from '../reducer/AttachmentHelper';
|
|
16
16
|
import { AttachmentDispatchContext } from '../reducer/AttachmentReducerContext';
|
|
17
17
|
function FileSelectorButton(_a) {
|
|
18
|
-
var { isSessionId, id = '', className = 'pf-m-secondary', buttonLabel = 'Upload a file', isPrivate = false } = _a, btnProps = __rest(_a, ["isSessionId", "id", "className", "buttonLabel", "isPrivate"]);
|
|
18
|
+
var { isSessionId, id = '', className = 'pf-m-secondary', buttonLabel = 'Upload a file', isPrivate = false, isDisabled = false } = _a, btnProps = __rest(_a, ["isSessionId", "id", "className", "buttonLabel", "isPrivate", "isDisabled"]);
|
|
19
19
|
// Attachment Reducer Related
|
|
20
20
|
const dispatchToAttachmentReducer = useContext(AttachmentDispatchContext);
|
|
21
21
|
const { getRootProps, getInputProps } = useDropzone({
|
|
22
22
|
onDrop: onDrop(dispatchToAttachmentReducer, isSessionId, isPrivate),
|
|
23
|
+
disabled: isDisabled,
|
|
23
24
|
});
|
|
24
25
|
return (React.createElement("span", Object.assign({ className: "upload-another-file", "data-tracking-id": "file-selector-btn-wrapper" }, getRootProps(), { tabIndex: -1 }),
|
|
25
26
|
React.createElement("label", { className: "sr-only", htmlFor: "upload-btn" },
|
|
26
27
|
React.createElement(Trans, null, "Upload new file")),
|
|
27
28
|
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-v5-c-button ${className}`, "data-tracking-id": "upload-a-file" }), buttonLabel)));
|
|
29
|
+
React.createElement("button", Object.assign({}, btnProps, { type: "button", className: `pf-v5-c-button ${className}`, "data-tracking-id": "upload-a-file", disabled: isDisabled }), buttonLabel)));
|
|
29
30
|
}
|
|
30
31
|
export default FileSelectorButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePostComment.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/usePostComment.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"usePostComment.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/usePostComment.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAW9E,wBAAgB,cAAc,CAAC,EAAE,UAAU,EAAE;;CAAA;;+BAiBd,OAAO;;;EAyBrC"}
|
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { publicApi } from '@cee-eng/hydrajs';
|
|
11
11
|
import { useFetch } from '@rh-support/components';
|
|
12
|
+
import { useCaseDispatch } from '../../context/CaseContext';
|
|
12
13
|
import { useCaseDetailsPageStateContext } from '../../context/CaseDetailsPageContext';
|
|
13
14
|
import { useCaseDiscussionTabDispatchContext, useCaseDiscussionTabStateContext, } from '../../context/CaseDiscussionTabContext';
|
|
14
15
|
import { updateDiscussionStateComments } from '../../reducers/CaseDiscussionTabReducer';
|
|
@@ -16,6 +17,7 @@ export function usePostComment({ caseNumber }) {
|
|
|
16
17
|
const { request: postCommentRequest, isFetching: isPostingComment } = useFetch(publicApi.kase.postComment, {
|
|
17
18
|
propgateErrors: true,
|
|
18
19
|
});
|
|
20
|
+
const caseDispatch = useCaseDispatch();
|
|
19
21
|
const dispatchDiscussion = useCaseDiscussionTabDispatchContext();
|
|
20
22
|
const { sort, allDiscussions, discussionFiltersListState } = useCaseDiscussionTabStateContext();
|
|
21
23
|
const { caseDetailsPageState: { caseFeedbacksHydra }, } = useCaseDetailsPageStateContext();
|
|
@@ -31,7 +33,7 @@ export function usePostComment({ caseNumber }) {
|
|
|
31
33
|
doNotChangeStatus,
|
|
32
34
|
});
|
|
33
35
|
updateDiscussionState &&
|
|
34
|
-
updateDiscussionStateComments(dispatchDiscussion, caseNumber, allDiscussions, sort, caseFeedbacksHydra.data, discussionFiltersListState);
|
|
36
|
+
updateDiscussionStateComments(dispatchDiscussion, caseDispatch, caseNumber, allDiscussions, sort, caseFeedbacksHydra.data, discussionFiltersListState);
|
|
35
37
|
}
|
|
36
38
|
catch (e) {
|
|
37
39
|
throw e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MainSection.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/MainSection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MainSection.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/MainSection.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,UAAU,MAAM;IACZ,OAAO,EAAE,gBAAgB,CAAC;IAC1B,KAAK,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IAC5C,QAAQ,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IACnD,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAKD,QAAA,MAAM,WAAW;;;CAiFhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,17 +1,27 @@
|
|
|
1
1
|
import { Alert } from '@patternfly/react-core';
|
|
2
2
|
import { ErrorBoundary, LoadingIndicator } from '@rh-support/components';
|
|
3
3
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
4
|
+
import isEqual from 'lodash/isEqual';
|
|
4
5
|
import React, { useContext } from 'react';
|
|
6
|
+
import { useCaseSelector } from '../../context/CaseContext';
|
|
7
|
+
import { AppRouteSections } from '../../reducers/RouteConstNTypes';
|
|
5
8
|
const defaultProps = {
|
|
6
9
|
isLoading: false,
|
|
7
10
|
};
|
|
8
11
|
const MainSection = (props) => {
|
|
9
|
-
var _a;
|
|
12
|
+
var _a, _b, _c;
|
|
10
13
|
const { globalMetadataState: { loggedInUsersAccount }, } = useContext(GlobalMetadataStateContext);
|
|
11
|
-
const
|
|
14
|
+
const { selectedAccountDetails } = useCaseSelector((state) => ({
|
|
15
|
+
accountNumber: state.caseDetails.accountNumberRef,
|
|
16
|
+
selectedAccountDetails: state.selectedAccountDetails,
|
|
17
|
+
}), isEqual);
|
|
18
|
+
const isConfirmedStateSideSupport = ((_a = loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data) === null || _a === void 0 ? void 0 : _a.hasConfirmedStatesideSupport) ||
|
|
19
|
+
((_b = selectedAccountDetails === null || selectedAccountDetails === void 0 ? void 0 : selectedAccountDetails.data) === null || _b === void 0 ? void 0 : _b.hasConfirmedStatesideSupport);
|
|
12
20
|
return (React.createElement(ErrorBoundary, { isPageLevelError: true },
|
|
13
21
|
React.createElement("section", { id: `${props.section}-section`, tabIndex: -1, "aria-labelledby": `${props.section}-heading`, "aria-describedby": `${props.section}-description`, className: `main-step-content ${props.className ? props.className : ''}` },
|
|
14
|
-
isConfirmedStateSideSupport && (React.createElement(Alert, { isInline: true, variant: "warning", title:
|
|
22
|
+
isConfirmedStateSideSupport && props.section !== AppRouteSections.SUBMIT_CASE && (React.createElement(Alert, { isInline: true, variant: "warning", title: ((_c = loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data) === null || _c === void 0 ? void 0 : _c.hasConfirmedStatesideSupport)
|
|
23
|
+
? 'You have a confirmed stateside support account'
|
|
24
|
+
: 'This is a confirmed stateside support account', className: "pf-v5-u-mb-lg" },
|
|
15
25
|
React.createElement("p", null,
|
|
16
26
|
"To adhere to data regulations, open this case through",
|
|
17
27
|
' ',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardNavigation.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAMnD,OAAO,EAAoB,eAAe,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAK3G,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC3C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,mBAAmB,EAAE,CAAC,gCAAgC,EAAE,OAAO,KAAK,IAAI,CAAC;IACzE,gBAAgB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACrC;AAGD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"WizardNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardNavigation.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAMnD,OAAO,EAAoB,eAAe,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAK3G,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC3C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,mBAAmB,EAAE,CAAC,gCAAgC,EAAE,OAAO,KAAK,IAAI,CAAC;IACzE,gBAAgB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACrC;AAGD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,qBAqKtC;kBArKQ,gBAAgB;;;AAuKzB,eAAe,gBAAgB,CAAC"}
|
|
@@ -11,7 +11,7 @@ import { pcm } from '@cee-eng/hydrajs';
|
|
|
11
11
|
import { Button, ButtonVariant } from '@patternfly/react-core';
|
|
12
12
|
import { useFetch } from '@rh-support/components';
|
|
13
13
|
import { GlobalMetadataStateContext, useCanCreateCase } from '@rh-support/react-context';
|
|
14
|
-
import { getResTypeFromUrl } from '@rh-support/utils';
|
|
14
|
+
import { dtmTrackEventCaseStartStopped, getResTypeFromUrl } from '@rh-support/utils';
|
|
15
15
|
import find from 'lodash/find';
|
|
16
16
|
import isEqual from 'lodash/isEqual';
|
|
17
17
|
import React, { useContext, useState } from 'react';
|
|
@@ -74,11 +74,13 @@ function WizardNavigation(props) {
|
|
|
74
74
|
props.onNext && props.onNext();
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
+
dtmTrackEventCaseStartStopped(`${props.activeStep.nextButtonLabel} button clicked on ${props.activeStep.name} step`, `${caseState.caseDetails.caseNumber}`, `${caseState.caseDetails.product}|${caseState.caseDetails.version}`);
|
|
77
78
|
return;
|
|
78
79
|
};
|
|
79
80
|
const onBack = () => {
|
|
80
81
|
if (props.activeStep.hidRestOnBack)
|
|
81
82
|
props.onShowRestUpdate(false);
|
|
83
|
+
dtmTrackEventCaseStartStopped(`${props.activeStep.nextButtonLabel} button clicked on ${props.activeStep.name} step`, '', `${caseState.caseDetails.product}|${caseState.caseDetails.version}`);
|
|
82
84
|
props.onBack();
|
|
83
85
|
};
|
|
84
86
|
const onRecsFeedbackModalToggle = () => {
|
|
@@ -174,7 +174,8 @@ export declare enum CaseReducerConstants {
|
|
|
174
174
|
caseCreation500ErrorStatus = "caseCreation500ErrorStatus",
|
|
175
175
|
resetCaseNoOfCreatedCase = "resetCaseNoOfCreatedCase",
|
|
176
176
|
setIsPostingRemoteRequestCommentCompleted = "setIsPostingRemoteRequestCommentCompleted",
|
|
177
|
-
setIsPostingRemoteRequestCommentCompletedError = "setIsPostingRemoteRequestCommentCompletedError"
|
|
177
|
+
setIsPostingRemoteRequestCommentCompletedError = "setIsPostingRemoteRequestCommentCompletedError",
|
|
178
|
+
updateComments = "updateComments"
|
|
178
179
|
}
|
|
179
180
|
export declare const initialCaseState: ICaseState;
|
|
180
181
|
export interface ICaseState {
|
|
@@ -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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AAU;CAAG;AAC7D,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,oBAAoB,EAAE,sBAAsB,CAAC,CAAC;AACpF,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;AAEhE,eAAO,MAAM,qCAAqC,+CAA+C,CAAC;AAClG,eAAO,MAAM,yCAAyC,+CAA+C,CAAC"}
|
|
@@ -126,6 +126,7 @@ export var CaseReducerConstants;
|
|
|
126
126
|
CaseReducerConstants["resetCaseNoOfCreatedCase"] = "resetCaseNoOfCreatedCase";
|
|
127
127
|
CaseReducerConstants["setIsPostingRemoteRequestCommentCompleted"] = "setIsPostingRemoteRequestCommentCompleted";
|
|
128
128
|
CaseReducerConstants["setIsPostingRemoteRequestCommentCompletedError"] = "setIsPostingRemoteRequestCommentCompletedError";
|
|
129
|
+
CaseReducerConstants["updateComments"] = "updateComments";
|
|
129
130
|
})(CaseReducerConstants || (CaseReducerConstants = {}));
|
|
130
131
|
export const initialCaseState = {
|
|
131
132
|
isCreatingCase: false,
|
|
@@ -2,6 +2,7 @@ import { ICaseChat, ICaseComment, IExternalTrackerUpdate } from '@cee-eng/hydraj
|
|
|
2
2
|
import { ICommentFeedback } from '@cee-eng/hydrajs/@types/api/public/commentFeedback';
|
|
3
3
|
import { IAttachment } from '@cee-eng/hydrajs/@types/models/attachment';
|
|
4
4
|
import { IAction } from '@rh-support/types/shared';
|
|
5
|
+
import { CaseReducerDispatchType } from './CaseConstNTypes';
|
|
5
6
|
type IActionType = IAction<DiscussionsConstants, IDiscussionState>;
|
|
6
7
|
export type DiscussionsReducerDispatchType = (value: IActionType) => void;
|
|
7
8
|
export interface IDiscussion {
|
|
@@ -48,7 +49,7 @@ export declare const setDiscussions: (dispatch: DiscussionsReducerDispatchType,
|
|
|
48
49
|
export declare const updateAttacmentsAfterRemoval: (dispatch: DiscussionsReducerDispatchType, uuid_removed: string, allDiscussions: IDiscussion[], discussionFiltersListState: IFilter[]) => void;
|
|
49
50
|
export declare const updateCommentStateFeedback: (dispatch: DiscussionsReducerDispatchType, comment_id: string, newFeedback: any, allDiscussions: IDiscussion[]) => Promise<void>;
|
|
50
51
|
export declare const updateAttachment: (dispatch: DiscussionsReducerDispatchType, uuid: string, newAttachment: any, allDiscussions: IDiscussion[]) => void;
|
|
51
|
-
export declare const updateDiscussionStateComments: (dispatch: DiscussionsReducerDispatchType, caseNumber: string, allDiscussions: IDiscussion[], sort: ISort, feedbacks: ICommentFeedback[], discussionFiltersListState: IFilter[]) => Promise<void>;
|
|
52
|
+
export declare const updateDiscussionStateComments: (dispatch: DiscussionsReducerDispatchType, caseDispatch: CaseReducerDispatchType, caseNumber: string, allDiscussions: IDiscussion[], sort: ISort, feedbacks: ICommentFeedback[], discussionFiltersListState: IFilter[]) => Promise<void>;
|
|
52
53
|
export declare const updateDiscussionStateAttachments: (dispatch: DiscussionsReducerDispatchType, caseNumber: string, allDiscussions: IDiscussion[], sort: ISort, isSecureSupport: boolean, discussionFiltersListState: IFilter[]) => Promise<void>;
|
|
53
54
|
export declare const setCommentText: (dispatch: DiscussionsReducerDispatchType, replyCommentText: string, replyCommentCreator: string) => void;
|
|
54
55
|
export declare const clearReplyComment: (dispatch: DiscussionsReducerDispatchType) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseDiscussionTabReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseDiscussionTabReducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAC1G,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAMnD,KAAK,WAAW,GAAG,OAAO,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;AACnE,MAAM,MAAM,8BAA8B,GAAG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,SACjB,SAAS,EAAE,eACL,WAAW,EAAE,aACf,gBAAgB,EAAE,kBACb,QAAQ,sBAAsB,EAAE,CAAC,8BACrB,OAAO,EAAE,yBACd,OAAO,cAClB,OAAO,qBACA,OAAO,SA0E7B,CAAC;AAEF,eAAO,MAAM,4BAA4B,aAC3B,8BAA8B,gBAC1B,MAAM,kBACJ,WAAW,EAAE,8BACD,OAAO,EAAE,SAsBxC,CAAC;AAEF,eAAO,MAAM,0BAA0B,aACzB,8BAA8B,cAC5B,MAAM,oCAEF,WAAW,EAAE,kBAUhC,CAAC;AAEF,eAAO,MAAM,gBAAgB,aACf,8BAA8B,QAClC,MAAM,sCAEI,WAAW,EAAE,SAUhC,CAAC;AAEF,eAAO,MAAM,6BAA6B,aAC5B,8BAA8B,gBAC1B,uBAAuB,cACzB,MAAM,kBACF,WAAW,EAAE,QACvB,KAAK,aACA,gBAAgB,EAAE,8BACD,OAAO,EAAE,kBAmCxC,CAAC;AAEF,eAAO,MAAM,gCAAgC,aAC/B,8BAA8B,cAC5B,MAAM,kBACF,WAAW,EAAE,QACvB,KAAK,mBACM,OAAO,8BACI,OAAO,EAAE,kBA2BxC,CAAC;AAEF,eAAO,MAAM,cAAc,aACb,8BAA8B,oBACtB,MAAM,uBACH,MAAM,SAG9B,CAAC;AAEF,eAAO,MAAM,iBAAiB,aAAc,8BAA8B,SAKzE,CAAC"}
|
|
@@ -12,6 +12,7 @@ import filter from 'lodash/filter';
|
|
|
12
12
|
import findIndex from 'lodash/findIndex';
|
|
13
13
|
import isEqual from 'lodash/isEqual';
|
|
14
14
|
import orderBy from 'lodash/orderBy';
|
|
15
|
+
import { CaseReducerConstants } from './CaseConstNTypes';
|
|
15
16
|
export var DiscussionType;
|
|
16
17
|
(function (DiscussionType) {
|
|
17
18
|
DiscussionType["COMMENT"] = "comment";
|
|
@@ -208,7 +209,7 @@ export const updateAttachment = (dispatch, uuid, newAttachment, allDiscussions)
|
|
|
208
209
|
});
|
|
209
210
|
dispatch({ type: DiscussionsConstants.updateDiscussionState, payload: { allDiscussions: updatedDiscussions } });
|
|
210
211
|
};
|
|
211
|
-
export const updateDiscussionStateComments = (dispatch, caseNumber, allDiscussions, sort, feedbacks, discussionFiltersListState) => __awaiter(void 0, void 0, void 0, function* () {
|
|
212
|
+
export const updateDiscussionStateComments = (dispatch, caseDispatch, caseNumber, allDiscussions, sort, feedbacks, discussionFiltersListState) => __awaiter(void 0, void 0, void 0, function* () {
|
|
212
213
|
try {
|
|
213
214
|
const comments = yield publicApi.kase.getComments(caseNumber);
|
|
214
215
|
const allComments = (comments || [])
|
|
@@ -228,6 +229,7 @@ export const updateDiscussionStateComments = (dispatch, caseNumber, allDiscussio
|
|
|
228
229
|
});
|
|
229
230
|
dispatch({ type: DiscussionsConstants.updateDiscussionState, payload: { discussionFiltersListState } });
|
|
230
231
|
dispatch({ type: DiscussionsConstants.updateDiscussionState, payload: { allDiscussions: updatedDiscussions } });
|
|
232
|
+
caseDispatch({ type: CaseReducerConstants.updateComments, payload: { caseDetails: { comments } } });
|
|
231
233
|
}
|
|
232
234
|
catch (e) {
|
|
233
235
|
console.log(e);
|
|
@@ -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,EA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MAAM,iBAiB1F;AAED,eAAO,MAAM,kBAAkB,aAAc,uBAAuB,QAAQ,OAAO,SAKlF,CAAC"}
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { accounts, contacts, kase, pcm, publicApi } from '@cee-eng/hydrajs';
|
|
11
11
|
import { formattedApiErrorMessage } from '@rh-support/components';
|
|
12
|
-
import {
|
|
12
|
+
import { getApiResourceObject } from '@rh-support/utils';
|
|
13
13
|
import { isUndefined } from 'lodash';
|
|
14
14
|
import filter from 'lodash/filter';
|
|
15
15
|
import find from 'lodash/find';
|
|
@@ -90,6 +90,9 @@ export const caseReducer = (pState, action) => {
|
|
|
90
90
|
case CaseReducerConstants.receivedCaseDetails: {
|
|
91
91
|
return Object.assign(Object.assign(Object.assign({}, pState), action.payload), { isFetchingCaseDetails: false, isFetchingCaseDetailsError: false });
|
|
92
92
|
}
|
|
93
|
+
case CaseReducerConstants.updateComments: {
|
|
94
|
+
return Object.assign(Object.assign({}, pState), { caseDetails: Object.assign(Object.assign({}, pState.caseDetails), { comments: action.payload.caseDetails.comments }) });
|
|
95
|
+
}
|
|
93
96
|
case CaseReducerConstants.receivedCaseDetailsError: {
|
|
94
97
|
return Object.assign(Object.assign({}, pState), { isFetchingCaseDetails: false, isFetchingCaseDetailsError: true, caseDetailsError: action.payload.caseDetailsError });
|
|
95
98
|
}
|
|
@@ -250,7 +253,6 @@ export const postCaseCreationProcessing = (isSecureSupport, dispatch, sessionRes
|
|
|
250
253
|
isSecureSupport === false && resolveSession(sessionRestoreDispatch, sessionItem, caseNumber);
|
|
251
254
|
caseDetails.caseDetails.cep === true && postCepDetails(dispatch, caseNumber, caseDetails.cepDetails);
|
|
252
255
|
caseDetails.caseDetails.screenSessionRequested === true && postRemoteSessionRequest(dispatch, caseNumber);
|
|
253
|
-
dtmTrackEvent('submit', caseNumber, `${caseDetails.caseDetails.product}|${caseDetails.caseDetails.version}`);
|
|
254
256
|
});
|
|
255
257
|
// To resolve or update session API
|
|
256
258
|
export const resolveSession = (sessionRestoreDispatch, sessionItem, caseNumber) => __awaiter(void 0, void 0, void 0, function* () {
|
package/lib/esm/scss/_main.scss
CHANGED
|
@@ -1002,6 +1002,18 @@ svg.pf-v5-u-ml-xs.icon-size {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
|
|
1005
|
+
.case-internal-status-selector-div {
|
|
1006
|
+
.pf-m-disabled {
|
|
1007
|
+
background-color: var(--pf-v5-global--disabled-color--300);
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
.case-internal-status-selector-text {
|
|
1012
|
+
.pf-v5-c-menu-toggle__text {
|
|
1013
|
+
width: 100%;
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1005
1017
|
#cep-checkbox {
|
|
1006
1018
|
display: flex;
|
|
1007
1019
|
align-items: center;
|
|
@@ -1012,6 +1024,15 @@ svg.pf-v5-u-ml-xs.icon-size {
|
|
|
1012
1024
|
}
|
|
1013
1025
|
}
|
|
1014
1026
|
|
|
1027
|
+
.sfdc-case-url-clipboard {
|
|
1028
|
+
button {
|
|
1029
|
+
margin: 0;
|
|
1030
|
+
align-self: stretch;
|
|
1031
|
+
}
|
|
1032
|
+
.pf-v5-c-clipboard-copy {
|
|
1033
|
+
flex: 1;
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1015
1036
|
.newFeatureModal {
|
|
1016
1037
|
#new-feature-modal-checkbox {
|
|
1017
1038
|
margin-right: var(--pf-v5-global--spacer--xs);
|
|
@@ -763,3 +763,41 @@ a.case-resource-recommendation-link {
|
|
|
763
763
|
padding: 0;
|
|
764
764
|
margin-bottom: 1rem;
|
|
765
765
|
}
|
|
766
|
+
.markdown-content h1,
|
|
767
|
+
.markdown-content h2,
|
|
768
|
+
.markdown-content h3,
|
|
769
|
+
.markdown-content h4,
|
|
770
|
+
.markdown-content h5,
|
|
771
|
+
.markdown-content h6 {
|
|
772
|
+
margin-top: 24px;
|
|
773
|
+
margin-bottom: 16px;
|
|
774
|
+
font-weight: 600;
|
|
775
|
+
line-height: 1.25;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.markdown-content p {
|
|
779
|
+
margin-bottom: 16px;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
.markdown-content ul,
|
|
783
|
+
.markdown-content ol {
|
|
784
|
+
margin-bottom: 16px;
|
|
785
|
+
padding-left: 2em;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
.markdown-content code {
|
|
789
|
+
padding: 0.2em 0.4em;
|
|
790
|
+
margin: 0;
|
|
791
|
+
font-size: 85%;
|
|
792
|
+
background-color: rgba(27, 31, 35, 0.05);
|
|
793
|
+
border-radius: 3px;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
.markdown-content pre {
|
|
797
|
+
padding: 16px;
|
|
798
|
+
overflow: auto;
|
|
799
|
+
font-size: 85%;
|
|
800
|
+
line-height: 1.45;
|
|
801
|
+
background-color: #f6f8fa;
|
|
802
|
+
border-radius: 3px;
|
|
803
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.164",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -60,11 +60,11 @@
|
|
|
60
60
|
"@progress/kendo-licensing": "1.3.5",
|
|
61
61
|
"@progress/kendo-react-pdf": "^5.16.0",
|
|
62
62
|
"@redux-devtools/extension": "^3.3.0",
|
|
63
|
-
"@rh-support/components": "2.1.
|
|
64
|
-
"@rh-support/react-context": "2.1.
|
|
63
|
+
"@rh-support/components": "2.1.80",
|
|
64
|
+
"@rh-support/react-context": "2.1.89",
|
|
65
65
|
"@rh-support/types": "2.0.4",
|
|
66
|
-
"@rh-support/user-permissions": "2.1.
|
|
67
|
-
"@rh-support/utils": "2.1.
|
|
66
|
+
"@rh-support/user-permissions": "2.1.50",
|
|
67
|
+
"@rh-support/utils": "2.1.39",
|
|
68
68
|
"@types/react-redux": "^7.1.33",
|
|
69
69
|
"@types/redux": "^3.6.0",
|
|
70
70
|
"dompurify": "^2.2.6",
|
|
@@ -131,5 +131,5 @@
|
|
|
131
131
|
"defaults and supports es6-module",
|
|
132
132
|
"maintained node versions"
|
|
133
133
|
],
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "c195673bed3013aac9cc45a1a7db4d9d28b218e7"
|
|
135
135
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductNVersion.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ProductNVersion.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAKvC,UAAU,MAAM;CAAG;AAEnB,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAAK,EAAE,MAAM,qBAmCpD"}
|