@rh-support/troubleshoot 2.6.170 → 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.
@@ -20,13 +20,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 stateside support account'
24
- : 'This is a confirmed stateside support account', className: "pf-v6-u-mb-lg" },
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://govsupport.redhat.com/css/s/", target: "_blank", rel: "noopener noreferrer", "data-tracking-id": "stateside-support-link" }, "Confirmed Stateside Support")),
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,OAA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AC,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;IACrE,YAAY,CAAC,EAAE,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, caseType } = useCaseSelector((state) => ({
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
- const isLoadingARH = props.isLoadingARH &&
257
- props.activeStep.id === AppRouteSections.RESOURCES &&
258
- !excludedCaseTypesforARH.includes(caseType || '');
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 = isLoadingARH ||
264
- ((isEmpty(summary) || isEmpty(issue) || isEmpty(product) || isEmpty(version)) &&
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.170",
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.116",
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": "a7bab85d661d6502439e2f2d67e4f6b17418aa1e"
137
+ "gitHead": "bb0c3a04fe827718966b463e2711f4af50db49ba"
137
138
  }