@rh-support/troubleshoot 2.4.5-beta.6 → 2.4.5-beta.8

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.
Files changed (43) hide show
  1. package/lib/esm/components/CaseInformation/Description.d.ts.map +1 -1
  2. package/lib/esm/components/CaseInformation/Description.js +20 -16
  3. package/lib/esm/components/Cve/CveItem.d.ts.map +1 -1
  4. package/lib/esm/components/Cve/CveItem.js +12 -7
  5. package/lib/esm/components/OpenCase/OpenCase.d.ts +3 -0
  6. package/lib/esm/components/OpenCase/OpenCase.d.ts.map +1 -1
  7. package/lib/esm/components/OpenCase/OpenCase.js +8 -0
  8. package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts +3 -0
  9. package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts.map +1 -1
  10. package/lib/esm/components/ProductSelector/AllProductsSelector.js +29 -21
  11. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts +1 -0
  12. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
  13. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +2 -2
  14. package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +1 -1
  15. package/lib/esm/components/ProductSelector/ProductSelector.d.ts +4 -2
  16. package/lib/esm/components/ProductSelector/ProductSelector.d.ts.map +1 -1
  17. package/lib/esm/components/ProductSelector/ProductSelector.js +8 -7
  18. package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.d.ts.map +1 -1
  19. package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.js +1 -1
  20. package/lib/esm/components/Recommendations/AsideResults.js +1 -1
  21. package/lib/esm/components/Recommendations/EARules/EARuleWidget.d.ts.map +1 -1
  22. package/lib/esm/components/Recommendations/EARules/EARuleWidget.js +5 -6
  23. package/lib/esm/components/Recommendations/Recommendations.d.ts.map +1 -1
  24. package/lib/esm/components/Recommendations/Recommendations.js +45 -15
  25. package/lib/esm/components/Review/Review.d.ts.map +1 -1
  26. package/lib/esm/components/Review/Review.js +1 -1
  27. package/lib/esm/components/SessionRestore/SessionRestore.js +1 -1
  28. package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
  29. package/lib/esm/components/shared/useIsSectionValid.js +14 -7
  30. package/lib/esm/components/wizardLayout/WizardAside.d.ts.map +1 -1
  31. package/lib/esm/components/wizardLayout/WizardAside.js +7 -9
  32. package/lib/esm/css/results.css +6 -0
  33. package/lib/esm/hooks/useWizard.d.ts.map +1 -1
  34. package/lib/esm/hooks/useWizard.js +10 -2
  35. package/lib/esm/reducers/CaseConstNTypes.d.ts +1 -0
  36. package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
  37. package/lib/esm/reducers/CaseConstNTypes.js +1 -0
  38. package/lib/esm/reducers/RouteConstNTypes.d.ts +0 -1
  39. package/lib/esm/reducers/RouteConstNTypes.d.ts.map +1 -1
  40. package/lib/esm/reducers/RouteConstNTypes.js +0 -1
  41. package/lib/esm/reducers/SessionRestoreReducer.d.ts.map +1 -1
  42. package/lib/esm/reducers/SessionRestoreReducer.js +1 -1
  43. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/Description.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAQ3D,UAAU,MAAM;IACZ,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,MAAM,qBA+JhD"}
1
+ {"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/Description.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAQ3D,UAAU,MAAM;IACZ,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,MAAM,qBAoKhD"}
@@ -1,7 +1,6 @@
1
- import { Badge, Popover, TextArea } from '@patternfly/react-core';
2
- import QuestionCircleIcon from '@patternfly/react-icons/dist/js/icons/question-circle-icon';
1
+ import { Popover, TextArea } from '@patternfly/react-core';
2
+ import OutlinedQuestionCircleIcon from '@patternfly/react-icons/dist/js/icons/outlined-question-circle-icon';
3
3
  // import ArrowRightIcon from '@patternfly/react-icons/dist/js/icons/arrow-right-icon'; This will be used for the Learn More button
4
- import StarIcon from '@patternfly/react-icons/dist/js/icons/star-icon';
5
4
  import { InlineEdit, useBreakpoint } from '@rh-support/components';
6
5
  import isEmpty from 'lodash/isEmpty';
7
6
  import isEqual from 'lodash/isEqual';
@@ -57,22 +56,27 @@ export default function Description(props) {
57
56
  };
58
57
  const isKT1Required = true;
59
58
  const headerPopoverContent = (React.createElement("div", null,
60
- React.createElement("div", null,
61
- React.createElement(Trans, null, "Describe your problem in detail for faster, more relevant solutions")),
62
- React.createElement("div", null,
63
- React.createElement(Badge, { isRead: true, className: 'badge-icon-info' },
64
- React.createElement(StarIcon, { className: "star-icon-info" }),
65
- " ",
66
- React.createElement(Trans, null, "New")))));
67
- const PopoverContent = (React.createElement("div", null,
68
- React.createElement("div", { className: "popover-body-info-description" },
69
- React.createElement("p", null,
70
- React.createElement(Trans, null, "Tell us what you\u2019ve already done, and include error messages. We\u2019ll share articles to help you troubleshoot before opening a ticket.")))));
59
+ React.createElement(Trans, null, "Tips for describing your problem")));
60
+ const PopoverContent = (React.createElement("div", { className: "popover-body-info-description" },
61
+ React.createElement(Trans, null, "Example:"),
62
+ React.createElement("p", { className: "pf-v5-u-color-200" },
63
+ React.createElement(Trans, null,
64
+ "I'm unable to start the SSHD service receiving the error message",
65
+ React.createElement("br", null),
66
+ "\"Bad yes/no argument for ShowPatchLevel parameter\"")),
67
+ React.createElement(Trans, null, "To expedite your case, include these details:"),
68
+ React.createElement("p", { className: "pf-v5-u-color-200" },
69
+ React.createElement(Trans, null,
70
+ "Problem",
71
+ React.createElement("br", null),
72
+ "Steps you've taken",
73
+ React.createElement("br", null),
74
+ "Error Messages"))));
71
75
  return (React.createElement(InlineEdit, { labelContent: React.createElement(React.Fragment, null, props.customTitle ? (props.customTitle) : (React.createElement(React.Fragment, null,
72
76
  React.createElement(Trans, null, "Describe your problem. Include specific actions and error messages."),
73
77
  isKT1Required && (React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
74
- React.createElement(Popover, { position: 'right', isVisible: isOpen, shouldClose: handleClose, headerContent: headerPopoverContent, bodyContent: PopoverContent },
75
- React.createElement(QuestionCircleIcon, { className: "pf-v5-u-ml-xs icon-size", onClick: handleToggle }))))), labelProps: { htmlFor: 'get-support-ktQ1-issue' }, content: issue, allowInlineEdit: !!props.inlineEditable, hideSaveCancel: !!props.hideSaveCancel, initialIsEditing: isEmpty(issue), usePreformattedTag: true, saveOnBlur: true },
78
+ React.createElement(Popover, { isVisible: isOpen, shouldClose: handleClose, headerContent: headerPopoverContent, bodyContent: PopoverContent },
79
+ React.createElement(OutlinedQuestionCircleIcon, { className: "pf-v5-u-ml-xs icon-size", onClick: handleToggle }))))), labelProps: { htmlFor: 'get-support-ktQ1-issue' }, content: issue, allowInlineEdit: !!props.inlineEditable, hideSaveCancel: !!props.hideSaveCancel, initialIsEditing: isEmpty(issue), usePreformattedTag: true, saveOnBlur: true },
76
80
  React.createElement(TextArea, { id: "get-support-ktQ1-issue", name: "get-support-ktQ1-issue", className: `description-textarea ${(isEmpty(summary) || isEmpty(version)) && isEmpty(issue) ? 'kt1-disabled' : ''}`, "aria-invalid": (issue === null || issue === void 0 ? void 0 : issue.length) > CASE_DETAILS_ISSUE_LIMIT ? 'true' : 'false', "aria-required": isKT1Required, isRequired: isKT1Required, value: issue, disabled: (isEmpty(summary) || isEmpty(version)) && isEmpty(issue), onChange: (e, value) => onKTQ1IssueChange(value, e), "data-tracking-id": "get-support-ktQ1-issue", placeholder: t(`The more detail that you include, the easier it is for us to help you. \nExample: \nI'm unable to start the SSHD service and am receiving the error message "Bad yes/no \nargument for ShowPatchLevel parameter"`), resizeOrientation: "vertical", validated: props.isSummarizeInvalid ? 'error' : 'default', rows: isLgScreenHeight ? 10 : 4, ref: textAreaRef, onClick: handleTextAreaClick }),
77
81
  React.createElement("p", { className: "form-instructions pf-v5-u-danger-color-100", "data-tracking-id": "large-20k-warning-ktQ1-environment" }, `${(issue === null || issue === void 0 ? void 0 : issue.length) > CASE_DETAILS_ISSUE_LIMIT
78
82
  ? `This description exceeds ${CASE_DETAILS_ISSUE_LIMIT} characters. Try shortening it.`
@@ -1 +1 @@
1
- {"version":3,"file":"CveItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Cve/CveItem.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAEhF,UAAU,KAAK;IACX,GAAG,EAAE,0BAA0B,CAAC;CACnC;AAID,eAAO,MAAM,OAAO,UAAW,KAAK,sBAqInC,CAAC"}
1
+ {"version":3,"file":"CveItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Cve/CveItem.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAEhF,UAAU,KAAK;IACX,GAAG,EAAE,0BAA0B,CAAC;CACnC;AAID,eAAO,MAAM,OAAO,UAAW,KAAK,sBA2InC,CAAC"}
@@ -5,13 +5,18 @@ import { Table, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table';
5
5
  import { format } from 'date-fns';
6
6
  import DOMPurify from 'dompurify';
7
7
  import isEmpty from 'lodash/isEmpty';
8
+ import isEqual from 'lodash/isEqual';
8
9
  import map from 'lodash/map';
9
10
  import slice from 'lodash/slice';
10
11
  import React from 'react';
11
12
  import { Trans } from 'react-i18next';
13
+ import { useCaseSelector } from '../../context/CaseContext';
12
14
  const sanitize = (html) => ({ __html: DOMPurify.sanitize(html) });
13
15
  export const CveItem = (props) => {
14
16
  const { cve } = props;
17
+ const { isCveModalOpened } = useCaseSelector((state) => ({
18
+ isCveModalOpened: state.isCveModalOpened,
19
+ }), isEqual);
15
20
  const renderDate = () => (React.createElement("div", { className: "pf-v5-u-disabled-color-100" },
16
21
  React.createElement(Trans, null, "Public on"),
17
22
  " - ",
@@ -37,20 +42,20 @@ export const CveItem = (props) => {
37
42
  return (React.createElement(Table, { "aria-label": "Errata table", variant: 'compact' },
38
43
  React.createElement(Thead, null,
39
44
  React.createElement(Tr, null,
40
- React.createElement(Th, { width: 30 },
41
- React.createElement(Trans, null, "Errata link")),
42
45
  React.createElement(Th, null,
43
- React.createElement(Trans, null, "Component")),
46
+ React.createElement(Trans, null, "Errata link")),
44
47
  React.createElement(Th, { width: 30 },
48
+ React.createElement(Trans, null, "Component")),
49
+ React.createElement(Th, null,
45
50
  React.createElement(Trans, null, "Status")))),
46
- React.createElement(Tbody, null, map(slice(cve.errataData, 0, 3), (errata, index) => {
51
+ React.createElement(Tbody, null, map(slice(cve.errataData, 0, isCveModalOpened ? 3 : 2), (errata, index) => {
47
52
  var _a, _b, _c;
48
53
  return (React.createElement(Tr, Object.assign({ key: (_a = errata === null || errata === void 0 ? void 0 : errata.advisory) === null || _a === void 0 ? void 0 : _a.name }, (index % 2 === 0 && { isStriped: true })),
49
54
  React.createElement(Td, null,
50
55
  React.createElement(Text, { component: TextVariants.a, href: (_b = errata === null || errata === void 0 ? void 0 : errata.advisory) === null || _b === void 0 ? void 0 : _b.url, target: "_blank", ouiaSafe: true, "data-tracking-id": "errata-link" }, (_c = errata === null || errata === void 0 ? void 0 : errata.advisory) === null || _c === void 0 ? void 0 :
51
56
  _c.name,
52
57
  React.createElement(ExternalLinkAltIcon, { className: "pf-v5-u-ml-sm" }))),
53
- React.createElement(Td, null, errata === null || errata === void 0 ? void 0 : errata.package),
58
+ React.createElement(Td, { modifier: "truncate" }, errata === null || errata === void 0 ? void 0 : errata.package),
54
59
  React.createElement(Td, null,
55
60
  React.createElement(Trans, null, errata === null || errata === void 0 ? void 0 : errata.state))));
56
61
  }))));
@@ -60,7 +65,7 @@ export const CveItem = (props) => {
60
65
  if (isEmpty(cve === null || cve === void 0 ? void 0 : cve.mitigation) && ((_a = cve === null || cve === void 0 ? void 0 : cve.errataData) === null || _a === void 0 ? void 0 : _a.length) === 0) {
61
66
  return (React.createElement("p", { className: "pf-v5-u-mt-md" }, "for this CVE mitigation and fix is not available, for more details, go to CVE page."));
62
67
  }
63
- const MAX_DESCRIPTION_LENGTH = 300;
68
+ const MAX_DESCRIPTION_LENGTH = isCveModalOpened ? 300 : 120;
64
69
  const description = !isEmpty(cve === null || cve === void 0 ? void 0 : cve.mitigation) ? cve === null || cve === void 0 ? void 0 : cve.mitigation : cve === null || cve === void 0 ? void 0 : cve.details;
65
70
  if (!description)
66
71
  return '';
@@ -75,7 +80,7 @@ export const CveItem = (props) => {
75
80
  React.createElement(FlexItem, null, renderDate())),
76
81
  displayErrataTable(),
77
82
  displayDescription(),
78
- (cve === null || cve === void 0 ? void 0 : cve.cveLink) && (React.createElement(Button, { variant: "primary", className: "pf-v5-u-my-md", "data-tracking-id": "go-to-CVE-button", component: "a", href: cve.cveLink, target: "_blank", rel: "noopener noreferrer" },
83
+ (cve === null || cve === void 0 ? void 0 : cve.cveLink) && (React.createElement(Button, { variant: "primary", className: isCveModalOpened ? 'pf-v5-u-my-md' : '', "data-tracking-id": "go-to-CVE-button", component: "a", href: cve.cveLink, target: "_blank", rel: "noopener noreferrer" },
79
84
  React.createElement(Trans, null, "Go to CVE"),
80
85
  React.createElement(ExternalLinkAltIcon, { className: "pf-v5-u-ml-sm" })))));
81
86
  };
@@ -3,6 +3,9 @@ import { RouteComponentProps } from 'react-router-dom';
3
3
  import { IRouteUrlParams } from '../../reducers/RouteConstNTypes';
4
4
  export interface IProps {
5
5
  routeProps: RouteComponentProps<IRouteUrlParams>;
6
+ userSeenRecommendations?: (value: React.SetStateAction<boolean>) => void;
7
+ userClickedNextonRecommendations: boolean;
8
+ resultsRowRef: React.MutableRefObject<HTMLDivElement | null>;
6
9
  }
7
10
  export default function OpenCase(props: IProps): React.JSX.Element;
8
11
  //# sourceMappingURL=OpenCase.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OpenCase.d.ts","sourceRoot":"","sources":["../../../../src/components/OpenCase/OpenCase.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAKlE,MAAM,WAAW,MAAM;IACnB,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,MAAM,qBAiB7C"}
1
+ {"version":3,"file":"OpenCase.d.ts","sourceRoot":"","sources":["../../../../src/components/OpenCase/OpenCase.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAMlE,MAAM,WAAW,MAAM;IACnB,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,EAAE,OAAO,CAAC;IAC1C,aAAa,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;CAChE;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,MAAM,qBAqC7C"}
@@ -1,13 +1,21 @@
1
1
  import { ability, CaseListFields, resourceActions, resources } from '@rh-support/user-permissions';
2
+ import isEqual from 'lodash/isEqual';
2
3
  import React from 'react';
4
+ import { useCaseSelector } from '../../context/CaseContext';
3
5
  import { AccountSelector } from '../AccountInfo/AccountSelector';
4
6
  import { OwnerSelector } from '../AccountInfo/OwnerSelector';
7
+ import ProductSelector from '../ProductSelector/ProductSelector';
5
8
  import SupportTypeSelectorPage from './SupportTypeSelectorPage';
6
9
  export default function OpenCase(props) {
7
10
  const canChangeAccountInfo = ability.can(resourceActions.PATCH, resources.CASE_CREATE, CaseListFields.ACCOUNT_AND_OWNER);
11
+ const { enableGetSupportProductVersion } = useCaseSelector((state) => ({
12
+ enableGetSupportProductVersion: state.enableGetSupportProductVersion,
13
+ }), isEqual);
8
14
  return (React.createElement("form", null,
9
15
  canChangeAccountInfo && (React.createElement(React.Fragment, null,
10
16
  React.createElement(AccountSelector, { "data-tracking-id": "get-support-account-selector" }),
11
17
  React.createElement(OwnerSelector, { "data-tracking-id": "get-support-owner-selector" }))),
18
+ enableGetSupportProductVersion && (React.createElement("div", { className: "form-group" },
19
+ React.createElement(ProductSelector, { routeProps: props.routeProps, userSeenRecommendations: props.userSeenRecommendations, userClickedNextonRecommendations: props.userClickedNextonRecommendations, resultsRowRef: props.resultsRowRef, isOnGetSupportPage: true }))),
12
20
  React.createElement(SupportTypeSelectorPage, null)));
13
21
  }
@@ -8,6 +8,9 @@ interface IProps {
8
8
  showTCAfterButtonClicked?: boolean;
9
9
  checkEntitledProduct?: boolean;
10
10
  isOnSummaryPage?: boolean;
11
+ isOnGetSupportPage?: boolean;
12
+ isOnReviewPage?: boolean;
13
+ caseCreateExperience?: boolean;
11
14
  }
12
15
  /**
13
16
  * Renders a dropdown list to select all products.
@@ -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;AAKvD,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;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AAQD;;;;;;;GAOG;AACH,QAAA,MAAM,mBAAmB,4EAuIvB,CAAC;AAGH,OAAO,EAAE,mBAAmB,EAAE,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,4EA0JvB,CAAC;AAGH,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -8,8 +8,10 @@ import isEqual from 'lodash/isEqual';
8
8
  import React, { forwardRef, useContext, useEffect, useState } from 'react';
9
9
  import { Trans, useTranslation } from 'react-i18next';
10
10
  import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
11
+ import { RouteContext } from '../../context/RouteContext';
11
12
  import { TCStateContext } from '../../context/TopContentContext';
12
13
  import { setCaseDetails } from '../../reducers/CaseReducer';
14
+ import { AppRouteSections } from '../../reducers/RouteConstNTypes';
13
15
  import RouteUtils from '../../utils/routeUtils';
14
16
  import OpenCaseIssue from '../CaseInformation/OpenCaseIssue';
15
17
  import Suggestions from '../Suggestions/Suggestions';
@@ -76,28 +78,34 @@ const AllProductsSelector = forwardRef((props, ref) => {
76
78
  RouteUtils.updateQueryParams(props.routeProps, newParams);
77
79
  }
78
80
  const entitledProducts = filter(allProducts.data.productsResult, (p) => p.isEntitledProduct);
79
- return (React.createElement(React.Fragment, null,
80
- React.createElement("div", { className: "form-group product-selector-wrapper" },
81
+ const { routeState: { activeSection }, } = useContext(RouteContext);
82
+ if ((activeSection === AppRouteSections.SUMMARIZE && !props.caseCreateExperience) ||
83
+ activeSection === AppRouteSections.GET_SUPPORT) {
84
+ return (React.createElement("div", { className: "form-group product-selector-wrapper" },
81
85
  React.createElement("div", { className: "all-product-selector-dropdown" },
82
- 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 }))),
83
- React.createElement("div", { className: "case-details-summary" },
84
- React.createElement(OpenCaseIssue, { inlineEditable: false, required: true, isOnSummaryPage: props.isOnSummaryPage })),
85
- React.createElement(AlertMessage, { isInline: true, variant: AlertType.DANGER, className: "pf-v5-u-mt-lg", title: t(`${loggedInUserRights.data.isSSOUsernameSameAsLoggedInUser(contactSSOName)
86
- ? 'You are'
87
- : 'Selected owner is'} not allowed to create case on this product.`), show: !allProducts.isFetching && props.checkEntitledProduct && !isEntitledProduct && !isEmpty(product) }),
88
- showModalButton &&
89
- !isEmpty(product) &&
90
- !isEmpty(version) &&
91
- !topContent.isFetching &&
92
- topContent.data.length !== 0 && (React.createElement("button", { className: "btn btn-bordered-blue btn-slim pull-top-narrow push-bottom-narrow", "data-tracking-id": "suggested-fixes-trigger", onClick: toggleTCModal, type: "button" },
93
- React.createElement(Trans, null, "Suggested fixes"))),
94
- props.loadTCOnChange && !topContent.isFetching && topContent.data.length !== 0 && (React.createElement(Modal, { className: "feedback-modal", title: t('Suggested fixes'), description: t('There are new updates to suggested fixes after changing your product.'), "aria-describedby": "Feedback Form", isOpen: isModalOpen, variant: ModalVariant.large, onClose: toggleTCModal, actions: [
95
- React.createElement("button", { key: "cancel", onClick: toggleTCModal, className: "btn btn-app btn-primary", type: "button" },
96
- React.createElement(Trans, null, "Cancel")),
97
- ] },
98
- React.createElement("span", null,
99
- React.createElement(Trans, null, "Here are some common suggestions:")),
100
- React.createElement(Suggestions, { showTitleDescription: false, showMax: 6 })))));
86
+ 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 }))));
87
+ // } else if (activeSection === AppRouteSections.SUMMARIZE && props.caseCreateExperience)
88
+ }
89
+ else
90
+ return (React.createElement(React.Fragment, null,
91
+ React.createElement("div", { className: "case-details-summary" },
92
+ React.createElement(OpenCaseIssue, { inlineEditable: false, required: true, isOnSummaryPage: props.isOnSummaryPage })),
93
+ React.createElement(AlertMessage, { isInline: true, variant: AlertType.DANGER, className: "pf-v5-u-mt-lg", title: t(`${loggedInUserRights.data.isSSOUsernameSameAsLoggedInUser(contactSSOName)
94
+ ? 'You are'
95
+ : 'Selected owner is'} not allowed to create case on this product.`), show: !allProducts.isFetching && props.checkEntitledProduct && !isEntitledProduct && !isEmpty(product) }),
96
+ showModalButton &&
97
+ !isEmpty(product) &&
98
+ !isEmpty(version) &&
99
+ !topContent.isFetching &&
100
+ topContent.data.length !== 0 && (React.createElement("button", { className: "btn btn-bordered-blue btn-slim pull-top-narrow push-bottom-narrow", "data-tracking-id": "suggested-fixes-trigger", onClick: toggleTCModal, type: "button" },
101
+ React.createElement(Trans, null, "Suggested fixes"))),
102
+ props.loadTCOnChange && !topContent.isFetching && topContent.data.length !== 0 && (React.createElement(Modal, { className: "feedback-modal", title: t('Suggested fixes'), description: t('There are new updates to suggested fixes after changing your product.'), "aria-describedby": "Feedback Form", isOpen: isModalOpen, variant: ModalVariant.large, onClose: toggleTCModal, actions: [
103
+ React.createElement("button", { key: "cancel", onClick: toggleTCModal, className: "btn btn-app btn-primary", type: "button" },
104
+ React.createElement(Trans, null, "Cancel")),
105
+ ] },
106
+ React.createElement("span", null,
107
+ React.createElement(Trans, null, "Here are some common suggestions:")),
108
+ React.createElement(Suggestions, { showTitleDescription: false, showMax: 6 })))));
101
109
  });
102
110
  AllProductsSelector.defaultProps = defaultProps;
103
111
  export { AllProductsSelector };
@@ -6,6 +6,7 @@ interface IProps {
6
6
  isNextBtnClickedToShowValidationError: boolean;
7
7
  isCaseCreate: boolean;
8
8
  isOnSummaryPage?: boolean;
9
+ isLoading?: boolean;
9
10
  }
10
11
  export declare const NewProductDropdownSelector: (props: IProps) => React.JSX.Element;
11
12
  export {};
@@ -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;AAMpE,OAAO,KAA0C,MAAM,OAAO,CAAC;AAK/D,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;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AAOD,eAAO,MAAM,0BAA0B,UAAW,MAAM,sBAwHvD,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;AAMpE,OAAO,KAA0C,MAAM,OAAO,CAAC;AAK/D,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;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAOD,eAAO,MAAM,0BAA0B,UAAW,MAAM,sBAyHvD,CAAC"}
@@ -73,8 +73,8 @@ export const NewProductDropdownSelector = (props) => {
73
73
  setIsSelectedProductSupportedForCustomer(isProductSupportedForCustomer(product, allProducts.data.productsResult));
74
74
  }, [allProducts.data.productsResult, product, props.isOnSummaryPage]);
75
75
  return (React.createElement("div", null,
76
- React.createElement(Select, { variant: SelectVariant.typeahead, typeAheadAriaLabel: t('Search for or select a product'), onToggle: (_event, isOpen) => onToggle(isOpen), 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()),
77
- !isSelectedProductSupportedForCustomer && (React.createElement("div", { className: "pf-v5-u-ml-xs pf-v5-u-mt-sm form-instructions" },
76
+ React.createElement(Select, { variant: SelectVariant.typeahead, typeAheadAriaLabel: t('Search for or select a product'), onToggle: (_event, isOpen) => onToggle(isOpen), 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", isDisabled: props.isLoading }, getOptions()),
77
+ !props.isLoading && !isSelectedProductSupportedForCustomer && (React.createElement("div", { className: "pf-v5-u-ml-xs pf-v5-u-mt-sm form-instructions" },
78
78
  React.createElement(Trans, null, "Red Hat must confirm your subscription status before providing support."),
79
79
  React.createElement("br", null),
80
80
  React.createElement(Trans, null, "We'll contact you if we have any questions.")))));
@@ -91,5 +91,5 @@ export const NewProductVersionSelector = (props) => {
91
91
  setIsOpen(false);
92
92
  };
93
93
  const titleId = 'version-selector';
94
- return (React.createElement(Select, Object.assign({ variant: SelectVariant.single, onToggle: (_event, isOpen) => onToggle(isOpen), onSelect: onSelect, isOpen: isOpen, placeholderText: t('Select a version'), toggleAriaLabel: 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 })))));
94
+ return (React.createElement(Select, Object.assign({ variant: SelectVariant.single, onToggle: (_event, isOpen) => onToggle(isOpen), onSelect: onSelect, isOpen: isOpen, placeholderText: t('Select a version'), toggleAriaLabel: t('Select a version'), "aria-labelledby": titleId, selections: version, validated: isEmpty(version) && showValidationLocal ? 'error' : 'default', isDisabled: isEmpty(product) || allProducts.isFetching, "data-tracking-id": "get-support-version-dropdown-selector" }, (isSEProductApiIsDown && versionsDetails.isFetching && { loadingVariant: 'spinner' })), selectVersionOptions.map((version, index) => (React.createElement(SelectOption, { key: index, value: version })))));
95
95
  };
@@ -4,8 +4,10 @@ import { IRouteUrlParams } from '../../reducers/RouteConstNTypes';
4
4
  interface IProps {
5
5
  routeProps: RouteComponentProps<IRouteUrlParams>;
6
6
  userSeenRecommendations?: (value: React.SetStateAction<boolean>) => void;
7
- userClickedNextonRecommendations: boolean;
8
- resultsRowRef: React.MutableRefObject<HTMLDivElement | null>;
7
+ userClickedNextonRecommendations?: boolean;
8
+ resultsRowRef?: React.MutableRefObject<HTMLDivElement | null>;
9
+ isOnGetSupportPage?: boolean;
10
+ caseCreateExperience?: boolean;
9
11
  }
10
12
  /**
11
13
  * Responsible for:
@@ -1 +1 @@
1
- {"version":3,"file":"ProductSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/ProductSelector.tsx"],"names":[],"mappings":"AAKA,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,EAAE,OAAO,CAAC;IAC1C,aAAa,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;CAChE;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAAK,EAAE,MAAM,qBAwFpD"}
1
+ {"version":3,"file":"ProductSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/ProductSelector.tsx"],"names":[],"mappings":"AAKA,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,qBAqGpD"}
@@ -25,9 +25,10 @@ export default function ProductSelector(props) {
25
25
  const { cveRecommendation } = useFetchCVEData();
26
26
  const { t } = useTranslation();
27
27
  const { globalMetadataState: { allProducts }, } = useContext(GlobalMetadataStateContext);
28
- const { product, version } = useCaseSelector((state) => ({
28
+ const { product, version, enableGetSupportProductVersion } = useCaseSelector((state) => ({
29
29
  product: state.caseDetails.product,
30
30
  version: state.caseDetails.version,
31
+ enableGetSupportProductVersion: state.enableGetSupportProductVersion,
31
32
  }), isEqual);
32
33
  const { routeState: { isCaseCreate }, } = useContext(RouteContext);
33
34
  /**
@@ -37,12 +38,12 @@ export default function ProductSelector(props) {
37
38
  */
38
39
  const productSelectorRef = useRef(null);
39
40
  return (React.createElement(React.Fragment, null,
40
- allProducts.isFetching && React.createElement(ProductSelectorLoader, null),
41
+ !enableGetSupportProductVersion && allProducts.isFetching && React.createElement(ProductSelectorLoader, null),
41
42
  React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "pf-v5-u-mt-lg", title: t('There was an error loading products.'), show: allProducts.isError }),
42
- !allProducts.isFetching && !allProducts.isError && (React.createElement(React.Fragment, null,
43
+ allProducts.isFetching ? (React.createElement(ProductSelectorLoader, null)) : (!allProducts.isError && (React.createElement(React.Fragment, null,
43
44
  React.createElement("form", null,
44
45
  (cveRecommendation === null || cveRecommendation === void 0 ? void 0 : cveRecommendation.length) !== 0 && React.createElement(CveModal, null),
45
- React.createElement(AllProductsSelector, { routeProps: props.routeProps, checkEntitledProduct: isCaseCreate ? true : false, ref: productSelectorRef, isOnSummaryPage: true }),
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 }),
46
47
  product === 'Subscription Watch' && (React.createElement(Alert, { isInline: true, variant: AlertVariant.warning, title: React.createElement(Trans, null,
47
48
  ' ',
48
49
  "If you're having a subscription issue that doesn't relate to",
@@ -53,8 +54,8 @@ export default function ProductSelector(props) {
53
54
  React.createElement("a", { href: "/support/contact", "data-tracking-id": "contact-customer-service" }, "customer service"),
54
55
  ' ',
55
56
  "for help.") })),
56
- React.createElement(EARuleWidget, null)),
57
- React.createElement("div", { className: "suggestions-result-section" },
57
+ !enableGetSupportProductVersion && React.createElement(EARuleWidget, null)),
58
+ !(props === null || props === void 0 ? void 0 : props.isOnGetSupportPage) && (React.createElement("div", { className: "suggestions-result-section" },
58
59
  React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading recommendations') } }, !isEmpty(version) && (React.createElement("div", { className: "common-suggestions" },
59
- React.createElement(Recommendations, { routeProps: props.routeProps, userSeenRecommendations: props.userSeenRecommendations, userClickedNextonRecommendationsValue: props.userClickedNextonRecommendations, resultsRowRef: props.resultsRowRef })))))))));
60
+ React.createElement(Recommendations, { routeProps: props.routeProps, userSeenRecommendations: props.userSeenRecommendations, userClickedNextonRecommendationsValue: props.userClickedNextonRecommendations, resultsRowRef: props.resultsRowRef })))))))))));
60
61
  }
@@ -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;AAEpE,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;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAOD,QAAA,MAAM,8BAA8B,wEAuClC,CAAC;AAEH,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
1
+ {"version":3,"file":"ProductVersionDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/ProductVersionDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAEpE,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;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAOD,QAAA,MAAM,8BAA8B,wEAwClC,CAAC;AAEH,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
@@ -16,7 +16,7 @@ const ProductVersionDropdownSelector = forwardRef((props, ref) => {
16
16
  React.createElement(Trans, null, "Product"),
17
17
  ' ',
18
18
  React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
19
- React.createElement(NewProductDropdownSelector, { products: props.products, onProductChange: props.onProductChange, isNextBtnClickedToShowValidationError: isNextBtnClickedToShowValidationError, isCaseCreate: isCaseCreate, isOnSummaryPage: props.isOnSummaryPage })),
19
+ React.createElement(NewProductDropdownSelector, { products: props.products, onProductChange: props.onProductChange, isNextBtnClickedToShowValidationError: isNextBtnClickedToShowValidationError, isCaseCreate: isCaseCreate, isOnSummaryPage: props.isOnSummaryPage, isLoading: props.isLoading })),
20
20
  React.createElement("div", { className: "version-selector-wrapper" },
21
21
  React.createElement("label", { htmlFor: "version-selector-dropdown-toggle" },
22
22
  React.createElement(Trans, null, "Version"),
@@ -122,7 +122,7 @@ export function AsideResults(props) {
122
122
  useEffect(() => {
123
123
  if (isSelectedAccounntSecureSupport)
124
124
  return;
125
- createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.RECOMMENDATIONS_ASIDE, getSessResFromRecs(recommendationState.sideRecommendation, SessionResourceVisibility.PRESENTED), JSON.stringify(payload));
125
+ createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.RECOMMENDATIONS_ASIDE, getSessResFromRecs(recommendationState.sideRecommendation, SessionResourceVisibility.PRESENTED), typeof payload === 'string' ? payload : JSON.stringify(payload));
126
126
  // eslint-disable-next-line react-hooks/exhaustive-deps
127
127
  }, [recommendationState.sideRecommendation, activeSessionId, activeSection]);
128
128
  const isIdea = caseType === PreviousCaseTypes.FEATURE_ENHANCEMENT;
@@ -1 +1 @@
1
- {"version":3,"file":"EARuleWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/Recommendations/EARules/EARuleWidget.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAWrD,wBAAgB,YAAY,sBAqD3B"}
1
+ {"version":3,"file":"EARuleWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/Recommendations/EARules/EARuleWidget.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAWrD,wBAAgB,YAAY,sBAmD3B"}
@@ -14,11 +14,10 @@ export function EARuleWidget() {
14
14
  const { rulesState: { isEARuleWidgetVisible, EARules }, } = useContext(RulesStateContext);
15
15
  const { sessionRestore: { activeSessionId, sessionResourceTracking }, } = useContext(SessionRestoreStateContext);
16
16
  const sessionRestoreDispatch = useContext(SessionRestoreDispatchContext);
17
- const { product, version, summary, issue } = useCaseSelector((state) => ({
17
+ const { product, version, summary } = useCaseSelector((state) => ({
18
18
  product: state.caseDetails.product,
19
19
  version: state.caseDetails.version,
20
20
  summary: state.caseDetails.summary,
21
- issue: state.caseDetails.issue,
22
21
  }), isEqual);
23
22
  const validEARules = filter(EARules.rules, (r) => r.visible && r.rule_sub_type !== 'attachment');
24
23
  useEffect(() => {
@@ -28,10 +27,10 @@ export function EARuleWidget() {
28
27
  if (visibleValidEARules &&
29
28
  differenceBy([visibleValidEARules === null || visibleValidEARules === void 0 ? void 0 : visibleValidEARules.rule_id], presentedIds).length > 0 &&
30
29
  !isEmpty(activeSessionId)) {
31
- !isEmpty(issue) &&
32
- createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.EDMOUND_ABOTT, [
33
- getSessResFromRules(visibleValidEARules.cta, SessionResourceVisibility.PRESENTED, 1, visibleValidEARules.rule_id),
34
- ], JSON.stringify({ product, version, summary, description: issue }));
30
+ createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.EDMOUND_ABOTT, [
31
+ getSessResFromRules(visibleValidEARules.cta, SessionResourceVisibility.PRESENTED, 1, visibleValidEARules.rule_id),
32
+ ], JSON.stringify({ product, version, summary }) // To trigger EA rules, we don't pass KT questions
33
+ );
35
34
  }
36
35
  // eslint-disable-next-line react-hooks/exhaustive-deps
37
36
  }, [validEARules, activeSessionId]);
@@ -1 +1 @@
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;AAelE,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,qBAoSpD"}
1
+ {"version":3,"file":"Recommendations.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/Recommendations.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAa,MAAM,kBAAkB,CAAC;AAelE,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,qBA0WpD"}
@@ -1,7 +1,8 @@
1
1
  import { pcm } from '@cee-eng/hydrajs';
2
- import { Label, Pagination, PaginationVariant, Spinner } from '@patternfly/react-core';
2
+ import { Label, Pagination, PaginationVariant, Popover, Spinner } from '@patternfly/react-core';
3
3
  import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
4
- import { useDebounce, usePrevious } from '@rh-support/components';
4
+ import StarIcon from '@patternfly/react-icons/dist/js/icons/star-icon';
5
+ import { LoadingDots, useDebounce, usePrevious } from '@rh-support/components';
5
6
  import { useGlobalStateContext } from '@rh-support/react-context';
6
7
  import { computeRecommendationAbstract, computeRecommendationTitle, dtmTrackEventCaseStartStopped, formatDate, } from '@rh-support/utils';
7
8
  import differenceBy from 'lodash/differenceBy';
@@ -26,13 +27,14 @@ import { WatsonxAiIcon } from './WatsonxAiIcon';
26
27
  const { SessionResourceSource, SessionResourceVisibility } = pcm.preCase.session;
27
28
  export default function Recommendations(props) {
28
29
  var _a, _b, _c;
29
- const { product, version, environment, summary, caseResourceLinks, issue } = useCaseSelector((state) => ({
30
+ const { product, version, environment, summary, caseResourceLinks, issue, enableGetSupportProductVersion } = useCaseSelector((state) => ({
30
31
  product: state.caseDetails.product,
31
32
  version: state.caseDetails.version,
32
33
  environment: state.caseDetails.environment,
33
34
  summary: state.caseDetails.summary,
34
35
  issue: state.caseDetails.issue,
35
36
  caseResourceLinks: state.caseDetails.caseResourceLinks,
37
+ enableGetSupportProductVersion: state.enableGetSupportProductVersion,
36
38
  }), isEqual);
37
39
  const caseDispatch = useCaseDispatch();
38
40
  // Use Case Number
@@ -61,6 +63,9 @@ export default function Recommendations(props) {
61
63
  // currently due to the debounce we use after the page load leads to some delay in the disbaling of next button
62
64
  // since the state of the next button depends on the loading rec flag so we force the flag to be true every time the
63
65
  // rec section is rendered for the first time except the case when we won't make a new search since there was no change in the rec payload.
66
+ if (activeSection !== AppRouteSections.SUMMARIZE || !summary || isRecSearchPayloadSame) {
67
+ return;
68
+ }
64
69
  !isRecSearchPayloadSame &&
65
70
  recommendationDispatch({
66
71
  type: RecommendationsConstants.setIsLoadingRecommendations,
@@ -122,7 +127,7 @@ export default function Recommendations(props) {
122
127
  if (newRecommendations.length > 0) {
123
128
  setCaseRecommendations(caseDispatch, recommendationState.visibleDocs, caseResourceLinks);
124
129
  }
125
- createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.RECOMMENDATIONS, getSessResFromRecs(recommendationState.visibleDocs, SessionResourceVisibility.PRESENTED, pageSize || DEFAULTPAGESIZE, recommendationState.currentPage || 1), JSON.stringify(payload));
130
+ createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.RECOMMENDATIONS, getSessResFromRecs(recommendationState.visibleDocs, SessionResourceVisibility.PRESENTED, pageSize || DEFAULTPAGESIZE, recommendationState.currentPage || 1), typeof payload === 'string' ? payload : JSON.stringify(payload));
126
131
  // eslint-disable-next-line react-hooks/exhaustive-deps
127
132
  }, [caseDispatch, recommendationState.visibleDocs, activeSessionId]);
128
133
  useEffect(() => {
@@ -149,30 +154,55 @@ export default function Recommendations(props) {
149
154
  const onResourceClick = (doc, index) => (event) => {
150
155
  createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.RECOMMENDATIONS, [
151
156
  getSessResFromRec(doc, SessionResourceVisibility.VISITED, index + 1 + (pageSize || DEFAULTPAGESIZE) * ((recommendationState.currentPage || 1) - 1)),
152
- ], JSON.stringify(payload));
157
+ ], typeof payload === 'string' ? payload : JSON.stringify(payload));
153
158
  dtmTrackEventCaseStartStopped('recommendation click', caseNumber, `${product}|${version}`);
154
159
  };
160
+ const infoPopover = (React.createElement(Popover, { triggerAction: "hover", "aria-label": "Hoverable popover", headerContent: React.createElement("div", null,
161
+ React.createElement(Trans, null, "Powered by Openshift AI")), bodyContent: React.createElement("div", null,
162
+ React.createElement(Trans, null, "These articles have been selected based on the information provided."),
163
+ React.createElement("br", null),
164
+ React.createElement("a", { href: "#" }, "Learn more")) },
165
+ React.createElement(InfoCircleIcon, { color: "white" })));
166
+ function getRankPercentage(decimal) {
167
+ return Math.round(decimal * 100);
168
+ }
169
+ const computeLabel = (doc) => {
170
+ const percentage = getRankPercentage(doc.rerank_score);
171
+ return (React.createElement(React.Fragment, null,
172
+ percentage > 80 && (React.createElement(Label, { color: "green", className: "match-label", icon: React.createElement(StarIcon, null) }, "Best Match")),
173
+ React.createElement(Label, { className: "match-label", color: "purple" },
174
+ percentage,
175
+ "% Match")));
176
+ };
155
177
  return (React.createElement(React.Fragment, null,
156
- React.createElement("div", { className: "recommendation-list pf-v5-u-pt-md", ref: props.resultsRowRef },
157
- (recommendationState.visibleDocs.length !== 0 || recommendationState.isLoadingRecommendations) && (React.createElement(Label, { id: "DeepPurpleColorAILabel", className: "pf-v5-u-mb-md" },
158
- recommendationState.isLoadingRecommendations ? (React.createElement(React.Fragment, null,
178
+ !enableGetSupportProductVersion && (React.createElement(LoadingDots, { className: "recommendation-loading-dots", show: recommendationState.isLoadingRecommendations && !isEmpty(summary) && !isEmpty(issue) })),
179
+ React.createElement("div", { className: "recommendation-list", ref: props.resultsRowRef },
180
+ enableGetSupportProductVersion
181
+ ? (recommendationState.visibleDocs.length !== 0 ||
182
+ recommendationState.isLoadingRecommendations) && (React.createElement(Label, { id: "DeepPurpleColorAILabel", className: "pf-v5-u-mb-md" }, recommendationState.isLoadingRecommendations ? (React.createElement(React.Fragment, null,
159
183
  React.createElement(Spinner, { size: "sm", className: "pf-v5-u-mr-xs" }),
184
+ ' ',
185
+ React.createElement(Trans, null, "Recommending articles using OpenShift AI"),
160
186
  ' ',
161
- React.createElement(Trans, null, "Recommending articles using OpenShift AI"))) : (React.createElement(React.Fragment, null,
187
+ React.createElement(InfoCircleIcon, { color: "white" }))) : (React.createElement(React.Fragment, null,
162
188
  React.createElement(WatsonxAiIcon, { fillColor: "#FFFFFF", className: "pf-v5-u-mr-xs" }),
163
- ' ',
164
- React.createElement(Trans, null, "Articles recommended by OpenShift AI"))),
165
- ' ',
166
- React.createElement(InfoCircleIcon, { color: "white" }))),
167
- recommendationState.isLoadingRecommendations ? ( // as much as it pains me to add these <br /> the pf docs has it this way
189
+ ' ',
190
+ React.createElement(Trans, null, "Articles recommended by OpenShift AI"),
191
+ " ",
192
+ infoPopover))))
193
+ : recommendationState.visibleDocs.length !== 0 && (React.createElement(Label, { color: "purple", className: "pf-v5-u-mb-md" },
194
+ React.createElement(WatsonxAiIcon, { fillColor: "#6753ac", className: "pf-v5-u-mr-xs" }),
195
+ React.createElement(Trans, null, "Live search results powered by OpenShift AI"))),
196
+ enableGetSupportProductVersion && recommendationState.isLoadingRecommendations ? ( // as much as it pains me to add these <br /> the pf docs has it this way
168
197
  React.createElement(RecommendationsLoader, null)) : (React.createElement("ul", { className: "list-flat" }, map(recommendationState.visibleDocs, (doc, i) => {
169
198
  var _a, _b;
170
199
  return (React.createElement("li", { className: "result", key: doc.id },
171
200
  React.createElement("header", { className: "result-header" },
172
201
  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) }),
173
202
  React.createElement("div", { className: "header-meta" },
203
+ enableGetSupportProductVersion && computeLabel(doc),
174
204
  doc.kcsState === 'verified' && (React.createElement(React.Fragment, null,
175
- React.createElement("span", { className: "status-verified" }, "verified"),
205
+ React.createElement("span", { className: "status-verified pf-v5-u-font-weight-bold pf-v5-u-success-color-100" }, "verified"),
176
206
  React.createElement("span", { className: "list-separator" }, "\u2013"))),
177
207
  React.createElement("span", { className: "meta" }, doc.documentKind),
178
208
  React.createElement("span", { className: "list-separator" }, "\u2013"),
@@ -1 +1 @@
1
- {"version":3,"file":"Review.d.ts","sourceRoot":"","sources":["../../../../src/components/Review/Review.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAsBlE,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AACD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,MAAM,qBA6E3C"}
1
+ {"version":3,"file":"Review.d.ts","sourceRoot":"","sources":["../../../../src/components/Review/Review.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAsBlE,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AACD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,MAAM,qBA8E3C"}
@@ -48,7 +48,7 @@ export default function Review(props) {
48
48
  React.createElement("form", { className: "review-form card card-light push-bottom" },
49
49
  React.createElement(AccountSelector, null),
50
50
  React.createElement(OwnerSelector, null),
51
- React.createElement(AllProductsSelector, { routeProps: props.routeProps, loadTCOnChange: true, showTCAfterButtonClicked: true, checkEntitledProduct: true }),
51
+ React.createElement(AllProductsSelector, { routeProps: props.routeProps, loadTCOnChange: true, showTCAfterButtonClicked: true, checkEntitledProduct: true, isOnReviewPage: true }),
52
52
  React.createElement(OpenShiftClusterId, null),
53
53
  React.createElement(Hostname, null),
54
54
  React.createElement(KtQuestions, { inlineEditable: true, hideSaveCancel: true }),
@@ -298,7 +298,7 @@ export function SessionRestore(props) {
298
298
  ], 1000);
299
299
  if (!sessionRestoreCardSections.includes(activeSection))
300
300
  return React.createElement(React.Fragment, null);
301
- return (React.createElement(React.Fragment, null,
301
+ return (React.createElement("div", { className: "pf-v5-u-mb-md pf-v5-u-mt-0" },
302
302
  ' ',
303
303
  React.createElement(SessionRestoreCard, { onRestore: restoreSession, previousSessions: previousSessions, onCardDismiss: onSessionRestoreCardDismiss }),
304
304
  React.createElement(RestoreLastSessionModal, { onRestore: restoreSession, errorSession: sessionRestore.sessionOfCaseCreationError })));
@@ -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;AAInE,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,gBAAgB;;;;;EAuM9D"}
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;AAInE,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,gBAAgB;;;;;EA+M9D"}
@@ -14,7 +14,7 @@ import { AppRouteSections } from '../../reducers/RouteConstNTypes';
14
14
  import { AttachmentStateContext } from './fileUpload/reducer/AttachmentReducerContext';
15
15
  export function useIsSectionValid(sectionName) {
16
16
  var _a, _b;
17
- const { caseState, caseType, product, version, contactSSOName, accountNumber, summary, hostname, contactInfo24x7, alternateId, selectedAccountDetails, issue, environment, timeFramesAndUrgency, periodicityOfIssue, } = useCaseSelector((state) => ({
17
+ const { caseState, caseType, product, version, contactSSOName, accountNumber, summary, hostname, contactInfo24x7, alternateId, selectedAccountDetails, issue, environment, timeFramesAndUrgency, periodicityOfIssue, enableGetSupportProductVersion, } = useCaseSelector((state) => ({
18
18
  caseState: state,
19
19
  caseType: state.caseDetails.caseType,
20
20
  product: state.caseDetails.product,
@@ -30,6 +30,7 @@ export function useIsSectionValid(sectionName) {
30
30
  environment: state.caseDetails.environment,
31
31
  timeFramesAndUrgency: state.caseDetails.timeFramesAndUrgency,
32
32
  periodicityOfIssue: state.caseDetails.periodicityOfIssue,
33
+ enableGetSupportProductVersion: state.enableGetSupportProductVersion,
33
34
  }), isEqual);
34
35
  const { globalMetadataState: { allProducts, loggedInUserJwtToken }, } = useContext(GlobalMetadataStateContext);
35
36
  const { topContentState: { topContent }, } = useContext(TCStateContext);
@@ -49,22 +50,28 @@ export function useIsSectionValid(sectionName) {
49
50
  return !hasUnallowedFiles && !hasOversizeFiles; // we want it false to trigger the error if its true
50
51
  };
51
52
  const isGetSupportSectionValidLocal = () => {
52
- return (!isEmpty(caseType) &&
53
+ let isValid = !isEmpty(caseType) &&
53
54
  !isEmpty(accountNumber) &&
54
55
  !isEmpty(contactSSOName) &&
55
- !selectedAccountDetails.data.subscriptionAbuse);
56
+ !selectedAccountDetails.data.subscriptionAbuse;
57
+ if (enableGetSupportProductVersion) {
58
+ isValid = isValid && !isEmpty(product) && !isEmpty(version);
59
+ }
60
+ return isValid;
56
61
  };
57
62
  const isSummarizeSectionValid = () => {
58
- return (!isEmpty(product) &&
59
- !isEmpty(version) &&
60
- !allProducts.isFetching &&
63
+ let isValid = !allProducts.isFetching &&
61
64
  !allProducts.isError &&
62
65
  !topContent.isFetching &&
63
66
  !isEmpty(summary) &&
64
67
  !isEmpty(issue) &&
65
68
  !recommendationState.isLoadingRecommendations &&
66
69
  (summary === null || summary === void 0 ? void 0 : summary.length) <= TITLE_SUMMARY_LENGTH_LIMIT &&
67
- (issue === null || issue === void 0 ? void 0 : issue.length) <= ISSUE_SUMMARY_LENGTH_LIMIT);
70
+ (issue === null || issue === void 0 ? void 0 : issue.length) <= ISSUE_SUMMARY_LENGTH_LIMIT;
71
+ if (!enableGetSupportProductVersion) {
72
+ isValid = isValid && !isEmpty(product) && !isEmpty(version);
73
+ }
74
+ return isValid;
68
75
  };
69
76
  const isCaseManagementSectionValid = () => {
70
77
  const hasContactInfo24x7ValidLength = contactInfo24x7
@@ -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,EAKlB,MAAM,iCAAiC,CAAC;AAUzC,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,2BAA2B,EAAE,OAAO,CAAC;CACxC;AAGD,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,qBAyDjC;kBAzDQ,WAAW;;;AA2DpB,eAAe,WAAW,CAAC"}
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,EAIlB,MAAM,iCAAiC,CAAC;AASzC,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,2BAA2B,EAAE,OAAO,CAAC;CACxC;AAGD,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,qBAwDjC;kBAxDQ,WAAW;;;AA0DpB,eAAe,WAAW,CAAC"}
@@ -5,23 +5,23 @@ 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, showRecommendationTipsSections, showSideBarClusterIdRuleWidgetSections, showSideBarEARuleWidgetSections, showSideBarFileRecommendationSections, } from '../../reducers/RouteConstNTypes';
8
+ import { AppRouteSections, hideFileUploadSidebarWidgetSections, showSideBarClusterIdRuleWidgetSections, showSideBarEARuleWidgetSections, 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';
12
12
  import ClusterRecommendations from '../Recommendations/ClusterRecommendations';
13
13
  import { EARuleWidget } from '../Recommendations/EARules/EARuleWidget';
14
14
  import InsightsResults from '../Recommendations/InsightsResults';
15
- import { RecommendationInfoBox } from '../Recommendations/RecommendationInfoBox';
16
15
  import { SessionRestore } from '../SessionRestore';
17
16
  const defaultProps = {};
18
17
  function WizardAside(props) {
19
18
  const { routeState: { activeSection }, } = useContext(RouteContext);
20
19
  const canAddAttachments = ability.can(resourceActions.PATCH, resources.CASE_CREATE, CaseListFields.ATTACHMENTS);
21
- const { isCreatingCase, caseType, isCveModalOpened } = useCaseSelector((state) => ({
20
+ const { isCreatingCase, caseType, isCveModalOpened, enableGetSupportProductVersion } = useCaseSelector((state) => ({
22
21
  isCreatingCase: state.isCreatingCase,
23
22
  caseType: state.caseDetails.caseType,
24
23
  isCveModalOpened: state.isCveModalOpened,
24
+ enableGetSupportProductVersion: state.enableGetSupportProductVersion,
25
25
  }), isEqual);
26
26
  const isIdea = caseType === PreviousCaseTypes.FEATURE_ENHANCEMENT;
27
27
  const canUseSessionManagement = ability.can(resourceActions.CREATE, resources.SESSION_TRACKING);
@@ -29,22 +29,20 @@ function WizardAside(props) {
29
29
  !props.isAttachmentUploadModalOpen &&
30
30
  !isUndefined(activeSection) &&
31
31
  !hideFileUploadSidebarWidgetSections.includes(activeSection);
32
- const canshowEARuleWidget = showSideBarEARuleWidgetSections.includes(activeSection);
32
+ const canShowEARuleWidget = showSideBarEARuleWidgetSections.includes(activeSection);
33
33
  const canShowClusterIdReportWidget = showSideBarClusterIdRuleWidgetSections.includes(activeSection);
34
34
  const canShowFileRecommendationSectionsWidget = showSideBarFileRecommendationSections.includes(activeSection);
35
- const canShowRecommendationTips = showRecommendationTipsSections.includes(activeSection) && !isIdea;
36
35
  return (React.createElement("aside", null,
37
36
  React.createElement("section", { className: "grid-aside-content" },
37
+ canUseSessionManagement && !isCreatingCase && activeSection !== AppRouteSections.SUBMIT_CASE && (React.createElement(SessionRestore, { routeProps: props.routeProps })),
38
38
  canShowFileUploadWidget() && React.createElement(InsightsResults, null),
39
39
  canShowFileUploadWidget() && React.createElement(FileDiag, { className: "pf-v5-u-mb-md" }),
40
40
  activeSection === AppRouteSections.SUMMARIZE && !isCveModalOpened && React.createElement(CveSidebar, null),
41
41
  activeSection === AppRouteSections.TROUBLESHOOT && React.createElement(CveSidebar, null),
42
- canshowEARuleWidget && activeSection !== AppRouteSections.GET_SUPPORT && React.createElement(EARuleWidget, null),
42
+ enableGetSupportProductVersion && canShowEARuleWidget && React.createElement(EARuleWidget, null),
43
43
  !(isIdea && activeSection === 'submit-case') && (React.createElement(AsideResults, { routeProps: props.routeProps, className: "pf-v5-u-mb-md pf-v5-u-mt-0" })),
44
44
  canShowFileRecommendationSectionsWidget && React.createElement(InsightsResults, { isDisplayOnMain: true }),
45
- React.createElement(ClusterRecommendations, { showClusterRecommendationsList: canShowClusterIdReportWidget, className: "pf-v5-u-mb-md pf-v5-u-mt-0" }),
46
- canUseSessionManagement && !isCreatingCase && activeSection !== AppRouteSections.SUBMIT_CASE && (React.createElement(SessionRestore, { routeProps: props.routeProps })),
47
- canShowRecommendationTips && React.createElement(RecommendationInfoBox, null))));
45
+ React.createElement(ClusterRecommendations, { showClusterRecommendationsList: canShowClusterIdReportWidget, className: "pf-v5-u-mb-md pf-v5-u-mt-0" }))));
48
46
  }
49
47
  WizardAside.defaultProps = defaultProps;
50
48
  export default WizardAside;
@@ -188,3 +188,9 @@
188
188
  .top-recommendations .card-body .file-results-aside .result .btn-incident-info {
189
189
  font-size: 12px;
190
190
  }
191
+
192
+ .match-label {
193
+ height: 1.25rem;
194
+ margin: 0 0.5rem 0.25rem 0 !important;
195
+ font-weight: 200 !important;
196
+ }
@@ -1 +1 @@
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;iCAgQb,OAAO;EAwC7C"}
1
+ {"version":3,"file":"useWizard.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWizard.tsx"],"names":[],"mappings":"AAmCA,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;iCAmRb,OAAO;EAwC7C"}
@@ -1,9 +1,13 @@
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';
2
4
  import { PreviousCaseTypes } from '@rh-support/utils';
3
5
  import isEmpty from 'lodash/isEmpty';
4
6
  import isEqual from 'lodash/isEqual';
5
7
  import React, { Suspense, useContext } from 'react';
6
8
  import { Trans, useTranslation } from 'react-i18next';
9
+ import { AccountSelector } from '../components/AccountInfo/AccountSelector';
10
+ import { OwnerSelector } from '../components/AccountInfo/OwnerSelector';
7
11
  import CaseInformation from '../components/CaseInformation/CaseInformation';
8
12
  import CaseManagement from '../components/CaseManagement/CaseManagement';
9
13
  import IdeaInformation from '../components/IdeaInformation/IdeaInformation';
@@ -52,16 +56,20 @@ export function useWizard(routeProps, props) {
52
56
  let summarizeNextButtonLabelLogic = () => {
53
57
  return props.userScrolledLabel;
54
58
  };
59
+ const canChangeAccountInfo = ability.can(resourceActions.PATCH, resources.CASE_CREATE, CaseListFields.ACCOUNT_AND_OWNER);
55
60
  // components that are used in wizard steps
56
61
  const appRouteConfugurations = {
57
62
  [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.') },
58
63
  React.createElement(Suspense, { fallback: React.createElement(LoadingIndicator, { size: "sm" }) },
59
64
  alertMessage(),
60
- React.createElement(OpenCase, { routeProps: routeProps })))), canJumpTo: isSectionValidFn(AppRouteSections.GET_SUPPORT) || activeSection === AppRouteSections.GET_SUPPORT }),
65
+ React.createElement(OpenCase, { routeProps: routeProps, userSeenRecommendations: props.userSeenRecommendationsfn, userClickedNextonRecommendations: props.userClickedNextonRecommendationsValue, resultsRowRef: props.resultsRowRef })))), canJumpTo: isSectionValidFn(AppRouteSections.GET_SUPPORT) || activeSection === AppRouteSections.GET_SUPPORT }),
61
66
  [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?') },
62
67
  React.createElement(Suspense, { fallback: React.createElement(LoadingIndicator, { size: "sm" }) },
63
68
  alertMessage(),
64
- React.createElement(ProductSelector, { routeProps: routeProps, userSeenRecommendations: props.userSeenRecommendationsfn, userClickedNextonRecommendations: props.userClickedNextonRecommendationsValue, resultsRowRef: props.resultsRowRef })))), canJumpTo: isSectionValidFn(AppRouteSections.SUMMARIZE) || activeSection === AppRouteSections.SUMMARIZE, nextButtonLabel: (summarizeNextButtonLabelLogic() || ((props === null || props === void 0 ? void 0 : props.userSeenRecommendationsValue) && numFound < 3)) &&
69
+ canChangeAccountInfo && !isCaseCreate && (React.createElement(React.Fragment, null,
70
+ React.createElement(AccountSelector, { "data-tracking-id": "get-support-account-selector" }),
71
+ React.createElement(OwnerSelector, { "data-tracking-id": "get-support-owner-selector" }))),
72
+ 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
73
  !isEmpty(issue) // do this so that when user refreshes tab and state persists we don't cause edge 'continue' render
66
74
  ? t('Continue')
67
75
  : t('See more options') }),
@@ -180,6 +180,7 @@ export declare enum CaseReducerConstants {
180
180
  }
181
181
  export declare const initialCaseState: ICaseState;
182
182
  export interface ICaseState {
183
+ enableGetSupportProductVersion?: boolean;
183
184
  caseDetailsStrata: IApiResponseDetails<Partial<ICaseDetails>>;
184
185
  caseDetails: Partial<ICasePayload>;
185
186
  customerEscalation: boolean;
@@ -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,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAC9C,eAAO,MAAM,0BAA0B,QAAQ,CAAC;AAEhD,eAAO,MAAM,oBAAoB,MAAM,CAAC;AAExC,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC,eAAO,MAAM,gCAAgC,QAAQ,CAAC;AAEtD,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CAC9B;AAED,MAAM,WAAW,sBAAuB,SAAQ,UAAU;CAAG;AAC7D,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,oBAAoB,EAAE,sBAAsB,CAAC,CAAC;AACpF,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;AAEhE,eAAO,MAAM,qCAAqC,+CAA+C,CAAC;AAClG,eAAO,MAAM,yCAAyC,+CAA+C,CAAC"}
@@ -130,6 +130,7 @@ export var CaseReducerConstants;
130
130
  CaseReducerConstants["updateComments"] = "updateComments";
131
131
  })(CaseReducerConstants || (CaseReducerConstants = {}));
132
132
  export const initialCaseState = {
133
+ enableGetSupportProductVersion: true,
133
134
  isCreatingCase: false,
134
135
  caseCreationError: false,
135
136
  caseCreationErrorMessage: '',
@@ -50,5 +50,4 @@ export declare const showSideBarClusterIdRuleWidgetSections: AppRouteSections[];
50
50
  export declare const showSideBarFileRecommendationSections: AppRouteSections[];
51
51
  export declare const hideSideBarClusterIdRuleToast: AppRouteSections[];
52
52
  export declare const hiddengetSupportSections: AppRouteSections[];
53
- export declare const showRecommendationTipsSections: AppRouteSections[];
54
53
  //# sourceMappingURL=RouteConstNTypes.d.ts.map
@@ -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,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB,CAAC,EAAE,MAAM,GAAG,MAAM,CAA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,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,sCAAsC,oBAAyD,CAAC;AAE7G,eAAO,MAAM,qCAAqC,oBAAgE,CAAC;AAEnH,eAAO,MAAM,6BAA6B,oBAAiC,CAAC;AAE5E,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,EAKtD,CAAC"}
@@ -78,4 +78,3 @@ export const hiddengetSupportSections = [
78
78
  AppRouteSections.MANAGEMENT,
79
79
  AppRouteSections.REVIEW,
80
80
  ];
81
- export const showRecommendationTipsSections = [AppRouteSections.SUMMARIZE];
@@ -1 +1 @@
1
- {"version":3,"file":"SessionRestoreReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/SessionRestoreReducer.ts"],"names":[],"mappings":"AACA,OAAO,EACH,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,IAAI,sBAAsB,EAC/C,yBAAyB,IAAI,0BAA0B,EAC1D,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,O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EAAE,gBAAgB,EAAE,iBA+DhC;AAED,eAAO,MAAM,oBAAoB,eACjB,eAAe,oBACT,0BAA0B,SACtC,MAAM,KACb,gBAAgB,EAIlB,CAAC;AAEF,eAAO,MAAM,YAAY,OACjB,WAAW,oBACG,0BAA0B,SACtC,MAAM,KACb,gBAMD,CAAC;AAEH,wBAAgB,kBAAkB,CAC9B,IAAI,EAAE,mBAAmB,EAAE,EAC3B,gBAAgB,EAAE,0BAA0B,EAC5C,QAAQ,GAAE,MAAU,EACpB,WAAW,GAAE,MAAU,GACxB,gBAAgB,EAAE,CAMpB;AAGD,eAAO,MAAM,iBAAiB,QACrB,mBAAmB,oBACN,0BAA0B,SACtC,MAAM,KACb,gBAOD,CAAC;AAEH,eAAO,MAAM,mBAAmB,QACvB,MAAM,oBACO,0BAA0B,SACtC,MAAM,6BAEb,gBAMD,CAAC;AAEH,eAAO,MAAM,cAAc,gFAY1B,CAAC;AAEF,eAAO,MAAM,qBAAqB,gFAYjC,CAAC;AAGF,eAAO,MAAM,gBAAgB,QACpB,MAAM,oBACO,0BAA0B,SACtC,MAAM,6BAEb,gBAMD,CAAC;AAIH,eAAO,MAAM,YAAY,eACT,mBAAmB,mBACd,mBAAmB,EAAE,YAC7B,mBAAmB,EAAE,uBAWjC,CAAC"}
@@ -390,7 +390,7 @@ export function getSessResFromRecs(recs, visibilityStatus, pageSize = 1, current
390
390
  return toReturn;
391
391
  }
392
392
  // Recommendations Helper Function
393
- export const getSessResFromRec = (rec, visibilityStatus, rank = 1) => (Object.assign(Object.assign({ visibilityStatus }, (rec.id && { resourceEntityId: rec.id })), { type: getResTypeFromUrl(rec.view_uri), url: rec.view_uri, rank }));
393
+ export const getSessResFromRec = (rec, visibilityStatus, rank = 1) => (Object.assign(Object.assign({ visibilityStatus }, (rec.id && { resourceEntityId: rec.id })), { type: getResTypeFromUrl(rec.view_uri), url: rec.view_uri, rank, reRankScore: rec.rerank_score }));
394
394
  export const getSessResFromRules = (url, visibilityStatus, rank = 1, resourceEntityId) => (Object.assign(Object.assign({ visibilityStatus }, (resourceEntityId && { resourceEntityId })), { type: getResTypeFromUrl(url), url: url, rank }));
395
395
  export const getRulesToSave = (visiterUrl, visitedRec, allPresentedRec) => {
396
396
  return map(allPresentedRec, (rec, i) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "2.4.5-beta.6",
3
+ "version": "2.4.5-beta.8",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -134,5 +134,5 @@
134
134
  "defaults and supports es6-module",
135
135
  "maintained node versions"
136
136
  ],
137
- "gitHead": "c99f48787b265fddb0705d68884d40ede39c196d"
137
+ "gitHead": "d867a78014ee4a08aa8d7bf9e0dc9bd08ce6ac5a"
138
138
  }