@rh-support/troubleshoot 2.6.168 → 2.6.171-beta.2
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/wizardLayout/MainSection.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/MainSection.js +3 -3
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardNavigation.js +10 -8
- package/package.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Case.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/Case.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAE7D,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":"AAcA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAE7D,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,qBAiPzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MainSection.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/MainSection.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,UAAU,MAAM;IACZ,OAAO,EAAE,gBAAgB,CAAC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,13 @@ const MainSection = (props) => {
|
|
|
20
20
|
return (React.createElement(ErrorBoundary, { isPageLevelError: true },
|
|
21
21
|
React.createElement("section", { id: `${props.section}-section`, tabIndex: -1, "aria-labelledby": `${props.section}-heading`, "aria-describedby": `${props.section}-description`, className: `main-step-content ${props.className ? props.className : ''}` },
|
|
22
22
|
isConfirmedStateSideSupport && props.section !== AppRouteSections.SUBMIT_CASE && (React.createElement(Alert, { isInline: true, variant: "warning", title: ((_c = loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data) === null || _c === void 0 ? void 0 : _c.hasConfirmedStatesideSupport)
|
|
23
|
-
? 'You have a confirmed
|
|
24
|
-
: 'This is a confirmed
|
|
23
|
+
? 'You have a confirmed sovereign support account'
|
|
24
|
+
: 'This is a confirmed sovereign support account', className: "pf-v6-u-mb-lg" },
|
|
25
25
|
React.createElement("p", null,
|
|
26
26
|
"To adhere to data regulations, open this case through",
|
|
27
27
|
' ',
|
|
28
28
|
React.createElement("b", null,
|
|
29
|
-
React.createElement("a", { href: "https://
|
|
29
|
+
React.createElement("a", { href: "https://govsupport.redhat.com/css/s/", target: "_blank", rel: "noopener noreferrer", "data-tracking-id": "stateside-support-link" }, "Confirmed Sovereign Support")),
|
|
30
30
|
' ',
|
|
31
31
|
"instead of traditional support."))),
|
|
32
32
|
React.createElement(LoadingIndicator, { show: props.isLoading, size: "lg" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardNavigation.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAmE,MAAM,OAAO,CAAC;AAExF,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAUvD,OAAO,EAAoB,eAAe,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAM3G,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,M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E,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,sBAAsB,CAAC,EAAE,MAAM,IAAI,CAAC;IACpC,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAGD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,qBAgbtC;kBAhbQ,gBAAgB;;;AAkbzB,eAAe,gBAAgB,CAAC"}
|
|
@@ -23,7 +23,7 @@ import { RecommendationStateContext } from '../../context/RecommendationContext'
|
|
|
23
23
|
import { RouteContext, RouteDispatchContext } from '../../context/RouteContext';
|
|
24
24
|
import { SessionRestoreStateContext } from '../../context/SessionRestoreContext';
|
|
25
25
|
import { useAB } from '../../hooks/useAB';
|
|
26
|
-
import { excludedCaseTypesforARH } from '../../reducers/CaseConstNTypes';
|
|
26
|
+
// import { excludedCaseTypesforARH } from '../../reducers/CaseConstNTypes';
|
|
27
27
|
import { setCaseState } from '../../reducers/CaseReducer';
|
|
28
28
|
import { AppRouteSections } from '../../reducers/RouteConstNTypes';
|
|
29
29
|
import { updateisNextBtnClickedToShowValidationError } from '../../reducers/RouteReducer';
|
|
@@ -40,7 +40,7 @@ function WizardNavigation(props) {
|
|
|
40
40
|
const aiResponseState = useAIResponseState();
|
|
41
41
|
const { routeState: { activeSection, isNextBtnClickedToShowValidationError, noValidEntitlement, isSearchIntent, isCaseCreate, }, } = useContext(RouteContext);
|
|
42
42
|
const { globalMetadataState: { loggedInUsersAccount, allProducts, navBarRef }, } = useContext(GlobalMetadataStateContext);
|
|
43
|
-
const { caseState, issue, summary, product, version
|
|
43
|
+
const { caseState, issue, summary, product, version } = useCaseSelector((state) => ({
|
|
44
44
|
caseState: state,
|
|
45
45
|
issue: state.caseDetails.issue,
|
|
46
46
|
summary: state.caseDetails.summary,
|
|
@@ -253,16 +253,18 @@ function WizardNavigation(props) {
|
|
|
253
253
|
});
|
|
254
254
|
const isEntitledProductLocal = isSearchIntent ? true : isEntitledProduct;
|
|
255
255
|
const nextButtonDisabledLogic = () => {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
256
|
+
// Disabled: the ARH streaming state should not block users from proceeding
|
|
257
|
+
// with "Continue" or "Convert to case" while the AI chatbot is loading.
|
|
258
|
+
// const isLoadingARH =
|
|
259
|
+
// props.isLoadingARH &&
|
|
260
|
+
// props.activeStep.id === AppRouteSections.RESOURCES &&
|
|
261
|
+
// !excludedCaseTypesforARH.includes(caseType || '');
|
|
259
262
|
const isRelevantPageForB = isCaseCreate
|
|
260
263
|
? props.activeStep.id === AppRouteSections.SUMMARIZE
|
|
261
264
|
: props.activeStep.id === AppRouteSections.TROUBLESHOOT;
|
|
262
265
|
const isLoadingRecs = !isVariationA && !isRelevantPageForB ? false : recommendationState.isLoadingRecommendations;
|
|
263
|
-
let value =
|
|
264
|
-
|
|
265
|
-
props.activeStep.id === (isCaseCreate ? AppRouteSections.SUMMARIZE : AppRouteSections.TROUBLESHOOT)) ||
|
|
266
|
+
let value = ((isEmpty(summary) || isEmpty(issue) || isEmpty(product) || isEmpty(version)) &&
|
|
267
|
+
props.activeStep.id === (isCaseCreate ? AppRouteSections.SUMMARIZE : AppRouteSections.TROUBLESHOOT)) ||
|
|
266
268
|
(!isEntitledProductLocal && props.activeStep.nextButtonLabel === 'Get support') ||
|
|
267
269
|
props.activeStep.nextButtonLabel === 'Troubleshoot' ||
|
|
268
270
|
(isSectionValidFn && !isSectionValidFn(props.activeStep.id) && isNextBtnClickedToShowValidationError) ||
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.171-beta.2",
|
|
4
|
+
"description": "Troubleshoot App",
|
|
4
5
|
"publishConfig": {
|
|
5
6
|
"access": "public",
|
|
6
7
|
"registry": "https://registry.npmjs.org"
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
"@progress/kendo-react-pdf": "^5.16.0",
|
|
61
62
|
"@redux-devtools/extension": "^3.3.0",
|
|
62
63
|
"@rh-support/components": "2.5.64",
|
|
63
|
-
"@rh-support/react-context": "2.5.
|
|
64
|
+
"@rh-support/react-context": "2.5.117",
|
|
64
65
|
"@rh-support/types": "2.0.5",
|
|
65
66
|
"@rh-support/user-permissions": "2.5.31",
|
|
66
67
|
"@rh-support/utils": "2.5.27",
|
|
@@ -133,5 +134,5 @@
|
|
|
133
134
|
"defaults and supports es6-module",
|
|
134
135
|
"maintained node versions"
|
|
135
136
|
],
|
|
136
|
-
"gitHead": "
|
|
137
|
+
"gitHead": "bb0c3a04fe827718966b463e2711f4af50db49ba"
|
|
137
138
|
}
|