@rh-support/troubleshoot 2.6.341 → 2.6.349

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 (336) hide show
  1. package/lib/esm/components/AccountInfo/AccountSelector.d.ts.map +1 -1
  2. package/lib/esm/components/AccountInfo/AccountSelector.js +29 -19
  3. package/lib/esm/components/AccountInfo/OwnerSelector.d.ts.map +1 -1
  4. package/lib/esm/components/AccountInfo/OwnerSelector.js +16 -91
  5. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.d.ts.map +1 -1
  6. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.js +2 -6
  7. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
  8. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +32 -61
  9. package/lib/esm/components/CaseEditView/Case.d.ts.map +1 -1
  10. package/lib/esm/components/CaseEditView/Case.js +33 -60
  11. package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
  12. package/lib/esm/components/CaseEditView/CaseDetailsAside.js +10 -39
  13. package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.d.ts.map +1 -1
  14. package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.js +4 -15
  15. package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts.map +1 -1
  16. package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +55 -82
  17. package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.d.ts +0 -2
  18. package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.d.ts.map +1 -1
  19. package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.js +3 -3
  20. package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.d.ts +2 -1
  21. package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.d.ts.map +1 -1
  22. package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.js +6 -8
  23. package/lib/esm/components/CaseEditView/CaseOverview/index.d.ts.map +1 -1
  24. package/lib/esm/components/CaseEditView/CaseOverview/index.js +45 -76
  25. package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.d.ts.map +1 -1
  26. package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.js +109 -203
  27. package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts +1 -0
  28. package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts.map +1 -1
  29. package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.js +5 -5
  30. package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts +3 -1
  31. package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts.map +1 -1
  32. package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.js +9 -5
  33. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.d.ts.map +1 -1
  34. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.js +17 -18
  35. package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts.map +1 -1
  36. package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.js +47 -51
  37. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
  38. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +44 -49
  39. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
  40. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +45 -51
  41. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.d.ts.map +1 -1
  42. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.js +10 -21
  43. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.js +1 -1
  44. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInformation.d.ts.map +1 -1
  45. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInformation.js +2 -0
  46. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInternalStatus.d.ts.map +1 -1
  47. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInternalStatus.js +2 -3
  48. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.d.ts.map +1 -1
  49. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.js +57 -132
  50. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.d.ts.map +1 -1
  51. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.js +4 -9
  52. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
  53. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +58 -93
  54. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.d.ts.map +1 -1
  55. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.js +9 -16
  56. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/AsaCommentFeedbackModal.d.ts +25 -0
  57. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/AsaCommentFeedbackModal.d.ts.map +1 -0
  58. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/AsaCommentFeedbackModal.js +91 -0
  59. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.d.ts.map +1 -1
  60. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.js +33 -78
  61. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts +4 -2
  62. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts.map +1 -1
  63. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +153 -122
  64. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts +2 -4
  65. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts.map +1 -1
  66. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +137 -74
  67. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.d.ts.map +1 -1
  68. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.js +9 -22
  69. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/DiscussionItemLink.d.ts.map +1 -1
  70. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/DiscussionItemLink.js +2 -9
  71. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/JumpAndCopyLink.d.ts.map +1 -1
  72. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/JumpAndCopyLink.js +1 -8
  73. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useMarkdownFileUploader.d.ts +2 -2
  74. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useMarkdownFileUploader.d.ts.map +1 -1
  75. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useMarkdownFileUploader.js +7 -18
  76. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts +3 -9
  77. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts.map +1 -1
  78. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +263 -211
  79. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.d.ts.map +1 -1
  80. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.js +4 -6
  81. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.d.ts.map +1 -1
  82. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.js +1 -3
  83. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.css +4 -4
  84. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts +3 -35
  85. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts.map +1 -1
  86. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.js +224 -63
  87. package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts +5 -4
  88. package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts.map +1 -1
  89. package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.js +5 -18
  90. package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.d.ts.map +1 -1
  91. package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.js +2 -7
  92. package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.d.ts.map +1 -1
  93. package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.js +52 -38
  94. package/lib/esm/components/CaseInformation/CaseGroup.d.ts.map +1 -1
  95. package/lib/esm/components/CaseInformation/CaseGroup.js +57 -123
  96. package/lib/esm/components/CaseInformation/CaseInformation.d.ts.map +1 -1
  97. package/lib/esm/components/CaseInformation/CaseInformation.js +9 -10
  98. package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts.map +1 -1
  99. package/lib/esm/components/CaseInformation/ContactPhoneNumber.js +30 -107
  100. package/lib/esm/components/CaseInformation/Description.js +1 -1
  101. package/lib/esm/components/CaseInformation/FileDiag.js +7 -10
  102. package/lib/esm/components/CaseInformation/Fts.d.ts.map +1 -1
  103. package/lib/esm/components/CaseInformation/Fts.js +16 -30
  104. package/lib/esm/components/CaseInformation/Severity.d.ts.map +1 -1
  105. package/lib/esm/components/CaseInformation/Severity.js +11 -17
  106. package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
  107. package/lib/esm/components/CaseInformation/SupportLevel.js +55 -36
  108. package/lib/esm/components/CaseManagement/CaseLanguageSelector.d.ts.map +1 -1
  109. package/lib/esm/components/CaseManagement/CaseLanguageSelector.js +8 -2
  110. package/lib/esm/components/CaseManagement/CaseManagement.d.ts.map +1 -1
  111. package/lib/esm/components/CaseManagement/CaseManagement.js +7 -8
  112. package/lib/esm/components/CaseManagement/Cep.d.ts.map +1 -1
  113. package/lib/esm/components/CaseManagement/Cep.js +9 -11
  114. package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.d.ts +1 -2
  115. package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.d.ts.map +1 -1
  116. package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.js +3 -22
  117. package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +6 -6
  118. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
  119. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +22 -15
  120. package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.d.ts.map +1 -1
  121. package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.js +40 -34
  122. package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.d.ts.map +1 -1
  123. package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.js +3 -8
  124. package/lib/esm/components/EditDescription/EditDescription.js +1 -1
  125. package/lib/esm/components/IdeaInformation/IdeaInformation.d.ts.map +1 -1
  126. package/lib/esm/components/IdeaInformation/IdeaInformation.js +18 -16
  127. package/lib/esm/components/OpenCase/SupportTypeSelectorPage.d.ts.map +1 -1
  128. package/lib/esm/components/OpenCase/SupportTypeSelectorPage.js +2 -4
  129. package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts +1 -0
  130. package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts.map +1 -1
  131. package/lib/esm/components/ProductSelector/AllProductsSelector.js +15 -3
  132. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
  133. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +37 -13
  134. package/lib/esm/components/ProductSelector/NewProductVersionSelector.d.ts.map +1 -1
  135. package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +50 -37
  136. package/lib/esm/components/ProductSelector/ProductSelector.d.ts.map +1 -1
  137. package/lib/esm/components/ProductSelector/ProductSelector.js +3 -1
  138. package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.d.ts.map +1 -1
  139. package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.js +1 -9
  140. package/lib/esm/components/Recommendations/AsideResults.d.ts.map +1 -1
  141. package/lib/esm/components/Recommendations/AsideResults.js +3 -4
  142. package/lib/esm/components/Recommendations/ClusterRecommendationToast.d.ts.map +1 -1
  143. package/lib/esm/components/Recommendations/ClusterRecommendationToast.js +4 -1
  144. package/lib/esm/components/Recommendations/ClusterRecommendations.d.ts.map +1 -1
  145. package/lib/esm/components/Recommendations/ClusterRecommendations.js +4 -1
  146. package/lib/esm/components/Recommendations/InsightsResults.js +3 -3
  147. package/lib/esm/components/Recommendations/Recommendations.js +2 -2
  148. package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.d.ts.map +1 -1
  149. package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.js +8 -10
  150. package/lib/esm/components/Review/Review.d.ts.map +1 -1
  151. package/lib/esm/components/Review/Review.js +16 -20
  152. package/lib/esm/components/SessionRestore/SessionRestore.d.ts.map +1 -1
  153. package/lib/esm/components/SessionRestore/SessionRestore.js +1 -3
  154. package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
  155. package/lib/esm/components/SubmitCase/SubmitCase.js +1 -1
  156. package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +2 -2
  157. package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts.map +1 -1
  158. package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +62 -109
  159. package/lib/esm/components/shared/Constants.d.ts +0 -5
  160. package/lib/esm/components/shared/Constants.d.ts.map +1 -1
  161. package/lib/esm/components/shared/Constants.js +0 -5
  162. package/lib/esm/components/shared/fileUpload/FileLister.d.ts.map +1 -1
  163. package/lib/esm/components/shared/fileUpload/FileLister.js +3 -3
  164. package/lib/esm/components/shared/fileUpload/FileUpload.js +3 -2
  165. package/lib/esm/components/shared/fileUpload/FileUploader.d.ts.map +1 -1
  166. package/lib/esm/components/shared/fileUpload/FileUploader.js +1 -3
  167. package/lib/esm/components/shared/fileUpload/WidgetFileUploader.d.ts.map +1 -1
  168. package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +2 -2
  169. package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.d.ts +1 -1
  170. package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.d.ts.map +1 -1
  171. package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.d.ts +5 -21
  172. package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.d.ts.map +1 -1
  173. package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.js +34 -210
  174. package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducer.d.ts +1 -5
  175. package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducer.d.ts.map +1 -1
  176. package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducer.js +1 -36
  177. package/lib/esm/components/shared/fileUpload/types/index.d.ts +1 -4
  178. package/lib/esm/components/shared/fileUpload/types/index.d.ts.map +1 -1
  179. package/lib/esm/components/shared/fileUpload/useFileUploader.d.ts +2 -2
  180. package/lib/esm/components/shared/fileUpload/useFileUploader.d.ts.map +1 -1
  181. package/lib/esm/components/shared/fileUpload/useFileUploader.js +47 -116
  182. package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
  183. package/lib/esm/components/shared/useIsSectionValid.js +57 -22
  184. package/lib/esm/components/shared/usePostComment.d.ts.map +1 -1
  185. package/lib/esm/components/shared/usePostComment.js +28 -16
  186. package/lib/esm/components/shared/utils.d.ts +0 -1
  187. package/lib/esm/components/shared/utils.d.ts.map +1 -1
  188. package/lib/esm/components/shared/utils.js +3 -9
  189. package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.d.ts.map +1 -1
  190. package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.js +38 -170
  191. package/lib/esm/components/wizardLayout/WizardAside.d.ts.map +1 -1
  192. package/lib/esm/components/wizardLayout/WizardAside.js +4 -2
  193. package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
  194. package/lib/esm/components/wizardLayout/WizardLayout.js +12 -11
  195. package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
  196. package/lib/esm/components/wizardLayout/WizardNavigation.js +10 -11
  197. package/lib/esm/constants/caseDetailsConstants.d.ts +0 -5
  198. package/lib/esm/constants/caseDetailsConstants.d.ts.map +1 -1
  199. package/lib/esm/constants/caseDetailsConstants.js +0 -5
  200. package/lib/esm/context/CaseContext.d.ts.map +1 -1
  201. package/lib/esm/css/case.css +202 -60
  202. package/lib/esm/hooks/useCaseUpdateErrorMessage.d.ts +1 -1
  203. package/lib/esm/hooks/useCaseUpdateErrorMessage.d.ts.map +1 -1
  204. package/lib/esm/hooks/useCaseUpdateErrorMessage.js +11 -21
  205. package/lib/esm/hooks/useResetCaseCreate.d.ts.map +1 -1
  206. package/lib/esm/hooks/useResetCaseCreate.js +11 -18
  207. package/lib/esm/hooks/useS3Upload.d.ts +4 -5
  208. package/lib/esm/hooks/useS3Upload.d.ts.map +1 -1
  209. package/lib/esm/hooks/useS3Upload.js +30 -28
  210. package/lib/esm/i18n/template-de.d.ts +2 -2
  211. package/lib/esm/i18n/template-de.js +2 -2
  212. package/lib/esm/i18n/template-es.d.ts +2 -2
  213. package/lib/esm/i18n/template-es.js +2 -2
  214. package/lib/esm/i18n/template-fr.d.ts +2 -2
  215. package/lib/esm/i18n/template-fr.js +2 -2
  216. package/lib/esm/i18n/template-it.d.ts +2 -2
  217. package/lib/esm/i18n/template-it.js +2 -2
  218. package/lib/esm/i18n/template-jp.d.ts +2 -2
  219. package/lib/esm/i18n/template-jp.js +2 -2
  220. package/lib/esm/i18n/template-ko.d.ts +2 -2
  221. package/lib/esm/i18n/template-ko.js +2 -2
  222. package/lib/esm/i18n/template-pt.d.ts +2 -2
  223. package/lib/esm/i18n/template-pt.js +2 -2
  224. package/lib/esm/i18n/template-ru.d.ts +2 -2
  225. package/lib/esm/i18n/template-ru.js +2 -2
  226. package/lib/esm/i18n/template-zh.d.ts +2 -2
  227. package/lib/esm/i18n/template-zh.js +2 -2
  228. package/lib/esm/index.js +0 -1
  229. package/lib/esm/models/cache.d.ts +2 -0
  230. package/lib/esm/models/cache.d.ts.map +1 -1
  231. package/lib/esm/reducers/CaseConstNTypes.d.ts +9 -123
  232. package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
  233. package/lib/esm/reducers/CaseConstNTypes.js +7 -31
  234. package/lib/esm/reducers/CaseDetailsPageReducer.d.ts +5 -7
  235. package/lib/esm/reducers/CaseDetailsPageReducer.d.ts.map +1 -1
  236. package/lib/esm/reducers/CaseDetailsPageReducer.js +26 -58
  237. package/lib/esm/reducers/CaseDiscussionTabReducer.d.ts +12 -11
  238. package/lib/esm/reducers/CaseDiscussionTabReducer.d.ts.map +1 -1
  239. package/lib/esm/reducers/CaseDiscussionTabReducer.js +70 -63
  240. package/lib/esm/reducers/CaseHelpers.d.ts +1 -2
  241. package/lib/esm/reducers/CaseHelpers.d.ts.map +1 -1
  242. package/lib/esm/reducers/CaseHelpers.js +17 -92
  243. package/lib/esm/reducers/CaseOverviewReducer.d.ts +1 -3
  244. package/lib/esm/reducers/CaseOverviewReducer.d.ts.map +1 -1
  245. package/lib/esm/reducers/CaseOverviewReducer.js +5 -7
  246. package/lib/esm/reducers/CaseReducer.d.ts +11 -56
  247. package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
  248. package/lib/esm/reducers/CaseReducer.js +99 -279
  249. package/lib/esm/reducers/RecommendationsReducer.d.ts.map +1 -1
  250. package/lib/esm/reducers/RecommendationsReducer.js +18 -15
  251. package/lib/esm/scss/_main.scss +0 -9
  252. package/lib/esm/utils/caseOpenshiftClusterIdUtils.d.ts +2 -1
  253. package/lib/esm/utils/caseOpenshiftClusterIdUtils.d.ts.map +1 -1
  254. package/lib/esm/utils/caseOpenshiftClusterIdUtils.js +4 -4
  255. package/package.json +8 -9
  256. package/lib/esm/components/CaseEditView/ArchivedCaseBanner.d.ts +0 -7
  257. package/lib/esm/components/CaseEditView/ArchivedCaseBanner.d.ts.map +0 -1
  258. package/lib/esm/components/CaseEditView/ArchivedCaseBanner.js +0 -17
  259. package/lib/esm/components/CaseEditView/RequestRemoteSession/remoteSessionUtils.d.ts +0 -4
  260. package/lib/esm/components/CaseEditView/RequestRemoteSession/remoteSessionUtils.d.ts.map +0 -1
  261. package/lib/esm/components/CaseEditView/RequestRemoteSession/remoteSessionUtils.js +0 -23
  262. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useAttachmentUploadCompletion.d.ts +0 -29
  263. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useAttachmentUploadCompletion.d.ts.map +0 -1
  264. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useAttachmentUploadCompletion.js +0 -29
  265. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useCommentDrafts.d.ts +0 -17
  266. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useCommentDrafts.d.ts.map +0 -1
  267. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useCommentDrafts.js +0 -60
  268. package/lib/esm/components/CaseInformation/CaseLabels.d.ts +0 -3
  269. package/lib/esm/components/CaseInformation/CaseLabels.d.ts.map +0 -1
  270. package/lib/esm/components/CaseInformation/CaseLabels.js +0 -103
  271. package/lib/esm/components/CaseManagement/CaseLabelsCreate.d.ts +0 -4
  272. package/lib/esm/components/CaseManagement/CaseLabelsCreate.d.ts.map +0 -1
  273. package/lib/esm/components/CaseManagement/CaseLabelsCreate.js +0 -109
  274. package/lib/esm/components/ProductSelector/ProductNotEntitledWarning.d.ts +0 -3
  275. package/lib/esm/components/ProductSelector/ProductNotEntitledWarning.d.ts.map +0 -1
  276. package/lib/esm/components/ProductSelector/ProductNotEntitledWarning.js +0 -9
  277. package/lib/esm/graphql/index.d.ts +0 -4
  278. package/lib/esm/graphql/index.d.ts.map +0 -1
  279. package/lib/esm/graphql/index.js +0 -3
  280. package/lib/esm/graphql/mutations/createRMECaseEscalation.d.ts +0 -2
  281. package/lib/esm/graphql/mutations/createRMECaseEscalation.d.ts.map +0 -1
  282. package/lib/esm/graphql/mutations/createRMECaseEscalation.js +0 -24
  283. package/lib/esm/graphql/mutations/index.d.ts +0 -2
  284. package/lib/esm/graphql/mutations/index.d.ts.map +0 -1
  285. package/lib/esm/graphql/mutations/index.js +0 -1
  286. package/lib/esm/graphql/queries/getEscalationDetails.d.ts +0 -2
  287. package/lib/esm/graphql/queries/getEscalationDetails.d.ts.map +0 -1
  288. package/lib/esm/graphql/queries/getEscalationDetails.js +0 -31
  289. package/lib/esm/graphql/queries/getParentId.d.ts +0 -2
  290. package/lib/esm/graphql/queries/getParentId.d.ts.map +0 -1
  291. package/lib/esm/graphql/queries/getParentId.js +0 -16
  292. package/lib/esm/graphql/queries/index.d.ts +0 -3
  293. package/lib/esm/graphql/queries/index.d.ts.map +0 -1
  294. package/lib/esm/graphql/queries/index.js +0 -2
  295. package/lib/esm/graphql/schemas/escalation.d.ts +0 -88
  296. package/lib/esm/graphql/schemas/escalation.d.ts.map +0 -1
  297. package/lib/esm/graphql/schemas/escalation.js +0 -1
  298. package/lib/esm/graphql/schemas/index.d.ts +0 -2
  299. package/lib/esm/graphql/schemas/index.d.ts.map +0 -1
  300. package/lib/esm/graphql/schemas/index.js +0 -1
  301. package/lib/esm/hooks/useCaseComments/caseCommentsQuery.d.ts +0 -4
  302. package/lib/esm/hooks/useCaseComments/caseCommentsQuery.d.ts.map +0 -1
  303. package/lib/esm/hooks/useCaseComments/caseCommentsQuery.js +0 -52
  304. package/lib/esm/hooks/useCaseComments/index.d.ts +0 -7
  305. package/lib/esm/hooks/useCaseComments/index.d.ts.map +0 -1
  306. package/lib/esm/hooks/useCaseComments/index.js +0 -5
  307. package/lib/esm/hooks/useCaseComments/mapCaseComment.d.ts +0 -25
  308. package/lib/esm/hooks/useCaseComments/mapCaseComment.d.ts.map +0 -1
  309. package/lib/esm/hooks/useCaseComments/mapCaseComment.js +0 -75
  310. package/lib/esm/hooks/useCaseComments/types.d.ts +0 -85
  311. package/lib/esm/hooks/useCaseComments/types.d.ts.map +0 -1
  312. package/lib/esm/hooks/useCaseComments/types.js +0 -1
  313. package/lib/esm/hooks/useCaseComments/useCaseComments.d.ts +0 -17
  314. package/lib/esm/hooks/useCaseComments/useCaseComments.d.ts.map +0 -1
  315. package/lib/esm/hooks/useCaseComments/useCaseComments.js +0 -38
  316. package/lib/esm/hooks/useCaseComments/useCreateCaseComment.d.ts +0 -19
  317. package/lib/esm/hooks/useCaseComments/useCreateCaseComment.d.ts.map +0 -1
  318. package/lib/esm/hooks/useCaseComments/useCreateCaseComment.js +0 -33
  319. package/lib/esm/hooks/useCaseHistory.d.ts +0 -26
  320. package/lib/esm/hooks/useCaseHistory.d.ts.map +0 -1
  321. package/lib/esm/hooks/useCaseHistory.js +0 -98
  322. package/lib/esm/hooks/useCaseLabelLinkMutations.d.ts +0 -21
  323. package/lib/esm/hooks/useCaseLabelLinkMutations.d.ts.map +0 -1
  324. package/lib/esm/hooks/useCaseLabelLinkMutations.js +0 -84
  325. package/lib/esm/models/caseHistory.d.ts +0 -80
  326. package/lib/esm/models/caseHistory.d.ts.map +0 -1
  327. package/lib/esm/models/caseHistory.js +0 -1
  328. package/lib/esm/utils/TimelineUtils.d.ts +0 -41
  329. package/lib/esm/utils/TimelineUtils.d.ts.map +0 -1
  330. package/lib/esm/utils/TimelineUtils.js +0 -135
  331. package/lib/esm/utils/caseHistoryUtils.d.ts +0 -66
  332. package/lib/esm/utils/caseHistoryUtils.d.ts.map +0 -1
  333. package/lib/esm/utils/caseHistoryUtils.js +0 -165
  334. package/lib/esm/utils/caseSeverityFtsGraphQLUtils.d.ts +0 -6
  335. package/lib/esm/utils/caseSeverityFtsGraphQLUtils.d.ts.map +0 -1
  336. package/lib/esm/utils/caseSeverityFtsGraphQLUtils.js +0 -26
@@ -1 +1 @@
1
- {"version":3,"file":"CaseStatus.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/CaseStatus.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAI5D,OAAO,KAAwC,MAAM,OAAO,CAAC;AAO7D,UAAU,MAAO,SAAQ,gBAAgB;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/D,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAOD,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,qBAmEhC;kBAnEQ,UAAU;;;AAsEnB,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"CaseStatus.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/CaseStatus.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,KAA+B,MAAM,OAAO,CAAC;AAOpD,UAAU,MAAO,SAAQ,gBAAgB;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAOD,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,qBA8DhC;kBA9DQ,UAAU;;;AAiEnB,eAAe,UAAU,CAAC"}
@@ -8,10 +8,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { SingleSelectDropdown, ValueChangedIcon } from '@rh-support/components';
11
- import { mapSfdcStatusToPortalStatus, PORTAL_USER_SELECTABLE_STATUSES } from '@rh-support/utils';
12
11
  import isEmpty from 'lodash/isEmpty';
13
12
  import map from 'lodash/map';
14
- import React, { useContext, useMemo, useState } from 'react';
13
+ import React, { useContext, useState } from 'react';
15
14
  import { Trans, useTranslation } from 'react-i18next';
16
15
  import { CaseValuesToWatch } from '../../shared/Constants';
17
16
  import { getChangedValueTooltip } from '../../shared/utils';
@@ -27,30 +26,29 @@ function CaseStatus(props) {
27
26
  setIsCaseStatusInValid(isEmpty(selectedItem));
28
27
  };
29
28
  const { isExportingPDF } = useContext(PDFContext);
30
- const selectedPortalStatus = useMemo(() => mapSfdcStatusToPortalStatus(props.selectedStatus), [props.selectedStatus]);
31
29
  // value changed logic to show a non local status change
32
30
  const [localStatusChange, setLocalStatusChange] = useState(false);
33
31
  const afterLocalChange = () => setLocalStatusChange(false);
34
32
  const onCaseStatusChange = (option) => __awaiter(this, void 0, void 0, function* () {
35
- if (option.value === selectedPortalStatus) {
33
+ if (option.value === props.selectedStatus) {
36
34
  return;
37
35
  }
38
36
  yield props.onStatusChange(option.value);
39
37
  setLocalStatusChange(true);
40
38
  validateCaseStatus(option);
41
39
  });
42
- const getDropdownOptions = map(PORTAL_USER_SELECTABLE_STATUSES, (option) => ({
40
+ const getDropdownOptions = map(props.allStatuses || [], (option) => ({
43
41
  label: option,
44
42
  value: option,
45
43
  }));
46
44
  const getSelectedDropdownOption = {
47
- label: selectedPortalStatus,
48
- value: selectedPortalStatus,
45
+ label: props.selectedStatus,
46
+ value: props.selectedStatus,
49
47
  };
50
48
  return (React.createElement("div", { className: `form-group ${props.className}`, id: `${props.id}` },
51
49
  React.createElement("h3", { className: "subheading subheading-sm" },
52
50
  React.createElement(Trans, null, "Status"),
53
- React.createElement(ValueChangedIcon, { afterLocalChange: afterLocalChange, isLocalChange: localStatusChange, value: selectedPortalStatus, getTooltipContent: getChangedValueTooltip(() => CaseValuesToWatch.status) }),
51
+ React.createElement(ValueChangedIcon, { afterLocalChange: afterLocalChange, isLocalChange: localStatusChange, value: props.selectedStatus, getTooltipContent: getChangedValueTooltip(() => CaseValuesToWatch.status) }),
54
52
  React.createElement("span", { className: `form-required ${isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-hidden": true }, "*")),
55
53
  React.createElement(SingleSelectDropdown, { placeholder: t(`Select a status`), dataTrackingId: "case-details-status-selector", options: getDropdownOptions, selected: getSelectedDropdownOption, isDisabled: props.hasError || props.isDisabled || props.isFetching, isLoading: props.isFetching, isInvalid: isCaseStatusInValid, onSelect: onCaseStatusChange })));
56
54
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/index.tsx"],"names":[],"mappings":"AAmCA,OAAO,KAAkD,MAAM,OAAO,CAAC;AA4BvE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,MAAM,qBAujBjD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/index.tsx"],"names":[],"mappings":"AA+BA,OAAO,KAAkD,MAAM,OAAO,CAAC;AA4BvE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,MAAM,qBA0fjD"}
@@ -7,14 +7,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { useApolloClient } from '@apollo/client/react';
11
10
  import { Alert, AlertVariant, Button, ButtonVariant, ExpandableSection, Label, ModalVariant, } from '@patternfly/react-core';
12
11
  import ExternalLinkAltIcon from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
13
12
  import LockIcon from '@patternfly/react-icons/dist/js/icons/lock-icon';
14
13
  import { ToastNotification, useConfirmation } from '@rh-support/components';
15
- import { CloseCaseModal, fetchAllStatuses, fetchCaseSeverities, fetchCaseTypes, GlobalMetadataDispatchContext, GlobalMetadataStateContext, useCanEditCase, } from '@rh-support/react-context';
14
+ import { CloseCaseModal, fetchCaseSeverities, fetchCaseTypes, GlobalMetadataDispatchContext, GlobalMetadataStateContext, useCanEditCase, } from '@rh-support/react-context';
16
15
  import { AbilityContext, CaseDetailsFields, resourceActions, resources } from '@rh-support/user-permissions';
17
- import { dtmTrackEventCaseStepEncountered, haventLoadedMetadata, isOpenShiftOnlineProduct, mapSfdcStatusToPortalStatus, PreviousCaseTypes, resolvePortalStatusToApiValue, toNewCaseTypeMapper, toNewCaseTypeSwitcher, } from '@rh-support/utils';
16
+ import { dtmTrackEventCaseStepEncountered, haventLoadedMetadata, isOpenShiftOnlineProduct, PreviousCaseTypes, toNewCaseTypeMapper, toNewCaseTypeSwitcher, } from '@rh-support/utils';
18
17
  import isEqual from 'lodash/isEqual';
19
18
  import React, { useContext, useEffect, useRef, useState } from 'react';
20
19
  import { Trans, useTranslation } from 'react-i18next';
@@ -23,15 +22,14 @@ import { useCaseDispatch, useCaseSelector } from '../../../context/CaseContext';
23
22
  import { CaseOverviewDispatchContext, CaseOverviewStateContext } from '../../../context/CaseOverviewContext';
24
23
  import { useCaseUpdateErrorMessage } from '../../../hooks/useCaseUpdateErrorMessage';
25
24
  import { SupportLevelDisplay } from '../../../reducers/CaseConstNTypes';
26
- import { fetchCaseHydra, setSeverityUpdating, setStatusUpdating, setTypeUpdating, } from '../../../reducers/CaseOverviewReducer';
27
- import { updateCaseDetailsGraphQL } from '../../../reducers/CaseReducer';
25
+ import { fetchAllStatuses, fetchCaseHydra, setSeverityUpdating, setStatusUpdating, setTypeUpdating, } from '../../../reducers/CaseOverviewReducer';
26
+ import { updateCaseDetails } from '../../../reducers/CaseReducer';
28
27
  import Severity from '../../CaseInformation/Severity';
29
28
  import { usePostComment } from '../../shared/usePostComment';
30
29
  import { ReopenCaseModal } from '../ConfirmationModals/ReopenCaseModal';
31
30
  import { PDFContext } from '../PDFContainer';
32
31
  import { CaseInformation } from '../Tabs/CaseDetails/CaseInformation';
33
- // TODO: Re-enable once phone number verification flow is fully supported with GraphQL
34
- // import { CaseContactPhoneNumberAlert } from '../Tabs/CaseDetails/CasePhoneNumberConfirmAlert';
32
+ import { CaseContactPhoneNumberAlert } from '../Tabs/CaseDetails/CasePhoneNumberConfirmAlert';
35
33
  import Summary from '../Tabs/CaseDetails/Summary';
36
34
  import CaseOwnerInfo from './CaseOwnerInfo';
37
35
  import CaseStatus from './CaseStatus';
@@ -51,17 +49,15 @@ export default function CaseOverview(props) {
51
49
  const { isExportingPDF, exportPDFButton } = useContext(PDFContext);
52
50
  const reopenStatusRef = useRef(null);
53
51
  const { postComment, isPostingComment } = usePostComment({ caseNumber: props.caseNumber });
54
- const { product, version, status, caseType, createdDate, createdByName, ownerName, isFetchingCaseDetails, isFetchingCaseDetailsError, caseNumber, entitlementSla, cep, accountNumber, isPrivate, isCaseUpdating, contactIsPartner, hotfixRequested, hotfixDelivered, selectedAccountDetails, firstCaseInactivityWarningSentAt, secondCaseInactivityWarningSentAt, } = useCaseSelector((state) => ({
52
+ const { product, version, status, caseType, createdDate, createdById, ownerId, caseNumber, entitlementSla, cep, accountNumber, isPrivate, isCaseUpdating, contactIsPartner, hotfixRequested, hotfixDelivered, selectedAccountDetails, firstCaseInactivityWarningSentAt, secondCaseInactivityWarningSentAt, } = useCaseSelector((state) => ({
55
53
  product: state.caseDetails.product,
56
54
  version: state.caseDetails.version,
57
55
  status: state.caseDetails.status,
58
56
  caseType: state.caseDetails.caseType,
59
57
  caseSeverity: state.caseDetails.severity,
60
58
  createdDate: state.caseDetails.createdDate,
61
- createdByName: state.caseDetails.createdByName,
62
- ownerName: state.caseDetails.ownerName,
63
- isFetchingCaseDetails: state.isFetchingCaseDetails,
64
- isFetchingCaseDetailsError: state.isFetchingCaseDetailsError,
59
+ createdById: state.caseDetails.createdById,
60
+ ownerId: state.caseDetails.ownerId,
65
61
  caseNumber: state.caseDetails.caseNumber,
66
62
  entitlementSla: state.caseDetails.entitlementSla,
67
63
  cep: state.caseDetails.cep,
@@ -78,12 +74,7 @@ export default function CaseOverview(props) {
78
74
  const canEditCase = useCanEditCase();
79
75
  const caseDispatch = useCaseDispatch();
80
76
  const globalMetadataDispatchContext = useContext(GlobalMetadataDispatchContext);
81
- const apolloClient = useApolloClient();
82
- const existingCaseDetails = useCaseSelector((state) => state.caseDetails, isEqual);
83
- const updateOverviewCaseDetails = (payload) => updateCaseDetailsGraphQL(caseDispatch, apolloClient, props.caseNumber, payload, false, {
84
- existingCaseDetails,
85
- });
86
- const { globalMetadataState: { allCaseTypes, allCaseSeverities, allCaseStatuses, viewAsCustomer, loggedInUsersAccount, loggedInUserRights, }, } = useContext(GlobalMetadataStateContext);
77
+ const { globalMetadataState: { allCaseTypes, allCaseSeverities, viewAsCustomer, loggedInUsersAccount, loggedInUserRights, }, } = useContext(GlobalMetadataStateContext);
87
78
  const canManageCase = loggedInUserRights.data.canManageCases();
88
79
  const switchedCaseType = toNewCaseTypeSwitcher(caseType);
89
80
  const updatingUser = loggedInUsersAccount.data.name;
@@ -98,24 +89,24 @@ export default function CaseOverview(props) {
98
89
  }
99
90
  }
100
91
  if (haventLoadedMetadata(allCaseSeverities)) {
101
- fetchCaseSeverities(globalMetadataDispatchContext, apolloClient);
92
+ fetchCaseSeverities(globalMetadataDispatchContext, loggedInUsersAccount.data.secureSupport);
102
93
  }
103
94
  if (haventLoadedMetadata(allCaseTypes)) {
104
- fetchCaseTypes(globalMetadataDispatchContext, apolloClient);
95
+ fetchCaseTypes(globalMetadataDispatchContext, loggedInUsersAccount.data.secureSupport);
105
96
  }
106
- if (haventLoadedMetadata(allCaseStatuses)) {
107
- fetchAllStatuses(globalMetadataDispatchContext, apolloClient);
97
+ if (haventLoadedMetadata(caseOverviewState.allCaseStatuses)) {
98
+ fetchAllStatuses(caseOverviewDispatch, loggedInUsersAccount.data.secureSupport);
108
99
  }
109
100
  // eslint-disable-next-line react-hooks/exhaustive-deps
110
101
  }, [
111
102
  globalMetadataDispatchContext,
112
- apolloClient,
113
103
  allCaseSeverities,
114
104
  allCaseTypes,
115
- allCaseStatuses,
105
+ caseOverviewState.allCaseStatuses,
116
106
  caseOverviewState.caseDetailsHydra,
117
107
  canSeeCaseOwnerInfo,
118
108
  caseNumber,
109
+ loggedInUsersAccount.data.secureSupport,
119
110
  ]);
120
111
  const onTypeChange = (type) => __awaiter(this, void 0, void 0, function* () {
121
112
  if (canEditCase.alert())
@@ -126,7 +117,7 @@ export default function CaseOverview(props) {
126
117
  if (type === PreviousCaseTypes.FEATURE_ENHANCEMENT) {
127
118
  newCaseDetails = Object.assign(Object.assign({}, newCaseDetails), { fts: false });
128
119
  }
129
- yield updateOverviewCaseDetails(newCaseDetails);
120
+ yield updateCaseDetails(caseDispatch, props.caseNumber, newCaseDetails);
130
121
  setTypeUpdating(caseOverviewDispatch, false);
131
122
  ToastNotification.addSuccessMessage(t('Support type has been successfully updated'));
132
123
  }
@@ -147,7 +138,7 @@ export default function CaseOverview(props) {
147
138
  });
148
139
  setSeverityUpdating(caseOverviewDispatch, true);
149
140
  try {
150
- yield updateOverviewCaseDetails(payLoad);
141
+ yield updateCaseDetails(caseDispatch, props.caseNumber, payLoad);
151
142
  setSeverityUpdating(caseOverviewDispatch, false);
152
143
  ToastNotification.addSuccessMessage(t('Severity has been successfully updated'));
153
144
  }
@@ -156,10 +147,7 @@ export default function CaseOverview(props) {
156
147
  caseUpdateError.showError(e, t('Severity failed to update'));
157
148
  }
158
149
  });
159
- const showStatusUpdateSuccessToast = () => {
160
- ToastNotification.addSuccessMessage(t('Status has been successfully updated'));
161
- };
162
- const updateStatusState = (statusVal, reopenedAt, reopenedBySSOName, reopenedReason, reopenedReasonOther, onStatusUpdate, options) => __awaiter(this, void 0, void 0, function* () {
150
+ const updateStatusState = (statusVal_1, reopenedAt_1, reopenedBySSOName_1, reopenedReason_1, reopenedReasonOther_1, ...args_1) => __awaiter(this, [statusVal_1, reopenedAt_1, reopenedBySSOName_1, reopenedReason_1, reopenedReasonOther_1, ...args_1], void 0, function* (statusVal, reopenedAt, reopenedBySSOName, reopenedReason, reopenedReasonOther, onStatusUpdate = null) {
163
151
  setStatusUpdating(caseOverviewDispatch, true);
164
152
  let updateStatusObj = {
165
153
  status: statusVal,
@@ -169,42 +157,34 @@ export default function CaseOverview(props) {
169
157
  reopenedReasonOther: reopenedReasonOther,
170
158
  };
171
159
  try {
172
- yield updateOverviewCaseDetails(updateStatusObj);
160
+ yield updateCaseDetails(caseDispatch, props.caseNumber, updateStatusObj);
173
161
  setStatusUpdating(caseOverviewDispatch, false);
174
162
  onStatusUpdate && (yield onStatusUpdate());
175
- if ((options === null || options === void 0 ? void 0 : options.showSuccessToast) !== false) {
176
- showStatusUpdateSuccessToast();
177
- }
178
- return true;
163
+ ToastNotification.addSuccessMessage(t('Status has been successfully updated'));
179
164
  }
180
165
  catch (e) {
181
166
  setStatusUpdating(caseOverviewDispatch, false);
182
- caseUpdateError.showError(e, t('Status failed to update, try refreshing the page. Please contact us if the problem persists.'));
183
- return false;
167
+ caseUpdateError.showError(e, t('Status failed to update'));
184
168
  }
185
169
  });
186
- const onStatusChange = (newPortalStatus) => __awaiter(this, void 0, void 0, function* () {
170
+ const onStatusChange = (newStatus) => __awaiter(this, void 0, void 0, function* () {
187
171
  if (canEditCase.alert())
188
172
  return;
189
- const currentPortalStatus = mapSfdcStatusToPortalStatus(status);
190
- const newApiStatus = resolvePortalStatusToApiValue(newPortalStatus, status);
191
- if (currentPortalStatus === 'Closed' && newPortalStatus !== 'Closed') {
192
- onCaseReopen(newPortalStatus);
173
+ if (status === CaseStatusEnum.CLOSED && newStatus !== CaseStatusEnum.CLOSED) {
174
+ onCaseReopen(newStatus);
193
175
  }
194
- else if (newPortalStatus === 'Closed') {
176
+ else if (newStatus === CaseStatusEnum.CLOSED) {
195
177
  onCaseClose();
196
178
  }
197
179
  else {
198
180
  yield confirm({
199
181
  title: t(`Update the status of the case?`),
200
- description: t('Are you sure you want to change the case status to {{newStatus}}?', {
201
- newStatus: newPortalStatus,
202
- }),
182
+ description: t('Are you sure you want to change the case status to {{newStatus}}?', { newStatus }),
203
183
  confirmText: t('Yes, confirm'),
204
184
  cancelText: t('No, cancel'),
205
185
  modalVariant: ModalVariant.small,
206
186
  });
207
- updateStatusState(newApiStatus);
187
+ updateStatusState(newStatus);
208
188
  }
209
189
  });
210
190
  const onCaseClose = () => __awaiter(this, void 0, void 0, function* () {
@@ -243,9 +223,7 @@ export default function CaseOverview(props) {
243
223
  React.createElement("span", { className: "pf-v6-u-ml-sm" },
244
224
  React.createElement(ExternalLinkAltIcon, null))));
245
225
  };
246
- const portalStatus = mapSfdcStatusToPortalStatus(status);
247
- const isCaseClosed = portalStatus === 'Closed';
248
- const isCaseInOpenState = portalStatus !== 'Closed' && portalStatus !== 'Archived';
226
+ const isCaseInOpenState = status !== CaseStatusEnum.CLOSED;
249
227
  // To switch from old case type to new support type
250
228
  const newCaseTypesArray = toNewCaseTypeMapper(allCaseTypes.data).sort();
251
229
  return (React.createElement(React.Fragment, null,
@@ -263,6 +241,7 @@ export default function CaseOverview(props) {
263
241
  React.createElement(Trans, null, "Case inactivity warning")),
264
242
  React.createElement("p", { className: "pf-v6-u-mb-sm" },
265
243
  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."))) })))),
244
+ React.createElement(CaseContactPhoneNumberAlert, { isReview: true, tabRef: props.tabsRef }),
266
245
  React.createElement("header", { className: "pf-v6-u-mb-sm pf-v6-u-mt-lg" },
267
246
  React.createElement("h2", { className: "case-ID" },
268
247
  React.createElement(Trans, null, "Case"),
@@ -270,13 +249,13 @@ export default function CaseOverview(props) {
270
249
  props.caseNumber),
271
250
  React.createElement("div", null,
272
251
  exportPDFButton(props.caseNumber),
273
- (isCaseInOpenState || isCaseClosed) && (React.createElement(Button, Object.assign({ className: `pf-v6-u-ml-md ${isExportingPDF ? 'hide-in-pdf' : ''}`, isDisabled: !canManageCase }, ((showCloseCaseModal || showReOpenCaseModal) &&
252
+ React.createElement(Button, Object.assign({ className: `pf-v6-u-ml-md ${isExportingPDF ? 'hide-in-pdf' : ''}`, isDisabled: !canManageCase }, ((showCloseCaseModal || showReOpenCaseModal) &&
274
253
  isCaseUpdating && {
275
254
  isLoading: true,
276
255
  }), { onClick: () => (isCaseInOpenState ? onCaseClose() : onCaseReopen()), variant: isCaseInOpenState ? ButtonVariant.secondary : ButtonVariant.tertiary, "data-tracking-id": isCaseInOpenState
277
256
  ? 'case-close-btn-case-details-overview'
278
257
  : 'case-reopen-btn-case-details-overview' }),
279
- React.createElement(Trans, null, isCaseInOpenState ? 'Close case' : 'Reopen case'))))),
258
+ React.createElement(Trans, null, isCaseInOpenState ? 'Close case' : 'Reopen case')))),
280
259
  React.createElement("div", { className: `case-details-header-secondary push-bottom-narrow pf-v6-u-mb-sm ${isExportingPDF && !viewAsCustomer ? 'hide-in-pdf' : ''}` },
281
260
  React.createElement("span", { className: `case-support-level ${isExportingPDF ? 'hide-in-pdf' : ''}` }, computeSupportLink())),
282
261
  React.createElement("div", { className: "case-details-summary push-bottom-narrow" },
@@ -310,44 +289,34 @@ export default function CaseOverview(props) {
310
289
  React.createElement("div", { className: "created-by" },
311
290
  React.createElement("h3", { className: "subheading subheading-sm" },
312
291
  React.createElement(Trans, null, "Created by")),
313
- React.createElement("div", null, createdByName),
292
+ React.createElement("div", null, createdById),
314
293
  React.createElement("div", null, createdDate ? React.createElement(DateTime, { dateTimeString: createdDate }) : null)),
315
- canSeeCaseOwnerInfo && (React.createElement(CaseOwnerInfo, { owner: ownerName !== null && ownerName !== void 0 ? ownerName : '', isLoading: isFetchingCaseDetails, isError: isFetchingCaseDetailsError, caseDetailsHydra: caseOverviewState.caseDetailsHydra }))),
294
+ canSeeCaseOwnerInfo && (React.createElement(CaseOwnerInfo, { owner: ownerId, caseDetailsHydra: caseOverviewState.caseDetailsHydra }))),
316
295
  React.createElement("div", { className: "case-overview-secondary card card-md card-light push-bottom" },
317
296
  React.createElement("div", { className: "pf-v6-l-grid pf-m-gutter pf-m-all-4-col-on-lg" },
318
297
  React.createElement("div", { className: "form-wrapper" },
319
- React.createElement(CaseStatus, { selectedStatus: status, onStatusChange: onStatusChange, isDisabled: !canManageCase || allCaseStatuses.isFetching || canEditCase.isCaseNotEditable, isFetching: caseOverviewState.caseStatusUpdating && isCaseUpdating, hasError: allCaseStatuses.isError })),
298
+ React.createElement(CaseStatus, { selectedStatus: status, onStatusChange: onStatusChange, isDisabled: !canManageCase || caseOverviewState.allCaseStatuses.isFetching, allStatuses: caseOverviewState.allCaseStatuses.data, isFetching: caseOverviewState.caseStatusUpdating && isCaseUpdating, hasError: caseOverviewState.allCaseStatuses.isError })),
320
299
  React.createElement("div", { className: "form-wrapper" },
321
- React.createElement(CaseType, { selectedType: switchedCaseType, onTypeChange: onTypeChange, isDisabled: !canManageCase ||
322
- allCaseTypes.isFetching ||
323
- isCaseUpdating ||
324
- canEditCase.isCaseNotEditable, allTypes: newCaseTypesArray, isFetching: caseOverviewState.caseTypeUpdating && isCaseUpdating, hasError: allCaseTypes.isError })),
300
+ React.createElement(CaseType, { selectedType: switchedCaseType, onTypeChange: onTypeChange, isDisabled: !canManageCase || allCaseTypes.isFetching || isCaseUpdating, allTypes: newCaseTypesArray, isFetching: caseOverviewState.caseTypeUpdating && isCaseUpdating, hasError: allCaseTypes.isError })),
325
301
  React.createElement("div", { className: "form-wrapper" },
326
- React.createElement(Severity, { onSeverityChange: onSeverityChange, isDisabled: !canManageCase || canEditCase.isCaseNotEditable, isFetching: caseOverviewState.caseSeverityUpdating && isCaseUpdating })))),
302
+ React.createElement(Severity, { onSeverityChange: onSeverityChange, isDisabled: !canManageCase, isFetching: caseOverviewState.caseSeverityUpdating && isCaseUpdating })))),
327
303
  React.createElement(ExpandableSection, { className: "case-details-main", toggleText: t('Case information'), isExpanded: isDetailsExpanded, onToggle: onToggleDetails },
328
304
  React.createElement(CaseInformation, null))),
329
305
  showCloseCaseModal && (React.createElement(CloseCaseModal, { onConfirm: (commentBody) => __awaiter(this, void 0, void 0, function* () {
330
- const success = yield updateStatusState(CaseStatusEnum.CLOSED, undefined, undefined, undefined, undefined, null, { showSuccessToast: false });
331
- if (success) {
332
- setShowCaseCloseModal(false);
333
- yield postCommentAfterStatusUpdate(commentBody);
334
- dtmTrackEventCaseStepEncountered('close', caseNumber, product, version);
335
- showStatusUpdateSuccessToast();
336
- }
306
+ yield updateStatusState(CaseStatusEnum.CLOSED);
307
+ yield postCommentAfterStatusUpdate(commentBody);
308
+ setShowCaseCloseModal(false);
309
+ dtmTrackEventCaseStepEncountered('close', caseNumber, product, version);
337
310
  }), isUpdating: (caseOverviewState.caseStatusUpdating && isCaseUpdating) || isPostingComment, onClose: () => {
338
311
  setShowCaseCloseModal(false);
339
312
  }, caseNumber: caseNumber })),
340
- showReOpenCaseModal && (React.createElement(ReopenCaseModal, { isInternal: loggedInUserRights.data.isInternal(), onConfirm: (commentBody, newPortalStatus, reopenedAt, reopenedBySSOName, reopenedReason, reopenedReasonOther) => __awaiter(this, void 0, void 0, function* () {
341
- const newApiStatus = resolvePortalStatusToApiValue(newPortalStatus, status);
342
- const success = yield updateStatusState(newApiStatus, reopenedAt || null, reopenedBySSOName || null, reopenedReason || null, reopenedReasonOther || null, () => __awaiter(this, void 0, void 0, function* () {
313
+ showReOpenCaseModal && (React.createElement(ReopenCaseModal, { isInternal: loggedInUserRights.data.isInternal(), onConfirm: (commentBody, newStatus, reopenedAt, reopenedBySSOName, reopenedReason, reopenedReasonOther) => __awaiter(this, void 0, void 0, function* () {
314
+ yield updateStatusState(newStatus, reopenedAt || null, reopenedBySSOName || null, reopenedReason || null, reopenedReasonOther || null, () => __awaiter(this, void 0, void 0, function* () {
343
315
  yield postCommentAfterStatusUpdate(commentBody);
344
316
  dtmTrackEventCaseStepEncountered('reopen', caseNumber, product, version);
345
- }), { showSuccessToast: false });
346
- if (success) {
347
- setShowReopenCaseModal(false);
348
- showStatusUpdateSuccessToast();
349
- }
317
+ }));
318
+ setShowReopenCaseModal(false);
350
319
  }), onClose: () => {
351
320
  setShowReopenCaseModal(false);
352
- }, caseNumber: caseNumber, reopenStatus: reopenStatusRef.current, isUpdating: (caseOverviewState.caseStatusUpdating && isCaseUpdating) || isPostingComment, whoIsUpdating: updatingUser }))));
321
+ }, caseNumber: caseNumber, reopenStatus: reopenStatusRef.current, allStatuses: caseOverviewState.allCaseStatuses.data, isUpdating: (caseOverviewState.caseStatusUpdating && isCaseUpdating) || isPostingComment, whoIsUpdating: updatingUser }))));
353
322
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CaseSolutions.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseSolutions/CaseSolutions.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAsD,MAAM,OAAO,CAAC;AAwF3E,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB,EAAE,OAAO,CAAC;CACnC;AAUD,eAAO,MAAM,aAAa,+EAshBxB,CAAC"}
1
+ {"version":3,"file":"CaseSolutions.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseSolutions/CaseSolutions.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAsD,MAAM,OAAO,CAAC;AAuF3E,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB,EAAE,OAAO,CAAC;CACnC;AAUD,eAAO,MAAM,aAAa,+EAuhBxB,CAAC"}