@rh-support/troubleshoot 2.6.14 → 2.6.15

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 (194) hide show
  1. package/lib/esm/components/AccountInfo/AccountSelector.js +4 -4
  2. package/lib/esm/components/AccountInfo/ManagedAccountsDropdown.js +1 -1
  3. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.d.ts.map +1 -1
  4. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.js +21 -18
  5. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
  6. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +45 -34
  7. package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
  8. package/lib/esm/components/CaseEditView/CaseDetailsAside.js +13 -19
  9. package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.js +1 -1
  10. package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts.map +1 -1
  11. package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +8 -8
  12. package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.js +1 -1
  13. package/lib/esm/components/CaseEditView/CaseOverview/DateTime.d.ts.map +1 -1
  14. package/lib/esm/components/CaseEditView/CaseOverview/DateTime.js +1 -1
  15. package/lib/esm/components/CaseEditView/CaseOverview/index.js +8 -8
  16. package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.d.ts.map +1 -1
  17. package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.js +20 -19
  18. package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts.map +1 -1
  19. package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.js +5 -5
  20. package/lib/esm/components/CaseEditView/CaseSolutions/HandpicketItem.js +3 -3
  21. package/lib/esm/components/CaseEditView/CaseSubscriptionAbuseAlert.js +1 -1
  22. package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts.map +1 -1
  23. package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.js +33 -23
  24. package/lib/esm/components/CaseEditView/PDFContainer.js +19 -15
  25. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.d.ts.map +1 -1
  26. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.js +9 -8
  27. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.d.ts.map +1 -1
  28. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.js +13 -16
  29. package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts.map +1 -1
  30. package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.js +51 -94
  31. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.d.ts.map +1 -1
  32. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.js +9 -8
  33. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
  34. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +36 -31
  35. package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.d.ts.map +1 -1
  36. package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.js +3 -3
  37. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +2 -2
  38. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.d.ts.map +1 -1
  39. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.js +9 -7
  40. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftPopover.js +1 -1
  41. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftV3Popover.js +1 -1
  42. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.js +1 -1
  43. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.js +2 -2
  44. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.d.ts.map +1 -1
  45. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.js +3 -3
  46. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
  47. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +2 -2
  48. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/SFDCUrl.d.ts.map +1 -1
  49. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/SFDCUrl.js +3 -4
  50. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.js +2 -2
  51. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.js +2 -2
  52. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseChat.js +1 -1
  53. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +1 -1
  54. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +2 -2
  55. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseExternalTrackerUpdate.js +1 -1
  56. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.d.ts.map +1 -1
  57. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.js +2 -3
  58. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +5 -5
  59. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.d.ts.map +1 -1
  60. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.js +23 -17
  61. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.css +19 -4
  62. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts.map +1 -1
  63. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.js +5 -8
  64. package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts.map +1 -1
  65. package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.js +5 -4
  66. package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.d.ts.map +1 -1
  67. package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.js +4 -6
  68. package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummaryErrorMessage.d.ts.map +1 -1
  69. package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummaryErrorMessage.js +4 -6
  70. package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.js +1 -1
  71. package/lib/esm/components/CaseEditView/Tabs/RelatedTasks/RelatedTasks.d.ts.map +1 -1
  72. package/lib/esm/components/CaseEditView/Tabs/RelatedTasks/RelatedTasks.js +2 -3
  73. package/lib/esm/components/CaseInformation/CaseGroup.d.ts.map +1 -1
  74. package/lib/esm/components/CaseInformation/CaseGroup.js +1 -2
  75. package/lib/esm/components/CaseInformation/CaseInformation.js +3 -3
  76. package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.d.ts.map +1 -1
  77. package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.js +1 -1
  78. package/lib/esm/components/CaseInformation/Description.js +4 -4
  79. package/lib/esm/components/CaseInformation/Fts.d.ts.map +1 -1
  80. package/lib/esm/components/CaseInformation/Fts.js +13 -9
  81. package/lib/esm/components/CaseInformation/OpenCaseIssue.js +2 -2
  82. package/lib/esm/components/CaseInformation/Severity.js +1 -1
  83. package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
  84. package/lib/esm/components/CaseInformation/SupportLevel.js +16 -10
  85. package/lib/esm/components/CaseManagement/CaseLanguageSelector.d.ts.map +1 -1
  86. package/lib/esm/components/CaseManagement/CaseLanguageSelector.js +14 -11
  87. package/lib/esm/components/CaseManagement/CaseManagement.js +4 -4
  88. package/lib/esm/components/CaseManagement/Cep.d.ts.map +1 -1
  89. package/lib/esm/components/CaseManagement/Cep.js +44 -41
  90. package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.d.ts.map +1 -1
  91. package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.js +50 -42
  92. package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.d.ts.map +1 -1
  93. package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.js +39 -63
  94. package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +1 -1
  95. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
  96. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +62 -36
  97. package/lib/esm/components/CaseManagement/RHAssociatesSelector.js +1 -1
  98. package/lib/esm/components/CaseManagement/SendNotifications/AddContactToGroupModal.d.ts.map +1 -1
  99. package/lib/esm/components/CaseManagement/SendNotifications/AddContactToGroupModal.js +8 -8
  100. package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.d.ts.map +1 -1
  101. package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.js +10 -10
  102. package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.js +2 -2
  103. package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.d.ts.map +1 -1
  104. package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.js +57 -16
  105. package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.d.ts.map +1 -1
  106. package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.js +12 -27
  107. package/lib/esm/components/ConfirmationModals/PreferredSecureSupportModal.d.ts.map +1 -1
  108. package/lib/esm/components/ConfirmationModals/PreferredSecureSupportModal.js +1 -1
  109. package/lib/esm/components/Cve/CveItem.d.ts.map +1 -1
  110. package/lib/esm/components/Cve/CveItem.js +10 -11
  111. package/lib/esm/components/Cve/CveModal.d.ts.map +1 -1
  112. package/lib/esm/components/Cve/CveModal.js +10 -11
  113. package/lib/esm/components/Cve/CvePanel.d.ts.map +1 -1
  114. package/lib/esm/components/Cve/CvePanel.js +3 -3
  115. package/lib/esm/components/Cve/CveSidebar.js +2 -2
  116. package/lib/esm/components/IdeaInformation/IdeaInformation.js +7 -7
  117. package/lib/esm/components/ImproveCase/KtQuestions.js +6 -6
  118. package/lib/esm/components/OpenCase/SupportTypeSelectorPage.d.ts.map +1 -1
  119. package/lib/esm/components/OpenCase/SupportTypeSelectorPage.js +6 -13
  120. package/lib/esm/components/ProductSelector/AllProductsSelector.js +8 -7
  121. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts +1 -1
  122. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
  123. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +80 -53
  124. package/lib/esm/components/ProductSelector/NewProductVersionSelector.d.ts.map +1 -1
  125. package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +14 -10
  126. package/lib/esm/components/ProductSelector/ProductSelector.js +1 -1
  127. package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.js +4 -4
  128. package/lib/esm/components/Recommendations/AsideResults.d.ts.map +1 -1
  129. package/lib/esm/components/Recommendations/AsideResults.js +5 -3
  130. package/lib/esm/components/Recommendations/ClusterRecommendationItems.js +1 -1
  131. package/lib/esm/components/Recommendations/ClusterRecommendations.js +1 -1
  132. package/lib/esm/components/Recommendations/ClusterRecommendationsModal.d.ts.map +1 -1
  133. package/lib/esm/components/Recommendations/ClusterRecommendationsModal.js +7 -11
  134. package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.d.ts.map +1 -1
  135. package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.js +4 -4
  136. package/lib/esm/components/Recommendations/EARules/EARuleInfoInline.js +7 -7
  137. package/lib/esm/components/Recommendations/InsightsResults.js +1 -1
  138. package/lib/esm/components/Recommendations/InsightsRuleInfo.d.ts.map +1 -1
  139. package/lib/esm/components/Recommendations/InsightsRuleInfo.js +16 -16
  140. package/lib/esm/components/Recommendations/RecommendationFeedbackModal.js +6 -6
  141. package/lib/esm/components/Recommendations/RecommendationInfoBox.d.ts.map +1 -1
  142. package/lib/esm/components/Recommendations/RecommendationInfoBox.js +7 -7
  143. package/lib/esm/components/Recommendations/Recommendations.d.ts.map +1 -1
  144. package/lib/esm/components/Recommendations/Recommendations.js +23 -20
  145. package/lib/esm/components/Recommendations/RecommendationsLoader.js +1 -1
  146. package/lib/esm/components/Recommendations/RulesModal.d.ts.map +1 -1
  147. package/lib/esm/components/Recommendations/RulesModal.js +7 -9
  148. package/lib/esm/components/Recommendations/WatsonxAiIcon.d.ts.map +1 -1
  149. package/lib/esm/components/Recommendations/WatsonxAiIcon.js +9 -10
  150. package/lib/esm/components/RemoteRider/RemoteRiderBanner.js +1 -1
  151. package/lib/esm/components/Review/Review.js +4 -4
  152. package/lib/esm/components/SessionRestore/RestoreLastSessionModal.js +5 -5
  153. package/lib/esm/components/SessionRestore/SessionRestore.js +1 -1
  154. package/lib/esm/components/SessionRestore/SessionRestoreCard.js +1 -1
  155. package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
  156. package/lib/esm/components/SubmitCase/SubmitCase.js +21 -21
  157. package/lib/esm/components/Suggestions/Suggestions.js +2 -2
  158. package/lib/esm/components/Suggestions/TopContent.d.ts.map +1 -1
  159. package/lib/esm/components/Suggestions/TopContent.js +8 -8
  160. package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts.map +1 -1
  161. package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +13 -14
  162. package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts.map +1 -1
  163. package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +20 -16
  164. package/lib/esm/components/shared/Rule.js +6 -6
  165. package/lib/esm/components/shared/fileUpload/FileLister.js +6 -6
  166. package/lib/esm/components/shared/fileUpload/WidgetFileUploader.d.ts.map +1 -1
  167. package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +7 -6
  168. package/lib/esm/components/shared/fileUpload/common/FileUploaderInfoIcon.js +1 -1
  169. package/lib/esm/components/shared/fileUpload/css/fileSelector.css +1 -0
  170. package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.js +1 -1
  171. package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.d.ts.map +1 -1
  172. package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.js +4 -4
  173. package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelectorImage.js +2 -2
  174. package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts +15 -6
  175. package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts.map +1 -1
  176. package/lib/esm/components/shared/input/ContactSelectorInternal.js +128 -23
  177. package/lib/esm/components/wizardLayout/MainSection.js +2 -2
  178. package/lib/esm/components/wizardLayout/NewFeatureModal.d.ts.map +1 -1
  179. package/lib/esm/components/wizardLayout/NewFeatureModal.js +6 -6
  180. package/lib/esm/components/wizardLayout/WizardAside.js +3 -3
  181. package/lib/esm/components/wizardLayout/WizardMain.d.ts.map +1 -1
  182. package/lib/esm/components/wizardLayout/WizardMain.js +61 -19
  183. package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
  184. package/lib/esm/components/wizardLayout/WizardNavigation.js +7 -13
  185. package/lib/esm/css/app.css +13 -13
  186. package/lib/esm/css/case.css +23 -16
  187. package/lib/esm/hooks/useWizard.d.ts.map +1 -1
  188. package/lib/esm/hooks/useWizard.js +1 -3
  189. package/lib/esm/reducers/RouteConstNTypes.d.ts +1 -2
  190. package/lib/esm/reducers/RouteConstNTypes.d.ts.map +1 -1
  191. package/lib/esm/reducers/RulesReducer.d.ts.map +1 -1
  192. package/lib/esm/scss/_main.scss +183 -88
  193. package/lib/esm/scss/_pf-overrides.scss +150 -140
  194. package/package.json +11 -11
@@ -109,17 +109,17 @@ function AccountSelector(props) {
109
109
  if (isEmpty(loggedInUserRights.data))
110
110
  return React.createElement(React.Fragment, null);
111
111
  return (React.createElement("div", { id: props.id, className: `form-group ${props.className}` },
112
- React.createElement(AlertMessage, { show: showNotEntitledMessage, variant: AlertType.DANGER, isInline: true, title: t("The selected account doesn't have entitlement"), className: "pf-v5-u-mb-lg" }),
113
- React.createElement("div", { className: "account-selector-label-wrapper pf-v5-u-display-flex" },
112
+ React.createElement(AlertMessage, { show: showNotEntitledMessage, variant: AlertType.DANGER, isInline: true, title: t("The selected account doesn't have entitlement"), className: "pf-v6-u-mb-lg" }),
113
+ React.createElement("div", { className: "account-selector-label-wrapper pf-v6-u-display-flex" },
114
114
  React.createElement("label", { htmlFor: "account-selector" },
115
115
  React.createElement(Trans, null, "Account"),
116
116
  ' ',
117
117
  React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
118
- canUseFindMyAccount && (React.createElement("button", { role: "link", className: "btn btn-link btn-app find-my-account pf-v5-u-ml-auto", onClick: onFindMyAccountClick, disabled: selectedAccountDetails.isFetching, "data-tracking-id": "get-support-find-my-account", type: "button" },
118
+ canUseFindMyAccount && (React.createElement("button", { role: "link", className: "btn btn-link btn-app find-my-account pf-v6-u-ml-auto", onClick: onFindMyAccountClick, disabled: selectedAccountDetails.isFetching, "data-tracking-id": "get-support-find-my-account", type: "button" },
119
119
  React.createElement(Trans, null, "Find my account")))),
120
120
  React.createElement("div", { className: "account-selector-wrapper" },
121
121
  React.createElement(AccountSelectorInternal, { selectedAccounts: [selectedAccount], canBookmarkAccount: canBookmarkAccounts, bookmarkedAccounts: bookmarkedGroupAccounts.data, id: "account-or-bookmark-selector", className: "account-selector", name: "account-or-bookmark-selector", placeholder: t(`Search for an account ${loggedInUserRights.data.isExternal() ? 'or select a bookmark' : ''} `), onSelect: onInternalAccountSelect, disabled: loggedInUserRights.data.isExternal() || selectedAccountDetails.isFetching, isInValid: isSelectedAccountSubscriptionAbused, restrictedOnSubscriptionAbuse: true })),
122
- canAccessManagedAccounts && !isEmpty(managedAccounts.data) && (React.createElement(ManagedAccountsDropdown, { className: "managed-account-selector pf-v5-u-mt-xl", onManagedAccountChange: onManagedAccountChange, managedAccounts: managedAccounts, selectedAccountNumber: accountNumber, disabled: selectedAccountDetails.isFetching })),
122
+ canAccessManagedAccounts && !isEmpty(managedAccounts.data) && (React.createElement(ManagedAccountsDropdown, { className: "managed-account-selector pf-v6-u-mt-xl", onManagedAccountChange: onManagedAccountChange, managedAccounts: managedAccounts, selectedAccountNumber: accountNumber, disabled: selectedAccountDetails.isFetching })),
123
123
  isSelectedAccountSubscriptionAbused && (React.createElement("p", { className: "form-instructions form-invalid" },
124
124
  React.createElement(InfoCircleIcon, null),
125
125
  ' ',
@@ -35,7 +35,7 @@ function ManagedAccountsDropdown(props) {
35
35
  }, [props.managedAccounts.data, props.selectedAccountNumber]);
36
36
  // Only accounts that have granted access permission to partner should be listed
37
37
  const managedAccountsWithPermission = () => props.managedAccounts.data.filter((account) => account.partnerCaseAccess === 'All') || [];
38
- const managedAccountsOptions = managedAccountsWithPermission().map((account) => (Object.assign({ actionItem: (React.createElement(React.Fragment, null, account.subscriptionAbuse && (React.createElement("span", { className: "form-instructions form-invalid pf-v5-u-text-nowrap pf-v5-u-pr-sm" },
38
+ const managedAccountsOptions = managedAccountsWithPermission().map((account) => (Object.assign({ actionItem: (React.createElement(React.Fragment, null, account.subscriptionAbuse && (React.createElement("span", { className: "form-instructions form-invalid pf-v6-u-text-nowrap pf-v6-u-pr-sm" },
39
39
  React.createElement(InfoCircleIcon, null),
40
40
  " ",
41
41
  React.createElement(Trans, null, "Subscription abuse"))))), children: (React.createElement(React.Fragment, null, account.subscriptionAbuse ? (React.createElement("span", { className: "form-instructions form-invalid" }, getLabelForAccountOption(account))) : (getLabelForAccountOption(account)))) }, account))) || [];
@@ -1 +1 @@
1
- {"version":3,"file":"ActiveCustomerEscalation.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAM/D,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,wBAAwB,+EA8KnC,CAAC"}
1
+ {"version":3,"file":"ActiveCustomerEscalation.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAM/D,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,wBAAwB,+EAqLnC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Button, ButtonVariant, List, ListItem, Popover } from '@patternfly/react-core';
1
+ import { Button, ButtonVariant, Card, CardBody, CardHeader, List, ListItem, Popover } from '@patternfly/react-core';
2
2
  import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
3
3
  import LockIcon from '@patternfly/react-icons/dist/js/icons/lock-icon';
4
4
  import { useCanEditCase, useGlobalStateContext } from '@rh-support/react-context';
@@ -18,12 +18,14 @@ export const ActiveCustomerEscalation = forwardRef((props, ref) => {
18
18
  const commonElements = (React.createElement(React.Fragment, null,
19
19
  React.createElement("p", null,
20
20
  React.createElement(Trans, null, "After submitting, your case will be reviewed by a support manager."))));
21
- const isInternalElements = (React.createElement("div", { className: "card card-white card-support escalations", ref: ref },
22
- React.createElement("h3", { className: "card-heading case-detail-panel-card-heading card-header-bg" },
23
- React.createElement(Trans, null, "Active Customer Escalation (ACE)"),
24
- React.createElement("a", { href: "/support/escalation", target: "_blank", "aria-label": t('Learn more about Red Hat support case escalation') },
25
- React.createElement(InfoCircleIcon, null))),
26
- React.createElement("div", { className: "card-body" },
21
+ const isInternalElements = (React.createElement(Card, { className: "card-support escalations", ref: ref },
22
+ React.createElement(CardHeader, null,
23
+ React.createElement("div", { className: "escalation-header" },
24
+ React.createElement("h3", { className: "card-heading case-detail-panel-card-heading" },
25
+ React.createElement(Trans, null, "Active Customer Escalation (ACE)")),
26
+ React.createElement("a", { href: "/support/escalation", target: "_blank", rel: "noopener noreferrer", "aria-label": t('Learn more about Red Hat support case escalation') },
27
+ React.createElement(InfoCircleIcon, null)))),
28
+ React.createElement(CardBody, null,
27
29
  isInternal && (React.createElement(React.Fragment, null,
28
30
  React.createElement("p", null,
29
31
  React.createElement(LockIcon, null),
@@ -39,26 +41,27 @@ export const ActiveCustomerEscalation = forwardRef((props, ref) => {
39
41
  React.createElement("p", null,
40
42
  React.createElement("strong", null, t('Red Hat associates can open an ACE escalation when')),
41
43
  ":"),
42
- React.createElement(List, { className: "pf-v5-u-pl-lg" },
44
+ React.createElement(List, { className: "pf-v6-u-pl-lg" },
43
45
  React.createElement(ListItem, null, t('The customer wants an update')),
44
46
  React.createElement(ListItem, null, t('The customer thinks the case is not moving appropriately')),
45
47
  React.createElement(ListItem, null, t('The customer wants a new resource')),
46
48
  React.createElement(ListItem, null, t('The issue is more severe than originally thought'))),
47
- React.createElement("a", { href: `/watchlist/internal/aces/new?caseNumber=${props.caseNumber}`, target: "_blank", rel: "noopener noreferrer", className: "pf-v5-c-button pf-m-tertiary", "data-tracking-id": "request-ace-trigger", "aria-label": t('Request an escalation') }, t('Request an escalation')))))));
49
+ React.createElement("a", { href: `/watchlist/internal/aces/new?caseNumber=${props.caseNumber}`, target: "_blank", rel: "noopener noreferrer", className: "pf-v6-c-button pf-m-tertiary", "data-tracking-id": "request-ace-trigger", "aria-label": t('Request an escalation') }, t('Request an escalation')))))));
48
50
  const [openRequestEscalationModal, setOpenRequestEscalationModal] = useState(false);
49
51
  const toggleModal = () => {
50
52
  if (canEditCase.alert())
51
53
  return;
52
54
  setOpenRequestEscalationModal((openRequestEscalationModal) => !openRequestEscalationModal);
53
55
  };
54
- const isNotInternalElements = (React.createElement("div", { className: "card card-white card-support escalations", ref: ref },
55
- React.createElement("h3", { className: "card-heading case-detail-panel-card-heading card-header-bg" },
56
- t('Request an escalation'),
57
- React.createElement("div", { style: { marginLeft: 'auto' } },
58
- React.createElement(Popover, { showClose: false, position: 'left', hasAutoWidth: true, bodyContent: (hide) => (React.createElement("a", { href: "/support/escalation", target: "_blank", "aria-label": t('Learn more about escalation cases.') },
59
- React.createElement(Trans, null, "Learn more about escalation cases."))) },
60
- React.createElement(InfoCircleIcon, { title: t('Learn more about escalation cases popover') })))),
61
- React.createElement("div", { className: "card-body" },
56
+ const isNotInternalElements = (React.createElement(Card, { className: "card-support escalations", ref: ref },
57
+ React.createElement(CardHeader, null,
58
+ React.createElement("div", { className: "escalation-header" },
59
+ React.createElement("h3", { className: "card-heading case-detail-panel-card-heading" }, t('Request an escalation')),
60
+ React.createElement("div", { style: { marginLeft: 'auto' } },
61
+ React.createElement(Popover, { showClose: false, position: 'left', hasAutoWidth: true, bodyContent: (hide) => (React.createElement("a", { href: "/support/escalation", target: "_blank", "aria-label": t('Learn more about escalation cases.') },
62
+ React.createElement(Trans, null, "Learn more about escalation cases."))) },
63
+ React.createElement(InfoCircleIcon, { title: t('Learn more about escalation cases popover') }))))),
64
+ React.createElement(CardBody, null,
62
65
  isInternal && (React.createElement(React.Fragment, null,
63
66
  React.createElement("p", null,
64
67
  React.createElement(LockIcon, null),
@@ -74,7 +77,7 @@ export const ActiveCustomerEscalation = forwardRef((props, ref) => {
74
77
  React.createElement("p", null,
75
78
  React.createElement("strong", null, t('Request a management escalation if your issue')),
76
79
  ":"),
77
- React.createElement(List, { className: "pf-v5-u-pl-lg" },
80
+ React.createElement(List, { className: "pf-v6-u-pl-lg" },
78
81
  React.createElement(ListItem, null, t(`Isn't being resolved appropriately.`)),
79
82
  React.createElement(ListItem, null, t('Needs a senior resource.')),
80
83
  React.createElement(ListItem, null, t('Is more severe or should be a higher priority.'))),
@@ -1 +1 @@
1
- {"version":3,"file":"RequestEscalationModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAkBnD,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAID,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,qBA+WnD"}
1
+ {"version":3,"file":"RequestEscalationModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.tsx"],"names":[],"mappings":"AAgCA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAkBnD,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAID,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,qBA2WnD"}
@@ -8,10 +8,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { escalations, publicApi } from '@cee-eng/hydrajs';
11
- import { Button, Form, FormGroup, FormHelperText, Grid, GridItem, HelperText, HelperTextItem, Modal, Popover, TextArea, TextInput, Title, ValidatedOptions, } from '@patternfly/react-core';
12
- import { Select, SelectOption } from '@patternfly/react-core/deprecated';
11
+ import { Button, Form, FormGroup, FormHelperText, Grid, GridItem, HelperText, HelperTextItem, Modal, ModalFooter, ModalHeader, Popover, TextArea, TextInput, Title, ValidatedOptions, } from '@patternfly/react-core';
13
12
  import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
14
- import { AlertMessage, AlertType, LoadingIndicator, ToastNotification, useFetch } from '@rh-support/components';
13
+ import { AlertMessage, AlertType, LoadingIndicator, SingleSelectDropdown, ToastNotification, useFetch, } from '@rh-support/components';
15
14
  import { useGlobalStateContext } from '@rh-support/react-context';
16
15
  import isEmpty from 'lodash/isEmpty';
17
16
  import React, { useEffect, useState } from 'react';
@@ -28,10 +27,6 @@ const customerGEOKeys = Object.keys(CustomerGEOs);
28
27
  export function RequestEscalationModal(props) {
29
28
  const { globalMetadataState: { loggedInUser, loggedInUserRights }, } = useGlobalStateContext();
30
29
  const { t } = useTranslation();
31
- const [showGeoDropdown, setGeoShowDropdown] = useState(false);
32
- const onGeoDropdownToggle = (toggle) => setGeoShowDropdown(toggle);
33
- const [showCategoryDropdown, setCategoryShowDropdown] = useState(false);
34
- const onCategoryDropdownToggle = (toggle) => setCategoryShowDropdown(toggle);
35
30
  const [categories, setCategories] = useState([]);
36
31
  const initialState = {
37
32
  subject: '',
@@ -60,13 +55,11 @@ export function RequestEscalationModal(props) {
60
55
  const caseDispatch = useCaseDispatch();
61
56
  const [creationError, setCreationError] = useState(false);
62
57
  const onErrorClose = () => setCreationError(false);
63
- const setGeoState = (event, selection) => {
64
- setFormState(Object.assign(Object.assign({}, formState), { geo: selection }));
65
- onGeoDropdownToggle(false);
58
+ const setGeoState = (selection) => {
59
+ setFormState(Object.assign(Object.assign({}, formState), { geo: selection.value }));
66
60
  };
67
- const setCategoryState = (event, selection) => {
68
- setFormState(Object.assign(Object.assign({}, formState), { rmeCategory: selection }));
69
- onCategoryDropdownToggle(false);
61
+ const setCategoryState = (selection) => {
62
+ setFormState(Object.assign(Object.assign({}, formState), { rmeCategory: selection.value }));
70
63
  };
71
64
  const submitEscalationComment = (escalationNum, comment) => __awaiter(this, void 0, void 0, function* () {
72
65
  escalationNum &&
@@ -119,19 +112,11 @@ export function RequestEscalationModal(props) {
119
112
  setCreationError(true);
120
113
  }
121
114
  });
122
- const modalActions = [
123
- React.createElement(Button, { key: "submit", variant: "primary", onClick: onSubmit, "data-tracking-id": "request-rme-submit", isDisabled: submitButtonIsClicked &&
124
- (isPostingComment || isUpdatingCase || createEscalationFetch.isFetching || !hasRequiredInfo()), "aria-label": t('Submit') },
125
- (isPostingComment || isUpdatingCase || createEscalationFetch.isFetching) && (React.createElement(LoadingIndicator, { key: "loading", isInline: true })),
126
- ' ',
127
- t('Submit')),
128
- React.createElement(Button, { key: "cancel", variant: "link", onClick: onCancel, "data-tracking-id": "request-rme-cancel", isDisabled: createEscalationFetch.isFetching || isPostingComment || isUpdatingCase, "aria-label": t('Cancel') }, t('Cancel')),
129
- ];
130
- const header = (React.createElement(Title, { className: "pf-v5-u-mb-0", id: "custom-header-label", headingLevel: "h1" },
115
+ const header = (React.createElement(Title, { className: "pf-v6-u-mb-0", id: "custom-header-label", headingLevel: "h1" },
131
116
  React.createElement(Trans, null, "Request an escalation"),
132
117
  React.createElement(Popover, { showClose: false, position: 'top', hasAutoWidth: true, bodyContent: () => (React.createElement("a", { href: "/support/escalation", target: "_blank", "aria-label": t('Learn more about escalation cases.') },
133
118
  React.createElement(Trans, null, "Learn more about escalation cases."))) },
134
- React.createElement(InfoCircleIcon, { className: "pf-v5-u-ml-sm" }))));
119
+ React.createElement(InfoCircleIcon, { className: "pf-v6-u-ml-sm" }))));
135
120
  // load rme categories as soon as user opens the modal
136
121
  useEffect(() => {
137
122
  if (!props.show || categories.length !== 0)
@@ -148,26 +133,45 @@ export function RequestEscalationModal(props) {
148
133
  fetchCategories();
149
134
  // eslint-disable-next-line react-hooks/exhaustive-deps
150
135
  }, [props.show]);
151
- return (React.createElement(Modal, { id: "request-mgmt-escalation-modal", className: "request-escalation-modal", isOpen: props.show, onClose: onCancel, actions: modalActions, header: header, "aria-label": t('Request an escalation') },
152
- React.createElement("p", { className: "pf-v5-u-mb-md" },
136
+ const categoryOptions = categories.map((value) => ({
137
+ value: value,
138
+ label: value,
139
+ }));
140
+ // Create selected option object based on current selection
141
+ const selectedCategory = {
142
+ value: formState.rmeCategory,
143
+ label: formState.rmeCategory || t('Select an option that best fits'),
144
+ };
145
+ const geoOptions = customerGEOKeys.map((key) => ({
146
+ value: CustomerGEOs[key].value,
147
+ label: t(CustomerGEOs[key].label),
148
+ }));
149
+ // Create selected option object based on current selection
150
+ const findSelectedGeoLabel = () => {
151
+ const selectedKey = customerGEOKeys.find((key) => CustomerGEOs[key].value === formState.geo);
152
+ return selectedKey ? t(CustomerGEOs[selectedKey].label) : '';
153
+ };
154
+ const selectedGeo = {
155
+ value: formState.geo,
156
+ label: findSelectedGeoLabel() || t('Select a location'),
157
+ };
158
+ return (React.createElement(Modal, { id: "request-mgmt-escalation-modal", className: "request-escalation-modal", isOpen: props.show, onClose: onCancel, "aria-label": t('Request an escalation') },
159
+ React.createElement(ModalHeader, null, header),
160
+ React.createElement("p", { className: "pf-v6-u-mb-md" },
153
161
  React.createElement(Trans, { i18nKey: "i18RequestEscalationDescription" }, "Submit an escalation if an issue has become more severe or you feel the case needs a higher priority. A support manager will review your escalation request.")),
154
- React.createElement(AlertMessage, { variant: AlertType.DANGER, title: t('Could not create case escalation'), show: creationError, onClose: onErrorClose, isInline: true, className: "pf-v5-u-mb-md", "aria-label": t('Could not create case escalation') }),
162
+ React.createElement(AlertMessage, { variant: AlertType.DANGER, title: t('Could not create case escalation'), show: creationError, onClose: onErrorClose, isInline: true, className: "pf-v6-u-mb-md", "aria-label": t('Could not create case escalation') }),
155
163
  React.createElement(Form, { "aria-label": t('form'), className: "request-escalation-form" },
156
164
  React.createElement(Grid, { hasGutter: true, md: 12 },
157
165
  React.createElement(GridItem, { span: 6 },
158
166
  React.createElement(FormGroup, { isRequired: true, label: t('Category'), fieldId: "escalation-category" },
159
- React.createElement(Select, Object.assign({ "aria-label": t('Category'), id: "customer-category-select", selections: formState.rmeCategory, validated: submitButtonIsClicked && isEmpty(formState.rmeCategory)
160
- ? ValidatedOptions.error
161
- : ValidatedOptions.default, "aria-invalid": submitButtonIsClicked && isEmpty(formState.rmeCategory), onSelect: setCategoryState, isOpen: showCategoryDropdown, placeholderText: t('Select an option that best fits'), onToggle: (_event, toggle) => onCategoryDropdownToggle(toggle) }, (isCategoriesFetching && { loadingVariant: 'spinner' })), categories.map((value, index) => (React.createElement(SelectOption, { key: index, value: value }, value)))))),
167
+ React.createElement(SingleSelectDropdown, { id: "customer-category-select", ariaLabel: t('Category'), selected: selectedCategory, options: categoryOptions, isDisabled: false, isLoading: isCategoriesFetching, isInvalid: submitButtonIsClicked && isEmpty(formState.rmeCategory), placeholder: t('Select an option that best fits'), onSelect: (option) => setCategoryState(option), isScrollable: true }))),
162
168
  React.createElement(GridItem, { span: 6 },
163
169
  React.createElement(FormGroup, { isRequired: true, label: t('My region'), fieldId: "escalation-region" },
164
- React.createElement(Select, { "aria-label": t('My region'), id: "customer-geo-select", selections: formState.geo, onSelect: setGeoState, isOpen: showGeoDropdown, validated: submitButtonIsClicked && isEmpty(formState.geo)
165
- ? ValidatedOptions.error
166
- : ValidatedOptions.default, placeholderText: t('Select a location'), onToggle: (_event, toggle) => onGeoDropdownToggle(toggle), "aria-invalid": submitButtonIsClicked && isEmpty(formState.geo) }, customerGEOKeys.map((key, index) => (React.createElement(SelectOption, { key: index, value: CustomerGEOs[key].value }, t(CustomerGEOs[key].label))))))),
170
+ React.createElement(SingleSelectDropdown, { ariaLabel: t('My region'), id: "customer-geo-select", selected: selectedGeo, options: geoOptions, isInvalid: submitButtonIsClicked && isEmpty(formState.geo), placeholder: t('Select a location'), onSelect: (option) => setGeoState(option) }))),
167
171
  React.createElement(FormGroup, { isRequired: true, label: t('Subject'), fieldId: "escalation-subject" },
168
172
  submitButtonIsClicked && hasLargeSubject && (React.createElement(FormHelperText, null,
169
173
  React.createElement(HelperText, null,
170
- React.createElement(HelperTextItem, { variant: ValidatedOptions.error, hasIcon: true }, t('Subject cannot be more than {{limit}} characters', {
174
+ React.createElement(HelperTextItem, { variant: ValidatedOptions.error }, t('Subject cannot be more than {{limit}} characters', {
171
175
  limit: ESCALATION_SUBJECT_LENGTH_LIMIT,
172
176
  }))))),
173
177
  React.createElement(TextInput, { isRequired: true, validated: (submitButtonIsClicked && isEmpty(formState.subject)) || hasLargeSubject
@@ -184,5 +188,12 @@ export function RequestEscalationModal(props) {
184
188
  React.createElement(FormGroup, { isRequired: true, label: t('Business impact'), fieldId: "escalation-business-impact" },
185
189
  React.createElement(TextArea, { onChange: (e, value) => setFormStateValue('businessImpactDescription', value), isRequired: true, validated: submitButtonIsClicked && isEmpty(formState.businessImpactDescription)
186
190
  ? ValidatedOptions.error
187
- : ValidatedOptions.default, placeholder: t('Does your business impact change with this escalation? Please describe how it changed.'), id: "business-impact-input", value: formState.businessImpactDescription, "aria-label": t('Business impact'), resizeOrientation: "vertical" }))))));
191
+ : ValidatedOptions.default, placeholder: t('Does your business impact change with this escalation? Please describe how it changed.'), id: "business-impact-input", value: formState.businessImpactDescription, "aria-label": t('Business impact'), resizeOrientation: "vertical" })))),
192
+ React.createElement(ModalFooter, null,
193
+ React.createElement(Button, { key: "submit", variant: "primary", onClick: onSubmit, "data-tracking-id": "request-rme-submit", isDisabled: submitButtonIsClicked &&
194
+ (isPostingComment || isUpdatingCase || createEscalationFetch.isFetching || !hasRequiredInfo()), "aria-label": t('Submit') },
195
+ (isPostingComment || isUpdatingCase || createEscalationFetch.isFetching) && (React.createElement(LoadingIndicator, { key: "loading", isInline: true })),
196
+ ' ',
197
+ t('Submit')),
198
+ React.createElement(Button, { key: "cancel", variant: "link", onClick: onCancel, "data-tracking-id": "request-rme-cancel", isDisabled: createEscalationFetch.isFetching || isPostingComment || isUpdatingCase, "aria-label": t('Cancel') }, t('Cancel')))));
188
199
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CaseDetailsAside.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsAside.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAYhF,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;CACtB;AAMD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,qBA+Y7C"}
1
+ {"version":3,"file":"CaseDetailsAside.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsAside.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAYhF,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;CACtB;AAMD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,qBA8Y7C"}
@@ -9,11 +9,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { publicApi } from '@cee-eng/hydrajs';
11
11
  import { Button, Checkbox, Icon, Popover, PopoverPosition, Switch, Tooltip } from '@patternfly/react-core';
12
- import AngleDoubleLeftIcon from '@patternfly/react-icons/dist/js/icons/angle-double-left-icon';
13
- import AngleDoubleRightIcon from '@patternfly/react-icons/dist/js/icons/angle-double-right-icon';
14
12
  import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
15
13
  import ListIcon from '@patternfly/react-icons/dist/js/icons/list-icon';
16
14
  import LockIcon from '@patternfly/react-icons/dist/js/icons/lock-icon';
15
+ import OpenDrawerRightIcon from '@patternfly/react-icons/dist/js/icons/open-drawer-right-icon';
17
16
  import TrendUpIcon from '@patternfly/react-icons/dist/js/icons/trend-up-icon';
18
17
  import { ErrorBoundary, ToastNotification, useBreakpoint, useFetch, useForceUpdate } from '@rh-support/components';
19
18
  import { GlobalMetadataDispatchContext, toggleViewAsCustomerFlag, useGlobalStateContext, useUserPreferences, } from '@rh-support/react-context';
@@ -196,38 +195,33 @@ export function CaseDetailsAside(props) {
196
195
  React.createElement("div", { className: "case-detail-collapse-panel" },
197
196
  React.createElement("p", { className: "case-detail-collapse-label" },
198
197
  React.createElement(Trans, null, "Collapse")),
199
- React.createElement(Icon, { className: "pf-v5-u-ml-auto", size: "md" },
200
- React.createElement(AngleDoubleRightIcon, null))))) : (React.createElement("div", { className: "pf-v5-u-display-flex pf-v5-u-flex-direction-column sidebar-section-collapsed" },
198
+ React.createElement(OpenDrawerRightIcon, { className: "pf-v6-u-ml-auto" })))) : (React.createElement("div", { className: "pf-v6-u-display-flex pf-v6-u-flex-direction-column sidebar-section-collapsed" },
201
199
  React.createElement(Tooltip, { content: t('Expand sidebar'), position: "left" },
202
- React.createElement("div", { className: "case-detail-collapse-panel" },
203
- React.createElement(Icon, { size: "md" },
204
- React.createElement(AngleDoubleLeftIcon, null)))),
200
+ React.createElement("div", { className: "case-detail-collapse-panel pf-v6-u-mb-xs" },
201
+ React.createElement(OpenDrawerRightIcon, { className: "mirrored" }))),
205
202
  canSeeToggleCustomerView && (React.createElement(Tooltip, { content: viewAsCustomer ? t('External view') : t('Internal view'), position: "left" },
206
- React.createElement(Button, { variant: "link", onClick: () => setSectionToScollRef(toggleCustomerViewRef), className: "sidebar-section-toggle-btn", "aria-label": viewAsCustomer ? t('External view') : t('Internal view') },
207
- React.createElement(Icon, { size: "md", className: viewAsCustomer ? 'blueLock' : 'greyLock' },
208
- React.createElement(LockIcon, null))))),
203
+ React.createElement(Button, { icon: React.createElement(Icon, { size: "md", className: viewAsCustomer ? 'blueLock' : 'greyLock' },
204
+ React.createElement(LockIcon, null)), variant: "link", onClick: () => setSectionToScollRef(toggleCustomerViewRef), className: "sidebar-section-toggle-btn", "aria-label": viewAsCustomer ? t('External view') : t('Internal view') }))),
209
205
  !isLoadingRecommendations && allDocs.length > 0 && (React.createElement(Tooltip, { content: t('Top recommendations'), position: "left" },
210
- React.createElement(Button, { variant: "link", onClick: () => setSectionToScollRef(topSolutionsRef), className: "sidebar-section-toggle-btn", "aria-label": t('Top recommendations') },
211
- React.createElement(Icon, { size: "md" },
212
- React.createElement(ListIcon, null))))),
206
+ React.createElement(Button, { icon: React.createElement(Icon, { size: "md" },
207
+ React.createElement(ListIcon, null)), variant: "link", onClick: () => setSectionToScollRef(topSolutionsRef), className: "sidebar-section-toggle-btn", "aria-label": t('Top recommendations') }))),
213
208
  !caseEscalations.isFetching && (canCreateICE || (canCreateRME && isCreateRMEVisible)) && (React.createElement(Tooltip, { content: t('Request an escalation'), position: "left" },
214
- React.createElement(Button, { variant: "link", className: "sidebar-section-toggle-btn", onClick: () => setSectionToScollRef(createEscalationRef), "aria-label": t('Request an escalation') },
215
- React.createElement(Icon, { size: "md" },
216
- React.createElement(TrendUpIcon, null)))))))),
209
+ React.createElement(Button, { icon: React.createElement(Icon, { size: "md" },
210
+ React.createElement(TrendUpIcon, null)), variant: "link", className: "sidebar-section-toggle-btn", onClick: () => setSectionToScollRef(createEscalationRef), "aria-label": t('Request an escalation') })))))),
217
211
  React.createElement("pfe-collapse-panel", { className: "sidebar-content", "pfe-animation": "false", id: "case-details-aside-content", ref: caseDetailsAsidePanelRef },
218
212
  React.createElement("div", { className: "grid-aside-content" },
219
213
  React.createElement("div", null,
220
- canSeeToggleCustomerView && (React.createElement("div", { className: "pf-v5-u-display-flex customer-view-toggle", ref: toggleCustomerViewRef },
214
+ canSeeToggleCustomerView && (React.createElement("div", { className: "pf-v6-u-display-flex customer-view-toggle", ref: toggleCustomerViewRef },
221
215
  React.createElement("span", { className: "customer-view-switch-label" },
222
216
  preferredOrDefaultCaseView() ? t('Customer view') : t('Internal view'),
223
217
  React.createElement(Popover, { "aria-label": "Preferred-default-case-view-popover", position: PopoverPosition.top, bodyContent: React.createElement("p", { className: 'pref-case-popover-text' },
224
218
  React.createElement(Trans, null, renderCasePrefPopoverText())), showClose: false },
225
- React.createElement(InfoCircleIcon, { "aria-label": "Preferred-case-view-info-icon", className: "pf-v5-u-ml-sm" }))),
219
+ React.createElement(InfoCircleIcon, { "aria-label": "Preferred-case-view-info-icon", className: "pf-v6-u-ml-sm pf-v6-u-text-color-status-custom cursor-pointer" }))),
226
220
  React.createElement(Switch, { title: preferredOrDefaultCaseView() ? t('Customer view') : t('Internal view'), "data-tracking-id": preferredOrDefaultCaseView()
227
221
  ? 'disable-view-as-customer'
228
222
  : 'enable-view-as-customer', "aria-label": preferredOrDefaultCaseView()
229
223
  ? 'disable view as customer'
230
- : 'enable view as customer', id: "customer-view-switch", className: "pf-v5-u-ml-auto", isChecked: preferredOrDefaultCaseView(), onChange: onCaseSwitchChange }))),
224
+ : 'enable view as customer', id: "customer-view-switch", className: "pf-v6-u-ml-auto", isChecked: preferredOrDefaultCaseView(), onChange: onCaseSwitchChange }))),
231
225
  canSeeToggleCustomerView && (React.createElement("div", null,
232
226
  React.createElement(Checkbox, { label: t('Set to default'), isChecked: isDefaultBoxChecked, onChange: onDefaultCheckboxChange, id: "set-default-view-checkbox", name: "default-view-checkbox", isDisabled: isDefaultBoxChecked, className: 'defaultViewCheckbox' })))),
233
227
  React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading top solutions') } },
@@ -46,7 +46,7 @@ export function CaseDetailsErrorMessage(props) {
46
46
  '404': { message: errorMessage404 },
47
47
  });
48
48
  };
49
- return (React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "pf-v5-u-mb-lg", show: true,
49
+ return (React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "pf-v6-u-mb-lg", show: true,
50
50
  // Here customizing title of alert based on case group error.
51
51
  title: errorMessageTitle(errorDetails, Object.assign({}, (isCaseGroupError && {
52
52
  '403': { title: invalidCaseGroupErrorTitle },
@@ -1 +1 @@
1
- {"version":3,"file":"CaseDetailsTabs.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsTabs.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAa,MAAM,kBAAkB,CAAC;AA0BlE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,mBAAmB,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AACD,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,qBAoS5C"}
1
+ {"version":3,"file":"CaseDetailsTabs.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsTabs.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAa,MAAM,kBAAkB,CAAC;AA0BlE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,mBAAmB,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AACD,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,qBAqS5C"}
@@ -1,4 +1,4 @@
1
- import { Label, Popover, Tab, TabContent, Tabs, TabsComponent, TabTitleText, Text, TextContent, TextVariants, } from '@patternfly/react-core';
1
+ import { Content, ContentVariants, Label, Popover, Tab, TabContent, Tabs, TabsComponent, TabTitleText, } from '@patternfly/react-core';
2
2
  import ExternalLinkAltIcon from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
3
3
  import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
4
4
  import { ErrorBoundary, LoadingIndicator } from '@rh-support/components';
@@ -135,6 +135,7 @@ export function CaseDetailsTabs(props) {
135
135
  component: React.createElement(CaseSummary, { caseNumber: caseNumber }),
136
136
  });
137
137
  const getActiveTabKey = () => {
138
+ console.warn(activeTab, activeTabKey);
138
139
  if (!activeTab)
139
140
  return activeTabKey;
140
141
  const tabIndex = tabsToRender.findIndex((item) => item.routePath === activeTab);
@@ -150,8 +151,7 @@ export function CaseDetailsTabs(props) {
150
151
  ? 'tab-title-with-badge'
151
152
  : undefined },
152
153
  React.createElement(Trans, null, tab.title),
153
- tab.title === CaseDetailsTabsEnum.GENERATE_AI_CASE_SUMMARY && (React.createElement("div", { className: "gradient-border-badge" },
154
- React.createElement(Label, { className: "preview-label" }, "Preview"))),
154
+ tab.title === CaseDetailsTabsEnum.GENERATE_AI_CASE_SUMMARY && (React.createElement(Label, { isCompact: true, variant: "outline", className: "preview-label" }, "Preview")),
155
155
  tab.title === CaseDetailsTabsEnum.HISTORY && (React.createElement(Popover, { "aria-label": "Track support case evolution with case history", triggerAction: "hover", bodyContent: React.createElement(React.Fragment, null,
156
156
  React.createElement("p", null, "Track support case evolution with case history"),
157
157
  React.createElement("a", { href: "https://access.redhat.com/articles/7120652", target: "_blank", rel: "noreferrer" },
@@ -160,14 +160,14 @@ export function CaseDetailsTabs(props) {
160
160
  React.createElement("span", { style: { marginLeft: '0.25rem' } },
161
161
  React.createElement(ExternalLinkAltIcon, null)))) },
162
162
  React.createElement(InfoCircleIcon, { color: "gray" })))) })))),
163
- React.createElement("div", { className: "case-details-tabs-content pf-v5-u-pt-xl" }, tabsToRender.map((tab, index) => {
163
+ React.createElement("div", { className: "case-details-tabs-content pf-v6-u-pt-xl" }, tabsToRender.map((tab, index) => {
164
164
  return index === getActiveTabKey() && !isExportingPDF ? (React.createElement(TabContent, { eventKey: index, key: tab.key, id: `pf-tab-${index}-${tab.title.split(' ')[0]}-tabpanel`, ref: tab.ref, "aria-label": tab.title, hidden: isExportingPDF ? !isTabVisibleInPdfExport(tab) : index !== getActiveTabKey() },
165
165
  React.createElement(ErrorBoundary, { errorMsgInfo: {
166
166
  message: t(`There was an error loading case ${tab.key}`),
167
167
  } },
168
168
  React.createElement(Suspense, { fallback: React.createElement(LoadingIndicator, { size: "sm" }) },
169
- React.createElement(TextContent, { className: "show-in-pdf pf-v5-u-mt-md" },
170
- React.createElement(Text, { component: TextVariants.h2 },
169
+ React.createElement(Content, { className: "show-in-pdf pf-v6-u-mt-md" },
170
+ React.createElement(Content, { component: ContentVariants.h2 },
171
171
  React.createElement(Trans, null, tab.title))),
172
172
  tab.component)))) : isExportingPDF && isTabVisibleInPdfExport(tab) ? (React.createElement(React.Fragment, null,
173
173
  React.createElement("div", { className: "page-break" }),
@@ -176,8 +176,8 @@ export function CaseDetailsTabs(props) {
176
176
  message: t(`There was an error loading case ${tab.key}`),
177
177
  } },
178
178
  React.createElement(Suspense, { fallback: React.createElement(LoadingIndicator, { size: "sm" }) },
179
- React.createElement(TextContent, { className: "show-in-pdf pf-v5-u-mt-md" },
180
- React.createElement(Text, { component: TextVariants.h2 },
179
+ React.createElement(Content, { className: "show-in-pdf pf-v6-u-mt-md" },
180
+ React.createElement(Content, { component: ContentVariants.h2 },
181
181
  React.createElement(Trans, null, tab.title))),
182
182
  tab.component))))) : (React.createElement(React.Fragment, null));
183
183
  }))));
@@ -46,5 +46,5 @@ export default function CaseOwnerInfo(props) {
46
46
  React.createElement(Trans, null, "Office location")),
47
47
  ": ",
48
48
  props.caseDetailsHydra.data.caseOwner.officeLocation)) },
49
- React.createElement(QuestionCircleIcon, { className: "pf-v5-u-ml-xs icon-size", "aria-label": "Support Level Info" })))))));
49
+ React.createElement(QuestionCircleIcon, { className: "pf-v6-u-ml-xs icon-size", "aria-label": "Support Level Info" })))))));
50
50
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DateTime.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/DateTime.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,UAAU,MAAM;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;IAC/C,cAAc,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAiBD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC7B,WAAkB,EAClB,iBAA4C,EAC5C,cAAsC,EACtC,cAAmB,EACnB,MAAgB,GACnB,EAAE,MAAM,qBAqBR"}
1
+ {"version":3,"file":"DateTime.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/DateTime.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,UAAU,MAAM;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;IAC/C,cAAc,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAiBD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC7B,WAAkB,EAClB,iBAA4C,EAC5C,cAAsC,EACtC,cAAmB,EACnB,MAAgB,GACnB,EAAE,MAAM,qBAyBR"}
@@ -19,5 +19,5 @@ export default function DateTime({ showToolTip = true, toolTipTimeFormat = defau
19
19
  return (React.createElement(React.Fragment, null,
20
20
  React.createElement("time", { dateTime: dateTimeString }, formatDateTime(dateTimeString, locale, dateTimeFormat)),
21
21
  showToolTip && (React.createElement(Tooltip, { content: React.createElement("time", { dateTime: dateTimeString }, formatDateTime(dateTimeString, locale, toolTipTimeFormat)) },
22
- React.createElement(InfoIcon, { className: `pf-v5-u-ml-sm ${isExportingPDF ? 'hide-in-pdf' : ''}` })))));
22
+ React.createElement(InfoIcon, { className: `pf-v6-u-ml-sm pf-v6-u-text-color-status-custom cursor-pointer ${isExportingPDF ? 'hide-in-pdf' : ''}` })))));
23
23
  }
@@ -226,15 +226,15 @@ export default function CaseOverview(props) {
226
226
  React.createElement("div", { className: "case-overview-header" },
227
227
  canSeeInactivityWarning && isCaseInOpenState && (React.createElement(React.Fragment, null,
228
228
  ' ',
229
- firstCaseInactivityWarningSentAt && !secondCaseInactivityWarningSentAt && (React.createElement(Alert, { className: "pf-v5-u-mb-md", isInline: true, title: React.createElement(React.Fragment, null,
230
- React.createElement("h3", { className: "pf-v5-u-mb-sm pf-v5-c-alert__title" },
229
+ firstCaseInactivityWarningSentAt && !secondCaseInactivityWarningSentAt && (React.createElement(Alert, { className: "pf-v6-u-mb-md", isInline: true, title: React.createElement(React.Fragment, null,
230
+ React.createElement("h3", { className: "pf-v6-u-mb-sm pf-v6-c-alert__title" },
231
231
  React.createElement(Trans, null, "Case inactivity notification")),
232
- React.createElement("p", { className: "pf-v5-u-mb-sm" },
232
+ React.createElement("p", { className: "pf-v6-u-mb-sm" },
233
233
  React.createElement(Trans, null, "The customer has received one warning regarding inactivity."))) })),
234
- firstCaseInactivityWarningSentAt && secondCaseInactivityWarningSentAt && (React.createElement(Alert, { className: "pf-v5-u-mb-md", isInline: true, variant: AlertVariant.warning, title: React.createElement(React.Fragment, null,
235
- React.createElement("h3", { className: "pf-v5-u-mb-sm pf-v5-c-alert__title" },
234
+ firstCaseInactivityWarningSentAt && secondCaseInactivityWarningSentAt && (React.createElement(Alert, { className: "pf-v6-u-mb-md", isInline: true, variant: AlertVariant.warning, title: React.createElement(React.Fragment, null,
235
+ React.createElement("h3", { className: "pf-v6-u-mb-sm pf-v6-c-alert__title" },
236
236
  React.createElement(Trans, null, "Case inactivity warning")),
237
- React.createElement("p", { className: "pf-v5-u-mb-sm" },
237
+ React.createElement("p", { className: "pf-v6-u-mb-sm" },
238
238
  React.createElement(Trans, null, "The customer has received two warnings regarding inactivity. This case will be closed soon if we don't receive any input."))) })))),
239
239
  React.createElement(CaseContactPhoneNumberAlert, { isReview: true, tabRef: props.tabsRef }),
240
240
  React.createElement("header", null,
@@ -244,7 +244,7 @@ export default function CaseOverview(props) {
244
244
  props.caseNumber),
245
245
  React.createElement("div", null,
246
246
  exportPDFButton(props.caseNumber),
247
- React.createElement(Button, Object.assign({ className: `pf-v5-u-ml-md ${isExportingPDF ? 'hide-in-pdf' : ''}`, isDisabled: !canManageCase }, ((showCloseCaseModal || showReOpenCaseModal) &&
247
+ React.createElement(Button, Object.assign({ className: `pf-v6-u-ml-md ${isExportingPDF ? 'hide-in-pdf' : ''}`, isDisabled: !canManageCase }, ((showCloseCaseModal || showReOpenCaseModal) &&
248
248
  isCaseUpdating && {
249
249
  isLoading: true,
250
250
  }), { onClick: () => (isCaseInOpenState ? onCaseClose() : onCaseReopen()), variant: isCaseInOpenState ? ButtonVariant.secondary : ButtonVariant.tertiary, "data-tracking-id": isCaseInOpenState
@@ -288,7 +288,7 @@ export default function CaseOverview(props) {
288
288
  React.createElement("div", null, createdDate ? React.createElement(DateTime, { dateTimeString: createdDate }) : null)),
289
289
  canSeeCaseOwnerInfo && (React.createElement(CaseOwnerInfo, { owner: ownerId, caseDetailsHydra: caseOverviewState.caseDetailsHydra }))),
290
290
  React.createElement("div", { className: "case-overview-secondary card card-md card-light push-bottom" },
291
- React.createElement("div", { className: "pf-v5-l-grid pf-m-gutter pf-m-all-4-col-on-lg" },
291
+ React.createElement("div", { className: "pf-v6-l-grid pf-m-gutter pf-m-all-4-col-on-lg" },
292
292
  React.createElement("div", { className: "form-wrapper" },
293
293
  React.createElement(CaseStatus, { selectedStatus: status, onStatusChange: onStatusChange, isDisabled: !canManageCase || caseOverviewState.allCaseStatuses.isFetching, allStatuses: caseOverviewState.allCaseStatuses.data, isFetching: caseOverviewState.caseStatusUpdating && isCaseUpdating, hasError: caseOverviewState.allCaseStatuses.isError })),
294
294
  React.createElement("div", { className: "form-wrapper" },
@@ -1 +1 @@
1
- {"version":3,"file":"CaseSolutions.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseSolutions/CaseSolutions.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAsD,MAAM,OAAO,CAAC;AAwE3E,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB,EAAE,OAAO,CAAC;CACnC;AAUD,eAAO,MAAM,aAAa,+EAohBxB,CAAC"}
1
+ {"version":3,"file":"CaseSolutions.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseSolutions/CaseSolutions.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAsD,MAAM,OAAO,CAAC;AAwE3E,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB,EAAE,OAAO,CAAC;CACnC;AAUD,eAAO,MAAM,aAAa,+EA8gBxB,CAAC"}
@@ -19,7 +19,7 @@ var __rest = (this && this.__rest) || function (s, e) {
19
19
  return t;
20
20
  };
21
21
  import { search } from '@cee-eng/hydrajs';
22
- import { Accordion, AccordionContent, AccordionItem, AccordionToggle, Button, Modal, ModalVariant, } from '@patternfly/react-core';
22
+ import { Accordion, AccordionContent, AccordionItem, AccordionToggle, Button, Card, CardBody, CardHeader, Modal, ModalFooter, ModalVariant, } from '@patternfly/react-core';
23
23
  import { PaginatedList, ToastNotification } from '@rh-support/components';
24
24
  import { useGlobalStateContext } from '@rh-support/react-context';
25
25
  import { AbilityContext, CaseDetailsFields, resourceActions, resources } from '@rh-support/user-permissions';
@@ -282,44 +282,45 @@ export const CaseSolutions = forwardRef((props, ref) => {
282
282
  // redhatter logged in: we show pins but perform link/unlink
283
283
  const renderPinnedByCustomerRedhatterView = (recommendation, index, type) => (React.createElement(CaseSolutionsItem, { showLink: true, type: type, pinTitle: recommendation.isPinnedAndLinked ? t('Unpin') : t('Pin'), isPinLoading: isPinLoading, index: index, recommendation: recommendation, onPinClicked: updateRecommendations(recommendation, undefined, recommendation.isLinked), onLinkClick: (name) => addDtmEvent(name) }));
284
284
  // redhatter logged in: we show links and perform link/unlink
285
- const renderHandPickedByRedHatter = (recommendation, index, type) => (React.createElement("div", { className: "pf-v5-u-ml-lg" },
285
+ const renderHandPickedByRedHatter = (recommendation, index, type) => (React.createElement("div", { className: "pf-v6-u-ml-lg" },
286
286
  React.createElement(CaseSolutionsItem, { showLink: true, type: type, pinTitle: recommendation.isLinked ? t('Unlink') : t('Link'), isPinLoading: isPinLoading, index: index, recommendation: recommendation, onPinClicked: updateRecommendations(recommendation, undefined, recommendation.isLinked), onLinkClick: (name) => addDtmEvent(name) })));
287
287
  const linkedRecommendations = recommendations.filter((r) => r.isLinked);
288
288
  const pinnedRecommendations = recommendations.filter((r) => r.isPinned);
289
- const closeCaseModal = (React.createElement(Modal, { variant: ModalVariant.small, title: t('Did this solve your case?'), isOpen: isCloseCaseModalOpen && caseStatus !== CaseStatusEnum.CLOSED, onClose: () => setIsCloseCaseModalOpen(false), actions: [
289
+ const closeCaseModal = (React.createElement(Modal, { variant: ModalVariant.small, title: t('Did this solve your case?'), isOpen: isCloseCaseModalOpen && caseStatus !== CaseStatusEnum.CLOSED, onClose: () => setIsCloseCaseModalOpen(false) },
290
+ React.createElement(Trans, null, "We're glad to hear this article was helpful. Would you like to close this case or keep it open? You can still view the case after it closes."),
291
+ React.createElement(ModalFooter, null,
290
292
  React.createElement(Button, { variant: "primary", isDisabled: isCaseCloseLoading, onClick: () => setIsCloseCaseModalOpen(false), key: "keep-case-open-btn" },
291
293
  React.createElement(Trans, null, "Keep it open")),
292
294
  React.createElement(Button, { variant: "secondary", isDisabled: isCaseCloseLoading, isLoading: isCaseCloseLoading, key: "close-case-btn", onClick: handleCaseClose },
293
- React.createElement(Trans, null, "Close case")),
294
- ] },
295
- React.createElement(Trans, null, "We're glad to hear this article was helpful. Would you like to close this case or keep it open? You can still view the case after it closes.")));
295
+ React.createElement(Trans, null, "Close case")))));
296
296
  return (React.createElement(React.Fragment, null,
297
297
  closeCaseModal,
298
- React.createElement(Accordion, { isBordered: true, asDefinitionList: false, className: "card card-white case-details-aside-solutions" },
299
- linkedRecommendations.length !== 0 && (React.createElement(AccordionItem, null,
300
- React.createElement(AccordionToggle, { id: "sol-handpicked", isExpanded: handPickedOpen, onClick: () => setHandPickedOpen((pre) => !pre) },
298
+ React.createElement(Accordion, { className: "card card-white case-details-aside-solutions" },
299
+ linkedRecommendations.length !== 0 && (React.createElement(AccordionItem, { isExpanded: handPickedOpen },
300
+ React.createElement(AccordionToggle, { id: "sol-handpicked", onClick: () => setHandPickedOpen((pre) => !pre) },
301
301
  React.createElement("span", null, canLinkUnlink ? (React.createElement(Trans, null, "Handpicked by you")) : (React.createElement(Trans, null, "Handpicked for this case"))),
302
- React.createElement("span", { className: "badge-item pf-v5-u-font-size-sm pf-v5-u-mx-sm" }, linkedRecommendations.length)),
303
- React.createElement(AccordionContent, { isHidden: !handPickedOpen }, !hasLink ? (!canLinkUnlink ? (React.createElement(Trans, null, "If a Red Hat engineer finds an article or solution that can help with your case, they'll pin it here.")) : (React.createElement(React.Fragment, null))) : (React.createElement(PaginatedList, { id: "case-details-handpicked-recommendations", listItems: linkedRecommendations.map((rec, index) => canLinkUnlink
302
+ React.createElement("span", { className: "badge-item pf-v6-u-font-size-sm pf-v6-u-mx-sm" }, linkedRecommendations.length)),
303
+ React.createElement(AccordionContent, null, !hasLink ? (!canLinkUnlink ? (React.createElement(Trans, null, "If a Red Hat engineer finds an article or solution that can help with your case, they'll pin it here.")) : (React.createElement(React.Fragment, null))) : (React.createElement(PaginatedList, { id: "case-details-handpicked-recommendations", listItems: linkedRecommendations.map((rec, index) => canLinkUnlink
304
304
  ? renderHandPickedByRedHatter(rec, index, 'handpicked-recommendations')
305
305
  : renderHandpickedCustomerView(rec, index, 'handpicked-recommendations')), perPage: 5, className: "list-icons list-icons-flush", isFetching: !!isLoadingRecommendations, perPageOptions: [
306
306
  { title: '5', value: 5 },
307
307
  { title: '10', value: 10 },
308
308
  ] }))))),
309
- pinnedRecommendations.length !== 0 && (React.createElement(AccordionItem, null,
310
- React.createElement(AccordionToggle, { id: "sol-pinned", isExpanded: pinnedOpen, onClick: () => setPinnedOpen((pre) => !pre) },
309
+ pinnedRecommendations.length !== 0 && (React.createElement(AccordionItem, { isExpanded: pinnedOpen },
310
+ React.createElement(AccordionToggle, { id: "sol-pinned", onClick: () => setPinnedOpen((pre) => !pre) },
311
311
  React.createElement("span", null, canLinkUnlink ? (React.createElement(Trans, null, "Pinned by customer")) : (React.createElement(Trans, null, "My pinned recommendations"))),
312
- React.createElement("span", { className: "badge-item pf-v5-u-font-size-sm pf-v5-u-mx-sm" }, pinnedRecommendations.length)),
313
- React.createElement(AccordionContent, { isHidden: !pinnedOpen }, !hasPin ? (!canLinkUnlink ? (React.createElement(Trans, null, "When you save a recommended article or solution, you'll see it here. Saved items display only in this case and are not saved for later.")) : (React.createElement(React.Fragment, null))) : (React.createElement(PaginatedList, { id: "case-details-pinned-recommendations", listItems: pinnedRecommendations.map((rec, index) => canLinkUnlink
312
+ React.createElement("span", { className: "badge-item pf-v6-u-font-size-sm pf-v6-u-mx-sm" }, pinnedRecommendations.length)),
313
+ React.createElement(AccordionContent, null, !hasPin ? (!canLinkUnlink ? (React.createElement(Trans, null, "When you save a recommended article or solution, you'll see it here. Saved items display only in this case and are not saved for later.")) : (React.createElement(React.Fragment, null))) : (React.createElement(PaginatedList, { id: "case-details-pinned-recommendations", listItems: pinnedRecommendations.map((rec, index) => canLinkUnlink
314
314
  ? renderPinnedByCustomerRedhatterView(rec, index, 'pinned-recommendations')
315
315
  : renderPinsByCustomer(rec, index, 'pinned-recommendations')), perPage: 5, className: "list-icons list-icons-flush", isFetching: !!isLoadingRecommendations, perPageOptions: [
316
316
  { title: '5', value: 5 },
317
317
  { title: '10', value: 10 },
318
318
  ] })))))),
319
- topRecommendations.length > 0 && (React.createElement("div", { className: "card card-white card-support recommendations", ref: ref },
320
- React.createElement("h3", { className: "card-heading case-detail-panel-card-heading card-header-bg" },
321
- React.createElement(Trans, null, "Knowledgebase recommendations")),
322
- React.createElement("div", { className: "card-body" },
319
+ topRecommendations.length > 0 && (React.createElement(Card, { className: "card-support recommendations", ref: ref },
320
+ React.createElement(CardHeader, null,
321
+ React.createElement("h3", { className: "card-heading case-detail-panel-card-heading" },
322
+ React.createElement(Trans, null, "Knowledgebase recommendations"))),
323
+ React.createElement(CardBody, null,
323
324
  React.createElement(PaginatedList, { id: "case-details-top-recommendations", className: "list-icons list-icons-flush", listItems: topRecommendations
324
325
  .filter((r) => !pinnedRecommendations.some((pr) => pr.resourceId === r.resourceId))
325
326
  .map((rec, index) => renderTopRecommendations(rec, index, 'top-recommendations')), perPage: 5, isFetching: !!isLoadingRecommendations, perPageOptions: [
@@ -1 +1 @@
1
- {"version":3,"file":"CaseSolutionsItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseSolutions/CaseSolutionsItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAQ5E,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,UAAU,MAAM;IACZ,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,8BAA8B,CAAC;IAC/C,YAAY,EAAE,GAAG,CAAC;IAClB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC;AAED,MAAM,WAAW,8BAA+B,SAAQ,OAAO,CAAC,iBAAiB,CAAC;IAC9E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;CACnD;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,qBAwD9C"}
1
+ {"version":3,"file":"CaseSolutionsItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseSolutions/CaseSolutionsItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAQ5E,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,UAAU,MAAM;IACZ,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,8BAA8B,CAAC;IAC/C,YAAY,EAAE,GAAG,CAAC;IAClB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC;AAED,MAAM,WAAW,8BAA+B,SAAQ,OAAO,CAAC,iBAAiB,CAAC;IAC9E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;CACnD;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,qBA2D9C"}