@rh-support/troubleshoot 2.4.5-beta.18 → 2.4.5-beta.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/AllProductsSelector.js +6 -2
- package/lib/esm/components/wizardLayout/WizardLayout.js +5 -5
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardNavigation.js +4 -10
- package/lib/esm/reducers/RouteConstNTypes.d.ts +1 -1
- package/lib/esm/reducers/RouteConstNTypes.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -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;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,
|
|
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,4EA0KvB,CAAC;AAGH,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -89,9 +89,13 @@ const AllProductsSelector = forwardRef((props, ref) => {
|
|
|
89
89
|
(isATestvariation && (props.isOnGetSupportPage || props.isOnReviewPage));
|
|
90
90
|
// Determine whether to render the OpenCaseIssue component
|
|
91
91
|
const renderOpenCaseIssue = (isBTestvariation &&
|
|
92
|
-
(activeSection === AppRouteSections.SUMMARIZE ||
|
|
92
|
+
(activeSection === AppRouteSections.SUMMARIZE ||
|
|
93
|
+
activeSection === AppRouteSections.REVIEW ||
|
|
94
|
+
activeSection === AppRouteSections.SUBMIT_CASE)) ||
|
|
93
95
|
(isATestvariation &&
|
|
94
|
-
(activeSection === AppRouteSections.SUMMARIZE ||
|
|
96
|
+
(activeSection === AppRouteSections.SUMMARIZE ||
|
|
97
|
+
activeSection === AppRouteSections.REVIEW ||
|
|
98
|
+
activeSection === AppRouteSections.SUBMIT_CASE)) ||
|
|
95
99
|
(!props.caseCreateExperience && activeSection === AppRouteSections.SUMMARIZE);
|
|
96
100
|
return (React.createElement(React.Fragment, null,
|
|
97
101
|
renderProductVersionDropdownSelector && (React.createElement("div", { className: "form-group product-selector-wrapper" },
|
|
@@ -45,8 +45,6 @@ export function WizardLayout(props) {
|
|
|
45
45
|
const caseDispatch = useCaseDispatch();
|
|
46
46
|
const { sessionRestore: { activeSessionId, previousSessions }, } = useContext(SessionRestoreStateContext);
|
|
47
47
|
const { globalMetadataState: { allProducts, loggedInUser, loggedInUsersAccount, pcmConfig }, } = useContext(GlobalMetadataStateContext);
|
|
48
|
-
const urlQueryParams = RouteUtils.getQueryParams(props.routeProps);
|
|
49
|
-
const userflowFromUrl = urlQueryParams.userflow;
|
|
50
48
|
const dispatchToGlobalMetadataReducer = useContext(GlobalMetadataDispatchContext);
|
|
51
49
|
const canAddAttachments = ability.can(resourceActions.PATCH, resources.CASE_CREATE, CaseListFields.ATTACHMENTS);
|
|
52
50
|
const { attachmentState } = useContext(AttachmentStateContext);
|
|
@@ -118,10 +116,12 @@ export function WizardLayout(props) {
|
|
|
118
116
|
useEffect(() => {
|
|
119
117
|
if (isEmpty(loggedInUsersAccount.data.accountNumber))
|
|
120
118
|
return;
|
|
121
|
-
|
|
122
|
-
|
|
119
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
120
|
+
const useflowFromUrl = urlParams.get('useflow');
|
|
121
|
+
// if useflow was added in url, we force the selection
|
|
122
|
+
if (useflowFromUrl && (useflowFromUrl.toLowerCase() === 'a' || useflowFromUrl.toLowerCase() === 'b')) {
|
|
123
123
|
// set state for PCM to show A or B
|
|
124
|
-
setABTestVariation(caseDispatch,
|
|
124
|
+
setABTestVariation(caseDispatch, useflowFromUrl);
|
|
125
125
|
return;
|
|
126
126
|
}
|
|
127
127
|
const appABTestConfig = getConfigField(pcmConfig.data, 'testVariationWeightZeroToTen', PCM_CONFIG_FIELD_TYPE.STRING);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardNavigation.tsx"],"names":[],"mappings":"AAQA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAOvD,OAAO,EAAoB,eAAe,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAK3G,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC3C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,mBAAmB,EAAE,CAAC,gCAAgC,EAAE,OAAO,KAAK,IAAI,CAAC;IACzE,gBAAgB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,0BAA0B,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IAC5E,kCAAkC,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACpF,qCAAqC,CAAC,EAAE,OAAO,CAAC;IAChD,gCAAgC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACjF,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,oBAAoB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;CACxE;AAGD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"WizardNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/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
catch (e) { }
|
|
185
185
|
});
|
|
186
|
+
const isEntitledProductLocal = isSearchIntent ? true : isEntitledProduct;
|
|
186
187
|
const nextButtonDisabledLogic = () => {
|
|
187
188
|
if (isBTestvariation) {
|
|
188
|
-
let value = (
|
|
189
|
-
isEmpty(summary) &&
|
|
190
|
-
isEmpty(issue) &&
|
|
189
|
+
let value = ((isEmpty(summary) || isEmpty(issue) || isEmpty(product) || isEmpty(version)) &&
|
|
191
190
|
props.activeStep.id === AppRouteSections.SUMMARIZE) ||
|
|
192
191
|
(!isEntitledProductLocal && props.activeStep.nextButtonLabel === 'Get support') ||
|
|
192
|
+
props.activeStep.nextButtonLabel === 'Troubleshoot' ||
|
|
193
193
|
(!isSectionValidFn(props.activeStep.id) && isNextBtnClickedToShowValidationError) ||
|
|
194
194
|
noValidEntitlement;
|
|
195
195
|
return value;
|
|
196
196
|
}
|
|
197
197
|
else if (isATestvariation) {
|
|
198
|
-
let value = (
|
|
199
|
-
isEmpty(summary) &&
|
|
200
|
-
isEmpty(issue) &&
|
|
201
|
-
isEmpty(product) &&
|
|
202
|
-
isEmpty(issue) &&
|
|
198
|
+
let value = ((isEmpty(summary) || isEmpty(issue) || isEmpty(product) || isEmpty(version)) &&
|
|
203
199
|
props.activeStep.id === AppRouteSections.SUMMARIZE) ||
|
|
204
200
|
(!isEntitledProductLocal && props.activeStep.nextButtonLabel === 'Get support') ||
|
|
205
|
-
props.activeStep.nextButtonLabel === 'Summarize' ||
|
|
206
201
|
props.activeStep.nextButtonLabel === 'Troubleshoot' ||
|
|
207
202
|
(!isSectionValidFn(props.activeStep.id) && isNextBtnClickedToShowValidationError) ||
|
|
208
203
|
noValidEntitlement;
|
|
@@ -225,7 +220,6 @@ function WizardNavigation(props) {
|
|
|
225
220
|
}
|
|
226
221
|
};
|
|
227
222
|
// To handle entitled products
|
|
228
|
-
const isEntitledProductLocal = isSearchIntent ? true : isEntitledProduct;
|
|
229
223
|
return (React.createElement(React.Fragment, null,
|
|
230
224
|
props.activeStep.order !== 0 && (React.createElement("button", { onClick: () => onBack(), className: "btn btn-app btn-open-white main-nav-button", "data-tracking-id": `prev-of-${activeSection}`, type: "button", disabled: isDisabledGoBack() }, t('Go back'))),
|
|
231
225
|
React.createElement("button", { disabled: nextButtonDisabledLogic(), onClick: onNext, className: "btn btn-app btn-primary main-nav-button", "data-tracking-id": `next-of-${activeSection}`, type: "button" }, t(props.activeStep.nextButtonLabel)),
|
|
@@ -9,7 +9,7 @@ export interface IRouteQueryParams {
|
|
|
9
9
|
caseCreationErrorCode?: string | number;
|
|
10
10
|
summary?: string;
|
|
11
11
|
caseNumber?: string | undefined;
|
|
12
|
-
|
|
12
|
+
useflow?: string;
|
|
13
13
|
}
|
|
14
14
|
export interface ISectionConfiguration extends WizardStep {
|
|
15
15
|
id: number | string;
|
|
@@ -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;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qBAAqB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAIxC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,
|
|
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,i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,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"}
|
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.19",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -135,5 +135,5 @@
|
|
|
135
135
|
"defaults and supports es6-module",
|
|
136
136
|
"maintained node versions"
|
|
137
137
|
],
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "5ff99d334ec321a01f6a2f8bf97a4f3898987e97"
|
|
139
139
|
}
|