@rh-support/troubleshoot 2.6.270 → 2.6.273

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 (166) hide show
  1. package/lib/esm/components/AccountInfo/AccountSelector.d.ts.map +1 -1
  2. package/lib/esm/components/AccountInfo/AccountSelector.js +28 -40
  3. package/lib/esm/components/AccountInfo/css/accountSelector.css +3 -2
  4. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.d.ts.map +1 -1
  5. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.js +5 -2
  6. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
  7. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +3 -1
  8. package/lib/esm/components/CaseEditView/Case.d.ts.map +1 -1
  9. package/lib/esm/components/CaseEditView/Case.js +9 -5
  10. package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.d.ts.map +1 -1
  11. package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.js +1 -1
  12. package/lib/esm/components/CaseEditView/CaseOverview/CaseType.d.ts.map +1 -1
  13. package/lib/esm/components/CaseEditView/CaseOverview/CaseType.js +2 -4
  14. package/lib/esm/components/CaseEditView/CaseOverview/index.d.ts.map +1 -1
  15. package/lib/esm/components/CaseEditView/CaseOverview/index.js +8 -6
  16. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
  17. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +38 -34
  18. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.d.ts.map +1 -1
  19. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.js +2 -4
  20. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftPopover.js +1 -1
  21. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
  22. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +21 -59
  23. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts.map +1 -1
  24. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +1 -0
  25. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts.map +1 -1
  26. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +2 -1
  27. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.d.ts.map +1 -1
  28. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.js +6 -5
  29. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.d.ts +0 -1
  30. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.d.ts.map +1 -1
  31. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.js +0 -1
  32. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.css +13 -33
  33. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts.map +1 -1
  34. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.js +1 -1
  35. package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.d.ts.map +1 -1
  36. package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.js +5 -4
  37. package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummaryErrorMessage.js +1 -1
  38. package/lib/esm/components/CaseEditView/Tabs/RelatedTasks/RelatedTasks.js +1 -1
  39. package/lib/esm/components/CaseInformation/CaseGroup.d.ts.map +1 -1
  40. package/lib/esm/components/CaseInformation/CaseGroup.js +11 -1
  41. package/lib/esm/components/CaseInformation/CaseInformation.d.ts.map +1 -1
  42. package/lib/esm/components/CaseInformation/CaseInformation.js +11 -9
  43. package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts.map +1 -1
  44. package/lib/esm/components/CaseInformation/ContactPhoneNumber.js +37 -24
  45. package/lib/esm/components/CaseInformation/Description.d.ts.map +1 -1
  46. package/lib/esm/components/CaseInformation/Description.js +17 -1
  47. package/lib/esm/components/CaseInformation/Severity.d.ts.map +1 -1
  48. package/lib/esm/components/CaseInformation/Severity.js +1 -1
  49. package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
  50. package/lib/esm/components/CaseInformation/SupportLevel.js +33 -56
  51. package/lib/esm/components/CaseManagement/CaseLanguageSelector.js +2 -2
  52. package/lib/esm/components/CaseManagement/CaseManagement.d.ts.map +1 -1
  53. package/lib/esm/components/CaseManagement/CaseManagement.js +4 -7
  54. package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.d.ts.map +1 -1
  55. package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.js +5 -4
  56. package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +1 -1
  57. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
  58. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +12 -6
  59. package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.d.ts.map +1 -1
  60. package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.js +2 -1
  61. package/lib/esm/components/Cve/CvePanel.d.ts.map +1 -1
  62. package/lib/esm/components/Cve/CvePanel.js +16 -8
  63. package/lib/esm/components/IdeaInformation/IdeaInformation.d.ts.map +1 -1
  64. package/lib/esm/components/IdeaInformation/IdeaInformation.js +14 -14
  65. package/lib/esm/components/OpenCase/SupportTypeSelectorPage.d.ts.map +1 -1
  66. package/lib/esm/components/OpenCase/SupportTypeSelectorPage.js +4 -2
  67. package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts +0 -1
  68. package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts.map +1 -1
  69. package/lib/esm/components/ProductSelector/AllProductsSelector.js +3 -14
  70. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
  71. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +14 -42
  72. package/lib/esm/components/ProductSelector/NewProductVersionSelector.d.ts.map +1 -1
  73. package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +19 -53
  74. package/lib/esm/components/ProductSelector/ProductSelector.d.ts.map +1 -1
  75. package/lib/esm/components/ProductSelector/ProductSelector.js +1 -3
  76. package/lib/esm/components/Recommendations/ClusterRecommendationItems.d.ts +2 -0
  77. package/lib/esm/components/Recommendations/ClusterRecommendationItems.d.ts.map +1 -1
  78. package/lib/esm/components/Recommendations/ClusterRecommendationItems.js +16 -13
  79. package/lib/esm/components/Recommendations/ClusterRecommendations.d.ts.map +1 -1
  80. package/lib/esm/components/Recommendations/ClusterRecommendations.js +1 -4
  81. package/lib/esm/components/Recommendations/EARules/EARule.d.ts.map +1 -1
  82. package/lib/esm/components/Recommendations/EARules/EARule.js +3 -1
  83. package/lib/esm/components/Recommendations/InsightsResults.d.ts.map +1 -1
  84. package/lib/esm/components/Recommendations/InsightsResults.js +4 -0
  85. package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.d.ts.map +1 -1
  86. package/lib/esm/components/Review/Review.d.ts.map +1 -1
  87. package/lib/esm/components/Review/Review.js +18 -11
  88. package/lib/esm/components/SessionRestore/SessionRestore.d.ts +2 -0
  89. package/lib/esm/components/SessionRestore/SessionRestore.d.ts.map +1 -1
  90. package/lib/esm/components/SessionRestore/SessionRestore.js +23 -4
  91. package/lib/esm/components/TroubleshootSection/AskRedHat.d.ts +3 -1
  92. package/lib/esm/components/TroubleshootSection/AskRedHat.d.ts.map +1 -1
  93. package/lib/esm/components/TroubleshootSection/AskRedHat.js +8 -10
  94. package/lib/esm/components/TroubleshootSection/ResponseActions.d.ts.map +1 -1
  95. package/lib/esm/components/TroubleshootSection/ResponseActions.js +5 -3
  96. package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +1 -1
  97. package/lib/esm/components/TroubleshootSection/UserFeedback.d.ts.map +1 -1
  98. package/lib/esm/components/TroubleshootSection/UserFeedback.js +10 -8
  99. package/lib/esm/components/TroubleshootSection/UserFeedbackComplete.d.ts.map +1 -1
  100. package/lib/esm/components/TroubleshootSection/UserFeedbackComplete.js +5 -1
  101. package/lib/esm/components/shared/fileUpload/WidgetFileUploader.d.ts.map +1 -1
  102. package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +2 -1
  103. package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
  104. package/lib/esm/components/shared/useIsSectionValid.js +55 -69
  105. package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.d.ts.map +1 -1
  106. package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.js +34 -9
  107. package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
  108. package/lib/esm/components/wizardLayout/WizardLayout.js +6 -7
  109. package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
  110. package/lib/esm/components/wizardLayout/WizardNavigation.js +10 -9
  111. package/lib/esm/constants/caseDetailsConstants.d.ts +10 -10
  112. package/lib/esm/constants/caseDetailsConstants.d.ts.map +1 -1
  113. package/lib/esm/constants/caseDetailsConstants.js +27 -11
  114. package/lib/esm/hooks/useARHResponse.d.ts.map +1 -1
  115. package/lib/esm/hooks/useARHResponse.js +4 -1
  116. package/lib/esm/hooks/useResetCaseCreate.d.ts.map +1 -1
  117. package/lib/esm/hooks/useResetCaseCreate.js +13 -11
  118. package/lib/esm/i18n/template-de.d.ts +6 -0
  119. package/lib/esm/i18n/template-de.d.ts.map +1 -1
  120. package/lib/esm/i18n/template-de.js +6 -0
  121. package/lib/esm/i18n/template-es.d.ts +6 -0
  122. package/lib/esm/i18n/template-es.d.ts.map +1 -1
  123. package/lib/esm/i18n/template-es.js +6 -0
  124. package/lib/esm/i18n/template-fr.d.ts +6 -0
  125. package/lib/esm/i18n/template-fr.d.ts.map +1 -1
  126. package/lib/esm/i18n/template-fr.js +6 -0
  127. package/lib/esm/i18n/template-it.d.ts +6 -0
  128. package/lib/esm/i18n/template-it.d.ts.map +1 -1
  129. package/lib/esm/i18n/template-it.js +6 -0
  130. package/lib/esm/i18n/template-jp.d.ts +6 -0
  131. package/lib/esm/i18n/template-jp.d.ts.map +1 -1
  132. package/lib/esm/i18n/template-jp.js +6 -0
  133. package/lib/esm/i18n/template-ko.d.ts +6 -0
  134. package/lib/esm/i18n/template-ko.d.ts.map +1 -1
  135. package/lib/esm/i18n/template-ko.js +6 -0
  136. package/lib/esm/i18n/template-pt.d.ts +6 -0
  137. package/lib/esm/i18n/template-pt.d.ts.map +1 -1
  138. package/lib/esm/i18n/template-pt.js +6 -0
  139. package/lib/esm/i18n/template-ru.d.ts +6 -0
  140. package/lib/esm/i18n/template-ru.d.ts.map +1 -1
  141. package/lib/esm/i18n/template-ru.js +6 -0
  142. package/lib/esm/i18n/template-zh.d.ts +6 -0
  143. package/lib/esm/i18n/template-zh.d.ts.map +1 -1
  144. package/lib/esm/i18n/template-zh.js +6 -0
  145. package/lib/esm/reducers/CaseConstNTypes.d.ts +23 -0
  146. package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
  147. package/lib/esm/reducers/CaseConstNTypes.js +9 -4
  148. package/lib/esm/reducers/CaseDiscussionTabReducer.js +1 -1
  149. package/lib/esm/reducers/CaseHelpers.d.ts +10 -7
  150. package/lib/esm/reducers/CaseHelpers.d.ts.map +1 -1
  151. package/lib/esm/reducers/CaseHelpers.js +58 -11
  152. package/lib/esm/reducers/CaseOverviewReducer.d.ts +3 -1
  153. package/lib/esm/reducers/CaseOverviewReducer.d.ts.map +1 -1
  154. package/lib/esm/reducers/CaseOverviewReducer.js +7 -5
  155. package/lib/esm/reducers/CaseReducer.d.ts +16 -5
  156. package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
  157. package/lib/esm/reducers/CaseReducer.js +96 -24
  158. package/lib/esm/reducers/RulesReducer.d.ts +11 -4
  159. package/lib/esm/reducers/RulesReducer.d.ts.map +1 -1
  160. package/lib/esm/reducers/RulesReducer.js +6 -1
  161. package/lib/esm/reducers/SessionRestoreReducer.d.ts.map +1 -1
  162. package/lib/esm/reducers/SessionRestoreReducer.js +7 -4
  163. package/lib/esm/reducers/TopContentReducer.js +1 -1
  164. package/lib/esm/scss/_pf-overrides.scss +28 -2
  165. package/package.json +8 -10
  166. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.css +0 -0
@@ -1,28 +1,30 @@
1
+ import { useApolloClient } from '@apollo/client/react';
1
2
  import { Grid, GridItem } from '@patternfly/react-core';
2
3
  import { AlertMessage, AlertType, LoadingIndicator } from '@rh-support/components';
3
4
  import { fetchCaseSeverities, fetchCaseTypes, fetchLanguageMetadata, GlobalMetadataDispatchContext, GlobalMetadataStateContext, } from '@rh-support/react-context';
4
- import { canManageCase, haventLoadedMetadata } from '@rh-support/utils';
5
+ import { haventLoadedMetadata } from '@rh-support/utils';
5
6
  import isEmpty from 'lodash/isEmpty';
6
7
  import isEqual from 'lodash/isEqual';
7
8
  import React, { useContext, useEffect } from 'react';
8
9
  import { Trans, useTranslation } from 'react-i18next';
9
10
  import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
10
11
  import { setCaseDetails } from '../../reducers/CaseReducer';
11
- import CaseGroup from '../CaseInformation/CaseGroup';
12
+ // import CaseGroup from '../CaseInformation/CaseGroup';
12
13
  import { ContactPhoneNumber } from '../CaseInformation/ContactPhoneNumber';
13
14
  import { ContactPhoneNumberAlert } from '../CaseInformation/ContactPhoneNumberAlert';
14
15
  import Severity from '../CaseInformation/Severity';
15
16
  import SupportLevel from '../CaseInformation/SupportLevel';
16
17
  import CaseLanguageSelector from '../CaseManagement/CaseLanguageSelector';
17
- import { Cep } from '../CaseManagement/Cep';
18
+ // import { Cep } from '../CaseManagement/Cep';
18
19
  import OpenReferenceNumber from '../CaseManagement/OpenReferenceNumber';
19
20
  import { RHAssociatesSelector } from '../CaseManagement/RHAssociatesSelector';
20
21
  import CaseContactSelector from '../CaseManagement/SendNotifications/CaseContactSelector';
21
22
  import KtQuestions from '../ImproveCase/KtQuestions';
22
23
  export default function IdeaInformation() {
23
24
  const { t } = useTranslation();
24
- const { globalMetadataState: { allCaseTypes, allCaseSeverities, caseLanguages, loggedInUser, loggedInUserJwtToken, loggedInUsersAccount, }, } = useContext(GlobalMetadataStateContext);
25
+ const { globalMetadataState: { allCaseTypes, allCaseSeverities, caseLanguages, loggedInUser, loggedInUserJwtToken, loggedInUsersAccount, loggedInUserRights, }, } = useContext(GlobalMetadataStateContext);
25
26
  const dispatchToGlobalMetadataReducer = useContext(GlobalMetadataDispatchContext);
27
+ const apolloClient = useApolloClient();
26
28
  const { contactSSOName, selectedAccountDetails, ownersCaseGroups, hasInvalidEntitlements } = useCaseSelector((state) => ({
27
29
  contactSSOName: state.caseDetails.contactSSOName,
28
30
  ownersCaseGroups: state.ownersCaseGroups,
@@ -48,13 +50,13 @@ export default function IdeaInformation() {
48
50
  }
49
51
  const allPromisses = [];
50
52
  if (haventLoadedMetadata(allCaseTypes)) {
51
- allPromisses.push(fetchCaseTypes(dispatchToGlobalMetadataReducer, loggedInUsersAccount.data.secureSupport));
53
+ allPromisses.push(fetchCaseTypes(dispatchToGlobalMetadataReducer, apolloClient));
52
54
  }
53
55
  if (haventLoadedMetadata(allCaseSeverities)) {
54
- allPromisses.push(fetchCaseSeverities(dispatchToGlobalMetadataReducer, loggedInUsersAccount.data.secureSupport));
56
+ allPromisses.push(fetchCaseSeverities(dispatchToGlobalMetadataReducer, apolloClient));
55
57
  }
56
58
  if (haventLoadedMetadata(caseLanguages)) {
57
- allPromisses.push(fetchLanguageMetadata(dispatchToGlobalMetadataReducer));
59
+ allPromisses.push(fetchLanguageMetadata(dispatchToGlobalMetadataReducer, apolloClient));
58
60
  }
59
61
  Promise.all(allPromisses);
60
62
  }, [
@@ -66,6 +68,7 @@ export default function IdeaInformation() {
66
68
  loggedInUserJwtToken,
67
69
  selectedAccountDetails,
68
70
  loggedInUsersAccount.data.secureSupport,
71
+ apolloClient,
69
72
  ]);
70
73
  const onSeverityChange = (payload) => {
71
74
  setCaseDetails(caseDispatch, payload);
@@ -73,7 +76,7 @@ export default function IdeaInformation() {
73
76
  return (React.createElement(React.Fragment, null,
74
77
  React.createElement(LoadingIndicator, { show: isMetadataLoading(), size: "lg" }),
75
78
  React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "pf-v6-u-mb-md", title: t("Sorry, we're having a problem gathering your information."), show: isMetadataLoadingError(), isInline: true }),
76
- React.createElement(AlertMessage, { show: !canManageCase(loggedInUserJwtToken), variant: AlertType.DANGER, className: "pf-v6-u-mb-md", isInline: true },
79
+ React.createElement(AlertMessage, { show: !loggedInUserRights.data.canManageCases(), variant: AlertType.DANGER, className: "pf-v6-u-mb-md", isInline: true },
77
80
  React.createElement(Trans, { i18nKey: "i18ManageCaseContactCustomerService" },
78
81
  "You need additional access to manage cases.\u00A0 Please contact",
79
82
  ' ',
@@ -88,7 +91,7 @@ export default function IdeaInformation() {
88
91
  !hasInvalidEntitlements &&
89
92
  !isMetadataLoading() &&
90
93
  !isMetadataLoadingError() &&
91
- canManageCase(loggedInUserJwtToken) && (React.createElement(React.Fragment, null,
94
+ loggedInUserRights.data.canManageCases() && (React.createElement(React.Fragment, null,
92
95
  React.createElement("form", null,
93
96
  React.createElement(KtQuestions, { onlyShowKT4: true }),
94
97
  React.createElement(SupportLevel, null),
@@ -100,11 +103,8 @@ export default function IdeaInformation() {
100
103
  React.createElement(ContactPhoneNumberAlert, null),
101
104
  React.createElement(Grid, { hasGutter: true },
102
105
  React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v6-u-mb-xs" },
103
- React.createElement(CaseLanguageSelector, { isManageStep: true })),
104
- React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v6-u-mb-xs" },
105
- React.createElement(CaseGroup, { init: true }))),
106
+ React.createElement(CaseLanguageSelector, { isManageStep: true }))),
106
107
  React.createElement(CaseContactSelector, null),
107
108
  React.createElement(RHAssociatesSelector, null),
108
- React.createElement(OpenReferenceNumber, { inlineEditable: false, hideSaveCancel: true }),
109
- React.createElement(Cep, null))))));
109
+ React.createElement(OpenReferenceNumber, { inlineEditable: false, hideSaveCancel: true }))))));
110
110
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SupportTypeSelectorPage.d.ts","sourceRoot":"","sources":["../../../../src/components/OpenCase/SupportTypeSelectorPage.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAiB/D,MAAM,CAAC,OAAO,UAAU,uBAAuB,sBAiM9C"}
1
+ {"version":3,"file":"SupportTypeSelectorPage.d.ts","sourceRoot":"","sources":["../../../../src/components/OpenCase/SupportTypeSelectorPage.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAiB/D,MAAM,CAAC,OAAO,UAAU,uBAAuB,sBAkM9C"}
@@ -1,3 +1,4 @@
1
+ import { useApolloClient } from '@apollo/client/react';
1
2
  import { Bullseye, Card, CardBody, Gallery, GalleryItem, Split, SplitItem } from '@patternfly/react-core';
2
3
  import { LoadingIndicator } from '@rh-support/components';
3
4
  import { fetchCaseTypes, useGlobalDispatchContext, useGlobalStateContext } from '@rh-support/react-context';
@@ -11,8 +12,9 @@ import { getUpdatedDescription } from '../../reducers/CaseHelpers';
11
12
  import { setCaseDetails } from '../../reducers/CaseReducer';
12
13
  import { BugIcon, CertificationIcon, CustomerServiceIcon, DocumentationIcon, GearIcon, IdeaIcon, RcaIcon, } from './SupportTypeIcons';
13
14
  export default function SupportTypeSelectorPage() {
14
- const { globalMetadataState: { allCaseTypes, loggedInUsersAccount }, } = useGlobalStateContext();
15
+ const { globalMetadataState: { allCaseTypes }, } = useGlobalStateContext();
15
16
  const globalDispatch = useGlobalDispatchContext();
17
+ const apolloClient = useApolloClient();
16
18
  const [selectedSupportType, setSelectedSupportType] = useState('');
17
19
  const { routeState: { isNextBtnClickedToShowValidationError }, } = useContext(RouteContext);
18
20
  const { caseType, isFetchingSelectedAccountDetails, issue, timeFramesAndUrgency, v3ClusterName } = useCaseSelector((state) => ({
@@ -27,7 +29,7 @@ export default function SupportTypeSelectorPage() {
27
29
  useEffect(() => {
28
30
  if (haventLoadedMetadata(allCaseTypes)) {
29
31
  // Load support types.
30
- fetchCaseTypes(globalDispatch, loggedInUsersAccount.data.secureSupport);
32
+ fetchCaseTypes(globalDispatch, apolloClient);
31
33
  }
32
34
  // eslint-disable-next-line react-hooks/exhaustive-deps
33
35
  }, []);
@@ -6,7 +6,6 @@ interface IProps {
6
6
  routeProps: RouteComponentProps<IRouteUrlParams>;
7
7
  loadTCOnChange?: boolean;
8
8
  showTCAfterButtonClicked?: boolean;
9
- checkEntitledProduct?: boolean;
10
9
  isOnSummaryPage?: boolean;
11
10
  isOnGetSupportPage?: boolean;
12
11
  isOnReviewPage?: boolean;
@@ -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,4EAsKvB,CAAC;AAGH,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"AllProductsSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/AllProductsSelector.tsx"],"names":[],"mappings":"AAIA,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,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAClC;AAOD;;;;;;;GAOG;AACH,QAAA,MAAM,mBAAmB,4EAoJvB,CAAC;AAGH,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1,8 +1,5 @@
1
1
  import { Modal, ModalBody, ModalFooter, ModalHeader, ModalVariant } from '@patternfly/react-core';
2
- import { AlertMessage, AlertType } from '@rh-support/components';
3
2
  import { GlobalMetadataStateContext } from '@rh-support/react-context';
4
- import filter from 'lodash/filter';
5
- import find from 'lodash/find';
6
3
  import isEmpty from 'lodash/isEmpty';
7
4
  import isEqual from 'lodash/isEqual';
8
5
  import React, { forwardRef, useContext, useEffect, useState } from 'react';
@@ -19,7 +16,6 @@ import { ProductVersionDropdownSelector } from './ProductVersionDropdownSelector
19
16
  const defaultProps = {
20
17
  loadTCOnChange: false,
21
18
  showTCAfterButtonClicked: false,
22
- checkEntitledProduct: false,
23
19
  };
24
20
  /**
25
21
  * Renders a dropdown list to select all products.
@@ -30,13 +26,11 @@ const defaultProps = {
30
26
  * @param props
31
27
  */
32
28
  const AllProductsSelector = forwardRef((props, ref) => {
33
- var _a, _b;
34
- const { globalMetadataState: { allProducts, loggedInUserRights }, } = useContext(GlobalMetadataStateContext);
29
+ const { globalMetadataState: { allProducts }, } = useContext(GlobalMetadataStateContext);
35
30
  const caseDispatch = useCaseDispatch();
36
- const { product, version, contactSSOName } = useCaseSelector((state) => ({
31
+ const { product, version } = useCaseSelector((state) => ({
37
32
  product: state.caseDetails.product,
38
33
  version: state.caseDetails.version,
39
- contactSSOName: state.caseDetails.contactSSOName,
40
34
  }), isEqual);
41
35
  const { topContentState: { topContent }, } = useContext(TCStateContext);
42
36
  const { routeState: { activeSection, isCaseCreate }, } = useContext(RouteContext);
@@ -45,7 +39,6 @@ const AllProductsSelector = forwardRef((props, ref) => {
45
39
  const [showModalButton, setShowModalButton] = useState(false);
46
40
  const [isProductChanged, setProductChanged] = useState(false);
47
41
  const { t } = useTranslation();
48
- const isEntitledProduct = (_b = find((_a = allProducts === null || allProducts === void 0 ? void 0 : allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult, (p) => p.product === product)) === null || _b === void 0 ? void 0 : _b.isEntitledProduct;
49
42
  useEffect(() => {
50
43
  // after TC data is loaded we open the modal
51
44
  const showTCPopUpModalOnProductChange = props.loadTCOnChange && !props.showTCAfterButtonClicked && showModal;
@@ -78,7 +71,6 @@ const AllProductsSelector = forwardRef((props, ref) => {
78
71
  };
79
72
  RouteUtils.updateQueryParams(props.routeProps, newParams);
80
73
  }
81
- const entitledProducts = filter(allProducts.data.productsResult, (p) => p.isEntitledProduct);
82
74
  const renderProductVersionDropdownSelector = (activeSection === (isCaseCreate ? AppRouteSections.SUMMARIZE : AppRouteSections.TROUBLESHOOT) &&
83
75
  !props.caseCreateExperience) ||
84
76
  activeSection === AppRouteSections.GET_SUPPORT ||
@@ -90,12 +82,9 @@ const AllProductsSelector = forwardRef((props, ref) => {
90
82
  return (React.createElement(React.Fragment, null,
91
83
  renderProductVersionDropdownSelector && (React.createElement("div", { className: "form-group product-selector-wrapper" },
92
84
  React.createElement("div", { className: "all-product-selector-dropdown" },
93
- 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 })))),
85
+ React.createElement(ProductVersionDropdownSelector, { isLoading: allProducts.isFetching, products: allProducts.data.productsResult, onProductChange: onProductChange, onVersionChange: onVersionChange, ref: ref, isOnSummaryPage: props.isOnSummaryPage, loadTCOnChange: props.loadTCOnChange, isFetching: topContent.isFetching })))),
94
86
  renderOpenCaseIssue && (React.createElement("div", { className: "case-details-summary" },
95
87
  React.createElement(OpenCaseIssue, { inlineEditable: false, required: true, isOnSummaryPage: props.isOnSummaryPage, isOnGetSupportPage: props.isOnGetSupportPage }))),
96
- React.createElement(AlertMessage, { isInline: true, variant: AlertType.DANGER, className: "pf-v6-u-mt-lg", title: t(`${loggedInUserRights.data.isSSOUsernameSameAsLoggedInUser(contactSSOName)
97
- ? 'You are'
98
- : 'Selected owner is'} not allowed to create case on this product.`), show: !allProducts.isFetching && props.checkEntitledProduct && !isEntitledProduct && !isEmpty(product) }),
99
88
  showModalButton &&
100
89
  !isEmpty(product) &&
101
90
  !isEmpty(version) &&
@@ -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;AAoBpE,OAAO,KAAkD,MAAM,OAAO,CAAC;AAUvE,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;AAED,eAAO,MAAM,0BAA0B,GAAI,OAAO,MAAM,sBA8MvD,CAAC;AAEF,eAAe,0BAA0B,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;AAiBpE,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,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;AAED,eAAO,MAAM,0BAA0B,GAAI,OAAO,MAAM,sBA+JvD,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -1,21 +1,15 @@
1
- import { Button, Divider, MenuToggle, Select, SelectGroup, SelectList, SelectOption, Spinner, TextInputGroup, TextInputGroupMain, TextInputGroupUtilities, } from '@patternfly/react-core';
1
+ import { Button, MenuToggle, Select, SelectList, SelectOption, Spinner, TextInputGroup, TextInputGroupMain, TextInputGroupUtilities, } from '@patternfly/react-core';
2
2
  import TimesIcon from '@patternfly/react-icons/dist/js/icons/times-icon';
3
3
  import { useSelectKeyboardNavigator } from '@rh-support/components';
4
- import { GlobalMetadataStateContext } from '@rh-support/react-context';
5
4
  import isEmpty from 'lodash/isEmpty';
6
5
  import isEqual from 'lodash/isEqual';
7
- import React, { useContext, useEffect, useRef, useState } from 'react';
8
- import { Trans, useTranslation } from 'react-i18next';
6
+ import React, { useEffect, useRef, useState } from 'react';
7
+ import { useTranslation } from 'react-i18next';
9
8
  import { useCaseSelector } from '../../context/CaseContext';
10
- const isProductSupportedForCustomer = (productName, productResults) => {
11
- const foundItem = productResults.filter((item) => item.name === productName)[0];
12
- return foundItem ? foundItem.supportedForCustomer : false;
13
- };
14
9
  export const NewProductDropdownSelector = (props) => {
15
10
  const { t } = useTranslation();
16
11
  const [isOpen, setIsOpen] = useState(false);
17
12
  const [showValidationLocal, setShowValidationLocal] = useState(props.isNextBtnClickedToShowValidationError);
18
- const [isSelectedProductSupportedForCustomer, setIsSelectedProductSupportedForCustomer] = useState(true);
19
13
  const [filteredProducts, setFilteredProducts] = useState(props.products);
20
14
  const [shouldFilter, setShouldFilter] = useState(false);
21
15
  const textInputRef = useRef();
@@ -23,7 +17,6 @@ export const NewProductDropdownSelector = (props) => {
23
17
  product: state.caseDetails.product,
24
18
  }), isEqual);
25
19
  const [inputValue, setInputValue] = useState('');
26
- const { globalMetadataState: { allProducts }, } = useContext(GlobalMetadataStateContext);
27
20
  useEffect(() => {
28
21
  setShowValidationLocal(props.isNextBtnClickedToShowValidationError);
29
22
  }, [props.isNextBtnClickedToShowValidationError]);
@@ -33,33 +26,22 @@ export const NewProductDropdownSelector = (props) => {
33
26
  }
34
27
  // eslint-disable-next-line react-hooks/exhaustive-deps
35
28
  }, [product]);
36
- // Update filtered products whenever input changes
37
29
  useEffect(() => {
38
- const productsToFilter = props.isCaseCreate ? props.products : allProducts.data.productsResult;
39
30
  if (!isEmpty(inputValue === null || inputValue === void 0 ? void 0 : inputValue.trim())) {
40
- const filtered = productsToFilter.filter((p) => { var _a; return (_a = p.name) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(inputValue.toLowerCase()); });
31
+ const filtered = props.products.filter((p) => { var _a; return (_a = p.name) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(inputValue.toLowerCase()); });
41
32
  setFilteredProducts(filtered);
42
33
  }
43
34
  else {
44
- setFilteredProducts(productsToFilter);
35
+ setFilteredProducts(props.products);
45
36
  }
46
- }, [inputValue, props.products, props.isCaseCreate, allProducts.data.productsResult]);
47
- useEffect(() => {
48
- product &&
49
- props.isOnSummaryPage &&
50
- setIsSelectedProductSupportedForCustomer(isProductSupportedForCustomer(product, allProducts.data.productsResult));
51
- }, [allProducts.data.productsResult, product, props.isOnSummaryPage]);
37
+ }, [inputValue, props.products]);
52
38
  const onToggleClick = () => {
53
39
  var _a;
54
40
  setIsOpen(!isOpen);
55
41
  (_a = textInputRef === null || textInputRef === void 0 ? void 0 : textInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
56
42
  };
57
43
  const onSelect = (selection) => {
58
- if (isEqual(selection.name, inputValue)) {
59
- props.onProductChange('');
60
- setInputValue('');
61
- }
62
- else {
44
+ if (!isEqual(selection.name, product)) {
63
45
  props.onProductChange(selection.name);
64
46
  setInputValue(selection.name);
65
47
  }
@@ -87,14 +69,12 @@ export const NewProductDropdownSelector = (props) => {
87
69
  setIsOpen(false);
88
70
  },
89
71
  });
90
- const createProductGroup = (products, label, type, shouldFilter = false) => {
91
- const productsToShow = shouldFilter ? filteredProducts : products;
92
- return productsToShow.length > 0 ? (React.createElement(React.Fragment, null,
93
- !shouldFilter && (React.createElement(SelectGroup, { label: label, key: type, value: '', className: "product-selector-group", children: '' })),
94
- productsToShow.map((prod, index) => {
95
- var _a;
96
- return (React.createElement(SelectOption, { key: `${type}-${index}`, value: prod, isFocused: focusedItemIndex === index, className: "pf-v6-c-select__menu-wrapper", "data-tracking-id": `${(_a = prod.name) === null || _a === void 0 ? void 0 : _a.replace(/\s+/g, '')}-${type}-dropdown`, isSelected: prod.name === product }, prod.name));
97
- }))) : (React.createElement(SelectOption, { key: '', value: '', className: "pf-v6-c-select__menu-wrapper", isDisabled: true }, "No Results Found"));
72
+ const renderProductOptions = () => {
73
+ const productsToShow = shouldFilter ? filteredProducts : props.products;
74
+ return productsToShow.length > 0 ? (React.createElement(React.Fragment, null, productsToShow.map((prod, index) => {
75
+ var _a;
76
+ return (React.createElement(SelectOption, { key: `product-${index}`, value: prod, isFocused: focusedItemIndex === index, className: "pf-v6-c-select__menu-wrapper", "data-tracking-id": `${(_a = prod.name) === null || _a === void 0 ? void 0 : _a.replace(/\s+/g, '')}-product-dropdown`, isSelected: prod.name === product }, prod.name));
77
+ }))) : (React.createElement(SelectOption, { key: '', value: '', className: "pf-v6-c-select__menu-wrapper", isDisabled: true }, "No Results Found"));
98
78
  };
99
79
  const toggle = (toggleRef) => (React.createElement(MenuToggle, { ref: toggleRef, variant: "typeahead", onClick: onToggleClick, isExpanded: isOpen, isFullWidth: true, isDisabled: props.isLoading, status: isEmpty(inputValue) && showValidationLocal ? 'danger' : undefined },
100
80
  React.createElement(TextInputGroup, { isPlain: true },
@@ -102,16 +82,8 @@ export const NewProductDropdownSelector = (props) => {
102
82
  props.isLoading ? (React.createElement(TextInputGroupUtilities, null,
103
83
  React.createElement(Spinner, { size: "md" }))) : (React.createElement(TextInputGroupUtilities, Object.assign({}, (!inputValue ? { style: { display: 'none' } } : {})),
104
84
  React.createElement(Button, { icon: React.createElement(TimesIcon, { "aria-hidden": true }), variant: "plain", onClick: onClear, "aria-label": "Clear input value" }))))));
105
- const topProducts = allProducts.data.topProducts.filter((p) => p.isEntitledProduct).slice(0, 3);
106
85
  return (React.createElement("div", null,
107
86
  React.createElement(Select, { id: "product-selector", isOpen: isOpen, onSelect: (e, selection) => onSelect(selection), onOpenChange: (isOpen) => setIsOpen(isOpen), toggle: toggle, selected: product, shouldFocusFirstItemOnOpen: false, isScrollable: true, "data-tracking-id": "get-support-product-dropdown-selector" },
108
- React.createElement(SelectList, { id: "product-selector-listbox" },
109
- !shouldFilter && createProductGroup(topProducts, t('Top products'), 'topProduct'),
110
- !shouldFilter && React.createElement(Divider, null),
111
- createProductGroup(props.isCaseCreate ? props.products : allProducts.data.productsResult, t('All products'), 'product', shouldFilter))),
112
- !props.isLoading && !isSelectedProductSupportedForCustomer && (React.createElement("div", { className: "pf-v6-u-ml-xs pf-v6-u-mt-sm form-instructions" },
113
- React.createElement(Trans, null, "Red Hat must confirm your subscription status before providing support."),
114
- React.createElement("br", null),
115
- React.createElement(Trans, null, "We'll contact you if we have any questions.")))));
87
+ React.createElement(SelectList, { id: "product-selector-listbox" }, renderProductOptions()))));
116
88
  };
117
89
  export default NewProductDropdownSelector;
@@ -1 +1 @@
1
- {"version":3,"file":"NewProductVersionSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductVersionSelector.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAM/D,UAAU,MAAM;IACZ,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,qCAAqC,EAAE,OAAO,CAAC;CAClD;AAED,eAAO,MAAM,yBAAyB,GAAI,OAAO,MAAM,sBAmItD,CAAC"}
1
+ {"version":3,"file":"NewProductVersionSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductVersionSelector.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAO/D,UAAU,MAAM;IACZ,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,qCAAqC,EAAE,OAAO,CAAC;CAClD;AAED,eAAO,MAAM,yBAAyB,GAAI,OAAO,MAAM,sBAoFtD,CAAC"}
@@ -1,19 +1,18 @@
1
+ import { useApolloClient } from '@apollo/client/react';
1
2
  import { SingleSelectDropdown } from '@rh-support/components';
2
3
  import { GlobalMetadataStateContext } from '@rh-support/react-context';
3
- import { getUniqueSortedVersions } from '@rh-support/utils';
4
4
  import isEmpty from 'lodash/isEmpty';
5
5
  import isEqual from 'lodash/isEqual';
6
6
  import React, { useContext, useEffect, useState } from 'react';
7
7
  import { useTranslation } from 'react-i18next';
8
8
  import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
9
- import { getVersionsDetails } from '../../reducers/CaseReducer';
9
+ import { getVersionsDetails, setCaseState } from '../../reducers/CaseReducer';
10
10
  import { getProductObj } from '../shared/utils';
11
11
  export const NewProductVersionSelector = (props) => {
12
12
  const { t } = useTranslation();
13
- const [selectVersionOptions, setSelectVersionOptions] = useState([]);
14
13
  const [showValidationLocal, setShowValidationLocal] = useState(props.isNextBtnClickedToShowValidationError);
15
- const [isSEProductApiIsDown, setIsSEProductApiIsDown] = useState(false);
16
14
  const caseDispatch = useCaseDispatch();
15
+ const apolloClient = useApolloClient();
17
16
  const { versionsDetails, product, version } = useCaseSelector((state) => ({
18
17
  product: state.caseDetails.product,
19
18
  version: state.caseDetails.version,
@@ -24,76 +23,43 @@ export const NewProductVersionSelector = (props) => {
24
23
  setShowValidationLocal(props.isNextBtnClickedToShowValidationError);
25
24
  // eslint-disable-next-line react-hooks/exhaustive-deps
26
25
  }, [props.isNextBtnClickedToShowValidationError]);
27
- // when user selects a product, we need to fetch versions
28
26
  useEffect(() => {
29
27
  if (isEmpty(product))
30
28
  return;
31
29
  const productObj = getProductObj(allProducts.data.productsResult, product);
32
- if (productObj.versions) {
33
- const productVersions = productObj.hasComponentsInsteadOfVersions
34
- ? productObj.versions.sort()
35
- : productObj.versions;
36
- // if versions array has one value set that value as selected
37
- if (productVersions.length === 1) {
38
- props.onVersionChange(productVersions[0]);
39
- }
40
- setSelectVersionOptions(productObj.versions);
30
+ if (productObj.productId) {
31
+ getVersionsDetails(caseDispatch, apolloClient, productObj.productId, productObj.name || product);
41
32
  }
42
- else {
43
- setIsSEProductApiIsDown(true);
44
- }
45
- const getVersions = () => getVersionsDetails(caseDispatch, product);
46
- // call sfdc version api version flags that is used in severity and submit components
47
- getVersions();
48
33
  // eslint-disable-next-line react-hooks/exhaustive-deps
49
34
  }, [product]);
50
35
  useEffect(() => {
51
- if (!product)
52
- return;
53
- const productObj = getProductObj(allProducts.data.productsResult, product);
54
- if (productObj.versions) {
55
- const productVersions = productObj.hasComponentsInsteadOfVersions
56
- ? productObj.versions.sort()
57
- : productObj.versions;
58
- setSelectVersionOptions(productVersions);
59
- }
60
- else {
61
- setIsSEProductApiIsDown(true);
62
- }
63
- // eslint-disable-next-line react-hooks/exhaustive-deps
64
- }, [version]);
65
- // observe when fetched versions are available
66
- useEffect(() => {
67
- if (!isSEProductApiIsDown)
36
+ var _a;
37
+ if (versionsDetails.isFetching || !((_a = versionsDetails.data) === null || _a === void 0 ? void 0 : _a.length))
68
38
  return;
69
- const fetchedVersions = versionsDetails.data.map(({ name }) => name);
70
- // if versions array has one value set that value as selected
71
- if (fetchedVersions.length === 1) {
72
- props.onVersionChange(fetchedVersions[0]);
39
+ if (versionsDetails.data.length === 1) {
40
+ props.onVersionChange(versionsDetails.data[0].name);
41
+ setCaseState(caseDispatch, { selectedVersionId: versionsDetails.data[0].id });
73
42
  }
74
- const productObj = getProductObj(allProducts.data.productsResult, product);
75
- const sfdcVersions = getUniqueSortedVersions(fetchedVersions);
76
- const productVersions = (productObj === null || productObj === void 0 ? void 0 : productObj.hasComponentsInsteadOfVersions) ? sfdcVersions.sort() : sfdcVersions;
77
- setSelectVersionOptions(productVersions);
78
43
  // eslint-disable-next-line react-hooks/exhaustive-deps
79
- }, [versionsDetails.data, isSEProductApiIsDown]);
44
+ }, [versionsDetails.data]);
80
45
  const onSelect = (selectedOption) => {
81
46
  const selection = selectedOption.value;
82
47
  if (isEqual(selection, version)) {
83
- props.onVersionChange(''); // To unselect a version when user clicks on the same selected product version
48
+ props.onVersionChange('');
49
+ setCaseState(caseDispatch, { selectedVersionId: undefined });
84
50
  return;
85
51
  }
86
52
  props.onVersionChange(selection);
53
+ const versionObj = versionsDetails.data.find((v) => v.name === selection);
54
+ setCaseState(caseDispatch, { selectedVersionId: versionObj === null || versionObj === void 0 ? void 0 : versionObj.id });
87
55
  };
88
- // Create selected option for SingleSelectDropdown
89
56
  const getSelectedOption = () => ({
90
57
  label: version || '',
91
58
  value: version || '',
92
59
  });
93
- // Create options array for SingleSelectDropdown
94
- const getDropdownOptions = () => selectVersionOptions.map((versionOption) => ({
95
- label: versionOption,
96
- value: versionOption,
60
+ const getDropdownOptions = () => versionsDetails.data.map((v) => ({
61
+ label: v.name,
62
+ value: v.name,
97
63
  }));
98
- return (React.createElement(SingleSelectDropdown, { onSelect: onSelect, selected: getSelectedOption(), options: getDropdownOptions(), placeholder: t('Select a version'), ariaLabel: t('Select a version'), isInvalid: isEmpty(version) && showValidationLocal, isDisabled: isEmpty(product) || allProducts.isFetching, dataTrackingId: "get-support-version-dropdown-selector", isLoading: isSEProductApiIsDown && versionsDetails.isFetching }));
64
+ return (React.createElement(SingleSelectDropdown, { onSelect: onSelect, selected: getSelectedOption(), options: getDropdownOptions(), placeholder: t('Select a version'), ariaLabel: t('Select a version'), isInvalid: isEmpty(version) && showValidationLocal, isDisabled: isEmpty(product) || allProducts.isFetching, dataTrackingId: "get-support-version-dropdown-selector", isLoading: versionsDetails.isFetching }));
99
65
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ProductSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/ProductSelector.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAOvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAKlE,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"}
1
+ {"version":3,"file":"ProductSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/ProductSelector.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAKlE,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,qBAiGpD"}
@@ -7,7 +7,6 @@ import isEqual from 'lodash/isEqual';
7
7
  import React, { useContext, useEffect, useRef } from 'react';
8
8
  import { Trans, useTranslation } from 'react-i18next';
9
9
  import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
10
- import { RouteContext } from '../../context/RouteContext';
11
10
  import { useAB } from '../../hooks/useAB';
12
11
  import { useFetchCVEData } from '../../hooks/useFetchCVEData';
13
12
  import { setCaseState } from '../../reducers/CaseReducer';
@@ -31,7 +30,6 @@ export default function ProductSelector(props) {
31
30
  product: state.caseDetails.product,
32
31
  version: state.caseDetails.version,
33
32
  }), isEqual);
34
- const { routeState: { isCaseCreate }, } = useContext(RouteContext);
35
33
  const caseDispatch = useCaseDispatch();
36
34
  const cveModalEnabledConfig = getConfigField(pcmConfig.data, 'isCVEModalEnabled', PCM_CONFIG_FIELD_TYPE.STRING);
37
35
  const isCVEModalEnabled = cveModalEnabledConfig === '1';
@@ -51,7 +49,7 @@ export default function ProductSelector(props) {
51
49
  const productSelectorRef = useRef(null);
52
50
  const rederProductSelect = (React.createElement("form", null,
53
51
  (cveRecommendation === null || cveRecommendation === void 0 ? void 0 : cveRecommendation.length) !== 0 && isCVEModalEnabled && React.createElement(CveModal, null),
54
- 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 })));
52
+ React.createElement(AllProductsSelector, { routeProps: props.routeProps, ref: productSelectorRef, isOnSummaryPage: true, isOnGetSupportPage: props === null || props === void 0 ? void 0 : props.isOnGetSupportPage, caseCreateExperience: props.caseCreateExperience })));
55
53
  return (React.createElement(React.Fragment, null,
56
54
  React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "pf-v6-u-mt-lg", title: t('There was an error loading products.'), show: allProducts.isError }),
57
55
  rederProductSelect,
@@ -2,6 +2,8 @@ import { IClusterRecommendation } from '@cee-eng/hydrajs/@types/api/pcm/preCaseD
2
2
  import React from 'react';
3
3
  interface IProps {
4
4
  clusterRecommendations: IClusterRecommendation[];
5
+ onViewMoreRecommendation?: () => void;
6
+ displayVeiwMoreBtn?: boolean;
5
7
  }
6
8
  export declare function ClusterRecommendationItems(props: IProps): React.JSX.Element;
7
9
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"ClusterRecommendationItems.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/ClusterRecommendationItems.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oDAAoD,CAAC;AAI5F,OAAO,KAAgC,MAAM,OAAO,CAAC;AAYrD,UAAU,MAAM;IACZ,sBAAsB,EAAE,sBAAsB,EAAE,CAAC;CACpD;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,qBAkFvD"}
1
+ {"version":3,"file":"ClusterRecommendationItems.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/ClusterRecommendationItems.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oDAAoD,CAAC;AAI5F,OAAO,KAAgC,MAAM,OAAO,CAAC;AAYrD,UAAU,MAAM;IACZ,sBAAsB,EAAE,sBAAsB,EAAE,CAAC;IACjD,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;IACtC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,qBA4FvD"}
@@ -1,5 +1,5 @@
1
1
  import { pcm } from '@cee-eng/hydrajs';
2
- import { Label } from '@patternfly/react-core';
2
+ import { Button, Label } from '@patternfly/react-core';
3
3
  import ArrowRightIcon from '@patternfly/react-icons/dist/js/icons/arrow-right-icon';
4
4
  import isEqual from 'lodash/isEqual';
5
5
  import React, { useContext, useEffect } from 'react';
@@ -29,16 +29,19 @@ export function ClusterRecommendationItems(props) {
29
29
  createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.CLUSTER_RECOMMENDATION, getRulesToSave('', '', recsWithUrl), JSON.stringify({ product, version, openshiftClusterID }));
30
30
  // eslint-disable-next-line react-hooks/exhaustive-deps
31
31
  }, [props.clusterRecommendations, activeSessionId]);
32
- return (React.createElement("pfe-accordion", null, props.clusterRecommendations.map((rule, i) => (React.createElement(React.Fragment, null,
33
- React.createElement("pfe-accordion-header", null,
34
- React.createElement("h3", null, rule.description)),
35
- React.createElement("pfe-accordion-panel", null,
36
- React.createElement("p", null,
37
- React.createElement(Label, { icon: riskLabels[rule.total_risk].icon, className: riskLabels[rule.total_risk].className },
38
- React.createElement(Trans, null, riskLabels[rule.total_risk].label))),
39
- React.createElement("p", null, rule.details || ''),
40
- React.createElement("a", { onClick: (e) => onResourceClick(e, rule, i), className: "pf-v6-u-font-weight-bold", "data-tracking-id": "cluster-recommendations", href: detailsUrl, target: "_blank", rel: "noopener noreferrer" },
41
- React.createElement(Trans, null,
42
- "View details and remediation steps ",
43
- React.createElement(ArrowRightIcon, { "aria-hidden": "true" })))))))));
32
+ return (React.createElement("pfe-accordion", null,
33
+ props.clusterRecommendations.map((rule, i) => (React.createElement(React.Fragment, null,
34
+ React.createElement("pfe-accordion-header", null,
35
+ React.createElement("p", null, rule.description)),
36
+ React.createElement("pfe-accordion-panel", null,
37
+ React.createElement("p", null,
38
+ React.createElement(Label, { icon: riskLabels[rule.total_risk].icon, className: riskLabels[rule.total_risk].className },
39
+ React.createElement(Trans, null, riskLabels[rule.total_risk].label))),
40
+ React.createElement("p", null, rule.details || ''),
41
+ React.createElement("a", { onClick: (e) => onResourceClick(e, rule, i), className: "pf-v6-u-font-weight-bold", "data-tracking-id": "cluster-recommendations", href: detailsUrl, target: "_blank", rel: "noopener noreferrer" },
42
+ React.createElement(Trans, null,
43
+ "View details and remediation steps ",
44
+ React.createElement(ArrowRightIcon, { "aria-hidden": "true" }))))))),
45
+ props.displayVeiwMoreBtn && (React.createElement(Button, { className: "pf-v6-u-p-md", variant: "link", onClick: props.onViewMoreRecommendation, "data-tracking-id": "cluster-recs-view-more" },
46
+ React.createElement(Trans, null, "View more recommendations")))));
44
47
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ClusterRecommendations.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/ClusterRecommendations.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAa1C,UAAU,MAAM;IACZ,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAC1C,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,KAAK,EAAE,MAAM,qBAgE3D"}
1
+ {"version":3,"file":"ClusterRecommendations.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/ClusterRecommendations.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAa1C,UAAU,MAAM;IACZ,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAC1C,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,KAAK,EAAE,MAAM,qBAuD3D"}
@@ -1,4 +1,3 @@
1
- import { Button } from '@patternfly/react-core';
2
1
  import { GlobalMetadataStateContext } from '@rh-support/react-context';
3
2
  import isEqual from 'lodash/isEqual';
4
3
  import React, { useContext } from 'react';
@@ -35,8 +34,6 @@ export default function ClusterRecommendations(props) {
35
34
  React.createElement("h3", { className: "card-heading popular-solutions" },
36
35
  React.createElement(Trans, null, "Cluster recommendations")),
37
36
  React.createElement("div", null,
38
- React.createElement(ClusterRecommendationItems, { clusterRecommendations: clusterRecommendations.data.slice(0, NUMBER_OF_RULES_TO_DISPLAY) }),
39
- clusterRecommendations.data.length > NUMBER_OF_RULES_TO_DISPLAY && (React.createElement(Button, { className: "pf-v6-u-p-md", variant: "link", isBlock: true, onClick: onViewMoreRecommendation, "data-tracking-id": "cluster-recs-view-more" },
40
- React.createElement(Trans, null, "View more recommendations")))))),
37
+ React.createElement(ClusterRecommendationItems, { clusterRecommendations: clusterRecommendations.data.slice(0, NUMBER_OF_RULES_TO_DISPLAY), onViewMoreRecommendation: onViewMoreRecommendation, displayVeiwMoreBtn: clusterRecommendations.data.length > NUMBER_OF_RULES_TO_DISPLAY })))),
41
38
  showClusterRecommendationsModal && React.createElement(ClusterRecommendationsModal, null)));
42
39
  }
@@ -1 +1 @@
1
- {"version":3,"file":"EARule.d.ts","sourceRoot":"","sources":["../../../../../src/components/Recommendations/EARules/EARule.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAM1C,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAG/D,UAAU,cAAc;IACpB,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;CAClH;AAGD,eAAO,MAAM,aAAa,+BAGxB,CAAC;AAEH,wBAAgB,gBAAgB,mBAM/B;AACD,wBAAgB,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;;;;CAAA,qBAqClD;AAED,iBAAS,WAAW,sBAGnB;AAED,iBAAS,iBAAiB,sBA8BzB;AAED,iBAAS,aAAa,CAAC,EAAE,SAA6B,EAAE,SAAc,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,qBA2BnH;AAED,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"EARule.d.ts","sourceRoot":"","sources":["../../../../../src/components/Recommendations/EARules/EARule.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAM1C,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAG/D,UAAU,cAAc;IACpB,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;CAClH;AAGD,eAAO,MAAM,aAAa,+BAGxB,CAAC;AAEH,wBAAgB,gBAAgB,mBAM/B;AACD,wBAAgB,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;;;;CAAA,qBAwClD;AAED,iBAAS,WAAW,sBAGnB;AAED,iBAAS,iBAAiB,sBA8BzB;AAED,iBAAS,aAAa,CAAC,EAAE,SAA6B,EAAE,SAAc,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,qBA2BnH;AAED,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,aAAa,EAAE,CAAC"}
@@ -29,9 +29,11 @@ export function EARule({ children, rule, ruleRank }) {
29
29
  summary: state.caseDetails.summary,
30
30
  }), isEqual);
31
31
  const sessionRestoreDispatch = useContext(SessionRestoreDispatchContext);
32
- const onCtaClick = (link, title) => () => {
32
+ const onCtaClick = (link, title) => (event) => {
33
33
  createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.EDMOUND_ABOTT, [getSessResFromEA(link, SessionResourceVisibility.VISITED, ruleRank, rule.rule_id)], JSON.stringify({ product, version, summary }));
34
34
  trackClickedResourcesSequence('Automated Support Assistant (ASA) recommendations', link, title || rule.title);
35
+ event.preventDefault();
36
+ window.open(link, '_blank', 'noopener,noreferrer');
35
37
  };
36
38
  return (React.createElement(EARuleContext.Provider, { value: {
37
39
  rule,
@@ -1 +1 @@
1
- {"version":3,"file":"InsightsResults.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/InsightsResults.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAgC,MAAM,0CAA0C,CAAC;AAG7G,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAO5D,OAAO,KAAkD,MAAM,OAAO,CAAC;AAmBvE,UAAU,MAAO,SAAQ,gBAAgB;IACrC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AASD,MAAM,WAAW,wBAAyB,SAAQ,mBAAmB;IACjE,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;CAClB;AAED,iBAAS,eAAe,CAAC,KAAK,EAAE,MAAM,qBA8QrC;kBA9QQ,eAAe;;;AAiRxB,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"InsightsResults.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/InsightsResults.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAgC,MAAM,0CAA0C,CAAC;AAG7G,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAO5D,OAAO,KAAkD,MAAM,OAAO,CAAC;AAmBvE,UAAU,MAAO,SAAQ,gBAAgB;IACrC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AASD,MAAM,WAAW,wBAAyB,SAAQ,mBAAmB;IACjE,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;CAClB;AAED,iBAAS,eAAe,CAAC,KAAK,EAAE,MAAM,qBAkRrC;kBAlRQ,eAAe;;;AAqRxB,eAAe,eAAe,CAAC"}
@@ -206,6 +206,10 @@ function InsightsResults(props) {
206
206
  type: RulesReducerConstants.setInsightRules,
207
207
  payload: { rules: allResults },
208
208
  });
209
+ rulesDispatch({
210
+ type: RulesReducerConstants.setAllResults,
211
+ payload: { allResults },
212
+ });
209
213
  // eslint-disable-next-line react-hooks/exhaustive-deps
210
214
  }, [allResults.length, includeAnalysisResults]);
211
215
  useEffect(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"RemoteRiderAcceptanceModal.d.ts","sourceRoot":"","sources":["../../../../src/components/RemoteRider/RemoteRiderAcceptanceModal.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAExD,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;CACrD;AAED,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,KAAK,EAAE,MAAM,qBAuD/D"}
1
+ {"version":3,"file":"RemoteRiderAcceptanceModal.d.ts","sourceRoot":"","sources":["../../../../src/components/RemoteRider/RemoteRiderAcceptanceModal.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAExD,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;CACrD;AAED,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,KAAK,EAAE,MAAM,qBAwD/D"}
@@ -1 +1 @@
1
- {"version":3,"file":"Review.d.ts","sourceRoot":"","sources":["../../../../src/components/Review/Review.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAoBlE,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AACD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,MAAM,qBAuE3C"}
1
+ {"version":3,"file":"Review.d.ts","sourceRoot":"","sources":["../../../../src/components/Review/Review.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAoBlE,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AACD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,MAAM,qBA0F3C"}