@rh-support/troubleshoot 2.2.29 → 2.2.31
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/CaseEditView/Case.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Case.js +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsModals.d.ts +3 -0
- package/lib/esm/components/CaseEditView/CaseDetailsModals.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsModals.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +8 -5
- package/lib/esm/components/CaseInformation/FileDiag.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/FileDiag.js +5 -2
- package/lib/esm/components/IdeaInformation/{IdeaInformtion.d.ts → IdeaInformation.d.ts} +1 -1
- package/lib/esm/components/IdeaInformation/IdeaInformation.d.ts.map +1 -0
- package/lib/esm/components/IdeaInformation/{IdeaInformtion.js → IdeaInformation.js} +10 -3
- package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/AllProductsSelector.js +5 -13
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts +1 -2
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +7 -14
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.d.ts +0 -3
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +27 -33
- package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.d.ts +1 -3
- package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.js +2 -2
- package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.d.ts +3 -0
- package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.d.ts.map +1 -1
- package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.js +19 -2
- package/lib/esm/components/RemoteRider/RemoteRiderBanner.d.ts +3 -0
- package/lib/esm/components/RemoteRider/RemoteRiderBanner.d.ts.map +1 -1
- package/lib/esm/components/RemoteRider/RemoteRiderBanner.js +1 -1
- package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
- package/lib/esm/components/SubmitCase/SubmitCase.js +9 -9
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +8 -1
- package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
- package/lib/esm/components/shared/useIsSectionValid.js +0 -1
- package/lib/esm/hooks/useWizard.js +1 -1
- package/lib/esm/reducers/CaseConstNTypes.d.ts +3 -1
- package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.js +2 -0
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.js +6 -2
- package/package.json +8 -8
- package/lib/esm/components/IdeaInformation/IdeaInformtion.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Case.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/Case.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAS,mBAAmB,EAAiD,MAAM,kBAAkB,CAAC;AAmB7G,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Case.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/Case.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAS,mBAAmB,EAAiD,MAAM,kBAAkB,CAAC;AAmB7G,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAK,EAAE,MAAM,eA+LzC"}
|
|
@@ -123,5 +123,5 @@ export default function Case(props) {
|
|
|
123
123
|
React.createElement(CaseDetailsTabs, { basePath: url, caseNumber: caseNumber, routeProps: props.routeProps, tabdRef: caseDetailsTabsRef }))))),
|
|
124
124
|
React.createElement(HostnameAwarenessModal, null))),
|
|
125
125
|
React.createElement(CaseDetailsAside, { caseNumber: caseNumber }),
|
|
126
|
-
React.createElement(CaseDetailsModals, { caseNumber: caseNumber, isSecureSupport: loggedInUsersAccount.data.secureSupport })))))));
|
|
126
|
+
React.createElement(CaseDetailsModals, { caseNumber: caseNumber, isSecureSupport: loggedInUsersAccount.data.secureSupport, loggedInUserRights: loggedInUserRights })))))));
|
|
127
127
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { IApiResponseDetails } from '@rh-support/types/shared';
|
|
2
|
+
import { UserAuth } from '@rh-support/user-permissions';
|
|
1
3
|
interface IProps {
|
|
2
4
|
caseNumber: string;
|
|
3
5
|
isSecureSupport: boolean;
|
|
6
|
+
loggedInUserRights: IApiResponseDetails<UserAuth>;
|
|
4
7
|
}
|
|
5
8
|
export default function CaseDetailsModals(props: IProps): any;
|
|
6
9
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseDetailsModals.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsModals.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CaseDetailsModals.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsModals.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAaxD,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;CACrD;AAKD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,EAAE,MAAM,OA8EtD"}
|
|
@@ -55,7 +55,7 @@ export default function CaseDetailsModals(props) {
|
|
|
55
55
|
React.createElement("a", { href: getTnCRemoteRiderUrl(props.caseNumber, props.isSecureSupport), target: "_blank", rel: "noopener noreferrer" }, "link"),
|
|
56
56
|
"to accept the terms in a new tab.")));
|
|
57
57
|
};
|
|
58
|
-
const remoterRiderModal = remoteSessionTermsAcked ? null : (React.createElement(RemoteRiderAcceptanceModal, { caseNumber: props.caseNumber, isModalOpen: !remoteSessionTermsAcked, onSuccess: onRemoteRiderSuccess, onFailure: onRemoteRiderFailure, onModalClose: onModalClose, isCaseDetailsPage: true }));
|
|
58
|
+
const remoterRiderModal = remoteSessionTermsAcked ? null : (React.createElement(RemoteRiderAcceptanceModal, { caseNumber: props.caseNumber, isModalOpen: !remoteSessionTermsAcked, onSuccess: onRemoteRiderSuccess, onFailure: onRemoteRiderFailure, onModalClose: onModalClose, isCaseDetailsPage: true, loggedInUserRights: props.loggedInUserRights }));
|
|
59
59
|
const modalNameComponentMap = {
|
|
60
60
|
[ModalNames.REMOTE_RIDER_TERMS]: remoterRiderModal,
|
|
61
61
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductVersion.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/ProductVersion.tsx"],"names":[],"mappings":"AA6BA,UAAU,MAAM;IACZ,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACvC;AAED,iBAAS,eAAe,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ProductVersion.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/ProductVersion.tsx"],"names":[],"mappings":"AA6BA,UAAU,MAAM;IACZ,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACvC;AAED,iBAAS,eAAe,CAAC,KAAK,EAAE,MAAM,eA4PrC;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -137,10 +137,13 @@ function ProductNVersion(props) {
|
|
|
137
137
|
// populate versions with SE product api versions
|
|
138
138
|
const productObj = getProductObj(allProducts.data.productsResult, selectedProductLocal);
|
|
139
139
|
if (productObj.versions) {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
140
|
+
const productVersions = productObj.hasComponentsInsteadOfVersions
|
|
141
|
+
? productObj.versions.sort()
|
|
142
|
+
: productObj.versions;
|
|
143
|
+
setVersions(productVersions);
|
|
144
|
+
if (productVersions.length === 1 && !selectedVersionLocal) {
|
|
145
|
+
setSelectedVersionLocal(productVersions[0]);
|
|
146
|
+
updateProductVerstion(selectedProductLocal, productVersions[0]);
|
|
144
147
|
}
|
|
145
148
|
}
|
|
146
149
|
else {
|
|
@@ -163,7 +166,7 @@ function ProductNVersion(props) {
|
|
|
163
166
|
const sfdcVersions = getUniqueSortedVersions(fetchedVersions);
|
|
164
167
|
const versionsForSelectedProduct = productObj.versions ? productObj.versions : sfdcVersions;
|
|
165
168
|
const productVersions = (productObj === null || productObj === void 0 ? void 0 : productObj.hasComponentsInsteadOfVersions)
|
|
166
|
-
? versionsForSelectedProduct.
|
|
169
|
+
? versionsForSelectedProduct.sort()
|
|
167
170
|
: versionsForSelectedProduct;
|
|
168
171
|
setVersions(productVersions);
|
|
169
172
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileDiag.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/FileDiag.tsx"],"names":[],"mappings":"AAYA,UAAU,MAAM;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"FileDiag.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/FileDiag.tsx"],"names":[],"mappings":"AAYA,UAAU,MAAM;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,eAqCrC"}
|
|
@@ -2,7 +2,7 @@ import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
|
2
2
|
import { ability, CaseListFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
3
3
|
import { PreviousCaseTypes } from '@rh-support/utils';
|
|
4
4
|
import isEqual from 'lodash/isEqual';
|
|
5
|
-
import React, { useContext } from 'react';
|
|
5
|
+
import React, { useContext, useEffect, useState } from 'react';
|
|
6
6
|
import { useCaseSelector } from '../../context/CaseContext';
|
|
7
7
|
import { RulesStateContext } from '../../context/RulesContext';
|
|
8
8
|
import { SessionRestoreStateContext } from '../../context/SessionRestoreContext';
|
|
@@ -16,7 +16,10 @@ export function FileDiag(props) {
|
|
|
16
16
|
const { caseType } = useCaseSelector((state) => ({
|
|
17
17
|
caseType: state.caseDetails.caseType,
|
|
18
18
|
}), isEqual);
|
|
19
|
-
const isIdea =
|
|
19
|
+
const [isIdea, setIsIdea] = useState(false);
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
setIsIdea(caseType === PreviousCaseTypes.FEATURE_ENHANCEMENT);
|
|
22
|
+
}, [caseType]);
|
|
20
23
|
if (!canAddAttachments)
|
|
21
24
|
return null;
|
|
22
25
|
return (React.createElement(WidgetFileUploader, { className: props.className, idToUploadTo: activeSessionId, isPrivate: false, needsAnalyzing: isIdea ? false : true, isSessionId: true, isSecureSupport: loggedInUsersAccount.data.secureSupport, autoUploadOnSelect: loggedInUsersAccount.data.secureSupport ? false : true, helperText: getValidAttachmentRules(rulesState.EARules.rules).length > 0 ? React.createElement(FileEARule, null) : null, isIdea: isIdea }));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export default function IdeaInformation(): JSX.Element;
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=IdeaInformation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdeaInformation.d.ts","sourceRoot":"","sources":["../../../../src/components/IdeaInformation/IdeaInformation.tsx"],"names":[],"mappings":"AAgCA,MAAM,CAAC,OAAO,UAAU,eAAe,gBA+ItC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Flex, FlexItem } from '@patternfly/react-core';
|
|
2
2
|
import { AlertMessage, AlertType, LoadingIndicator } from '@rh-support/components';
|
|
3
|
-
import { fetchCaseSeverities, fetchCaseTypes, fetchLanguageMetadata, GlobalMetadataDispatchContext, GlobalMetadataStateContext, } from '@rh-support/react-context';
|
|
4
|
-
import { canManageCase, haventLoadedMetadata } from '@rh-support/utils';
|
|
3
|
+
import { fetchCaseSeverities, fetchCaseTypes, fetchLanguageMetadata, GlobalMetadataDispatchContext, GlobalMetadataStateContext, useGlobalStateContext, } from '@rh-support/react-context';
|
|
4
|
+
import { canManageCase, haventLoadedMetadata, isSpecialSupportOfferingEnabled } from '@rh-support/utils';
|
|
5
5
|
import isEmpty from 'lodash/isEmpty';
|
|
6
6
|
import isEqual from 'lodash/isEqual';
|
|
7
7
|
import React, { useContext, useEffect } from 'react';
|
|
@@ -16,19 +16,23 @@ import Severity from '../CaseInformation/Severity';
|
|
|
16
16
|
import SupportLevel from '../CaseInformation/SupportLevel';
|
|
17
17
|
import CaseLanguageSelector from '../CaseManagement/CaseLanguageSelector';
|
|
18
18
|
import { Cep } from '../CaseManagement/Cep';
|
|
19
|
+
import ESSRemoteSessionCheckBox from '../CaseManagement/ESSRemoteSessionCheckBox';
|
|
19
20
|
import OpenReferenceNumber from '../CaseManagement/OpenReferenceNumber';
|
|
20
21
|
import { RHAssociatesSelector } from '../CaseManagement/RHAssociatesSelector';
|
|
21
22
|
import CaseContactSelector from '../CaseManagement/SendNotifications/CaseContactSelector';
|
|
22
23
|
import KtQuestions from '../ImproveCase/KtQuestions';
|
|
23
24
|
export default function IdeaInformation() {
|
|
25
|
+
var _a;
|
|
24
26
|
const { t } = useTranslation();
|
|
25
27
|
const { globalMetadataState: { allCaseTypes, allCaseSeverities, caseLanguages, loggedInUser, loggedInUserJwtToken, loggedInUsersAccount, }, } = useContext(GlobalMetadataStateContext);
|
|
26
28
|
const dispatchToGlobalMetadataReducer = useContext(GlobalMetadataDispatchContext);
|
|
27
|
-
const {
|
|
29
|
+
const { globalMetadataState: { allProducts }, } = useGlobalStateContext();
|
|
30
|
+
const { contactSSOName, selectedAccountDetails, ownersCaseGroups, hasInvalidEntitlements, product } = useCaseSelector((state) => ({
|
|
28
31
|
contactSSOName: state.caseDetails.contactSSOName,
|
|
29
32
|
ownersCaseGroups: state.ownersCaseGroups,
|
|
30
33
|
selectedAccountDetails: state.selectedAccountDetails,
|
|
31
34
|
hasInvalidEntitlements: state.hasInvalidEntitlements,
|
|
35
|
+
product: state.caseDetails.product,
|
|
32
36
|
}), isEqual);
|
|
33
37
|
const caseDispatch = useCaseDispatch();
|
|
34
38
|
const isMetadataLoading = () => {
|
|
@@ -71,6 +75,8 @@ export default function IdeaInformation() {
|
|
|
71
75
|
const onSeverityChange = (payload) => {
|
|
72
76
|
setCaseDetails(caseDispatch, payload);
|
|
73
77
|
};
|
|
78
|
+
// To check if the user is ESS Customer and Product has ESS Support
|
|
79
|
+
const isESSCustomer = isSpecialSupportOfferingEnabled((_a = allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult, product);
|
|
74
80
|
return (React.createElement(React.Fragment, null,
|
|
75
81
|
React.createElement(LoadingIndicator, { show: isMetadataLoading(), size: "lg" }),
|
|
76
82
|
React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "pf-u-mb-md", title: t("Sorry, we're having a problem gathering your information."), show: isMetadataLoadingError(), isInline: true }),
|
|
@@ -105,5 +111,6 @@ export default function IdeaInformation() {
|
|
|
105
111
|
React.createElement(CaseContactSelector, null),
|
|
106
112
|
React.createElement(RHAssociatesSelector, null),
|
|
107
113
|
React.createElement(OpenReferenceNumber, { inlineEditable: false, hideSaveCancel: true }),
|
|
114
|
+
isESSCustomer && React.createElement(ESSRemoteSessionCheckBox, null),
|
|
108
115
|
React.createElement(Cep, null))))));
|
|
109
116
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AllProductsSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/AllProductsSelector.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AllProductsSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/AllProductsSelector.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAsD,MAAM,OAAO,CAAC;AAE3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAKnD,OAAO,EAAqB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAMrF,UAAU,MAAM;IACZ,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAClC;AAQD;;;;;;;GAOG;AACH,QAAA,MAAM,mBAAmB,4EAqIvB,CAAC;AAGH,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -36,14 +36,6 @@ const AllProductsSelector = forwardRef((props, ref) => {
|
|
|
36
36
|
version: state.caseDetails.version,
|
|
37
37
|
contactSSOName: state.caseDetails.contactSSOName,
|
|
38
38
|
}), isEqual);
|
|
39
|
-
const [selectedProductForDropdown, setSelectedProductForDropdown] = useState({
|
|
40
|
-
featuredVersion: '',
|
|
41
|
-
product: product,
|
|
42
|
-
name: product,
|
|
43
|
-
versions: [],
|
|
44
|
-
isTopProduct: false,
|
|
45
|
-
isEntitledProduct: true,
|
|
46
|
-
});
|
|
47
39
|
const { topContentState: { topContent }, } = useContext(TCStateContext);
|
|
48
40
|
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
49
41
|
const [showModal, setShowModal] = useState(false);
|
|
@@ -66,18 +58,18 @@ const AllProductsSelector = forwardRef((props, ref) => {
|
|
|
66
58
|
setIsModalOpen((isModalOpen) => !isModalOpen);
|
|
67
59
|
};
|
|
68
60
|
function onProductChange(selectedProduct) {
|
|
69
|
-
|
|
61
|
+
setCaseDetails(caseDispatch, { product: selectedProduct, version: '' });
|
|
70
62
|
const newParams = {
|
|
71
|
-
product: selectedProduct
|
|
63
|
+
product: selectedProduct,
|
|
72
64
|
version: '',
|
|
73
65
|
};
|
|
74
66
|
RouteUtils.updateQueryParams(props.routeProps, newParams);
|
|
75
|
-
if (!isEmpty(selectedProduct
|
|
67
|
+
if (!isEmpty(selectedProduct)) {
|
|
76
68
|
props.showTCAfterButtonClicked ? setProductChanged(true) : setShowModal(true);
|
|
77
69
|
}
|
|
78
70
|
}
|
|
79
71
|
function onVersionChange(selectedVersion) {
|
|
80
|
-
setCaseDetails(caseDispatch, {
|
|
72
|
+
setCaseDetails(caseDispatch, { version: selectedVersion });
|
|
81
73
|
const newParams = {
|
|
82
74
|
version: selectedVersion,
|
|
83
75
|
};
|
|
@@ -89,7 +81,7 @@ const AllProductsSelector = forwardRef((props, ref) => {
|
|
|
89
81
|
React.createElement("div", { className: "case-details-summary" },
|
|
90
82
|
React.createElement(OpenCaseIssue, { inlineEditable: false, required: true })),
|
|
91
83
|
React.createElement("div", { className: "all-product-selector-dropdown" },
|
|
92
|
-
React.createElement(ProductVersionDropdownSelector, { isLoading: allProducts.isFetching, products: props.checkEntitledProduct ? entitledProducts : allProducts.data.productsResult,
|
|
84
|
+
React.createElement(ProductVersionDropdownSelector, { isLoading: allProducts.isFetching, products: props.checkEntitledProduct ? entitledProducts : allProducts.data.productsResult, onProductChange: onProductChange, onVersionChange: onVersionChange, ref: ref }))),
|
|
93
85
|
React.createElement(AlertMessage, { isInline: true, variant: AlertType.DANGER, className: "pf-u-mt-lg", title: t(`${loggedInUserRights.data.isSSOUsernameSameAsLoggedInUser(contactSSOName)
|
|
94
86
|
? 'You are'
|
|
95
87
|
: 'Selected owner is'} not allowed to create case on this product.`), show: !allProducts.isFetching && props.checkEntitledProduct && !isEntitledProduct && !isEmpty(product) }),
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ISEProduct } from '@cee-eng/hydrajs/@types/models/product';
|
|
2
2
|
interface IProps {
|
|
3
3
|
products: Partial<ISEProduct>[];
|
|
4
|
-
onProductChange: (product:
|
|
5
|
-
selectedProduct: Partial<ISEProduct>;
|
|
4
|
+
onProductChange: (product: string) => any;
|
|
6
5
|
isNextBtnClickedToShowValidationError: boolean;
|
|
7
6
|
isCaseCreate: boolean;
|
|
8
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewProductDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"NewProductDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAUpE,UAAU,MAAM;IACZ,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IAChC,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,CAAC;IAC1C,qCAAqC,EAAE,OAAO,CAAC;IAC/C,YAAY,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,0BAA0B,UAAW,MAAM,gBAkGvD,CAAC"}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { Divider, Select, SelectGroup, SelectOption, SelectVariant } from '@patternfly/react-core';
|
|
2
2
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
3
3
|
import isEmpty from 'lodash/isEmpty';
|
|
4
|
+
import isEqual from 'lodash/isEqual';
|
|
4
5
|
import React, { useContext, useEffect, useState } from 'react';
|
|
5
6
|
import { useTranslation } from 'react-i18next';
|
|
7
|
+
import { useCaseSelector } from '../../context/CaseContext';
|
|
6
8
|
export const NewProductDropdownSelector = (props) => {
|
|
7
9
|
const { t } = useTranslation();
|
|
8
10
|
const [isOpen, setIsOpen] = useState(false);
|
|
9
|
-
const [selected, setSelected] = useState(props.selectedProduct.name);
|
|
10
11
|
const [showValidationLocal, setShowValidationLocal] = useState(props.isNextBtnClickedToShowValidationError);
|
|
12
|
+
const { product } = useCaseSelector((state) => ({
|
|
13
|
+
product: state.caseDetails.product,
|
|
14
|
+
}), isEqual);
|
|
11
15
|
const { globalMetadataState: { allProducts }, } = useContext(GlobalMetadataStateContext);
|
|
12
16
|
useEffect(() => {
|
|
13
17
|
setShowValidationLocal(props.isNextBtnClickedToShowValidationError);
|
|
@@ -19,15 +23,6 @@ export const NewProductDropdownSelector = (props) => {
|
|
|
19
23
|
const onToggle = (isOpen) => {
|
|
20
24
|
setIsOpen(isOpen);
|
|
21
25
|
};
|
|
22
|
-
const findISEProductObj = (productName) => {
|
|
23
|
-
if (!props.products) {
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
const foundISEProduct = props.products.find((product) => product.name === productName);
|
|
27
|
-
if (foundISEProduct) {
|
|
28
|
-
return foundISEProduct;
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
26
|
const getOptions = () => {
|
|
32
27
|
const topProductOptions = allProducts.data.topProducts
|
|
33
28
|
.filter((p) => p.isEntitledProduct)
|
|
@@ -58,11 +53,9 @@ export const NewProductDropdownSelector = (props) => {
|
|
|
58
53
|
}
|
|
59
54
|
};
|
|
60
55
|
const onSelect = (event, selection) => {
|
|
61
|
-
|
|
62
|
-
let ISESelection = findISEProductObj(selection);
|
|
63
|
-
props.onProductChange(ISESelection);
|
|
56
|
+
props.onProductChange(selection);
|
|
64
57
|
setIsOpen(false);
|
|
65
58
|
};
|
|
66
59
|
return (React.createElement("div", null,
|
|
67
|
-
React.createElement(Select, { variant: SelectVariant.typeahead, typeAheadAriaLabel: t('Search for or select a product'), onToggle: onToggle, onSelect: onSelect, isOpen: isOpen, placeholderText: t('Search for or select a product'), "aria-labelledby": t('Product-selector'), onFilter: onFilter, selections:
|
|
60
|
+
React.createElement(Select, { variant: SelectVariant.typeahead, typeAheadAriaLabel: t('Search for or select a product'), onToggle: onToggle, onSelect: onSelect, isOpen: isOpen, placeholderText: t('Search for or select a product'), "aria-labelledby": t('Product-selector'), onFilter: onFilter, selections: product, validated: isEmpty(product) && showValidationLocal ? 'error' : 'default', "data-tracking-id": "get-support-product-dropdown-selector" }, getOptions())));
|
|
68
61
|
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { ISEProduct } from '@cee-eng/hydrajs/@types/models/product';
|
|
2
1
|
interface IProps {
|
|
3
|
-
selectedProduct: Partial<ISEProduct>;
|
|
4
2
|
onVersionChange: (option: string) => void;
|
|
5
|
-
versionState: string;
|
|
6
3
|
isNextBtnClickedToShowValidationError: boolean;
|
|
7
4
|
}
|
|
8
5
|
export declare const NewProductVersionSelector: (props: IProps) => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewProductVersionSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductVersionSelector.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NewProductVersionSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductVersionSelector.tsx"],"names":[],"mappings":"AAWA,UAAU,MAAM;IACZ,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,qCAAqC,EAAE,OAAO,CAAC;CAClD;AAED,eAAO,MAAM,yBAAyB,UAAW,MAAM,gBA8HtD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Select,
|
|
1
|
+
import { Select, SelectOption, SelectVariant } from '@patternfly/react-core';
|
|
2
2
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
3
3
|
import { getUniqueSortedVersions } from '@rh-support/utils';
|
|
4
4
|
import isEmpty from 'lodash/isEmpty';
|
|
@@ -11,12 +11,13 @@ import { getProductObj } from '../shared/utils';
|
|
|
11
11
|
export const NewProductVersionSelector = (props) => {
|
|
12
12
|
const { t } = useTranslation();
|
|
13
13
|
const [isOpen, setIsOpen] = useState(false);
|
|
14
|
-
const [
|
|
15
|
-
const [selectVersionOptions, setSelectVersionOptions] = React.useState([]);
|
|
14
|
+
const [selectVersionOptions, setSelectVersionOptions] = useState([]);
|
|
16
15
|
const [showValidationLocal, setShowValidationLocal] = useState(props.isNextBtnClickedToShowValidationError);
|
|
17
16
|
const [isSEProductApiIsDown, setIsSEProductApiIsDown] = useState(false);
|
|
18
17
|
const caseDispatch = useCaseDispatch();
|
|
19
|
-
const { versionsDetails } = useCaseSelector((state) => ({
|
|
18
|
+
const { versionsDetails, product, version } = useCaseSelector((state) => ({
|
|
19
|
+
product: state.caseDetails.product,
|
|
20
|
+
version: state.caseDetails.version,
|
|
20
21
|
versionsDetails: state.versionsDetails,
|
|
21
22
|
}), isEqual);
|
|
22
23
|
const { globalMetadataState: { allProducts }, } = useContext(GlobalMetadataStateContext);
|
|
@@ -26,45 +27,42 @@ export const NewProductVersionSelector = (props) => {
|
|
|
26
27
|
}, [props.isNextBtnClickedToShowValidationError]);
|
|
27
28
|
// when user selects a product, we need to fetch versions
|
|
28
29
|
useEffect(() => {
|
|
29
|
-
|
|
30
|
-
if (isEmpty((_a = props.selectedProduct) === null || _a === void 0 ? void 0 : _a.name))
|
|
30
|
+
if (isEmpty(product))
|
|
31
31
|
return;
|
|
32
|
-
|
|
32
|
+
const productObj = getProductObj(allProducts.data.productsResult, product);
|
|
33
|
+
if (productObj.versions) {
|
|
34
|
+
const productVersions = productObj.hasComponentsInsteadOfVersions
|
|
35
|
+
? productObj.versions.sort()
|
|
36
|
+
: productObj.versions;
|
|
33
37
|
// if versions array has one value set that value as selected
|
|
34
|
-
if (
|
|
35
|
-
props.onVersionChange(
|
|
36
|
-
setSelected(props.selectedProduct.versions[0]);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
setSelected('');
|
|
38
|
+
if (productVersions.length === 1) {
|
|
39
|
+
props.onVersionChange(productVersions[0]);
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
setSelectVersionOptions(versionArray);
|
|
41
|
+
setSelectVersionOptions(productObj.versions);
|
|
43
42
|
}
|
|
44
43
|
else {
|
|
45
|
-
setSelected('');
|
|
46
44
|
setIsSEProductApiIsDown(true);
|
|
47
45
|
}
|
|
48
|
-
const getVersions = () => getVersionsDetails(caseDispatch,
|
|
46
|
+
const getVersions = () => getVersionsDetails(caseDispatch, product);
|
|
49
47
|
// call sfdc version api version flags that is used in severity and submit components
|
|
50
48
|
getVersions();
|
|
51
49
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
52
|
-
}, [
|
|
53
|
-
// We have version that comes from url
|
|
50
|
+
}, [product]);
|
|
54
51
|
useEffect(() => {
|
|
55
|
-
if (!
|
|
52
|
+
if (!product)
|
|
56
53
|
return;
|
|
57
|
-
const productObj = getProductObj(allProducts.data.productsResult,
|
|
54
|
+
const productObj = getProductObj(allProducts.data.productsResult, product);
|
|
58
55
|
if (productObj.versions) {
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
const productVersions = productObj.hasComponentsInsteadOfVersions
|
|
57
|
+
? productObj.versions.sort()
|
|
58
|
+
: productObj.versions;
|
|
59
|
+
setSelectVersionOptions(productVersions);
|
|
62
60
|
}
|
|
63
61
|
else {
|
|
64
62
|
setIsSEProductApiIsDown(true);
|
|
65
63
|
}
|
|
66
64
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
67
|
-
}, [
|
|
65
|
+
}, [version]);
|
|
68
66
|
// observe when fetched versions are available
|
|
69
67
|
useEffect(() => {
|
|
70
68
|
if (!isSEProductApiIsDown)
|
|
@@ -73,24 +71,20 @@ export const NewProductVersionSelector = (props) => {
|
|
|
73
71
|
// if versions array has one value set that value as selected
|
|
74
72
|
if (fetchedVersions.length === 1) {
|
|
75
73
|
props.onVersionChange(fetchedVersions[0]);
|
|
76
|
-
setSelected(fetchedVersions[0]);
|
|
77
74
|
}
|
|
78
|
-
const productObj = getProductObj(allProducts.data.productsResult,
|
|
75
|
+
const productObj = getProductObj(allProducts.data.productsResult, product);
|
|
79
76
|
const sfdcVersions = getUniqueSortedVersions(fetchedVersions);
|
|
80
|
-
const productVersions = (productObj === null || productObj === void 0 ? void 0 : productObj.hasComponentsInsteadOfVersions) ? sfdcVersions.
|
|
81
|
-
|
|
82
|
-
setSelectVersionOptions(versionArray);
|
|
77
|
+
const productVersions = (productObj === null || productObj === void 0 ? void 0 : productObj.hasComponentsInsteadOfVersions) ? sfdcVersions.sort() : sfdcVersions;
|
|
78
|
+
setSelectVersionOptions(productVersions);
|
|
83
79
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
84
80
|
}, [versionsDetails.data, isSEProductApiIsDown]);
|
|
85
|
-
let options = [React.createElement(SelectGroup, { key: "productVersions" }), ...selectVersionOptions];
|
|
86
81
|
const onToggle = (isOpen) => {
|
|
87
82
|
setIsOpen(isOpen);
|
|
88
83
|
};
|
|
89
84
|
const onSelect = (event, selection) => {
|
|
90
85
|
props.onVersionChange(selection);
|
|
91
|
-
setSelected(selection);
|
|
92
86
|
setIsOpen(false);
|
|
93
87
|
};
|
|
94
88
|
const titleId = 'version-selector';
|
|
95
|
-
return (React.createElement(Select, Object.assign({ variant: SelectVariant.single, onToggle: onToggle, onSelect: onSelect, isOpen: isOpen, placeholderText: t('Select a version'), "aria-labelledby": titleId, selections:
|
|
89
|
+
return (React.createElement(Select, Object.assign({ variant: SelectVariant.single, onToggle: onToggle, onSelect: onSelect, isOpen: isOpen, placeholderText: t('Select a version'), "aria-labelledby": titleId, selections: version, validated: isEmpty(version) && showValidationLocal ? 'error' : 'default', isDisabled: isEmpty(product), "data-tracking-id": "get-support-version-dropdown-selector" }, (isSEProductApiIsDown && versionsDetails.isFetching && { loadingVariant: 'spinner' })), selectVersionOptions.map((version, index) => (React.createElement(SelectOption, { key: index, value: version })))));
|
|
96
90
|
};
|
|
@@ -3,13 +3,11 @@ import { IDClassNameProps } from '@rh-support/types/shared';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
interface IProps extends IDClassNameProps {
|
|
5
5
|
products: Partial<ISEProduct>[];
|
|
6
|
-
|
|
7
|
-
onProductChange: (product: Partial<ISEProduct>) => any;
|
|
6
|
+
onProductChange: (product: string) => any;
|
|
8
7
|
onVersionChange: (version: string) => any;
|
|
9
8
|
disabled?: boolean;
|
|
10
9
|
htmlForId?: string;
|
|
11
10
|
isLoading?: boolean;
|
|
12
|
-
version: string;
|
|
13
11
|
}
|
|
14
12
|
declare const ProductVersionDropdownSelector: React.ForwardRefExoticComponent<IProps & React.RefAttributes<unknown>>;
|
|
15
13
|
export { ProductVersionDropdownSelector };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductVersionDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/ProductVersionDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAiC,MAAM,OAAO,CAAC;AAOtD,UAAU,MAAO,SAAQ,gBAAgB;IACrC,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IAChC,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"ProductVersionDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/ProductVersionDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAiC,MAAM,OAAO,CAAC;AAOtD,UAAU,MAAO,SAAQ,gBAAgB;IACrC,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IAChC,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,CAAC;IAC1C,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,CAAC;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAOD,QAAA,MAAM,8BAA8B,wEAmClC,CAAC;AAEH,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
|
|
@@ -15,13 +15,13 @@ const ProductVersionDropdownSelector = forwardRef((props, ref) => {
|
|
|
15
15
|
React.createElement(Trans, null, "Product"),
|
|
16
16
|
' ',
|
|
17
17
|
React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
|
|
18
|
-
React.createElement(NewProductDropdownSelector, { products: props.products, onProductChange: props.onProductChange,
|
|
18
|
+
React.createElement(NewProductDropdownSelector, { products: props.products, onProductChange: props.onProductChange, isNextBtnClickedToShowValidationError: isNextBtnClickedToShowValidationError, isCaseCreate: isCaseCreate })),
|
|
19
19
|
React.createElement("div", { className: "version-selector-wrapper" },
|
|
20
20
|
React.createElement("label", { htmlFor: "version-selector-dropdown-toggle" },
|
|
21
21
|
React.createElement(Trans, null, "Version"),
|
|
22
22
|
' ',
|
|
23
23
|
React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
|
|
24
|
-
React.createElement(NewProductVersionSelector, {
|
|
24
|
+
React.createElement(NewProductVersionSelector, { onVersionChange: props.onVersionChange, isNextBtnClickedToShowValidationError: isNextBtnClickedToShowValidationError }))));
|
|
25
25
|
});
|
|
26
26
|
ProductVersionDropdownSelector.defaultProps = defaultProps;
|
|
27
27
|
export { ProductVersionDropdownSelector };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { IApiResponseDetails } from '@rh-support/types/shared';
|
|
2
|
+
import { UserAuth } from '@rh-support/user-permissions';
|
|
1
3
|
interface IProps {
|
|
2
4
|
isModalOpen: boolean;
|
|
3
5
|
onModalClose?: () => void;
|
|
@@ -5,6 +7,7 @@ interface IProps {
|
|
|
5
7
|
onFailure: () => void;
|
|
6
8
|
isCaseDetailsPage?: boolean;
|
|
7
9
|
caseNumber: string;
|
|
10
|
+
loggedInUserRights: IApiResponseDetails<UserAuth>;
|
|
8
11
|
}
|
|
9
12
|
export default function RemoteRiderAcceptanceModal(props: IProps): JSX.Element;
|
|
10
13
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RemoteRiderAcceptanceModal.d.ts","sourceRoot":"","sources":["../../../../src/components/RemoteRider/RemoteRiderAcceptanceModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RemoteRiderAcceptanceModal.d.ts","sourceRoot":"","sources":["../../../../src/components/RemoteRider/RemoteRiderAcceptanceModal.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAMxD,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;CACrD;AAED,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,KAAK,EAAE,MAAM,eAsD/D"}
|
|
@@ -8,21 +8,38 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { publicApi } from '@cee-eng/hydrajs';
|
|
11
|
-
import { AcceptTermsModal, useFetch } from '@rh-support/components';
|
|
11
|
+
import { AcceptTermsModal, ToastNotification, useFetch } from '@rh-support/components';
|
|
12
12
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
13
13
|
import React, { useContext } from 'react';
|
|
14
|
+
import { useTranslation } from 'react-i18next';
|
|
14
15
|
import { TnC } from '../../constants/tncConstants';
|
|
15
16
|
export default function RemoteRiderAcceptanceModal(props) {
|
|
16
17
|
const { globalMetadataState: { loggedInUser }, } = useContext(GlobalMetadataStateContext);
|
|
18
|
+
const { t } = useTranslation();
|
|
17
19
|
const { request, isFetching } = useFetch(publicApi.kase.acknowledgeRemoteSessionTerms, { propgateErrors: true });
|
|
20
|
+
const { request: postCommentRequest, isFetching: isPostingComment } = useFetch(publicApi.kase.postComment, {
|
|
21
|
+
propgateErrors: true,
|
|
22
|
+
});
|
|
18
23
|
const onConfirm = (pdfId) => __awaiter(this, void 0, void 0, function* () {
|
|
19
24
|
try {
|
|
20
25
|
yield request(props.caseNumber, pdfId);
|
|
26
|
+
try {
|
|
27
|
+
const requestComment = t('#### Remote Access Rider agreement has been accepted.\n\n This action does not initiate a remote session. Please make a case comment if you would like to submit a request.');
|
|
28
|
+
yield postCommentRequest({
|
|
29
|
+
caseNumber: props.caseNumber,
|
|
30
|
+
commentBody: requestComment,
|
|
31
|
+
contentType: 'markdown',
|
|
32
|
+
});
|
|
33
|
+
ToastNotification.addSuccessMessage(t('Remote Access Rider agreement has been accepted'), t('This action does not initiate a remote session. Please make a case comment if you would like to submit a request.'));
|
|
34
|
+
}
|
|
35
|
+
catch (e) {
|
|
36
|
+
ToastNotification.addWarningMessage(t('Could not submit a comment'), t('Rest assured, we have noted you have accepted the agreement'));
|
|
37
|
+
}
|
|
21
38
|
props.onSuccess && props.onSuccess();
|
|
22
39
|
}
|
|
23
40
|
catch (e) {
|
|
24
41
|
props.onFailure && props.onFailure();
|
|
25
42
|
}
|
|
26
43
|
});
|
|
27
|
-
return (React.createElement(AcceptTermsModal, { isSubmitting: isFetching, siteCode: TnC.REMOTE_RIDER_SITE_CODE, eventCode: TnC.REMOTER_RIDER_EVENT_CODE, loggedInUser: loggedInUser.data.ssoUsername, isModalOpen: props.isModalOpen, onModalClose: props.onModalClose, dataTrackingId: props.isCaseDetailsPage ? 'rar-case-details' : 'rar-case-submit', onConfirm: onConfirm }));
|
|
44
|
+
return (React.createElement(AcceptTermsModal, { isSubmitting: isFetching, siteCode: TnC.REMOTE_RIDER_SITE_CODE, eventCode: TnC.REMOTER_RIDER_EVENT_CODE, loggedInUser: loggedInUser.data.ssoUsername, isModalOpen: props.isModalOpen, onModalClose: props.onModalClose, dataTrackingId: props.isCaseDetailsPage ? 'rar-case-details' : 'rar-case-submit', onConfirm: onConfirm, isDisabled: isPostingComment }));
|
|
28
45
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { IApiResponseDetails } from '@rh-support/types/shared';
|
|
2
|
+
import { UserAuth } from '@rh-support/user-permissions';
|
|
1
3
|
interface IProps {
|
|
2
4
|
onConfirm: () => void;
|
|
3
5
|
onClose: () => void;
|
|
4
6
|
caseNumber: string;
|
|
5
7
|
isSecureSupport: boolean;
|
|
8
|
+
loggedInUserRights: IApiResponseDetails<UserAuth>;
|
|
6
9
|
}
|
|
7
10
|
export declare function RemoteRiderBanner(props: IProps): JSX.Element;
|
|
8
11
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RemoteRiderBanner.d.ts","sourceRoot":"","sources":["../../../../src/components/RemoteRider/RemoteRiderBanner.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RemoteRiderBanner.d.ts","sourceRoot":"","sources":["../../../../src/components/RemoteRider/RemoteRiderBanner.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAOxD,UAAU,MAAM;IACZ,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;CACrD;AAMD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,eAmF9C"}
|
|
@@ -43,5 +43,5 @@ export function RemoteRiderBanner(props) {
|
|
|
43
43
|
" ",
|
|
44
44
|
React.createElement(ExternalLinkAltIcon, null)))), actionClose: React.createElement(AlertActionCloseButton, { onClose: props.onClose }) },
|
|
45
45
|
React.createElement(Trans, null, areTermsAccepted ? TERMS_ACCEPTED_MSG : TERMS_ACCEPT_MSG)),
|
|
46
|
-
isRemoteRiderModalVisble && (React.createElement(RemoteRiderAcceptanceModal, { caseNumber: props.caseNumber, isModalOpen: true, onModalClose: onModalClose, onSuccess: onTermsAcceptSuccess, onFailure: onTermsAcceptFailure }))));
|
|
46
|
+
isRemoteRiderModalVisble && (React.createElement(RemoteRiderAcceptanceModal, { caseNumber: props.caseNumber, isModalOpen: true, onModalClose: onModalClose, onSuccess: onTermsAcceptSuccess, onFailure: onTermsAcceptFailure, loggedInUserRights: props.loggedInUserRights }))));
|
|
47
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AAkCA,MAAM,CAAC,OAAO,UAAU,UAAU,
|
|
1
|
+
{"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AAkCA,MAAM,CAAC,OAAO,UAAU,UAAU,gBAoTjC"}
|
|
@@ -26,10 +26,9 @@ import { AttachmentStateContext } from '../shared/fileUpload/reducer/AttachmentR
|
|
|
26
26
|
import Suggestions from '../Suggestions/Suggestions';
|
|
27
27
|
export default function SubmitCase() {
|
|
28
28
|
var _a;
|
|
29
|
-
const { entitlementSla, severity,
|
|
29
|
+
const { entitlementSla, severity, caseType, version, versionsDetails, addNotifiedUserError, isCreatingCase, caseCreationError, caseCreationErrorMessage, selectedAccountDetails, caseNoOfCreatedCase, product, screenSessionRequested, } = useCaseSelector((state) => ({
|
|
30
30
|
entitlementSla: state.caseDetails.entitlementSla,
|
|
31
31
|
severity: state.caseDetails.severity,
|
|
32
|
-
caseNumber: state.caseDetails.caseNumber,
|
|
33
32
|
caseType: state.caseDetails.caseType,
|
|
34
33
|
version: state.caseDetails.version,
|
|
35
34
|
versionsDetails: state.versionsDetails,
|
|
@@ -38,6 +37,7 @@ export default function SubmitCase() {
|
|
|
38
37
|
caseCreationError: state.caseCreationError,
|
|
39
38
|
caseCreationErrorMessage: state.caseCreationErrorMessage,
|
|
40
39
|
selectedAccountDetails: state.selectedAccountDetails,
|
|
40
|
+
caseNoOfCreatedCase: state.caseNoOfCreatedCase,
|
|
41
41
|
product: state.caseDetails.product,
|
|
42
42
|
screenSessionRequested: state.caseDetails.screenSessionRequested,
|
|
43
43
|
}), isEqual);
|
|
@@ -47,13 +47,13 @@ export default function SubmitCase() {
|
|
|
47
47
|
const { clusterRecommendationsState: { clusterRecommendations }, } = useContext(ClusterRecommendationsContext);
|
|
48
48
|
const { attachmentState } = useContext(AttachmentStateContext);
|
|
49
49
|
const [isRemoteRiderBannerVisible, setIsRemoteRiderBannerVisible] = useState(true);
|
|
50
|
-
const { globalMetadataState: { loggedInUser, loggedInUsersAccount, pcmConfig }, } = useContext(GlobalMetadataStateContext);
|
|
50
|
+
const { globalMetadataState: { loggedInUser, loggedInUsersAccount, pcmConfig, loggedInUserRights }, } = useContext(GlobalMetadataStateContext);
|
|
51
51
|
const getBusinessHours = useFetch(publicApi.businessHours.getBusinessHours);
|
|
52
52
|
const { t } = useTranslation();
|
|
53
53
|
const { globalMetadataState: { allProducts }, } = useGlobalStateContext();
|
|
54
54
|
const showRemoteRiderTermsInline = getConfigField(pcmConfig.data, 'showInlineRemoteRiderTerms', PCM_CONFIG_FIELD_TYPE.FEATURE_FLAG);
|
|
55
55
|
const getCaseURL = () => {
|
|
56
|
-
return `/support/cases/#/case/${
|
|
56
|
+
return `/support/cases/#/case/${caseNoOfCreatedCase}`;
|
|
57
57
|
};
|
|
58
58
|
const getResponseTimeMessage = (sla, severity) => {
|
|
59
59
|
const irt = getIrtForSLAAndSeverity(sla, severity);
|
|
@@ -95,7 +95,7 @@ export default function SubmitCase() {
|
|
|
95
95
|
!isESSCustomer &&
|
|
96
96
|
!screenSessionRequested &&
|
|
97
97
|
showRemoteRiderBanner &&
|
|
98
|
-
!loggedInUser.data.isInternal && (React.createElement(RemoteRiderBanner, { onConfirm: onRemoteRiderConfirm, onClose: onRemoteRiderClose, caseNumber:
|
|
98
|
+
!loggedInUser.data.isInternal && (React.createElement(RemoteRiderBanner, { onConfirm: onRemoteRiderConfirm, onClose: onRemoteRiderClose, caseNumber: caseNoOfCreatedCase, isSecureSupport: loggedInUsersAccount.data.secureSupport, loggedInUserRights: loggedInUserRights })),
|
|
99
99
|
React.createElement("div", { className: "submit-case-header-container" },
|
|
100
100
|
React.createElement("p", { className: "kicker kicker-sm pf-u-mb-sm" }, !isEmpty(RouteUtils.seBasePath) &&
|
|
101
101
|
!isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles) ? (React.createElement(React.Fragment, null,
|
|
@@ -107,7 +107,7 @@ export default function SubmitCase() {
|
|
|
107
107
|
React.createElement("div", { className: "pf-u-mt-sm" },
|
|
108
108
|
React.createElement(Trans, null, "Case number:"),
|
|
109
109
|
"\u00A0",
|
|
110
|
-
React.createElement(Link, { to: `/case/${
|
|
110
|
+
React.createElement(Link, { to: `/case/${caseNoOfCreatedCase}`, "data-tracking-id": "get-support-queued-case-number", className: viewDisabled ? 'case-link-disabled' : '' }, caseNoOfCreatedCase)))) : (React.createElement(React.Fragment, null,
|
|
111
111
|
React.createElement("div", { className: "submit-page-title" },
|
|
112
112
|
React.createElement(CheckCircleIcon, { className: "submit-case-check-icon", size: "lg" }),
|
|
113
113
|
' ',
|
|
@@ -115,7 +115,7 @@ export default function SubmitCase() {
|
|
|
115
115
|
React.createElement(Trans, null, "We\u2019ve added your case to our queue"))),
|
|
116
116
|
React.createElement(React.Fragment, null,
|
|
117
117
|
React.createElement(Trans, null, "Case number: "),
|
|
118
|
-
React.createElement("a", { href: getCaseURL(), target: "_blank", rel: "noopener noreferrer", "data-tracking-id": "get-support-case-number", className: viewDisabled ? 'case-link-disabled' : '' },
|
|
118
|
+
React.createElement("a", { href: getCaseURL(), target: "_blank", rel: "noopener noreferrer", "data-tracking-id": "get-support-case-number", className: viewDisabled ? 'case-link-disabled' : '' }, caseNoOfCreatedCase))))),
|
|
119
119
|
React.createElement("p", null,
|
|
120
120
|
!versionsDetails.isFetching &&
|
|
121
121
|
!versionsDetails.isFetching &&
|
|
@@ -136,8 +136,8 @@ export default function SubmitCase() {
|
|
|
136
136
|
React.createElement(Button, { component: "a", href: `${getRedhatDotComHost(Env.getEnvName())}/wapps/ugc/protected/${'personalInfo.html'}`, target: "_blank", variant: "secondary", "data-tracking-id": "get-support-update-info", className: "update-info-button" }, "Update info")),
|
|
137
137
|
React.createElement(ActionListItem, null, viewDisabled ? (React.createElement(React.Fragment, null,
|
|
138
138
|
React.createElement(Tooltip, { content: t('File upload in progress.'), position: "bottom" },
|
|
139
|
-
React.createElement(Button, { className: "pf-u-ml-md", component: "a", href: getCaseURL(), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case'), isAriaDisabled: viewDisabled }, "View case")))) : (React.createElement(Button, { className: "pf-u-ml-md", component: (props) => React.createElement(Link, Object.assign({}, props, { to: `/case/${
|
|
140
|
-
!isEmpty(attachmentState.caseFiles.selectedLocalFiles) && (React.createElement(FileUploader, { idToUploadTo:
|
|
139
|
+
React.createElement(Button, { className: "pf-u-ml-md", component: "a", href: getCaseURL(), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case'), isAriaDisabled: viewDisabled }, "View case")))) : (React.createElement(Button, { className: "pf-u-ml-md", component: (props) => (React.createElement(Link, Object.assign({}, props, { to: `/case/${caseNoOfCreatedCase}` }))), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case') }, "View case")))))),
|
|
140
|
+
!isEmpty(attachmentState.caseFiles.selectedLocalFiles) && (React.createElement(FileUploader, { idToUploadTo: caseNoOfCreatedCase, isSessionId: false, isSecureSupport: loggedInUsersAccount.data.secureSupport })),
|
|
141
141
|
React.createElement("div", null,
|
|
142
142
|
(!isEmpty(topContent.data) || !rulesState.EARules.rules || !clusterRecommendations) &&
|
|
143
143
|
!isIdea && (React.createElement(Text, { className: "pf-u-mt-2xl pf-u-font-weight-light", component: TextVariants.h2 },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetFileUploader.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/WidgetFileUploader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,KAA0C,MAAM,OAAO,CAAC;AA0B/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAInD,UAAU,MAAO,SAAQ,wBAAwB,EAAE,gBAAgB;IAC/D,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACtC,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB;AAYD,iBAAS,kBAAkB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"WidgetFileUploader.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/WidgetFileUploader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,KAA0C,MAAM,OAAO,CAAC;AA0B/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAInD,UAAU,MAAO,SAAQ,wBAAwB,EAAE,gBAAgB;IAC/D,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACtC,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB;AAYD,iBAAS,kBAAkB,CAAC,KAAK,EAAE,MAAM,eA2OxC;kBA3OQ,kBAAkB;;;AA+O3B,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -70,6 +70,14 @@ function WidgetFileUploader(props) {
|
|
|
70
70
|
payload: { isRuleModalVisible: true },
|
|
71
71
|
});
|
|
72
72
|
};
|
|
73
|
+
useEffect(() => {
|
|
74
|
+
//need to run the analysis to throw an error if the file is an error
|
|
75
|
+
attachmentState.caseFiles.selectedLocalFiles.forEach((file, index) => {
|
|
76
|
+
props.needsAnalyzing &&
|
|
77
|
+
doSosReportAnalysisForFile(dispatchToAttachmentReducer, props.idToUploadTo, file.attachmentId, file, true, index);
|
|
78
|
+
});
|
|
79
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
80
|
+
}, [props.isIdea]);
|
|
73
81
|
useEffect(() => {
|
|
74
82
|
attachmentState.caseFiles.selectedLocalFiles.forEach((file, index) => {
|
|
75
83
|
if (isRestoredFromSession(file.uploadProgress.uploadStatus) &&
|
|
@@ -84,7 +92,6 @@ function WidgetFileUploader(props) {
|
|
|
84
92
|
props.idToUploadTo,
|
|
85
93
|
dispatchToAttachmentReducer,
|
|
86
94
|
props.needsAnalyzing,
|
|
87
|
-
props.isIdea,
|
|
88
95
|
]);
|
|
89
96
|
const getFileAccessDetails = (file) => __awaiter(this, void 0, void 0, function* () {
|
|
90
97
|
const fileName = (file === null || file === void 0 ? void 0 : file.name) || '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsSectionValid.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/useIsSectionValid.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAInE,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,gBAAgB;;;;;
|
|
1
|
+
{"version":3,"file":"useIsSectionValid.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/useIsSectionValid.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAInE,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,gBAAgB;;;;;EA0L9D"}
|
|
@@ -17,7 +17,6 @@ export function useIsSectionValid(sectionName) {
|
|
|
17
17
|
caseState: state,
|
|
18
18
|
caseType: state.caseDetails.caseType,
|
|
19
19
|
product: state.caseDetails.product,
|
|
20
|
-
caseNumber: state.caseDetails.caseNumber,
|
|
21
20
|
version: state.caseDetails.version,
|
|
22
21
|
contactSSOName: state.caseDetails.contactSSOName,
|
|
23
22
|
accountNumber: state.caseDetails.accountNumberRef,
|
|
@@ -6,7 +6,7 @@ import React, { Suspense, useContext } from 'react';
|
|
|
6
6
|
import { Trans, useTranslation } from 'react-i18next';
|
|
7
7
|
import CaseInformation from '../components/CaseInformation/CaseInformation';
|
|
8
8
|
import CaseManagement from '../components/CaseManagement/CaseManagement';
|
|
9
|
-
import IdeaInformation from '../components/IdeaInformation/
|
|
9
|
+
import IdeaInformation from '../components/IdeaInformation/IdeaInformation';
|
|
10
10
|
import OpenCase from '../components/OpenCase/OpenCase';
|
|
11
11
|
import ProductSelector from '../components/ProductSelector/ProductSelector';
|
|
12
12
|
import Review from '../components/Review/Review';
|
|
@@ -154,7 +154,8 @@ export declare enum CaseReducerConstants {
|
|
|
154
154
|
getCustomEmail = "getCustomEmail",
|
|
155
155
|
updateEmailList = "updateEmailList",
|
|
156
156
|
getVersionDetails = "getVersionDetails",
|
|
157
|
-
caseCreation500ErrorStatus = "caseCreation500ErrorStatus"
|
|
157
|
+
caseCreation500ErrorStatus = "caseCreation500ErrorStatus",
|
|
158
|
+
resetCaseNoOfCreatedCase = "resetCaseNoOfCreatedCase"
|
|
158
159
|
}
|
|
159
160
|
export declare const initialCaseState: ICaseState;
|
|
160
161
|
export interface ICaseState {
|
|
@@ -200,6 +201,7 @@ export interface ICaseState {
|
|
|
200
201
|
openshiftDisplayName?: string;
|
|
201
202
|
isCaseOwnerUpdating: boolean;
|
|
202
203
|
isFileRecommendationsTriggered?: boolean;
|
|
204
|
+
caseNoOfCreatedCase?: string;
|
|
203
205
|
}
|
|
204
206
|
export interface ICreateCasePayloadType extends ICaseState {
|
|
205
207
|
}
|
|
@@ -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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AC"}
|
|
@@ -105,6 +105,7 @@ export var CaseReducerConstants;
|
|
|
105
105
|
CaseReducerConstants["updateEmailList"] = "updateEmailList";
|
|
106
106
|
CaseReducerConstants["getVersionDetails"] = "getVersionDetails";
|
|
107
107
|
CaseReducerConstants["caseCreation500ErrorStatus"] = "caseCreation500ErrorStatus";
|
|
108
|
+
CaseReducerConstants["resetCaseNoOfCreatedCase"] = "resetCaseNoOfCreatedCase";
|
|
108
109
|
})(CaseReducerConstants || (CaseReducerConstants = {}));
|
|
109
110
|
export const initialCaseState = {
|
|
110
111
|
isCreatingCase: false,
|
|
@@ -194,6 +195,7 @@ export const initialCaseState = {
|
|
|
194
195
|
openshiftDisplayName: '',
|
|
195
196
|
isCaseOwnerUpdating: false,
|
|
196
197
|
isFileRecommendationsTriggered: false,
|
|
198
|
+
caseNoOfCreatedCase: '',
|
|
197
199
|
};
|
|
198
200
|
export const ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967811';
|
|
199
201
|
export const NON_ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967831';
|
|
@@ -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,OAA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AE,MAAM,iBAiB1F;AAED,eAAO,MAAM,kBAAkB,aAAc,uBAAuB,QAAQ,OAAO,SAKlF,CAAC"}
|
|
@@ -56,7 +56,10 @@ export const caseReducer = (pState, action) => {
|
|
|
56
56
|
return Object.assign(Object.assign({}, pState), { caseDetails: Object.assign(Object.assign({}, pState.caseDetails), { caseNumber: undefined }), isCreatingCase: true, caseCreationError: false, caseCreationErrorMessage: '' });
|
|
57
57
|
}
|
|
58
58
|
case CaseReducerConstants.caseCreated: {
|
|
59
|
-
return Object.assign(Object.assign({}, pState), { caseDetails: Object.assign(
|
|
59
|
+
return Object.assign(Object.assign({}, pState), { caseDetails: Object.assign({}, pState.caseDetails), isCreatingCase: false, caseCreationError: false, caseCreationErrorMessage: '', caseCreation500ErrorStatus: false, caseNoOfCreatedCase: action.payload.caseNoOfCreatedCase });
|
|
60
|
+
}
|
|
61
|
+
case CaseReducerConstants.resetCaseNoOfCreatedCase: {
|
|
62
|
+
return Object.assign(Object.assign({}, pState), { caseNoOfCreatedCase: action.payload.caseNoOfCreatedCase });
|
|
60
63
|
}
|
|
61
64
|
case CaseReducerConstants.setCaseCreationError: {
|
|
62
65
|
return Object.assign(Object.assign({}, pState), { isCreatingCase: false, caseCreationError: true, caseCreationErrorMessage: action.payload.caseCreationErrorMessage });
|
|
@@ -155,6 +158,7 @@ export const submitCase = (dispatch, sessionRestoreDispatch, caseDetails, sessio
|
|
|
155
158
|
dispatch({ type: CaseReducerConstants.isCreatingCase });
|
|
156
159
|
try {
|
|
157
160
|
const casePayload = createCasePayload(caseDetails, sessionItem, isCaseCreate);
|
|
161
|
+
dispatch({ type: CaseReducerConstants.resetCaseNoOfCreatedCase, payload: { caseNoOfCreatedCase: '' } });
|
|
158
162
|
const caseNumber = yield publicApi.kase.createCase(casePayload, caseDetails.selectedAccountDetails.data.secureSupport);
|
|
159
163
|
if (casePayload.contactSSOName === loggedInUserSsoUsername &&
|
|
160
164
|
!isEmpty((_a = casePayload.phoneAreaCodePrefixLineNumber) === null || _a === void 0 ? void 0 : _a.trim()) &&
|
|
@@ -166,7 +170,7 @@ export const submitCase = (dispatch, sessionRestoreDispatch, caseDetails, sessio
|
|
|
166
170
|
}
|
|
167
171
|
// For updating the sessions and posting cep details after case creation
|
|
168
172
|
postCaseCreationProcessing(isSecureSupport, dispatch, sessionRestoreDispatch, sessionItem, caseNumber, caseDetails);
|
|
169
|
-
dispatch({ type: CaseReducerConstants.caseCreated, payload: {
|
|
173
|
+
dispatch({ type: CaseReducerConstants.caseCreated, payload: { caseNoOfCreatedCase: caseNumber } });
|
|
170
174
|
}
|
|
171
175
|
catch (error) {
|
|
172
176
|
const errorMessage = formattedApiErrorMessage(error, { '500': { message: errorMessage500 } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.31",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"lib/**/*"
|
|
27
27
|
],
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@cee-eng/hydrajs": "4.16.
|
|
29
|
+
"@cee-eng/hydrajs": "4.16.21",
|
|
30
30
|
"@cee-eng/ui-toolkit": "1.1.6",
|
|
31
31
|
"@patternfly/patternfly": "4.196.7",
|
|
32
32
|
"@patternfly/pfe-accordion": "1.12.3",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"react-virtualized": "^9.21.2"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@cee-eng/hydrajs": "4.16.
|
|
59
|
+
"@cee-eng/hydrajs": "4.16.21",
|
|
60
60
|
"@cee-eng/ui-toolkit": "1.1.6",
|
|
61
61
|
"@patternfly/patternfly": "4.196.7",
|
|
62
62
|
"@patternfly/pfe-accordion": "1.12.3",
|
|
@@ -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.18",
|
|
70
|
+
"@rh-support/react-context": "2.1.18",
|
|
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.12",
|
|
73
|
+
"@rh-support/utils": "2.1.9",
|
|
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": "ec73b04b857523eb9ced98302c2245c095db46e1"
|
|
137
137
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IdeaInformtion.d.ts","sourceRoot":"","sources":["../../../../src/components/IdeaInformation/IdeaInformtion.tsx"],"names":[],"mappings":"AA8BA,MAAM,CAAC,OAAO,UAAU,eAAe,gBAsItC"}
|