@rh-support/troubleshoot 2.4.5-beta.12 → 2.4.5-beta.15
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/OpenCase/OpenCase.js +2 -2
- package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/AllProductsSelector.js +4 -8
- package/lib/esm/components/ProductSelector/ProductSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/ProductSelector.js +8 -6
- package/lib/esm/components/Recommendations/Recommendations.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/Recommendations.js +7 -15
- package/lib/esm/components/Review/Review.js +2 -2
- package/lib/esm/components/Suggestions/Suggestions.d.ts.map +1 -1
- package/lib/esm/components/Suggestions/Suggestions.js +8 -3
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts.map +1 -1
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +13 -13
- package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
- package/lib/esm/components/shared/useIsSectionValid.js +13 -2
- package/lib/esm/components/wizardLayout/WizardAside.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardAside.js +3 -5
- package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardLayout.js +13 -14
- package/lib/esm/components/wizardLayout/WizardNavigation.js +3 -3
- package/lib/esm/hooks/useWizard.d.ts.map +1 -1
- package/lib/esm/hooks/useWizard.js +10 -36
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/RouteConstNTypes.d.ts +1 -0
- package/lib/esm/reducers/RouteConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/RouteConstNTypes.js +9 -0
- package/lib/esm/scss/_main.scss +1 -1
- package/package.json +7 -6
|
@@ -11,12 +11,12 @@ export default function OpenCase(props) {
|
|
|
11
11
|
const { ABTestVarioation } = useCaseSelector((state) => ({
|
|
12
12
|
ABTestVarioation: state.ABTestVarioation,
|
|
13
13
|
}), isEqual);
|
|
14
|
-
const
|
|
14
|
+
const isATestvariation = ABTestVarioation === 'A';
|
|
15
15
|
return (React.createElement("form", null,
|
|
16
16
|
canChangeAccountInfo && (React.createElement(React.Fragment, null,
|
|
17
17
|
React.createElement(AccountSelector, { "data-tracking-id": "get-support-account-selector" }),
|
|
18
18
|
React.createElement(OwnerSelector, { "data-tracking-id": "get-support-owner-selector" }))),
|
|
19
|
-
|
|
19
|
+
isATestvariation && (React.createElement("div", { className: "form-group" },
|
|
20
20
|
React.createElement(ProductSelector, { routeProps: props.routeProps, userSeenRecommendations: props.userSeenRecommendations, userClickedNextonRecommendations: props.userClickedNextonRecommendations, resultsRowRef: props.resultsRowRef, isOnGetSupportPage: true }))),
|
|
21
21
|
React.createElement(SupportTypeSelectorPage, null)));
|
|
22
22
|
}
|
|
@@ -1 +1 @@
|
|
|
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,kBAAkB,CAAC;
|
|
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,kBAAkB,CAAC;AAMvD,OAAO,EAAuC,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAMvG,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;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAClC;AAQD;;;;;;;GAOG;AACH,QAAA,MAAM,mBAAmB,4EAuKvB,CAAC;AAGH,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -10,12 +10,10 @@ import { Trans, useTranslation } from 'react-i18next';
|
|
|
10
10
|
import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
|
|
11
11
|
import { RouteContext } from '../../context/RouteContext';
|
|
12
12
|
import { TCStateContext } from '../../context/TopContentContext';
|
|
13
|
-
import { useFetchCVEData } from '../../hooks/useFetchCVEData';
|
|
14
13
|
import { setCaseDetails } from '../../reducers/CaseReducer';
|
|
15
14
|
import { AppRouteSections } from '../../reducers/RouteConstNTypes';
|
|
16
15
|
import RouteUtils from '../../utils/routeUtils';
|
|
17
16
|
import OpenCaseIssue from '../CaseInformation/OpenCaseIssue';
|
|
18
|
-
import { CveModal } from '../Cve/CveModal';
|
|
19
17
|
import Suggestions from '../Suggestions/Suggestions';
|
|
20
18
|
import { ProductVersionDropdownSelector } from './ProductVersionDropdownSelector';
|
|
21
19
|
const defaultProps = {
|
|
@@ -41,7 +39,6 @@ const AllProductsSelector = forwardRef((props, ref) => {
|
|
|
41
39
|
contactSSOName: state.caseDetails.contactSSOName,
|
|
42
40
|
ABTestVarioation: state.ABTestVarioation,
|
|
43
41
|
}), isEqual);
|
|
44
|
-
const { cveRecommendation } = useFetchCVEData();
|
|
45
42
|
const { topContentState: { topContent }, } = useContext(TCStateContext);
|
|
46
43
|
const { routeState: { activeSection }, } = useContext(RouteContext);
|
|
47
44
|
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
@@ -88,12 +85,12 @@ const AllProductsSelector = forwardRef((props, ref) => {
|
|
|
88
85
|
// Determine whether to render the ProductVersionDropdownSelector
|
|
89
86
|
const renderProductVersionDropdownSelector = (activeSection === AppRouteSections.SUMMARIZE && !props.caseCreateExperience) ||
|
|
90
87
|
activeSection === AppRouteSections.GET_SUPPORT ||
|
|
91
|
-
|
|
92
|
-
(
|
|
88
|
+
isBTestvariation ||
|
|
89
|
+
(isATestvariation && (props.isOnGetSupportPage || props.isOnReviewPage));
|
|
93
90
|
// Determine whether to render the OpenCaseIssue component
|
|
94
|
-
const renderOpenCaseIssue = (
|
|
91
|
+
const renderOpenCaseIssue = (isBTestvariation &&
|
|
95
92
|
(activeSection === AppRouteSections.SUMMARIZE || activeSection === AppRouteSections.REVIEW)) ||
|
|
96
|
-
(
|
|
93
|
+
(isATestvariation &&
|
|
97
94
|
(activeSection === AppRouteSections.SUMMARIZE || activeSection === AppRouteSections.REVIEW)) ||
|
|
98
95
|
(!props.caseCreateExperience && activeSection === AppRouteSections.SUMMARIZE);
|
|
99
96
|
return (React.createElement(React.Fragment, null,
|
|
@@ -102,7 +99,6 @@ const AllProductsSelector = forwardRef((props, ref) => {
|
|
|
102
99
|
React.createElement(ProductVersionDropdownSelector, { isLoading: allProducts.isFetching, products: props.checkEntitledProduct ? entitledProducts : allProducts.data.productsResult, onProductChange: onProductChange, onVersionChange: onVersionChange, ref: ref, isOnSummaryPage: props.isOnSummaryPage, loadTCOnChange: props.loadTCOnChange, isFetching: topContent.isFetching })))),
|
|
103
100
|
renderOpenCaseIssue && (React.createElement("div", { className: "case-details-summary" },
|
|
104
101
|
React.createElement(OpenCaseIssue, { inlineEditable: false, required: true, isOnSummaryPage: props.isOnSummaryPage }))),
|
|
105
|
-
(cveRecommendation === null || cveRecommendation === void 0 ? void 0 : cveRecommendation.length) !== 0 && React.createElement(CveModal, null),
|
|
106
102
|
React.createElement(AlertMessage, { isInline: true, variant: AlertType.DANGER, className: "pf-v5-u-mt-lg", title: t(`${loggedInUserRights.data.isSSOUsernameSameAsLoggedInUser(contactSSOName)
|
|
107
103
|
? 'You are'
|
|
108
104
|
: 'Selected owner is'} not allowed to create case on this product.`), show: !allProducts.isFetching && props.checkEntitledProduct && !isEntitledProduct && !isEmpty(product) }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/ProductSelector.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProductSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/ProductSelector.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAElD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAKvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAOlE,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACzE,gCAAgC,CAAC,EAAE,OAAO,CAAC;IAC3C,aAAa,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC9D,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAAK,EAAE,MAAM,qBAgGpD"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Alert, AlertVariant } from '@patternfly/react-core';
|
|
2
2
|
import { AlertMessage, AlertType, ErrorBoundary } from '@rh-support/components';
|
|
3
3
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
4
|
+
import { getConfigField, PCM_CONFIG_FIELD_TYPE } from '@rh-support/utils';
|
|
4
5
|
import isEmpty from 'lodash/isEmpty';
|
|
5
6
|
import isEqual from 'lodash/isEqual';
|
|
6
7
|
import React, { useContext, useRef } from 'react';
|
|
@@ -24,13 +25,14 @@ import { ProductSelectorLoader } from './ProductSelectorLoader';
|
|
|
24
25
|
export default function ProductSelector(props) {
|
|
25
26
|
const { cveRecommendation } = useFetchCVEData();
|
|
26
27
|
const { t } = useTranslation();
|
|
27
|
-
const { globalMetadataState: { allProducts }, } = useContext(GlobalMetadataStateContext);
|
|
28
|
+
const { globalMetadataState: { allProducts, pcmConfig }, } = useContext(GlobalMetadataStateContext);
|
|
28
29
|
const { product, version, ABTestVarioation } = useCaseSelector((state) => ({
|
|
29
30
|
product: state.caseDetails.product,
|
|
30
31
|
version: state.caseDetails.version,
|
|
31
32
|
ABTestVarioation: state.ABTestVarioation,
|
|
32
33
|
}), isEqual);
|
|
33
34
|
const { routeState: { isCaseCreate }, } = useContext(RouteContext);
|
|
35
|
+
const isCVEModalEnabled = getConfigField(pcmConfig.data, 'isCVEModalEnabled', PCM_CONFIG_FIELD_TYPE.STRING);
|
|
34
36
|
const isATestvariation = ABTestVarioation === 'A';
|
|
35
37
|
const isBTestvariation = ABTestVarioation === 'B';
|
|
36
38
|
/**
|
|
@@ -40,14 +42,14 @@ export default function ProductSelector(props) {
|
|
|
40
42
|
*/
|
|
41
43
|
const productSelectorRef = useRef(null);
|
|
42
44
|
const rederProductSelect = (React.createElement("form", null,
|
|
43
|
-
(cveRecommendation === null || cveRecommendation === void 0 ? void 0 : cveRecommendation.length) !== 0 && React.createElement(CveModal, null),
|
|
45
|
+
(cveRecommendation === null || cveRecommendation === void 0 ? void 0 : cveRecommendation.length) !== 0 && isCVEModalEnabled === '1' && React.createElement(CveModal, null),
|
|
44
46
|
React.createElement(AllProductsSelector, { routeProps: props.routeProps, checkEntitledProduct: isCaseCreate ? true : false, ref: productSelectorRef, isOnSummaryPage: true, isOnGetSupportPage: props === null || props === void 0 ? void 0 : props.isOnGetSupportPage, caseCreateExperience: props.caseCreateExperience })));
|
|
45
47
|
return (React.createElement(React.Fragment, null,
|
|
46
|
-
|
|
48
|
+
isBTestvariation && allProducts.isFetching && React.createElement(ProductSelectorLoader, null),
|
|
47
49
|
React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "pf-v5-u-mt-lg", title: t('There was an error loading products.'), show: allProducts.isError }),
|
|
48
|
-
|
|
50
|
+
isBTestvariation
|
|
49
51
|
? !allProducts.isFetching && !allProducts.isError && rederProductSelect
|
|
50
|
-
:
|
|
52
|
+
: isATestvariation && rederProductSelect,
|
|
51
53
|
product === 'Subscription Watch' && (React.createElement(Alert, { isInline: true, variant: AlertVariant.warning, title: React.createElement(Trans, null,
|
|
52
54
|
' ',
|
|
53
55
|
"If you're having a subscription issue that doesn't relate to",
|
|
@@ -58,7 +60,7 @@ export default function ProductSelector(props) {
|
|
|
58
60
|
React.createElement("a", { href: "/support/contact", "data-tracking-id": "contact-customer-service" }, "customer service"),
|
|
59
61
|
' ',
|
|
60
62
|
"for help.") })),
|
|
61
|
-
|
|
63
|
+
isBTestvariation && React.createElement(EARuleWidget, null),
|
|
62
64
|
!(props === null || props === void 0 ? void 0 : props.isOnGetSupportPage) && (React.createElement("div", { className: "suggestions-result-section" },
|
|
63
65
|
React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading recommendations') } }, !isEmpty(version) && (React.createElement("div", { className: "common-suggestions" },
|
|
64
66
|
React.createElement(Recommendations, { routeProps: props.routeProps, userSeenRecommendations: props.userSeenRecommendations, userClickedNextonRecommendationsValue: props.userClickedNextonRecommendations, resultsRowRef: props.resultsRowRef }))))))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Recommendations.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/Recommendations.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Recommendations.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/Recommendations.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAa,MAAM,kBAAkB,CAAC;AAclE,OAAO,EAAoB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAYpF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACzE,qCAAqC,CAAC,EAAE,OAAO,CAAC;IAChD,aAAa,EAAE,GAAG,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAAK,EAAE,MAAM,qBA2VpD"}
|
|
@@ -3,7 +3,6 @@ import { Label, Pagination, PaginationVariant, Popover, Spinner } from '@pattern
|
|
|
3
3
|
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
4
4
|
import StarIcon from '@patternfly/react-icons/dist/js/icons/star-icon';
|
|
5
5
|
import { LoadingDots, useDebounce, usePrevious } from '@rh-support/components';
|
|
6
|
-
import { useGlobalStateContext } from '@rh-support/react-context';
|
|
7
6
|
import { computeRecommendationAbstract, computeRecommendationTitle, dtmTrackEventCaseStartStopped, formatDate, } from '@rh-support/utils';
|
|
8
7
|
import differenceBy from 'lodash/differenceBy';
|
|
9
8
|
import isEmpty from 'lodash/isEmpty';
|
|
@@ -18,7 +17,7 @@ import { RouteContext } from '../../context/RouteContext';
|
|
|
18
17
|
import { SessionRestoreDispatchContext, SessionRestoreStateContext } from '../../context/SessionRestoreContext';
|
|
19
18
|
import { getRecommendationObject } from '../../reducers/CaseHelpers';
|
|
20
19
|
import { setCaseRecommendations } from '../../reducers/CaseReducer';
|
|
21
|
-
import {
|
|
20
|
+
import { fetchWatsonXRecommendations, RecommendationsConstants, setCurrentPage, setVisibleDocs, } from '../../reducers/RecommendationsReducer';
|
|
22
21
|
import { AppRouteSections } from '../../reducers/RouteConstNTypes';
|
|
23
22
|
import { createOrUpdateSessionResources, getSessResFromRec, getSessResFromRecs, } from '../../reducers/SessionRestoreReducer';
|
|
24
23
|
import RouteUtils from '../../utils/routeUtils';
|
|
@@ -37,10 +36,7 @@ export default function Recommendations(props) {
|
|
|
37
36
|
ABTestVarioation: state.ABTestVarioation,
|
|
38
37
|
}), isEqual);
|
|
39
38
|
const caseDispatch = useCaseDispatch();
|
|
40
|
-
// Use Case Number
|
|
41
39
|
const { caseNumber } = useParams();
|
|
42
|
-
const { globalMetadataState: { loggedInUsersAccount }, } = useGlobalStateContext();
|
|
43
|
-
const isSecureSupportAccount = loggedInUsersAccount.data.secureSupport;
|
|
44
40
|
const { routeState: { activeSection }, } = useContext(RouteContext);
|
|
45
41
|
const { sessionRestore: { activeSessionId, sessionResourceTracking }, } = useContext(SessionRestoreStateContext);
|
|
46
42
|
const sessionRestoreDispatch = useContext(SessionRestoreDispatchContext);
|
|
@@ -95,9 +91,7 @@ export default function Recommendations(props) {
|
|
|
95
91
|
let controller = new AbortController();
|
|
96
92
|
abortControllerRef.current = controller;
|
|
97
93
|
if (!isEmpty(issue) || !isEmpty(summary)) {
|
|
98
|
-
|
|
99
|
-
? fetchWatsonXRecommendations(recommendationDispatch, payload, MAXROW, recPageSize, 0, true, queryFilters, controller.signal)
|
|
100
|
-
: fetchRecommendations(recommendationDispatch, payload, MAXROW, recPageSize, 0, true, caseNumber, isSecureSupportAccount, queryFilters, controller.signal);
|
|
94
|
+
fetchWatsonXRecommendations(recommendationDispatch, payload, MAXROW, recPageSize, 0, true, queryFilters, controller.signal);
|
|
101
95
|
recommendationDispatch({
|
|
102
96
|
type: RecommendationsConstants.userViewedDocs,
|
|
103
97
|
payload: { userViewedDocs: true },
|
|
@@ -177,9 +171,9 @@ export default function Recommendations(props) {
|
|
|
177
171
|
"% Match")));
|
|
178
172
|
};
|
|
179
173
|
return (React.createElement(React.Fragment, null,
|
|
180
|
-
|
|
174
|
+
isBTestvariation && (React.createElement(LoadingDots, { className: "recommendation-loading-dots", show: recommendationState.isLoadingRecommendations && !isEmpty(summary) })),
|
|
181
175
|
React.createElement("div", { className: "recommendation-list pf-v5-u-pt-md", ref: props.resultsRowRef },
|
|
182
|
-
|
|
176
|
+
isATestvariation
|
|
183
177
|
? (recommendationState.visibleDocs.length !== 0 ||
|
|
184
178
|
recommendationState.isLoadingRecommendations) && (React.createElement("div", { className: `${recommendationState.isLoadingRecommendations ? 'gradient' : ''} label-container-icon` },
|
|
185
179
|
React.createElement(Label, { id: "DeepPurpleColorAILabel", className: "pf-v5-u-mb-md" },
|
|
@@ -198,14 +192,13 @@ export default function Recommendations(props) {
|
|
|
198
192
|
: recommendationState.visibleDocs.length !== 0 && (React.createElement(Label, { color: "purple", className: "pf-v5-u-mb-md" },
|
|
199
193
|
React.createElement(WatsonxAiIcon, { fillColor: "#6753ac", className: "pf-v5-u-mr-xs" }),
|
|
200
194
|
React.createElement(Trans, null, "Live search results powered by OpenShift AI"))),
|
|
201
|
-
|
|
202
|
-
React.createElement(RecommendationsLoader, null)) : (React.createElement("ul", { className: "list-flat" }, map(recommendationState.visibleDocs, (doc, i) => {
|
|
195
|
+
isATestvariation && recommendationState.isLoadingRecommendations ? (React.createElement(RecommendationsLoader, null)) : (React.createElement("ul", { className: "list-flat" }, map(recommendationState.visibleDocs, (doc, i) => {
|
|
203
196
|
var _a, _b;
|
|
204
197
|
return (React.createElement("li", { className: "result", key: doc.id },
|
|
205
198
|
React.createElement("header", { className: "result-header" },
|
|
206
199
|
React.createElement("a", { href: `${doc.view_uri}?${RouteUtils.getSEResourceQueryParams(activeSessionId, (_b = (_a = sessionResourceTracking[SessionResourceSource.RECOMMENDATIONS]) === null || _a === void 0 ? void 0 : _a.resourceOriginId) !== null && _b !== void 0 ? _b : '', SessionResourceSource.RECOMMENDATIONS)}`, className: "se-recommended ts-result", "data-tracking-id": `se-recommended-main-recommendations-${i}`, rel: "noopener noreferrer", target: "_blank", onClick: onResourceClick(doc, i), dangerouslySetInnerHTML: computeRecommendationTitle(doc) }),
|
|
207
200
|
React.createElement("div", { className: "header-meta" },
|
|
208
|
-
|
|
201
|
+
isATestvariation && doc.rerank_score && computeLabel(doc.rerank_score),
|
|
209
202
|
doc.kcsState === 'verified' && (React.createElement(React.Fragment, null,
|
|
210
203
|
React.createElement("span", { className: "status-verified pf-v5-u-font-weight-bold pf-v5-u-success-color-100" }, "verified"),
|
|
211
204
|
React.createElement("span", { className: "list-separator" }, "\u2013"))),
|
|
@@ -216,11 +209,10 @@ export default function Recommendations(props) {
|
|
|
216
209
|
}))),
|
|
217
210
|
recommendationState.numFound !== 0 && recommendationState.numFound > DEFAULTPAGESIZE && (React.createElement("div", { className: "pagination-footer" },
|
|
218
211
|
React.createElement(Pagination, { className: "push-top", itemCount: (_c = (_b = recommendationState.allDocs) === null || _b === void 0 ? void 0 : _b.length) !== null && _c !== void 0 ? _c : 0, perPage: recPageSize, page: recommendationState.currentPage, variant: PaginationVariant.bottom, onSetPage: pageChanged, dropDirection: "up", onPerPageSelect: onPageSizeChanged })))),
|
|
219
|
-
recommendationState.
|
|
212
|
+
recommendationState.numFound === 0 &&
|
|
220
213
|
!recommendationState.isLoadingRecommendations &&
|
|
221
214
|
!recommendationState.isLoadingRecommendationsError &&
|
|
222
215
|
!isEmpty(issue) &&
|
|
223
|
-
!isEmpty(summary) &&
|
|
224
216
|
isEmpty(prevMainRecommendations) && (React.createElement("p", null,
|
|
225
217
|
React.createElement(Trans, null, "We couldn't find any matches. Revise your search for better results.")))));
|
|
226
218
|
}
|
|
@@ -42,11 +42,11 @@ export default function Review(props) {
|
|
|
42
42
|
const onSeverityChange = (payload) => {
|
|
43
43
|
setCaseDetails(caseDispatch, payload);
|
|
44
44
|
};
|
|
45
|
-
const
|
|
45
|
+
const isBTestvariation = ABTestVarioation === 'B';
|
|
46
46
|
// To check if the user is ESS Customer and Product has ESS Support
|
|
47
47
|
const isESSCustomer = isSpecialSupportOfferingEnabled((_a = allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult, selectedProduct);
|
|
48
48
|
return (React.createElement(React.Fragment, null,
|
|
49
|
-
|
|
49
|
+
isBTestvariation && React.createElement(EARuleWidget, null),
|
|
50
50
|
React.createElement("form", { className: "review-form card card-light push-bottom" },
|
|
51
51
|
React.createElement(AccountSelector, null),
|
|
52
52
|
React.createElement(OwnerSelector, null),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Suggestions.d.ts","sourceRoot":"","sources":["../../../../src/components/Suggestions/Suggestions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Suggestions.d.ts","sourceRoot":"","sources":["../../../../src/components/Suggestions/Suggestions.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAU5D,UAAU,MAAM;IACZ,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,MAAM,qBAqHhD"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { pcm } from '@cee-eng/hydrajs';
|
|
2
|
+
import { Tooltip } from '@patternfly/react-core';
|
|
3
|
+
import InfoCircleIcon from '@patternfly/react-icons/dist/esm/icons/info-circle-icon';
|
|
2
4
|
import { TopContentSearch } from '@rh-support/components';
|
|
3
5
|
import { FeatureFlagKey, useIsFeatureAvailable } from '@rh-support/react-context';
|
|
4
6
|
import isEqual from 'lodash/isEqual';
|
|
@@ -44,10 +46,13 @@ export default function Suggestions(props) {
|
|
|
44
46
|
};
|
|
45
47
|
return (React.createElement("div", { className: "top-content-suggestion-accordion" },
|
|
46
48
|
showTitleDescription && (React.createElement("div", { className: "card card-support" },
|
|
47
|
-
!isTCSearchEnabled && (React.createElement(
|
|
48
|
-
|
|
49
|
+
!isTCSearchEnabled && (React.createElement("h3", { className: "card-heading popular-solutions green-card-heading" },
|
|
50
|
+
props.title
|
|
49
51
|
? props.title
|
|
50
|
-
: t('i18nKeyPopularSolutions', 'Red Hat
|
|
52
|
+
: t('i18nKeyPopularSolutions', 'Red Hat hand picked support articles'),
|
|
53
|
+
React.createElement(Tooltip, { content: React.createElement("div", null,
|
|
54
|
+
React.createElement(Trans, null, "Support articles are matched to the product and version details you selected, not the problem details you entered.")) },
|
|
55
|
+
React.createElement(InfoCircleIcon, { className: "pf-v5-u-ml-sm", "aria-label": t('More info about how support articles are matched') })))),
|
|
51
56
|
isTCSearchEnabled && (React.createElement("div", { className: "card-body" },
|
|
52
57
|
React.createElement(TopContentSearch, { topContentData: topContent.data, topContentResultsWrapperRef: accordionRef, onSearch: onSearchChange, dataTrackingId: "top-content-filter-troubleshoot", enableEventTracking: true }))))),
|
|
53
58
|
React.createElement("pfe-accordion", { ref: accordionRef }, map(filteredTC.slice(0, maxTC), (sug, index) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TroubleshootSection.d.ts","sourceRoot":"","sources":["../../../../src/components/TroubleshootSection/TroubleshootSection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TroubleshootSection.d.ts","sourceRoot":"","sources":["../../../../src/components/TroubleshootSection/TroubleshootSection.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAU1C,UAAU,MAAM;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AASD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,qBAyFzC;kBAzFQ,mBAAmB;;;AA4F5B,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Card, CardBody, CardHeader, CardTitle } from '@patternfly/react-core';
|
|
2
|
-
import
|
|
1
|
+
import { Card, CardBody, CardHeader, CardTitle, Tooltip } from '@patternfly/react-core';
|
|
2
|
+
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
3
|
+
import { ErrorBoundary, LoadingDots } from '@rh-support/components';
|
|
3
4
|
import { PreviousCaseTypes } from '@rh-support/utils';
|
|
4
5
|
import isEmpty from 'lodash/isEmpty';
|
|
5
6
|
import isEqual from 'lodash/isEqual';
|
|
@@ -22,7 +23,7 @@ function TroubleshootSection(props) {
|
|
|
22
23
|
var _a;
|
|
23
24
|
const { t } = useTranslation();
|
|
24
25
|
const { topContentState: { topContent }, } = useContext(TCStateContext);
|
|
25
|
-
const { product, version,
|
|
26
|
+
const { product, version, isCreatingCase, caseType } = useCaseSelector((state) => ({
|
|
26
27
|
product: state.caseDetails.product,
|
|
27
28
|
version: state.caseDetails.version,
|
|
28
29
|
summary: state.caseDetails.summary,
|
|
@@ -39,20 +40,19 @@ function TroubleshootSection(props) {
|
|
|
39
40
|
React.createElement("p", { className: "pf-v5-u-pt-md" },
|
|
40
41
|
React.createElement("span", { className: "pf-v5-u-font-family-heading pf-v5-u-pr-xs" }, t('Product')),
|
|
41
42
|
" ",
|
|
42
|
-
product,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
React.createElement("p", null, summary),
|
|
47
|
-
React.createElement("div", { className: "pf-v5-u-font-family-heading" }, t('Problem description')),
|
|
48
|
-
React.createElement("p", { className: "pf-v5-u-mb-xl" },
|
|
49
|
-
React.createElement(MoreOrLess, { maxHeight: 93 }, issue))),
|
|
43
|
+
product),
|
|
44
|
+
React.createElement("p", null,
|
|
45
|
+
React.createElement("span", { className: "pf-v5-u-font-family-heading pf-v5-u-pr-xs" }, t('Version')),
|
|
46
|
+
version)),
|
|
50
47
|
!isCreatingCase && (React.createElement(OpenShiftClusterId, { className: "push-bottom", "data-tracking-id": "troubleshoot-section-openshift-cluster-id" })),
|
|
51
48
|
React.createElement(LoadingDots, { show: topContent.isFetching }),
|
|
52
49
|
topContent.data.length === 0 && (React.createElement(Card, { id: "card", className: "card-support top-recommendations pf-v5-u-mb-md", isCompact: true },
|
|
53
|
-
React.createElement(CardHeader, { "aria-label": t('Red Hat
|
|
50
|
+
React.createElement(CardHeader, { "aria-label": t('Red Hat hand picked support articles'), className: "popular-solutions" },
|
|
54
51
|
React.createElement(CardTitle, { id: "card-title", className: "card-title" },
|
|
55
|
-
React.createElement(Trans, { i18nKey: 'i18nKeyPopularSolutions' }, "Red Hat
|
|
52
|
+
React.createElement(Trans, { i18nKey: 'i18nKeyPopularSolutions' }, "Red Hat hand picked support articles"),
|
|
53
|
+
React.createElement(Tooltip, { content: React.createElement("div", null,
|
|
54
|
+
React.createElement(Trans, null, "Support articles are matched to the product and version details you selected, not the problem details you entered.")) },
|
|
55
|
+
React.createElement(InfoCircleIcon, { className: "pf-v5-u-ml-sm", "aria-label": "More info about how support articles are matched" })))),
|
|
56
56
|
React.createElement(CardBody, { "aria-label": t('No recommendations for this product'), className: "file-recs-no-recommendation pf-v5-u-mt-md" },
|
|
57
57
|
React.createElement(Trans, null, "No recommendations for this product")))),
|
|
58
58
|
React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading suggestions') } }, canShowTopContent && !isEmpty(version) && React.createElement(Suggestions, null)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsSectionValid.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/useIsSectionValid.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAuB1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAKnE,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,gBAAgB;;;;;
|
|
1
|
+
{"version":3,"file":"useIsSectionValid.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/useIsSectionValid.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAuB1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAKnE,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,gBAAgB;;;;;EA2Q9D"}
|
|
@@ -58,13 +58,13 @@ export function useIsSectionValid(sectionName) {
|
|
|
58
58
|
!isEmpty(accountNumber) &&
|
|
59
59
|
!isEmpty(contactSSOName) &&
|
|
60
60
|
!selectedAccountDetails.data.subscriptionAbuse;
|
|
61
|
-
if (
|
|
61
|
+
if (isATestvariation) {
|
|
62
62
|
isValid = isValid && !isEmpty(product) && !isEmpty(version);
|
|
63
63
|
}
|
|
64
64
|
return isValid;
|
|
65
65
|
};
|
|
66
66
|
const isSummarizeSectionValid = () => {
|
|
67
|
-
if (
|
|
67
|
+
if (isBTestvariation) {
|
|
68
68
|
let isValid = !allProducts.isFetching &&
|
|
69
69
|
!allProducts.isError &&
|
|
70
70
|
!topContent.isFetching &&
|
|
@@ -77,6 +77,17 @@ export function useIsSectionValid(sectionName) {
|
|
|
77
77
|
!isEmpty(issue);
|
|
78
78
|
return isValid;
|
|
79
79
|
}
|
|
80
|
+
if (isATestvariation) {
|
|
81
|
+
let isValid = !allProducts.isFetching &&
|
|
82
|
+
!allProducts.isError &&
|
|
83
|
+
!topContent.isFetching &&
|
|
84
|
+
!recommendationState.isLoadingRecommendations &&
|
|
85
|
+
(summary === null || summary === void 0 ? void 0 : summary.length) <= TITLE_SUMMARY_LENGTH_LIMIT &&
|
|
86
|
+
(issue === null || issue === void 0 ? void 0 : issue.length) <= ISSUE_SUMMARY_LENGTH_LIMIT &&
|
|
87
|
+
!isEmpty(summary) &&
|
|
88
|
+
!isEmpty(issue);
|
|
89
|
+
return isValid;
|
|
90
|
+
}
|
|
80
91
|
if (isCaseCreate) {
|
|
81
92
|
//because on the summarize page for troubleshoot flow we have only product version and owner
|
|
82
93
|
let isValid = !allProducts.isFetching &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardAside.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardAside.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAGH,eAAe,
|
|
1
|
+
{"version":3,"file":"WizardAside.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardAside.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAGH,eAAe,EAKlB,MAAM,iCAAiC,CAAC;AAQzC,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,2BAA2B,EAAE,OAAO,CAAC;CACxC;AAED,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,qBAsDjC;kBAtDQ,WAAW;;;AAwDpB,eAAe,WAAW,CAAC"}
|
|
@@ -5,7 +5,7 @@ import isUndefined from 'lodash/isUndefined';
|
|
|
5
5
|
import React, { useContext } from 'react';
|
|
6
6
|
import { useCaseSelector } from '../../context/CaseContext';
|
|
7
7
|
import { RouteContext } from '../../context/RouteContext';
|
|
8
|
-
import { AppRouteSections, hideFileUploadSidebarWidgetSections, showSideBarClusterIdRuleWidgetSections, showSideBarEARuleWidgetSections, showSideBarFileRecommendationSections, } from '../../reducers/RouteConstNTypes';
|
|
8
|
+
import { AppRouteSections, hideFileUploadSidebarWidgetSections, showSideBarClusterIdRuleWidgetSections, showSideBarEARuleWidgetSections, showSideBarEARuleWidgetSectionsExperienceA, showSideBarFileRecommendationSections, } from '../../reducers/RouteConstNTypes';
|
|
9
9
|
import { FileDiag } from '../CaseInformation/FileDiag';
|
|
10
10
|
import { CveSidebar } from '../Cve/CveSidebar';
|
|
11
11
|
import { AsideResults } from '../Recommendations/AsideResults';
|
|
@@ -31,10 +31,8 @@ function WizardAside(props) {
|
|
|
31
31
|
!isUndefined(activeSection) &&
|
|
32
32
|
!hideFileUploadSidebarWidgetSections.includes(activeSection);
|
|
33
33
|
const canShowEARuleWidget = isATestvariation
|
|
34
|
-
?
|
|
35
|
-
: showSideBarEARuleWidgetSections.includes(activeSection)
|
|
36
|
-
activeSection === AppRouteSections.SUMMARIZE ||
|
|
37
|
-
activeSection === AppRouteSections.REVIEW;
|
|
34
|
+
? showSideBarEARuleWidgetSectionsExperienceA.includes(activeSection)
|
|
35
|
+
: showSideBarEARuleWidgetSections.includes(activeSection);
|
|
38
36
|
const canShowClusterIdReportWidget = showSideBarClusterIdRuleWidgetSections.includes(activeSection);
|
|
39
37
|
const canShowFileRecommendationSectionsWidget = showSideBarFileRecommendationSections.includes(activeSection);
|
|
40
38
|
return (React.createElement("aside", null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardLayout.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WizardLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardLayout.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAuC,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAavG,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,qBA6LzC"}
|
|
@@ -11,8 +11,9 @@ import { Grid, GridItem } from '@patternfly/react-core';
|
|
|
11
11
|
import { SupportFeedbackForm } from '@rh-support/components';
|
|
12
12
|
import { fetchProducts, GlobalMetadataDispatchContext, GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
13
13
|
import { ability, CaseListFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
14
|
-
import { getConfigField, getVersionIfOnlyVersion, PCM_CONFIG_FIELD_TYPE, pendoTrackEvent, PreviousCaseTypes, } from '@rh-support/utils';
|
|
14
|
+
import { ABTestSplitBasedOnAccountNumber, getConfigField, getVersionIfOnlyVersion, PCM_CONFIG_FIELD_TYPE, pendoTrackEvent, PreviousCaseTypes, } from '@rh-support/utils';
|
|
15
15
|
import findIndex from 'lodash/findIndex';
|
|
16
|
+
import isEmpty from 'lodash/isEmpty';
|
|
16
17
|
import isEqual from 'lodash/isEqual';
|
|
17
18
|
import React, { useContext, useEffect, useRef, useState } from 'react';
|
|
18
19
|
import { Trans } from 'react-i18next';
|
|
@@ -50,7 +51,6 @@ export function WizardLayout(props) {
|
|
|
50
51
|
const isAnyFileAttachedLocal = isAnyFileAttached(attachmentState.caseFiles.selectedLocalFiles);
|
|
51
52
|
const [confirmationModalType, setConfirmationModalType] = useState(null);
|
|
52
53
|
const viewedConfirmationModalsList = useRef([]);
|
|
53
|
-
const testVariationWeight = getConfigField(pcmConfig.data, 'testVariationWeightZeroToTen', PCM_CONFIG_FIELD_TYPE.STRING);
|
|
54
54
|
const closeROCMProductModal = () => {
|
|
55
55
|
const productName = 'OpenShift Container Platform';
|
|
56
56
|
// if user click on Cancel then change product selection.
|
|
@@ -112,20 +112,19 @@ export function WizardLayout(props) {
|
|
|
112
112
|
}
|
|
113
113
|
setConfirmationModalType(null);
|
|
114
114
|
};
|
|
115
|
+
// A/B test
|
|
115
116
|
useEffect(() => {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
//
|
|
124
|
-
|
|
125
|
-
// setABTestVarioation(caseDispatch, trafficSplit(weight, sessionItem.session.createdDate!));
|
|
126
|
-
// }
|
|
117
|
+
if (isEmpty(loggedInUsersAccount.data.accountNumber))
|
|
118
|
+
return;
|
|
119
|
+
const appABTestConfig = getConfigField(pcmConfig.data, 'testVariationWeightZeroToTen', PCM_CONFIG_FIELD_TYPE.STRING);
|
|
120
|
+
if (isEmpty(appABTestConfig))
|
|
121
|
+
return;
|
|
122
|
+
const appTestWeight = parseInt(appABTestConfig, 10);
|
|
123
|
+
const ABTestVariation = ABTestSplitBasedOnAccountNumber(appTestWeight, loggedInUsersAccount.data.accountNumber);
|
|
124
|
+
// set state for PCM to show A or B
|
|
125
|
+
setABTestVarioation(caseDispatch, ABTestVariation);
|
|
127
126
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
128
|
-
}, [
|
|
127
|
+
}, [loggedInUsersAccount.data.accountNumber]);
|
|
129
128
|
// Loading app metadata
|
|
130
129
|
useEffect(() => {
|
|
131
130
|
fetchProducts(dispatchToGlobalMetadataReducer, contactSSOName);
|
|
@@ -179,15 +179,15 @@ function WizardNavigation(props) {
|
|
|
179
179
|
catch (e) { }
|
|
180
180
|
});
|
|
181
181
|
const nextButtonDisabledLogic = () => {
|
|
182
|
-
if (
|
|
182
|
+
if (isBTestvariation) {
|
|
183
183
|
let value = (!props.userSeenRecommendations && props.activeStep.id === AppRouteSections.SUMMARIZE) ||
|
|
184
184
|
(!isEntitledProductLocal && props.activeStep.nextButtonLabel === 'Get support') ||
|
|
185
185
|
(!isSectionValidFn(props.activeStep.id) && isNextBtnClickedToShowValidationError) ||
|
|
186
186
|
noValidEntitlement;
|
|
187
187
|
return value;
|
|
188
188
|
}
|
|
189
|
-
else if (
|
|
190
|
-
let value = (!props.userSeenRecommendations && props.activeStep.id === AppRouteSections.
|
|
189
|
+
else if (isATestvariation && !isCaseCreate) {
|
|
190
|
+
let value = (!props.userSeenRecommendations && props.activeStep.id === AppRouteSections.SUMMARIZE) ||
|
|
191
191
|
(!isEntitledProductLocal && props.activeStep.nextButtonLabel === 'Get support') ||
|
|
192
192
|
(!isSectionValidFn(props.activeStep.id) && isNextBtnClickedToShowValidationError) ||
|
|
193
193
|
noValidEntitlement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWizard.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWizard.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useWizard.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWizard.tsx"],"names":[],"mappings":"AA+BA,UAAU,MAAM;IACZ,yBAAyB,CAAC,EAAE,GAAG,CAAC;IAChC,4BAA4B,EAAE,OAAO,CAAC;IACtC,6BAA6B,EAAE,OAAO,CAAC;IACvC,qCAAqC,EAAE,OAAO,CAAC;IAC/C,aAAa,EAAE,GAAG,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;CAC9B;AAED,wBAAgB,SAAS,CAAC,UAAU,KAAA,EAAE,KAAK,CAAC,EAAE,MAAM;iCAwQb,OAAO;EAwC7C"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { AlertMessage, AlertType, LoadingIndicator } from '@rh-support/components';
|
|
2
|
-
import { ability } from '@rh-support/user-permissions/lib/esm/AuthFramework';
|
|
3
|
-
import { CaseListFields, resourceActions, resources } from '@rh-support/user-permissions/lib/esm/enums';
|
|
4
2
|
import { PreviousCaseTypes } from '@rh-support/utils';
|
|
5
3
|
import isEmpty from 'lodash/isEmpty';
|
|
6
4
|
import isEqual from 'lodash/isEqual';
|
|
7
5
|
import React, { Suspense, useContext } from 'react';
|
|
8
6
|
import { Trans, useTranslation } from 'react-i18next';
|
|
9
|
-
import { AccountSelector } from '../components/AccountInfo/AccountSelector';
|
|
10
|
-
import { OwnerSelector } from '../components/AccountInfo/OwnerSelector';
|
|
11
7
|
import CaseInformation from '../components/CaseInformation/CaseInformation';
|
|
12
8
|
import CaseManagement from '../components/CaseManagement/CaseManagement';
|
|
13
9
|
import IdeaInformation from '../components/IdeaInformation/IdeaInformation';
|
|
@@ -56,59 +52,37 @@ export function useWizard(routeProps, props) {
|
|
|
56
52
|
let summarizeNextButtonLabelLogic = () => {
|
|
57
53
|
return props.userScrolledLabel;
|
|
58
54
|
};
|
|
59
|
-
const canChangeAccountInfo = ability.can(resourceActions.PATCH, resources.CASE_CREATE, CaseListFields.ACCOUNT_AND_OWNER);
|
|
60
|
-
const summarizeButtonLabel = () => {
|
|
61
|
-
if (isCaseCreate) {
|
|
62
|
-
const shouldContinue = (summarizeNextButtonLabelLogic() || ((props === null || props === void 0 ? void 0 : props.userSeenRecommendationsValue) && numFound < 3)) &&
|
|
63
|
-
!isEmpty(issue);
|
|
64
|
-
return shouldContinue ? t('Continue') : t('See more options');
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
return t('Continue');
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
const informationButtonLabel = () => {
|
|
71
|
-
if (!isCaseCreate) {
|
|
72
|
-
(summarizeNextButtonLabelLogic() || ((props === null || props === void 0 ? void 0 : props.userSeenRecommendationsValue) && numFound < 3)) &&
|
|
73
|
-
!isEmpty(issue) // do this so that when user refreshes tab and state persists we don't cause edge 'continue' render
|
|
74
|
-
? t('Continue')
|
|
75
|
-
: t('See more options');
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
return t('Continue');
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
55
|
// components that are used in wizard steps
|
|
82
56
|
const appRouteConfugurations = {
|
|
83
57
|
[AppRouteSections.GET_SUPPORT]: Object.assign(Object.assign({}, defaultRouteConfiguration), { id: AppRouteSections.GET_SUPPORT, name: t('Get support'), component: (React.createElement(MainSection, { stepNumber: 1, totalSteps: 6, section: AppRouteSections.GET_SUPPORT, title: t('Why are you opening a case?'), description: t('Select the best category for your issue.') },
|
|
84
58
|
React.createElement(Suspense, { fallback: React.createElement(LoadingIndicator, { size: "sm" }) },
|
|
85
59
|
alertMessage(),
|
|
86
60
|
React.createElement(OpenCase, { routeProps: routeProps, userSeenRecommendations: props.userSeenRecommendationsfn, userClickedNextonRecommendations: props.userClickedNextonRecommendationsValue, resultsRowRef: props.resultsRowRef })))), canJumpTo: isSectionValidFn(AppRouteSections.GET_SUPPORT) || activeSection === AppRouteSections.GET_SUPPORT }),
|
|
87
|
-
[AppRouteSections.SUMMARIZE]: Object.assign(Object.assign({}, defaultRouteConfiguration), { id: AppRouteSections.SUMMARIZE, name: t('Summarize'), component: (React.createElement(MainSection, { stepNumber: 2, totalSteps: 6, section: AppRouteSections.SUMMARIZE, title: t('What are you having an issue with?') },
|
|
61
|
+
[AppRouteSections.SUMMARIZE]: Object.assign(Object.assign({}, defaultRouteConfiguration), { id: AppRouteSections.SUMMARIZE, name: isCaseCreate ? t('Summarize') : t('Troubleshoot'), component: (React.createElement(MainSection, { stepNumber: 2, totalSteps: 6, section: AppRouteSections.SUMMARIZE, title: t('What are you having an issue with?') },
|
|
88
62
|
React.createElement(Suspense, { fallback: React.createElement(LoadingIndicator, { size: "sm" }) },
|
|
89
63
|
alertMessage(),
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
[AppRouteSections.TROUBLESHOOT]: Object.assign(Object.assign({}, defaultRouteConfiguration), { id: AppRouteSections.TROUBLESHOOT, name: t('
|
|
64
|
+
React.createElement(ProductSelector, { routeProps: routeProps, userSeenRecommendations: props.userSeenRecommendationsfn, userClickedNextonRecommendations: props.userClickedNextonRecommendationsValue, resultsRowRef: props.resultsRowRef, isOnGetSupportPage: false, caseCreateExperience: isCaseCreate })))), canJumpTo: isSectionValidFn(AppRouteSections.SUMMARIZE) || activeSection === AppRouteSections.SUMMARIZE, nextButtonLabel: (summarizeNextButtonLabelLogic() || ((props === null || props === void 0 ? void 0 : props.userSeenRecommendationsValue) && numFound < 3)) &&
|
|
65
|
+
!isEmpty(issue) // do this so that when user refreshes tab and state persists we don't cause edge 'continue' render
|
|
66
|
+
? t('Continue')
|
|
67
|
+
: t('See more options') }),
|
|
68
|
+
[AppRouteSections.TROUBLESHOOT]: Object.assign(Object.assign({}, defaultRouteConfiguration), { id: AppRouteSections.TROUBLESHOOT, name: isCaseCreate ? t('Resources') : t('Resources'), component: (React.createElement(MainSection, { stepNumber: 3, totalSteps: 6, section: AppRouteSections.TROUBLESHOOT, title: t('Recommendations') },
|
|
95
69
|
React.createElement(Suspense, { fallback: React.createElement(LoadingIndicator, { size: "sm" }) },
|
|
96
70
|
alertMessage(),
|
|
97
71
|
React.createElement(TroubleshootSection, null)))), canJumpTo: isSectionValidFn(AppRouteSections.TROUBLESHOOT || activeSection === AppRouteSections.TROUBLESHOOT) &&
|
|
98
72
|
(props === null || props === void 0 ? void 0 : props.userSeenRecommendationsValue) &&
|
|
99
|
-
(props === null || props === void 0 ? void 0 : props.userCanNavigateToTroubleshoot), nextButtonLabel:
|
|
100
|
-
[AppRouteSections.DESCRIBE_MORE]: Object.assign(Object.assign({}, defaultRouteConfiguration), { id: AppRouteSections.DESCRIBE_MORE, name: t('
|
|
73
|
+
(props === null || props === void 0 ? void 0 : props.userCanNavigateToTroubleshoot), nextButtonLabel: isCaseCreate ? t('Continue') : t('Convert to Case') }),
|
|
74
|
+
[AppRouteSections.DESCRIBE_MORE]: Object.assign(Object.assign({}, defaultRouteConfiguration), { id: AppRouteSections.DESCRIBE_MORE, name: t('Additional information'), component: (React.createElement(MainSection, { stepNumber: 4, totalSteps: 6, section: AppRouteSections.DESCRIBE_MORE, title: React.createElement(React.Fragment, null,
|
|
101
75
|
t('Case information'),
|
|
102
76
|
isEmpty(RouteUtils.seBasePath) && isSelectedAccounntSecureSupport && (React.createElement("span", { className: "secured-support" },
|
|
103
77
|
React.createElement(Trans, null, "Secured Support")))), description: t('Provide the details of your issue.') },
|
|
104
78
|
React.createElement(Suspense, { fallback: React.createElement(LoadingIndicator, { size: "sm" }) },
|
|
105
79
|
alertMessage(),
|
|
106
80
|
React.createElement(CaseInformation, { routeProps: routeProps })))), canJumpTo: isSectionValidFn(AppRouteSections.DESCRIBE_MORE) || activeSection === AppRouteSections.DESCRIBE_MORE }),
|
|
107
|
-
[AppRouteSections.DESCRIBE_IDEA]: Object.assign(Object.assign({}, defaultRouteConfiguration), { id: AppRouteSections.DESCRIBE_IDEA, name: t('
|
|
81
|
+
[AppRouteSections.DESCRIBE_IDEA]: Object.assign(Object.assign({}, defaultRouteConfiguration), { id: AppRouteSections.DESCRIBE_IDEA, name: t('Additional Information'), component: (React.createElement(MainSection, { stepNumber: 4, totalSteps: 6, section: AppRouteSections.DESCRIBE_IDEA, title: t('Idea information'), description: t("We'll be in contact with you shortly. Look for updates on this case.") },
|
|
108
82
|
React.createElement(Suspense, { fallback: React.createElement(LoadingIndicator, { size: "sm" }) },
|
|
109
83
|
alertMessage(),
|
|
110
84
|
React.createElement(IdeaInformation, null)))), canJumpTo: isSectionValidFn(AppRouteSections.DESCRIBE_IDEA) || activeSection === AppRouteSections.DESCRIBE_IDEA, nextButtonLabel: 'Submit', disableOtherSections: false }),
|
|
111
|
-
[AppRouteSections.MANAGEMENT]: Object.assign(Object.assign({}, defaultRouteConfiguration), { id: AppRouteSections.MANAGEMENT, name: t('
|
|
85
|
+
[AppRouteSections.MANAGEMENT]: Object.assign(Object.assign({}, defaultRouteConfiguration), { id: AppRouteSections.MANAGEMENT, name: t('Configuration'), component: (React.createElement(MainSection, { stepNumber: 5, totalSteps: 6, section: AppRouteSections.MANAGEMENT, title: t('Case management'), descriptionClassName: "text-medium-grey" },
|
|
112
86
|
React.createElement(Suspense, { fallback: React.createElement(LoadingIndicator, { size: "sm" }) },
|
|
113
87
|
alertMessage(),
|
|
114
88
|
React.createElement(CaseManagement, null)))), canJumpTo: isSectionValidFn(AppRouteSections.MANAGEMENT) || activeSection === AppRouteSections.MANAGEMENT }),
|
|
@@ -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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G;AAGD,wBAAgB,oBAAoB,CAChC,QAAQ,EAAE,uBAAuB,EACjC,KAAK,EAAE,MAAM,EACb,gBAAgB,EAAE,mBAAmB,CAAC,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAAC,EAC5E,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,0BAA0B,EAAE,QAO5D;AAED,wBAAsB,kBAAkB,CAAC,QAAQ,EAAE,uBAAuB,EAAE,OAAO,EAAE,MAAM,iBAiB1F;AAED,eAAO,MAAM,kBAAkB,aAAc,uBAAuB,QAAQ,OAAO,SAKlF,CAAC;AAEF,eAAO,MAAM,mBAAmB,aAAc,uBAAuB,oBAAoB,MAAM,SAK9F,CAAC"}
|
|
@@ -46,6 +46,7 @@ export declare const sessionRestoreCardSections: AppRouteSections[];
|
|
|
46
46
|
export declare const hideFileUploadSidebarWidgetSections: AppRouteSections[];
|
|
47
47
|
export declare const showSidebarRecommendationsSections: AppRouteSections[];
|
|
48
48
|
export declare const showSideBarEARuleWidgetSections: AppRouteSections[];
|
|
49
|
+
export declare const showSideBarEARuleWidgetSectionsExperienceA: AppRouteSections[];
|
|
49
50
|
export declare const showSideBarClusterIdRuleWidgetSections: AppRouteSections[];
|
|
50
51
|
export declare const showSideBarFileRecommendationSections: AppRouteSections[];
|
|
51
52
|
export declare const hideSideBarClusterIdRuleToast: AppRouteSections[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RouteConstNTypes.d.ts","sourceRoot":"","sources":["../../../src/reducers/RouteConstNTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,MAAM,WAAW,iBAAiB;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAC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WAAW,eAAe;CAAG;AACnC,oBAAY,gBAAgB;IACxB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;CAClB;AAKD,eAAO,MAAM,4BAA4B,EAAE,gBAAgB,EAI1D,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,gBAAgB,EAK9D,CAAC;AAEF,eAAO,MAAM,iCAAiC,oBAQ7C,CAAC;AAEF,eAAO,MAAM,gCAAgC,oBAQ5C,CAAC;AAEF,eAAO,MAAM,4BAA4B,oBAQxC,CAAC;AAGF,eAAO,MAAM,0BAA0B,oBAAiC,CAAC;AAEzE,eAAO,MAAM,mCAAmC,oBAA+D,CAAC;AAEhH,eAAO,MAAM,kCAAkC,oBAO9C,CAAC;AAEF,eAAO,MAAM,+BAA+B,oBAM3C,CAAC;AAEF,eAAO,MAAM,0CAA0C,oBAQtD,CAAC;AAEF,eAAO,MAAM,sCAAsC,oBAAyD,CAAC;AAE7G,eAAO,MAAM,qCAAqC,oBAAgE,CAAC;AAEnH,eAAO,MAAM,6BAA6B,oBAAiC,CAAC;AAE5E,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,EAKtD,CAAC"}
|
|
@@ -69,6 +69,15 @@ export const showSideBarEARuleWidgetSections = [
|
|
|
69
69
|
AppRouteSections.MANAGEMENT,
|
|
70
70
|
AppRouteSections.GET_SUPPORT,
|
|
71
71
|
];
|
|
72
|
+
export const showSideBarEARuleWidgetSectionsExperienceA = [
|
|
73
|
+
AppRouteSections.SUMMARIZE,
|
|
74
|
+
AppRouteSections.DESCRIBE_MORE,
|
|
75
|
+
AppRouteSections.DESCRIBE_IDEA,
|
|
76
|
+
AppRouteSections.TROUBLESHOOT,
|
|
77
|
+
AppRouteSections.MANAGEMENT,
|
|
78
|
+
AppRouteSections.GET_SUPPORT,
|
|
79
|
+
AppRouteSections.REVIEW,
|
|
80
|
+
];
|
|
72
81
|
export const showSideBarClusterIdRuleWidgetSections = [AppRouteSections.MANAGEMENT, AppRouteSections.REVIEW];
|
|
73
82
|
export const showSideBarFileRecommendationSections = [AppRouteSections.DESCRIBE_MORE, AppRouteSections.MANAGEMENT];
|
|
74
83
|
export const hideSideBarClusterIdRuleToast = [AppRouteSections.SUBMIT_CASE];
|
package/lib/esm/scss/_main.scss
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.4.5-beta.
|
|
3
|
+
"version": "2.4.5-beta.15",
|
|
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.4.3-beta.
|
|
64
|
-
"@rh-support/react-context": "2.4.3-beta.
|
|
63
|
+
"@rh-support/components": "2.4.3-beta.3",
|
|
64
|
+
"@rh-support/react-context": "2.4.3-beta.3",
|
|
65
65
|
"@rh-support/types": "2.0.5",
|
|
66
|
-
"@rh-support/user-permissions": "2.4.3-beta.
|
|
67
|
-
"@rh-support/utils": "2.4.3-beta.
|
|
66
|
+
"@rh-support/user-permissions": "2.4.3-beta.3",
|
|
67
|
+
"@rh-support/utils": "2.4.3-beta.3",
|
|
68
68
|
"@types/react-redux": "^7.1.33",
|
|
69
69
|
"@types/redux": "^3.6.0",
|
|
70
70
|
"date-fns": "3.6.0",
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
"timers": "^0.1.1"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
+
"@testing-library/dom": "^10.4.0",
|
|
97
98
|
"@testing-library/jest-dom": "^6.2.0",
|
|
98
99
|
"@testing-library/react": "^14.1.2",
|
|
99
100
|
"@testing-library/user-event": "^14.5.1",
|
|
@@ -134,5 +135,5 @@
|
|
|
134
135
|
"defaults and supports es6-module",
|
|
135
136
|
"maintained node versions"
|
|
136
137
|
],
|
|
137
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "246b3e514e1c0a504a285518810ca94f1b5690ce"
|
|
138
139
|
}
|