@rh-support/troubleshoot 2.4.10-beta.8 → 2.5.0
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.
- package/README.md +1 -4
- package/lib/esm/components/AccountInfo/AccountSelector.d.ts +2 -1
- package/lib/esm/components/AccountInfo/AccountSelector.d.ts.map +1 -1
- package/lib/esm/components/AccountInfo/AccountSelector.js +7 -7
- package/lib/esm/components/AccountInfo/ManagedAccountsDropdown.d.ts +2 -1
- package/lib/esm/components/AccountInfo/ManagedAccountsDropdown.d.ts.map +1 -1
- package/lib/esm/components/AccountInfo/ManagedAccountsDropdown.js +36 -11
- package/lib/esm/components/AccountInfo/OwnerSelector.d.ts +2 -1
- package/lib/esm/components/AccountInfo/OwnerSelector.d.ts.map +1 -1
- package/lib/esm/components/AccountInfo/OwnerSelector.js +10 -124
- package/lib/esm/components/AccountInfo/css/accountSelector.css +6 -0
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.js +5 -5
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts +2 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +23 -20
- package/lib/esm/components/CaseEditView/Case.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Case.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Case.js +8 -8
- package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts +2 -1
- package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsAside.js +22 -16
- package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.d.ts +2 -1
- package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.js +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsModals.js +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +45 -25
- package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.d.ts +2 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.js +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.d.ts +2 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseType.d.ts +2 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseType.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseType.js +18 -4
- package/lib/esm/components/CaseEditView/CaseOverview/DateTime.d.ts +2 -1
- package/lib/esm/components/CaseEditView/CaseOverview/DateTime.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/DateTime.js +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/index.d.ts +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/index.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/index.js +44 -35
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.js +115 -47
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts +7 -2
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.js +8 -6
- package/lib/esm/components/CaseEditView/CaseSolutions/HandpicketItem.d.ts +15 -0
- package/lib/esm/components/CaseEditView/CaseSolutions/HandpicketItem.d.ts.map +1 -0
- package/lib/esm/components/CaseEditView/CaseSolutions/HandpicketItem.js +76 -0
- package/lib/esm/components/CaseEditView/CaseSubscriptionAbuseAlert.d.ts +2 -1
- package/lib/esm/components/CaseEditView/CaseSubscriptionAbuseAlert.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSubscriptionAbuseAlert.js +1 -1
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts +2 -1
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.js +17 -11
- package/lib/esm/components/CaseEditView/PDFContainer.d.ts +1 -1
- package/lib/esm/components/CaseEditView/PDFContainer.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.js +2 -2
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.d.ts +2 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.js +8 -7
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts +2 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.js +13 -12
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.js +2 -2
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts +2 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +13 -12
- package/lib/esm/components/CaseEditView/ShareCase/PartnerCaseHelper.d.ts +2 -2
- package/lib/esm/components/CaseEditView/ShareCase/PartnerCaseHelper.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ShareCase/PartnerCaseHelper.js +1 -1
- package/lib/esm/components/CaseEditView/ShareCase/PartnerShare.d.ts +2 -1
- package/lib/esm/components/CaseEditView/ShareCase/PartnerShare.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ShareCase/PartnerShare.js +59 -35
- package/lib/esm/components/CaseEditView/ShareCase/TnC.d.ts +1 -1
- package/lib/esm/components/CaseEditView/ShareCase/TnC.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.js +8 -20
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +187 -66
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.d.ts +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInformation.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInformation.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInformation.js +10 -13
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInternalStatus.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInternalStatus.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInternalStatus.js +31 -12
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftPopover.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftPopover.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftPopover.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftV3Popover.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftV3Popover.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftV3Popover.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.js +15 -14
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.d.ts +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.js +21 -11
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.js +7 -7
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseSbrGroups.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseSbrGroups.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseSbrGroups.js +3 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/SFDCUrl.d.ts +3 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/SFDCUrl.d.ts.map +1 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/SFDCUrl.js +37 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.js +9 -9
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/useCustomEmails.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.js +10 -8
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseChat.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +29 -11
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +89 -31
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseExternalTrackerUpdate.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseExternalTrackerUpdate.js +6 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.js +4 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/DiscussionItemLink.d.ts +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/DiscussionItemLink.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/DiscussionItemLink.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/JumpAndCopyLink.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/JumpAndCopyLink.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useMarkdownFileUploader.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +29 -9
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.js +4 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.css +0 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.d.ts +5 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.js +7 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.css +331 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts +7 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts.map +1 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.js +442 -0
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts +3 -2
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.js +5 -5
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.js +4 -4
- package/lib/esm/components/CaseEditView/Tabs/RelatedTasks/RelatedTasks.d.ts +4 -0
- package/lib/esm/components/CaseEditView/Tabs/RelatedTasks/RelatedTasks.d.ts.map +1 -0
- package/lib/esm/components/CaseEditView/Tabs/RelatedTasks/RelatedTasks.js +118 -0
- package/lib/esm/components/CaseEditView/index.d.ts +2 -8
- package/lib/esm/components/CaseEditView/index.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/index.js +8 -13
- package/lib/esm/components/CaseInformation/CaseGroup.d.ts +2 -1
- package/lib/esm/components/CaseInformation/CaseGroup.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/CaseGroup.js +72 -26
- package/lib/esm/components/CaseInformation/CaseInformation.d.ts +2 -1
- package/lib/esm/components/CaseInformation/CaseInformation.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/CaseInformation.js +3 -5
- package/lib/esm/components/CaseInformation/CaseType.d.ts +2 -1
- package/lib/esm/components/CaseInformation/CaseType.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts +2 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.js +230 -55
- package/lib/esm/components/CaseInformation/ContactPhoneNumberAlert.d.ts +2 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumberAlert.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumberAlert.js +33 -14
- package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.d.ts +2 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.js +1 -1
- package/lib/esm/components/CaseInformation/Description.d.ts +3 -1
- package/lib/esm/components/CaseInformation/Description.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Description.js +58 -28
- package/lib/esm/components/CaseInformation/FileDiag.d.ts +2 -1
- package/lib/esm/components/CaseInformation/FileDiag.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Fts.d.ts +2 -1
- package/lib/esm/components/CaseInformation/Fts.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Fts.js +38 -8
- package/lib/esm/components/CaseInformation/MandatoryPhonePopOver.d.ts +4 -0
- package/lib/esm/components/CaseInformation/MandatoryPhonePopOver.d.ts.map +1 -0
- package/lib/esm/components/CaseInformation/MandatoryPhonePopOver.js +26 -0
- package/lib/esm/components/CaseInformation/OpenCaseIssue.d.ts +3 -1
- package/lib/esm/components/CaseInformation/OpenCaseIssue.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/OpenCaseIssue.js +54 -29
- package/lib/esm/components/CaseInformation/Severity.d.ts +2 -1
- package/lib/esm/components/CaseInformation/Severity.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Severity.js +18 -32
- package/lib/esm/components/CaseInformation/SupportLevel.d.ts +2 -1
- package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/SupportLevel.js +9 -5
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.d.ts +2 -1
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.js +3 -2
- package/lib/esm/components/CaseManagement/CaseManagement.d.ts +2 -1
- package/lib/esm/components/CaseManagement/CaseManagement.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/CaseManagement.js +10 -7
- package/lib/esm/components/CaseManagement/Cep.d.ts +2 -1
- package/lib/esm/components/CaseManagement/Cep.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/Cep.js +37 -21
- package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.d.ts +2 -1
- package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.js +14 -13
- package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.d.ts +2 -1
- package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.js +3 -3
- package/lib/esm/components/CaseManagement/OpenReferenceNumber.d.ts +2 -1
- package/lib/esm/components/CaseManagement/OpenReferenceNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.d.ts +6 -5
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +46 -28
- package/lib/esm/components/CaseManagement/OpenShiftV3Inputbox.d.ts +2 -1
- package/lib/esm/components/CaseManagement/OpenShiftV3Inputbox.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenShiftV3Inputbox.js +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts +2 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +7 -6
- package/lib/esm/components/CaseManagement/RHAssociatesSelector.d.ts +2 -1
- package/lib/esm/components/CaseManagement/RHAssociatesSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/RHAssociatesSelector.js +19 -13
- package/lib/esm/components/CaseManagement/SendNotifications/AddContactToGroupModal.d.ts +2 -1
- package/lib/esm/components/CaseManagement/SendNotifications/AddContactToGroupModal.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.d.ts +2 -1
- package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.js +16 -15
- package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.d.ts +2 -1
- package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.js +43 -37
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.d.ts +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.js +3 -5
- package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.d.ts +2 -1
- package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.d.ts.map +1 -1
- package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.js +3 -3
- package/lib/esm/components/ConfirmationModals/PreCaseConfirmationModals.d.ts +2 -1
- package/lib/esm/components/ConfirmationModals/PreCaseConfirmationModals.d.ts.map +1 -1
- package/lib/esm/components/ConfirmationModals/PreCaseConfirmationModals.js +0 -2
- package/lib/esm/components/ConfirmationModals/PreferredSecureSupportModal.d.ts +2 -1
- package/lib/esm/components/ConfirmationModals/PreferredSecureSupportModal.d.ts.map +1 -1
- package/lib/esm/components/ConfirmationModals/ROCMModal.d.ts +2 -1
- package/lib/esm/components/ConfirmationModals/ROCMModal.d.ts.map +1 -1
- package/lib/esm/components/Cve/CveItem.d.ts +10 -0
- package/lib/esm/components/Cve/CveItem.d.ts.map +1 -0
- package/lib/esm/components/Cve/CveItem.js +139 -0
- package/lib/esm/components/Cve/CveModal.d.ts +3 -0
- package/lib/esm/components/Cve/CveModal.d.ts.map +1 -0
- package/lib/esm/components/Cve/CveModal.js +44 -0
- package/lib/esm/components/Cve/CvePanel.d.ts +7 -0
- package/lib/esm/components/Cve/CvePanel.d.ts.map +1 -0
- package/lib/esm/components/Cve/CvePanel.js +23 -0
- package/lib/esm/components/Cve/CveSidebar.d.ts +3 -0
- package/lib/esm/components/Cve/CveSidebar.d.ts.map +1 -0
- package/lib/esm/components/Cve/CveSidebar.js +23 -0
- package/lib/esm/components/EditDescription/EditDescription.d.ts +2 -1
- package/lib/esm/components/EditDescription/EditDescription.d.ts.map +1 -1
- package/lib/esm/components/EditDescription/EditDescription.js +1 -6
- package/lib/esm/components/IdeaInformation/IdeaInformation.d.ts +2 -1
- package/lib/esm/components/IdeaInformation/IdeaInformation.d.ts.map +1 -1
- package/lib/esm/components/IdeaInformation/IdeaInformation.js +12 -11
- package/lib/esm/components/ImproveCase/FileEARule.d.ts +2 -1
- package/lib/esm/components/ImproveCase/FileEARule.d.ts.map +1 -1
- package/lib/esm/components/ImproveCase/Hostname.d.ts +2 -1
- package/lib/esm/components/ImproveCase/Hostname.d.ts.map +1 -1
- package/lib/esm/components/ImproveCase/Hostname.js +3 -3
- package/lib/esm/components/ImproveCase/KtQuestions.d.ts +2 -1
- package/lib/esm/components/ImproveCase/KtQuestions.d.ts.map +1 -1
- package/lib/esm/components/ImproveCase/KtQuestions.js +62 -58
- package/lib/esm/components/OpenCase/CaseTypeIcons/BugIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/BugIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/CertificationIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/CertificationIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/CustomerServiceIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/CustomerServiceIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/DocumentationIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/DocumentationIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/GearIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/GearIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/IdeaIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/IdeaIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/RcaIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/RcaIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/OpenCase.d.ts +5 -1
- package/lib/esm/components/OpenCase/OpenCase.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/OpenCase.js +9 -0
- package/lib/esm/components/OpenCase/SupportTypeIcons/BugIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/BugIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/CertificationIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/CertificationIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/CustomerServiceIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/CustomerServiceIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/DocumentationIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/DocumentationIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/GearIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/GearIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/IdeaIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/IdeaIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/RcaIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/RcaIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.d.ts +2 -1
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.js +12 -15
- package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts +5 -1
- package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/AllProductsSelector.js +29 -9
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts +4 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +21 -6
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.d.ts +2 -1
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +2 -2
- package/lib/esm/components/ProductSelector/ProductSelector.d.ts +8 -2
- package/lib/esm/components/ProductSelector/ProductSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/ProductSelector.js +45 -23
- package/lib/esm/components/ProductSelector/ProductSelectorLoader.d.ts +2 -1
- package/lib/esm/components/ProductSelector/ProductSelectorLoader.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.d.ts +3 -0
- package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.js +10 -2
- package/lib/esm/components/Recommendations/AlertToastWrapper.d.ts +3 -0
- package/lib/esm/components/Recommendations/AlertToastWrapper.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/AlertToastWrapper.js +2 -2
- package/lib/esm/components/Recommendations/AsideResults.d.ts +3 -1
- package/lib/esm/components/Recommendations/AsideResults.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/AsideResults.js +17 -28
- package/lib/esm/components/Recommendations/ClusterRecommendationItems.d.ts +2 -1
- package/lib/esm/components/Recommendations/ClusterRecommendationItems.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendationItems.js +8 -5
- package/lib/esm/components/Recommendations/ClusterRecommendations.d.ts +2 -1
- package/lib/esm/components/Recommendations/ClusterRecommendations.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendations.js +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendationsModal.d.ts +2 -1
- package/lib/esm/components/Recommendations/ClusterRecommendationsModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/CriticalSolutionsToast.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/CriticalSolutionsToast.js +1 -1
- package/lib/esm/components/Recommendations/EARules/EARule.d.ts +7 -6
- package/lib/esm/components/Recommendations/EARules/EARule.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/EARules/EARule.js +7 -6
- package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.d.ts +3 -1
- package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.js +14 -4
- package/lib/esm/components/Recommendations/EARules/EARuleInfoInline.d.ts +2 -1
- package/lib/esm/components/Recommendations/EARules/EARuleInfoInline.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/EARules/EARuleInfoInline.js +13 -12
- package/lib/esm/components/Recommendations/EARules/EARuleWidget.d.ts +2 -1
- package/lib/esm/components/Recommendations/EARules/EARuleWidget.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/EARules/EARuleWidget.js +6 -2
- package/lib/esm/components/Recommendations/InsightsResults.d.ts +2 -1
- package/lib/esm/components/Recommendations/InsightsResults.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/InsightsResults.js +20 -7
- package/lib/esm/components/Recommendations/InsightsRuleInfo.d.ts +3 -1
- package/lib/esm/components/Recommendations/InsightsRuleInfo.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/InsightsRuleInfo.js +17 -14
- package/lib/esm/components/Recommendations/RecommendationFeedbackModal.d.ts +2 -1
- package/lib/esm/components/Recommendations/RecommendationFeedbackModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/RecommendationFeedbackModal.js +1 -1
- package/lib/esm/components/Recommendations/RecommendationInfoBox.d.ts +3 -0
- package/lib/esm/components/Recommendations/RecommendationInfoBox.d.ts.map +1 -0
- package/lib/esm/components/Recommendations/RecommendationInfoBox.js +28 -0
- package/lib/esm/components/Recommendations/Recommendations.d.ts +5 -1
- package/lib/esm/components/Recommendations/Recommendations.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/Recommendations.js +108 -39
- package/lib/esm/components/Recommendations/RecommendationsLoader.d.ts +3 -0
- package/lib/esm/components/Recommendations/RecommendationsLoader.d.ts.map +1 -0
- package/lib/esm/components/Recommendations/RecommendationsLoader.js +11 -0
- package/lib/esm/components/Recommendations/RulesModal.d.ts +2 -1
- package/lib/esm/components/Recommendations/RulesModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/RulesModal.js +8 -14
- package/lib/esm/components/Recommendations/WatsonxAiIcon.d.ts +10 -0
- package/lib/esm/components/Recommendations/WatsonxAiIcon.d.ts.map +1 -0
- package/lib/esm/components/Recommendations/WatsonxAiIcon.js +13 -0
- package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.d.ts +2 -1
- package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.d.ts.map +1 -1
- package/lib/esm/components/RemoteRider/RemoteRiderBanner.d.ts +2 -1
- package/lib/esm/components/RemoteRider/RemoteRiderBanner.d.ts.map +1 -1
- package/lib/esm/components/RemoteRider/RemoteRiderBanner.js +1 -1
- package/lib/esm/components/Review/Review.d.ts +3 -2
- package/lib/esm/components/Review/Review.d.ts.map +1 -1
- package/lib/esm/components/Review/Review.js +14 -11
- package/lib/esm/components/SessionRestore/SessionItem.d.ts +2 -1
- package/lib/esm/components/SessionRestore/SessionItem.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/SessionItem.js +4 -4
- package/lib/esm/components/SessionRestore/SessionRestore.d.ts +2 -1
- package/lib/esm/components/SessionRestore/SessionRestore.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/SessionRestore.js +51 -35
- package/lib/esm/components/SessionRestore/SessionRestoreCard.d.ts +2 -1
- package/lib/esm/components/SessionRestore/SessionRestoreCard.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/SessionRestoreCard.js +9 -16
- package/lib/esm/components/SubmitCase/ResubmitToast.d.ts +3 -0
- package/lib/esm/components/SubmitCase/ResubmitToast.d.ts.map +1 -1
- package/lib/esm/components/SubmitCase/ResubmitToast.js +3 -1
- package/lib/esm/components/SubmitCase/SubmitCase.d.ts +2 -1
- package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
- package/lib/esm/components/SubmitCase/SubmitCase.js +122 -33
- package/lib/esm/components/Suggestions/Suggestions.d.ts +2 -1
- package/lib/esm/components/Suggestions/Suggestions.d.ts.map +1 -1
- package/lib/esm/components/Suggestions/Suggestions.js +10 -3
- package/lib/esm/components/Suggestions/TopContent.d.ts +2 -2
- package/lib/esm/components/Suggestions/TopContent.d.ts.map +1 -1
- package/lib/esm/components/Suggestions/TopContent.js +58 -13
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts +2 -1
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts.map +1 -1
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +25 -34
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts +2 -1
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts.map +1 -1
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +176 -75
- package/lib/esm/components/shared/Constants.d.ts +5 -4
- package/lib/esm/components/shared/Constants.d.ts.map +1 -1
- package/lib/esm/components/shared/Rule.d.ts +2 -1
- package/lib/esm/components/shared/Rule.d.ts.map +1 -1
- package/lib/esm/components/shared/Rule.js +6 -6
- package/lib/esm/components/shared/fileUpload/FileLister.d.ts +3 -1
- package/lib/esm/components/shared/fileUpload/FileLister.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/FileLister.js +8 -7
- package/lib/esm/components/shared/fileUpload/FileUpload.d.ts +2 -1
- package/lib/esm/components/shared/fileUpload/FileUpload.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/FileUploader.d.ts +2 -1
- package/lib/esm/components/shared/fileUpload/FileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/SectionFileUploader.d.ts +2 -1
- package/lib/esm/components/shared/fileUpload/SectionFileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/UploadButton.d.ts +2 -2
- package/lib/esm/components/shared/fileUpload/UploadButton.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.d.ts +1 -1
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +9 -9
- package/lib/esm/components/shared/fileUpload/common/FileUploaderInfoIcon.d.ts +2 -1
- package/lib/esm/components/shared/fileUpload/common/FileUploaderInfoIcon.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/common/FileUploaderInfoIcon.js +1 -1
- package/lib/esm/components/shared/fileUpload/css/fileSelector.css +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.d.ts +2 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.js +4 -3
- package/lib/esm/components/shared/fileUpload/fileSelectors/InputFileSelector.d.ts +2 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/InputFileSelector.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.d.ts +3 -2
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.js +15 -6
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelectorImage.d.ts +2 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelectorImage.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelectorImage.js +3 -3
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.d.ts +23 -23
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.js +14 -8
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducer.d.ts +2 -2
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducer.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducerContext.d.ts +1 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducerContext.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/useFileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/useFileUploader.js +2 -1
- package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts +2 -2
- package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts.map +1 -1
- package/lib/esm/components/shared/useIsSectionValid.d.ts +2 -1
- package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
- package/lib/esm/components/shared/useIsSectionValid.js +82 -23
- package/lib/esm/components/shared/usePostComment.d.ts.map +1 -1
- package/lib/esm/components/shared/usePostComment.js +4 -2
- package/lib/esm/components/shared/utils.d.ts +4 -1
- package/lib/esm/components/shared/utils.d.ts.map +1 -1
- package/lib/esm/components/shared/utils.js +17 -5
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.d.ts +2 -1
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.js +9 -49
- package/lib/esm/components/wizardLayout/MainSection.d.ts +4 -1
- package/lib/esm/components/wizardLayout/MainSection.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/MainSection.js +28 -4
- package/lib/esm/components/wizardLayout/NewFeatureModal.d.ts +4 -0
- package/lib/esm/components/wizardLayout/NewFeatureModal.d.ts.map +1 -0
- package/lib/esm/components/wizardLayout/NewFeatureModal.js +38 -0
- package/lib/esm/components/wizardLayout/RedHatCustomerPortalIcon.d.ts +3 -0
- package/lib/esm/components/wizardLayout/RedHatCustomerPortalIcon.d.ts.map +1 -0
- package/lib/esm/components/wizardLayout/RedHatCustomerPortalIcon.js +31 -0
- package/lib/esm/components/wizardLayout/WizardAside.d.ts +3 -2
- package/lib/esm/components/wizardLayout/WizardAside.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardAside.js +19 -10
- package/lib/esm/components/wizardLayout/WizardLayout.d.ts +2 -1
- package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardLayout.js +50 -47
- package/lib/esm/components/wizardLayout/WizardMain.d.ts +3 -2
- package/lib/esm/components/wizardLayout/WizardMain.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardMain.js +31 -4
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts +11 -3
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardNavigation.js +137 -20
- package/lib/esm/components/wizardLayout/index.d.ts +2 -3
- package/lib/esm/components/wizardLayout/index.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/index.js +4 -11
- package/lib/esm/constants/caseDetailsConstants.d.ts +9 -3
- package/lib/esm/constants/caseDetailsConstants.d.ts.map +1 -1
- package/lib/esm/constants/caseDetailsConstants.js +9 -2
- package/lib/esm/context/CaseContext.d.ts +1 -1
- package/lib/esm/context/CaseContext.d.ts.map +1 -1
- package/lib/esm/context/CaseContext.js +1 -1
- package/lib/esm/context/CaseDetailsPageContext.d.ts +1 -1
- package/lib/esm/context/CaseDetailsPageContext.d.ts.map +1 -1
- package/lib/esm/context/CaseDiscussionTabContext.d.ts +1 -1
- package/lib/esm/context/CaseDiscussionTabContext.d.ts.map +1 -1
- package/lib/esm/context/CaseOverviewContext.d.ts +8 -0
- package/lib/esm/context/CaseOverviewContext.d.ts.map +1 -0
- package/lib/esm/context/CaseOverviewContext.js +10 -0
- package/lib/esm/context/ClusterRecommendationsContext.d.ts +1 -1
- package/lib/esm/context/ClusterRecommendationsContext.d.ts.map +1 -1
- package/lib/esm/context/RecommendationContext.d.ts +1 -1
- package/lib/esm/context/RecommendationContext.d.ts.map +1 -1
- package/lib/esm/context/RootTroubleshootProvider.d.ts +2 -1
- package/lib/esm/context/RootTroubleshootProvider.d.ts.map +1 -1
- package/lib/esm/context/RouteContext.d.ts +1 -1
- package/lib/esm/context/RouteContext.d.ts.map +1 -1
- package/lib/esm/context/RulesContext.d.ts +1 -1
- package/lib/esm/context/RulesContext.d.ts.map +1 -1
- package/lib/esm/context/SessionRestoreContext.d.ts +1 -1
- package/lib/esm/context/SessionRestoreContext.d.ts.map +1 -1
- package/lib/esm/context/TopContentContext.d.ts +1 -1
- package/lib/esm/context/TopContentContext.d.ts.map +1 -1
- package/lib/esm/css/app.css +43 -14
- package/lib/esm/css/case.css +4 -4
- package/lib/esm/css/productSelector.css +7 -3
- package/lib/esm/css/results.css +6 -0
- package/lib/esm/enums/cache.d.ts +2 -2
- package/lib/esm/enums/cache.d.ts.map +1 -1
- package/lib/esm/hooks/useFetchCVEData.d.ts +5 -0
- package/lib/esm/hooks/useFetchCVEData.d.ts.map +1 -0
- package/lib/esm/hooks/useFetchCVEData.js +138 -0
- package/lib/esm/hooks/useParseRuleMarkdown.d.ts.map +1 -1
- package/lib/esm/hooks/useParseRuleMarkdown.js +1 -1
- package/lib/esm/hooks/useS3Upload.js +2 -2
- package/lib/esm/hooks/useWizard.d.ts +10 -1
- package/lib/esm/hooks/useWizard.d.ts.map +1 -1
- package/lib/esm/hooks/useWizard.js +27 -15
- package/lib/esm/i18n/template-de.d.ts +52 -0
- package/lib/esm/i18n/template-de.d.ts.map +1 -1
- package/lib/esm/i18n/template-de.js +55 -0
- package/lib/esm/i18n/template-es.d.ts +51 -0
- package/lib/esm/i18n/template-es.d.ts.map +1 -1
- package/lib/esm/i18n/template-es.js +53 -0
- package/lib/esm/i18n/template-fr.d.ts +6 -0
- package/lib/esm/i18n/template-fr.d.ts.map +1 -1
- package/lib/esm/i18n/template-fr.js +6 -0
- package/lib/esm/i18n/template-it.d.ts +52 -0
- package/lib/esm/i18n/template-it.d.ts.map +1 -1
- package/lib/esm/i18n/template-it.js +54 -0
- package/lib/esm/i18n/template-jp.d.ts +9 -0
- package/lib/esm/i18n/template-jp.d.ts.map +1 -1
- package/lib/esm/i18n/template-jp.js +11 -2
- package/lib/esm/i18n/template-ko.d.ts +9 -0
- package/lib/esm/i18n/template-ko.d.ts.map +1 -1
- package/lib/esm/i18n/template-ko.js +10 -1
- package/lib/esm/i18n/template-pt.d.ts +50 -0
- package/lib/esm/i18n/template-pt.d.ts.map +1 -1
- package/lib/esm/i18n/template-pt.js +53 -0
- package/lib/esm/i18n/template-zh.d.ts +9 -0
- package/lib/esm/i18n/template-zh.d.ts.map +1 -1
- package/lib/esm/i18n/template-zh.js +9 -0
- package/lib/esm/index.d.ts +0 -1
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +0 -1
- package/lib/esm/models/caseCreationWorkflows.d.ts +27 -0
- package/lib/esm/models/caseCreationWorkflows.d.ts.map +1 -0
- package/lib/esm/models/caseCreationWorkflows.js +1 -0
- package/lib/esm/reducers/CaseConstNTypes.d.ts +42 -13
- package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.js +62 -31
- package/lib/esm/reducers/CaseDetailsPageReducer.d.ts +2 -2
- package/lib/esm/reducers/CaseDetailsPageReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseDetailsPageReducer.js +1 -1
- package/lib/esm/reducers/CaseDiscussionTabReducer.d.ts +5 -4
- package/lib/esm/reducers/CaseDiscussionTabReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseDiscussionTabReducer.js +7 -3
- package/lib/esm/reducers/CaseHelpers.d.ts +1 -0
- package/lib/esm/reducers/CaseHelpers.d.ts.map +1 -1
- package/lib/esm/reducers/CaseHelpers.js +21 -25
- package/lib/esm/reducers/CaseOverviewReducer.d.ts +3 -3
- package/lib/esm/reducers/CaseOverviewReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.d.ts +5 -5
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.js +137 -70
- package/lib/esm/reducers/ClusterRecommendationsReducer.d.ts +2 -2
- package/lib/esm/reducers/ClusterRecommendationsReducer.d.ts.map +1 -1
- package/lib/esm/reducers/RecommendationsReducer.d.ts +6 -4
- package/lib/esm/reducers/RecommendationsReducer.d.ts.map +1 -1
- package/lib/esm/reducers/RecommendationsReducer.js +12 -9
- package/lib/esm/reducers/RouteConstNTypes.d.ts +6 -2
- package/lib/esm/reducers/RouteConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/RouteConstNTypes.js +10 -5
- package/lib/esm/reducers/RouteReducer.d.ts +2 -2
- package/lib/esm/reducers/RouteReducer.d.ts.map +1 -1
- package/lib/esm/reducers/RulesReducer.d.ts +2 -2
- package/lib/esm/reducers/RulesReducer.d.ts.map +1 -1
- package/lib/esm/reducers/SessionRestoreReducer.d.ts +20 -16
- package/lib/esm/reducers/SessionRestoreReducer.d.ts.map +1 -1
- package/lib/esm/reducers/SessionRestoreReducer.js +80 -44
- package/lib/esm/reducers/TopContentReducer.d.ts +2 -2
- package/lib/esm/reducers/TopContentReducer.d.ts.map +1 -1
- package/lib/esm/scss/_main.scss +319 -51
- package/lib/esm/scss/_pf-overrides.scss +792 -0
- package/lib/esm/scss/index.scss +1 -7
- package/lib/esm/utils/caseOpenshiftClusterIdUtils.d.ts.map +1 -1
- package/lib/esm/utils/caseUtils.d.ts +20 -0
- package/lib/esm/utils/caseUtils.d.ts.map +1 -0
- package/lib/esm/utils/caseUtils.js +58 -0
- package/lib/esm/utils/insightRuleInfoUtils.d.ts +4 -0
- package/lib/esm/utils/insightRuleInfoUtils.d.ts.map +1 -0
- package/lib/esm/utils/insightRuleInfoUtils.js +23 -0
- package/lib/esm/utils/routeUtils.d.ts +1 -1
- package/lib/esm/utils/routeUtils.d.ts.map +1 -1
- package/lib/esm/utils/routeUtils.js +2 -1
- package/package.json +54 -50
- package/lib/esm/components/CaseEditView/CaseDetailsWarningMessage.d.ts +0 -8
- package/lib/esm/components/CaseEditView/CaseDetailsWarningMessage.d.ts.map +0 -1
- package/lib/esm/components/CaseEditView/CaseDetailsWarningMessage.js +0 -10
- package/lib/esm/components/CaseEditView/CaseSecureSupportAlert.d.ts +0 -8
- package/lib/esm/components/CaseEditView/CaseSecureSupportAlert.d.ts.map +0 -1
- package/lib/esm/components/CaseEditView/CaseSecureSupportAlert.js +0 -22
- package/lib/esm/components/CaseEditView/Tabs/CaseBugzilla/CaseBugzilla.d.ts +0 -5
- package/lib/esm/components/CaseEditView/Tabs/CaseBugzilla/CaseBugzilla.d.ts.map +0 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseBugzilla/CaseBugzilla.js +0 -29
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert.d.ts +0 -9
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert.d.ts.map +0 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert.js +0 -71
- package/lib/esm/components/CaseInformation/ProductNVersion.d.ts +0 -5
- package/lib/esm/components/CaseInformation/ProductNVersion.d.ts.map +0 -1
- package/lib/esm/components/CaseInformation/ProductNVersion.js +0 -20
- package/lib/esm/components/ConfirmationModals/ConfirmedStateSideSupportModal.d.ts +0 -7
- package/lib/esm/components/ConfirmationModals/ConfirmedStateSideSupportModal.d.ts.map +0 -1
- package/lib/esm/components/ConfirmationModals/ConfirmedStateSideSupportModal.js +0 -21
- package/lib/esm/components/Recommendations/ShowRank.d.ts +0 -12
- package/lib/esm/components/Recommendations/ShowRank.d.ts.map +0 -1
- package/lib/esm/components/Recommendations/ShowRank.js +0 -27
- package/lib/esm/hooks/useUserPreference.d.ts +0 -7
- package/lib/esm/hooks/useUserPreference.d.ts.map +0 -1
- package/lib/esm/hooks/useUserPreference.js +0 -36
- package/lib/esm/scss/_pf4-imports.scss +0 -30
- package/lib/esm/scss/_pf4-overrides.scss +0 -488
|
@@ -8,18 +8,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { Alert, AlertVariant, Button, ButtonVariant, ExpandableSection, Label, ModalVariant, } from '@patternfly/react-core';
|
|
11
|
+
import LockIcon from '@patternfly/react-icons/dist/js/icons/lock-icon';
|
|
11
12
|
import { ToastNotification, useConfirmation } from '@rh-support/components';
|
|
12
13
|
import { CloseCaseModal, fetchCaseSeverities, fetchCaseTypes, GlobalMetadataDispatchContext, GlobalMetadataStateContext, useCanEditCase, } from '@rh-support/react-context';
|
|
13
14
|
import { AbilityContext, CaseDetailsFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
14
|
-
import { haventLoadedMetadata, isOpenShiftOnlineProduct, toNewCaseTypeMapper, toNewCaseTypeSwitcher, } from '@rh-support/utils';
|
|
15
|
+
import { dtmTrackEventCaseStepEncountered, haventLoadedMetadata, isOpenShiftOnlineProduct, PreviousCaseTypes, toNewCaseTypeMapper, toNewCaseTypeSwitcher, } from '@rh-support/utils';
|
|
15
16
|
import isEqual from 'lodash/isEqual';
|
|
16
|
-
import React, { useContext, useEffect,
|
|
17
|
+
import React, { useContext, useEffect, useRef, useState } from 'react';
|
|
17
18
|
import { Trans, useTranslation } from 'react-i18next';
|
|
18
19
|
import { CaseStatusEnum } from '../../../constants/caseDetailsConstants';
|
|
19
20
|
import { useCaseDispatch, useCaseSelector } from '../../../context/CaseContext';
|
|
21
|
+
import { CaseOverviewDispatchContext, CaseOverviewStateContext } from '../../../context/CaseOverviewContext';
|
|
20
22
|
import { useCaseUpdateErrorMessage } from '../../../hooks/useCaseUpdateErrorMessage';
|
|
21
23
|
import { SupportLevelDisplay } from '../../../reducers/CaseConstNTypes';
|
|
22
|
-
import {
|
|
24
|
+
import { fetchAllStatuses, fetchCaseHydra, setSeverityUpdating, setStatusUpdating, setTypeUpdating, } from '../../../reducers/CaseOverviewReducer';
|
|
23
25
|
import { updateCaseDetails } from '../../../reducers/CaseReducer';
|
|
24
26
|
import Severity from '../../CaseInformation/Severity';
|
|
25
27
|
import { usePostComment } from '../../shared/usePostComment';
|
|
@@ -27,7 +29,6 @@ import { ReopenCaseModal } from '../ConfirmationModals/ReopenCaseModal';
|
|
|
27
29
|
import { PDFContext } from '../PDFContainer';
|
|
28
30
|
import { CaseInformation } from '../Tabs/CaseDetails/CaseInformation';
|
|
29
31
|
import { CaseContactPhoneNumberAlert } from '../Tabs/CaseDetails/CasePhoneNumberConfirmAlert';
|
|
30
|
-
import { CasePhoneNumberSev1ConfirmAlert } from '../Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert';
|
|
31
32
|
import Summary from '../Tabs/CaseDetails/Summary';
|
|
32
33
|
import CaseOwnerInfo from './CaseOwnerInfo';
|
|
33
34
|
import CaseStatus from './CaseStatus';
|
|
@@ -40,29 +41,30 @@ export default function CaseOverview(props) {
|
|
|
40
41
|
const canManageCase = ability.can(resourceActions.UPDATE, resources.CASE_DETAILS);
|
|
41
42
|
const canSeeCaseOwnerInfo = ability.can(resourceActions.PATCH, resources.CASE_DETAILS, CaseDetailsFields.CASE_DETAILS_OWNER);
|
|
42
43
|
const canSeeInactivityWarning = ability.can(resourceActions.PATCH, resources.CASE_DETAILS, CaseDetailsFields.CASE_DETAILS_ACTIVITY_WARNING);
|
|
43
|
-
const
|
|
44
|
+
const caseOverviewState = useContext(CaseOverviewStateContext);
|
|
45
|
+
const caseOverviewDispatch = useContext(CaseOverviewDispatchContext);
|
|
44
46
|
const [isDetailsExpanded, setIsDetailsExpanded] = useState(true);
|
|
45
47
|
const [showReOpenCaseModal, setShowReopenCaseModal] = useState(false);
|
|
46
48
|
const [showCloseCaseModal, setShowCaseCloseModal] = useState(false);
|
|
47
49
|
const { isExportingPDF, exportPDFButton } = useContext(PDFContext);
|
|
48
50
|
const reopenStatusRef = useRef(null);
|
|
49
51
|
const { postComment, isPostingComment } = usePostComment({ caseNumber: props.caseNumber });
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
52
|
+
const { product, version, status, caseType, createdDate, createdById, ownerId, caseNumber, entitlementSla, cep, accountNumber, isPrivate, isCaseUpdating, contactIsPartner, hotfixRequested, hotfixDelivered, selectedAccountDetails, firstCaseInactivityWarningSentAt, secondCaseInactivityWarningSentAt, } = useCaseSelector((state) => ({
|
|
53
|
+
product: state.caseDetails.product,
|
|
54
|
+
version: state.caseDetails.version,
|
|
55
|
+
status: state.caseDetails.status,
|
|
56
|
+
caseType: state.caseDetails.caseType,
|
|
57
|
+
caseSeverity: state.caseDetails.severity,
|
|
58
|
+
createdDate: state.caseDetails.createdDate,
|
|
59
|
+
createdById: state.caseDetails.createdById,
|
|
60
|
+
ownerId: state.caseDetails.ownerId,
|
|
61
|
+
caseNumber: state.caseDetails.caseNumber,
|
|
62
|
+
entitlementSla: state.caseDetails.entitlementSla,
|
|
63
|
+
cep: state.caseDetails.cep,
|
|
64
|
+
accountNumber: state.caseDetails.accountNumberRef,
|
|
65
|
+
firstCaseInactivityWarningSentAt: state.caseDetails.firstCaseInactivityWarningSentAt,
|
|
66
|
+
secondCaseInactivityWarningSentAt: state.caseDetails.secondCaseInactivityWarningSentAt,
|
|
67
|
+
isPrivate: state.caseDetails.isPrivate,
|
|
66
68
|
isCaseUpdating: state.isCaseUpdating,
|
|
67
69
|
contactIsPartner: state.contactIsPartner,
|
|
68
70
|
hotfixRequested: state.hotfixRequested,
|
|
@@ -71,8 +73,6 @@ export default function CaseOverview(props) {
|
|
|
71
73
|
}), isEqual);
|
|
72
74
|
const canEditCase = useCanEditCase();
|
|
73
75
|
const caseDispatch = useCaseDispatch();
|
|
74
|
-
const { product, version, status, caseType, createdDate, createdById, ownerId, caseNumber, entitlementSla, cep, accountNumber, } = caseState.caseDetails;
|
|
75
|
-
const { isCaseUpdating, contactIsPartner, hotfixRequested, hotfixDelivered, selectedAccountDetails, caseDetails: { firstCaseInactivityWarningSentAt, secondCaseInactivityWarningSentAt }, } = caseState;
|
|
76
76
|
const globalMetadataDispatchContext = useContext(GlobalMetadataDispatchContext);
|
|
77
77
|
const { globalMetadataState: { allCaseTypes, allCaseSeverities, viewAsCustomer, loggedInUsersAccount, loggedInUserRights, }, } = useContext(GlobalMetadataStateContext);
|
|
78
78
|
const switchedCaseType = toNewCaseTypeSwitcher(caseType);
|
|
@@ -96,6 +96,7 @@ export default function CaseOverview(props) {
|
|
|
96
96
|
if (haventLoadedMetadata(caseOverviewState.allCaseStatuses)) {
|
|
97
97
|
fetchAllStatuses(caseOverviewDispatch, loggedInUsersAccount.data.secureSupport);
|
|
98
98
|
}
|
|
99
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
99
100
|
}, [
|
|
100
101
|
globalMetadataDispatchContext,
|
|
101
102
|
allCaseSeverities,
|
|
@@ -111,7 +112,11 @@ export default function CaseOverview(props) {
|
|
|
111
112
|
return;
|
|
112
113
|
setTypeUpdating(caseOverviewDispatch, true);
|
|
113
114
|
try {
|
|
114
|
-
|
|
115
|
+
let newCaseDetails = { caseType: type };
|
|
116
|
+
if (type === PreviousCaseTypes.FEATURE_ENHANCEMENT) {
|
|
117
|
+
newCaseDetails = Object.assign(Object.assign({}, newCaseDetails), { fts: false });
|
|
118
|
+
}
|
|
119
|
+
yield updateCaseDetails(caseDispatch, props.caseNumber, newCaseDetails);
|
|
115
120
|
setTypeUpdating(caseOverviewDispatch, false);
|
|
116
121
|
ToastNotification.addSuccessMessage(t('Support type has been successfully updated'));
|
|
117
122
|
}
|
|
@@ -141,7 +146,7 @@ export default function CaseOverview(props) {
|
|
|
141
146
|
caseUpdateError.showError(e, t('Severity failed to update'));
|
|
142
147
|
}
|
|
143
148
|
});
|
|
144
|
-
const updateStatusState = (
|
|
149
|
+
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) {
|
|
145
150
|
setStatusUpdating(caseOverviewDispatch, true);
|
|
146
151
|
let updateStatusObj = {
|
|
147
152
|
status: statusVal,
|
|
@@ -184,7 +189,7 @@ export default function CaseOverview(props) {
|
|
|
184
189
|
const onCaseClose = () => __awaiter(this, void 0, void 0, function* () {
|
|
185
190
|
setShowCaseCloseModal(true);
|
|
186
191
|
});
|
|
187
|
-
const onCaseReopen = (
|
|
192
|
+
const onCaseReopen = (...args_1) => __awaiter(this, [...args_1], void 0, function* (selectedStatus = null) {
|
|
188
193
|
reopenStatusRef.current = selectedStatus;
|
|
189
194
|
setShowReopenCaseModal(true);
|
|
190
195
|
});
|
|
@@ -221,18 +226,17 @@ export default function CaseOverview(props) {
|
|
|
221
226
|
React.createElement("div", { className: "case-overview-header" },
|
|
222
227
|
canSeeInactivityWarning && isCaseInOpenState && (React.createElement(React.Fragment, null,
|
|
223
228
|
' ',
|
|
224
|
-
firstCaseInactivityWarningSentAt && !secondCaseInactivityWarningSentAt && (React.createElement(Alert, { className: "pf-u-mb-md", isInline: true, title: React.createElement(React.Fragment, null,
|
|
225
|
-
React.createElement("h3", { className: "pf-u-mb-sm pf-c-alert__title" },
|
|
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" },
|
|
226
231
|
React.createElement(Trans, null, "Case inactivity notification")),
|
|
227
|
-
React.createElement("p", { className: "pf-u-mb-sm" },
|
|
232
|
+
React.createElement("p", { className: "pf-v5-u-mb-sm" },
|
|
228
233
|
React.createElement(Trans, null, "The customer has received one warning regarding inactivity."))) })),
|
|
229
|
-
firstCaseInactivityWarningSentAt && secondCaseInactivityWarningSentAt && (React.createElement(Alert, { className: "pf-u-mb-md", isInline: true, variant: AlertVariant.warning, title: React.createElement(React.Fragment, null,
|
|
230
|
-
React.createElement("h3", { className: "pf-u-mb-sm pf-c-alert__title" },
|
|
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" },
|
|
231
236
|
React.createElement(Trans, null, "Case inactivity warning")),
|
|
232
|
-
React.createElement("p", { className: "pf-u-mb-sm" },
|
|
237
|
+
React.createElement("p", { className: "pf-v5-u-mb-sm" },
|
|
233
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."))) })))),
|
|
234
239
|
React.createElement(CaseContactPhoneNumberAlert, { isReview: true, tabRef: props.tabsRef }),
|
|
235
|
-
React.createElement(CasePhoneNumberSev1ConfirmAlert, { isReview: true, tabRef: props.tabsRef }),
|
|
236
240
|
React.createElement("header", null,
|
|
237
241
|
React.createElement("h2", { className: "case-ID" },
|
|
238
242
|
React.createElement(Trans, null, "Case"),
|
|
@@ -240,7 +244,7 @@ export default function CaseOverview(props) {
|
|
|
240
244
|
props.caseNumber),
|
|
241
245
|
React.createElement("div", null,
|
|
242
246
|
exportPDFButton(props.caseNumber),
|
|
243
|
-
React.createElement(Button, Object.assign({ className: `pf-u-ml-md ${isExportingPDF ? 'hide-in-pdf' : ''}`, isDisabled: !canManageCase || (caseOverviewState.caseStatusUpdating && isCaseUpdating) }, (caseOverviewState.caseStatusUpdating &&
|
|
247
|
+
React.createElement(Button, Object.assign({ className: `pf-v5-u-ml-md ${isExportingPDF ? 'hide-in-pdf' : ''}`, isDisabled: !canManageCase || (caseOverviewState.caseStatusUpdating && isCaseUpdating) }, (caseOverviewState.caseStatusUpdating &&
|
|
244
248
|
isCaseUpdating && {
|
|
245
249
|
isLoading: true,
|
|
246
250
|
}), { onClick: () => (isCaseInOpenState ? onCaseClose() : onCaseReopen()), variant: isCaseInOpenState ? ButtonVariant.secondary : ButtonVariant.tertiary, "data-tracking-id": isCaseInOpenState
|
|
@@ -254,6 +258,10 @@ export default function CaseOverview(props) {
|
|
|
254
258
|
canSeeManagedByPartnerFlag && (React.createElement(Label, { className: "push-right-narrow", color: "green" },
|
|
255
259
|
React.createElement(Trans, null, "Managed by a partner"))),
|
|
256
260
|
canSeeInternalFlags && (React.createElement(React.Fragment, null,
|
|
261
|
+
isPrivate && (React.createElement(Label, { className: "push-right-narrow", color: "red" },
|
|
262
|
+
React.createElement(LockIcon, { "aria-hidden": true }),
|
|
263
|
+
" ",
|
|
264
|
+
React.createElement(Trans, null, "Private Case"))),
|
|
257
265
|
hotfixRequested && (React.createElement(Label, { className: "push-right-narrow", color: "blue" },
|
|
258
266
|
React.createElement(Trans, null, "Hot fix requested"))),
|
|
259
267
|
hotfixDelivered && (React.createElement(Label, { className: "push-right-narrow", color: "green" },
|
|
@@ -280,7 +288,7 @@ export default function CaseOverview(props) {
|
|
|
280
288
|
React.createElement("div", null, createdDate ? React.createElement(DateTime, { dateTimeString: createdDate }) : null)),
|
|
281
289
|
canSeeCaseOwnerInfo && (React.createElement(CaseOwnerInfo, { owner: ownerId, caseDetailsHydra: caseOverviewState.caseDetailsHydra }))),
|
|
282
290
|
React.createElement("div", { className: "case-overview-secondary card card-md card-light push-bottom" },
|
|
283
|
-
React.createElement("div", { className: "pf-l-grid pf-m-gutter pf-m-all-4-col-on-lg" },
|
|
291
|
+
React.createElement("div", { className: "pf-v5-l-grid pf-m-gutter pf-m-all-4-col-on-lg" },
|
|
284
292
|
React.createElement("div", { className: "form-wrapper" },
|
|
285
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 })),
|
|
286
294
|
React.createElement("div", { className: "form-wrapper" },
|
|
@@ -293,6 +301,7 @@ export default function CaseOverview(props) {
|
|
|
293
301
|
yield updateStatusState(CaseStatusEnum.CLOSED);
|
|
294
302
|
yield postCommentAfterStatusUpdate(commentBody);
|
|
295
303
|
setShowCaseCloseModal(false);
|
|
304
|
+
dtmTrackEventCaseStepEncountered('close', caseNumber, product, version);
|
|
296
305
|
}), isUpdating: (caseOverviewState.caseStatusUpdating && isCaseUpdating) || isPostingComment, onClose: () => {
|
|
297
306
|
setShowCaseCloseModal(false);
|
|
298
307
|
}, caseNumber: caseNumber })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseSolutions.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseSolutions/CaseSolutions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CaseSolutions.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseSolutions/CaseSolutions.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAsD,MAAM,OAAO,CAAC;AAuE3E,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB,EAAE,OAAO,CAAC;CACnC;AAUD,eAAO,MAAM,aAAa,+EAkhBxB,CAAC"}
|
|
@@ -19,8 +19,9 @@ 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 } from '@patternfly/react-core';
|
|
22
|
+
import { Accordion, AccordionContent, AccordionItem, AccordionToggle, Button, Modal, ModalVariant, } from '@patternfly/react-core';
|
|
23
23
|
import { PaginatedList, ToastNotification } from '@rh-support/components';
|
|
24
|
+
import { useGlobalStateContext } from '@rh-support/react-context';
|
|
24
25
|
import { AbilityContext, CaseDetailsFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
25
26
|
import { getSolrParams } from '@rh-support/utils';
|
|
26
27
|
import find from 'lodash/find';
|
|
@@ -28,12 +29,18 @@ import isEqual from 'lodash/isEqual';
|
|
|
28
29
|
import some from 'lodash/some';
|
|
29
30
|
import React, { forwardRef, useContext, useEffect, useState } from 'react';
|
|
30
31
|
import { Trans, useTranslation } from 'react-i18next';
|
|
32
|
+
import { CaseStatusEnum } from '../../../constants/caseDetailsConstants';
|
|
31
33
|
import { useCaseDispatch, useCaseSelector } from '../../../context/CaseContext';
|
|
34
|
+
import { CaseOverviewDispatchContext } from '../../../context/CaseOverviewContext';
|
|
32
35
|
import { useRecommendationDispatchContext, useRecommendationStateContext, } from '../../../context/RecommendationContext';
|
|
33
36
|
import { useCaseUpdateErrorMessage } from '../../../hooks/useCaseUpdateErrorMessage';
|
|
37
|
+
import { setStatusUpdating } from '../../../reducers/CaseOverviewReducer';
|
|
34
38
|
import { updateCaseDetails } from '../../../reducers/CaseReducer';
|
|
35
|
-
import { fetchRecommendations } from '../../../reducers/RecommendationsReducer';
|
|
39
|
+
import { fetchRecommendations, fetchWatsonXRecommendations } from '../../../reducers/RecommendationsReducer';
|
|
40
|
+
import { extractKTQuestion1FromDescription } from '../../../utils/caseUtils';
|
|
41
|
+
import { usePostComment } from '../../shared/usePostComment';
|
|
36
42
|
import { CaseSolutionsItem } from './CaseSolutionsItem';
|
|
43
|
+
import { HandpickedItem } from './HandpicketItem';
|
|
37
44
|
// some of the pinned and hadpicked titles are set to 'Red Hat Knowledge Base'
|
|
38
45
|
// this workaround is added till backend fix
|
|
39
46
|
const titleFix = (recommendations, allDocs) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -47,7 +54,9 @@ const titleFix = (recommendations, allDocs) => __awaiter(void 0, void 0, void 0,
|
|
|
47
54
|
(recommendationWithSameID.publishedTitle || recommendationWithSameID.allTitle)) {
|
|
48
55
|
rec.title = (recommendationWithSameID === null || recommendationWithSameID === void 0 ? void 0 : recommendationWithSameID.publishedTitle) || (recommendationWithSameID === null || recommendationWithSameID === void 0 ? void 0 : recommendationWithSameID.allTitle);
|
|
49
56
|
rec.solutionAbstract =
|
|
50
|
-
(recommendationWithSameID === null || recommendationWithSameID === void 0 ? void 0 : recommendationWithSameID.
|
|
57
|
+
(recommendationWithSameID === null || recommendationWithSameID === void 0 ? void 0 : recommendationWithSameID.snippet) ||
|
|
58
|
+
(recommendationWithSameID === null || recommendationWithSameID === void 0 ? void 0 : recommendationWithSameID.publishedAbstract) ||
|
|
59
|
+
(recommendationWithSameID === null || recommendationWithSameID === void 0 ? void 0 : recommendationWithSameID.abstract);
|
|
51
60
|
}
|
|
52
61
|
else {
|
|
53
62
|
ids.push(rec.resourceId);
|
|
@@ -62,7 +71,7 @@ const titleFix = (recommendations, allDocs) => __awaiter(void 0, void 0, void 0,
|
|
|
62
71
|
recs.forEach((rec) => {
|
|
63
72
|
const matchedDoc = find(docs, (doc) => doc.id === rec.resourceId);
|
|
64
73
|
rec.title = matchedDoc ? (matchedDoc === null || matchedDoc === void 0 ? void 0 : matchedDoc.publishedTitle) || (matchedDoc === null || matchedDoc === void 0 ? void 0 : matchedDoc.allTitle) : rec.title;
|
|
65
|
-
rec.solutionAbstract = (matchedDoc === null || matchedDoc === void 0 ? void 0 : matchedDoc.publishedAbstract) || (matchedDoc === null || matchedDoc === void 0 ? void 0 : matchedDoc.abstract);
|
|
74
|
+
rec.solutionAbstract = (matchedDoc === null || matchedDoc === void 0 ? void 0 : matchedDoc.snippet) || (matchedDoc === null || matchedDoc === void 0 ? void 0 : matchedDoc.publishedAbstract) || (matchedDoc === null || matchedDoc === void 0 ? void 0 : matchedDoc.abstract);
|
|
66
75
|
});
|
|
67
76
|
}
|
|
68
77
|
catch (e) {
|
|
@@ -81,26 +90,58 @@ const titleFix = (recommendations, allDocs) => __awaiter(void 0, void 0, void 0,
|
|
|
81
90
|
// A recommendation can be both link and pin. We use pinnedBy and linkedBy fileds to identify them
|
|
82
91
|
export const CaseSolutions = forwardRef((props, ref) => {
|
|
83
92
|
const caseUpdateError = useCaseUpdateErrorMessage();
|
|
84
|
-
const { product, version, summary, description, recomendationsObj, isFetchingCaseDetails } = useCaseSelector((state) => ({
|
|
93
|
+
const { product, version, summary, description, recomendationsObj, isFetchingCaseDetails, caseStatus } = useCaseSelector((state) => ({
|
|
85
94
|
product: state.caseDetails.product,
|
|
86
95
|
version: state.caseDetails.version,
|
|
87
96
|
summary: state.caseDetails.summary,
|
|
88
97
|
description: state.caseDetails.description,
|
|
89
98
|
recomendationsObj: state.caseDetails.caseResourceLinks,
|
|
90
99
|
isFetchingCaseDetails: state.isFetchingCaseDetails,
|
|
100
|
+
caseStatus: state.caseDetails.status,
|
|
91
101
|
}), isEqual);
|
|
92
102
|
const caseDispatch = useCaseDispatch();
|
|
103
|
+
const caseOverviewDispatch = useContext(CaseOverviewDispatchContext);
|
|
93
104
|
const { recommendationState: { isLoadingRecommendations, allDocs }, } = useRecommendationStateContext();
|
|
105
|
+
const { globalMetadataState: { loggedInUsersAccount }, } = useGlobalStateContext();
|
|
94
106
|
const recommendationsDispatch = useRecommendationDispatchContext();
|
|
107
|
+
const { postComment } = usePostComment({ caseNumber: props.caseNumber });
|
|
95
108
|
const { caseNumber, isSecureSupportAccount } = props;
|
|
96
109
|
const [isPinLoading, setIsPinLoading] = useState({});
|
|
97
|
-
const [
|
|
110
|
+
const [isCaseCloseLoading, setIsCaseCloseLoading] = useState(false);
|
|
111
|
+
const [handPickedOpen, setHandPickedOpen] = useState(true);
|
|
112
|
+
const [pinnedOpen, setPinnedOpen] = useState(true);
|
|
98
113
|
const [recommendations, setRecommendations] = useState([]);
|
|
99
114
|
const [topRecommendations, setTopRecommendations] = useState([]);
|
|
115
|
+
const [isCloseCaseModalOpen, setIsCloseCaseModalOpen] = useState(false);
|
|
100
116
|
const ability = useContext(AbilityContext);
|
|
101
117
|
const { t } = useTranslation();
|
|
102
118
|
const hasPin = some(recommendations, (p) => p.isPinned);
|
|
103
119
|
const hasLink = some(recommendations, (p) => p.isLinked);
|
|
120
|
+
const getCommentBody = () => {
|
|
121
|
+
return `**Reason for closing case:** \nOther. Found a pinned article that perfectly resolved the issue. Closing this case now.`;
|
|
122
|
+
};
|
|
123
|
+
const handleCaseClose = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
124
|
+
setStatusUpdating(caseOverviewDispatch, true);
|
|
125
|
+
try {
|
|
126
|
+
setIsCaseCloseLoading(true);
|
|
127
|
+
yield updateCaseDetails(caseDispatch, props.caseNumber, { status: CaseStatusEnum.CLOSED });
|
|
128
|
+
yield postComment({
|
|
129
|
+
commentBody: getCommentBody(),
|
|
130
|
+
contentType: 'markdown',
|
|
131
|
+
updateDiscussionState: true,
|
|
132
|
+
doNotChangeStatus: true,
|
|
133
|
+
});
|
|
134
|
+
ToastNotification.addSuccessMessage(t('Status has been successfully updated'));
|
|
135
|
+
setIsCloseCaseModalOpen(false);
|
|
136
|
+
}
|
|
137
|
+
catch (err) {
|
|
138
|
+
caseUpdateError.showError(err, t('Status failed to update'));
|
|
139
|
+
}
|
|
140
|
+
finally {
|
|
141
|
+
setIsCaseCloseLoading(false);
|
|
142
|
+
setStatusUpdating(caseOverviewDispatch, false);
|
|
143
|
+
}
|
|
144
|
+
});
|
|
104
145
|
const updateRecommendation = (recommendationToUpdate, linked) => __awaiter(void 0, void 0, void 0, function* () {
|
|
105
146
|
const recommendation = {
|
|
106
147
|
resourceId: recommendationToUpdate.resourceId,
|
|
@@ -109,7 +150,7 @@ export const CaseSolutions = forwardRef((props, ref) => {
|
|
|
109
150
|
};
|
|
110
151
|
if (recommendationToUpdate.resourceViewURI)
|
|
111
152
|
recommendation.resourceViewURI = recommendationToUpdate.resourceViewURI;
|
|
112
|
-
// for some doc types like Errata we don't have resourceURI. If resourceURI was not
|
|
153
|
+
// for some doc types like Errata we don't have resourceURI. If resourceURI was not available,
|
|
113
154
|
// we constructe a 'fake' one to be used when linking in SFDC
|
|
114
155
|
recommendation.resourceURI = recommendationToUpdate.resourceURI
|
|
115
156
|
? recommendationToUpdate.resourceURI
|
|
@@ -122,6 +163,9 @@ export const CaseSolutions = forwardRef((props, ref) => {
|
|
|
122
163
|
});
|
|
123
164
|
const canPinUnpin = ability.can(resourceActions.PATCH, resources.CASE_DETAILS, CaseDetailsFields.CASE_DETAILS_PIN_UNPIN_RESOURCES);
|
|
124
165
|
const canLinkUnlink = ability.can(resourceActions.PATCH, resources.CASE_DETAILS, CaseDetailsFields.CASE_DETAILS_LINK_UNLINK_RESOURCES);
|
|
166
|
+
const addDtmEvent = (stepName) => {
|
|
167
|
+
// reserve for when fixing dtm
|
|
168
|
+
};
|
|
125
169
|
const updateRecommendations = (recommendationToUpdate, isPinned, isLinked) => () => __awaiter(void 0, void 0, void 0, function* () {
|
|
126
170
|
try {
|
|
127
171
|
setIsPinLoading((prevPiningMap) => (Object.assign(Object.assign({}, prevPiningMap), { [recommendationToUpdate.resourceId]: true })));
|
|
@@ -175,12 +219,28 @@ export const CaseSolutions = forwardRef((props, ref) => {
|
|
|
175
219
|
useEffect(() => {
|
|
176
220
|
function fetchRecs() {
|
|
177
221
|
if (product && version && summary && description) {
|
|
178
|
-
const payload = {
|
|
179
|
-
|
|
222
|
+
const payload = {
|
|
223
|
+
product,
|
|
224
|
+
version,
|
|
225
|
+
summary,
|
|
226
|
+
description: extractKTQuestion1FromDescription(description),
|
|
227
|
+
};
|
|
228
|
+
!loggedInUsersAccount.data.secureSupport
|
|
229
|
+
? fetchWatsonXRecommendations(recommendationsDispatch, payload, 50, 5, 300, true)
|
|
230
|
+
: fetchRecommendations(recommendationsDispatch, payload, 50, 5, 300, false, caseNumber, isSecureSupportAccount);
|
|
180
231
|
}
|
|
181
232
|
}
|
|
182
233
|
fetchRecs();
|
|
183
|
-
}, [
|
|
234
|
+
}, [
|
|
235
|
+
product,
|
|
236
|
+
version,
|
|
237
|
+
summary,
|
|
238
|
+
description,
|
|
239
|
+
recommendationsDispatch,
|
|
240
|
+
caseNumber,
|
|
241
|
+
isSecureSupportAccount,
|
|
242
|
+
loggedInUsersAccount.data.secureSupport,
|
|
243
|
+
]);
|
|
184
244
|
// populate solutions when result is ready
|
|
185
245
|
useEffect(() => {
|
|
186
246
|
const mapRecommendation = (doc) => {
|
|
@@ -190,7 +250,7 @@ export const CaseSolutions = forwardRef((props, ref) => {
|
|
|
190
250
|
resourceViewURI: doc.view_uri,
|
|
191
251
|
title: doc.publishedTitle || doc.allTitle,
|
|
192
252
|
resourceType: doc.documentKind,
|
|
193
|
-
solutionAbstract: doc.publishedAbstract || doc.abstract,
|
|
253
|
+
solutionAbstract: doc.snippet || doc.publishedAbstract || doc.abstract,
|
|
194
254
|
};
|
|
195
255
|
return rec;
|
|
196
256
|
};
|
|
@@ -210,49 +270,57 @@ export const CaseSolutions = forwardRef((props, ref) => {
|
|
|
210
270
|
}
|
|
211
271
|
}, [allDocs, isFetchingCaseDetails, isLoadingRecommendations, recomendationsObj]);
|
|
212
272
|
const renderTopRecommendations = (recommendation, index, type) => (React.createElement(React.Fragment, null,
|
|
213
|
-
canPinUnpin && (React.createElement(CaseSolutionsItem, { showPin: true, type: type, pinTitle: recommendation.isPinned ? 'Unpin' : 'Pin', isPinLoading: isPinLoading, index: index, recommendation: recommendation, onPinClicked: updateRecommendations(recommendation, recommendation.isPinned, undefined) })),
|
|
214
|
-
canLinkUnlink && (React.createElement(CaseSolutionsItem, { showLink: true, type: type, pinTitle: recommendation.isLinked ? 'Unlink' : 'Link', isPinLoading: isPinLoading, index: index, recommendation: recommendation, onPinClicked: updateRecommendations(recommendation, undefined, recommendation.isLinked) }))));
|
|
273
|
+
canPinUnpin && (React.createElement(CaseSolutionsItem, { showPin: true, type: type, pinTitle: recommendation.isPinned ? t('Unpin') : t('Pin'), isPinLoading: isPinLoading, index: index, recommendation: recommendation, onPinClicked: updateRecommendations(recommendation, recommendation.isPinned, undefined), onLinkClick: (name) => addDtmEvent(name) })),
|
|
274
|
+
canLinkUnlink && (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) }))));
|
|
215
275
|
// customer logged in: we show pins and perform pin/unpin
|
|
216
|
-
const renderPinsByCustomer = (recommendation, index, type) => (React.createElement(CaseSolutionsItem, { showPin: true, type: type, pinTitle: recommendation.isPinned ? 'Unpin' : 'Pin', isPinLoading: isPinLoading, index: index, recommendation: recommendation, onPinClicked: updateRecommendations(recommendation, recommendation.isPinned, undefined) }));
|
|
276
|
+
const renderPinsByCustomer = (recommendation, index, type) => (React.createElement(CaseSolutionsItem, { showPin: true, isPinned: true, type: type, pinTitle: recommendation.isPinned ? t('Unpin') : t('Pin'), isPinLoading: isPinLoading, index: index, recommendation: recommendation, onPinClicked: updateRecommendations(recommendation, recommendation.isPinned, undefined), onLinkClick: (name) => addDtmEvent(name) }));
|
|
217
277
|
// customer logged in: we show links but perform pin/unpin
|
|
218
|
-
const renderHandpickedCustomerView = (recommendation, index, type) => (React.createElement(
|
|
278
|
+
const renderHandpickedCustomerView = (recommendation, index, type) => (React.createElement(HandpickedItem, { type: type, caseNumber: props.caseNumber, pinTitle: recommendation.isPinnedAndLinked ? t('Unpin') : t('Pin'), isPinLoading: isPinLoading, index: index, recommendation: recommendation, onRecommendationLike: () => setIsCloseCaseModalOpen(true), onLinkClick: (name) => addDtmEvent(name) }));
|
|
219
279
|
// redhatter logged in: we show pins but perform link/unlink
|
|
220
|
-
const renderPinnedByCustomerRedhatterView = (recommendation, index, type) => (React.createElement(CaseSolutionsItem, { showLink: true, type: type, pinTitle: recommendation.isPinnedAndLinked ? 'Unpin' : 'Pin', isPinLoading: isPinLoading, index: index, recommendation: recommendation, onPinClicked: updateRecommendations(recommendation, undefined, recommendation.isLinked) }));
|
|
280
|
+
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) }));
|
|
221
281
|
// redhatter logged in: we show links and perform link/unlink
|
|
222
|
-
const renderHandPickedByRedHatter = (recommendation, index, type) => (React.createElement(
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
282
|
+
const renderHandPickedByRedHatter = (recommendation, index, type) => (React.createElement("div", { className: "pf-v5-u-ml-lg" },
|
|
283
|
+
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) })));
|
|
284
|
+
const linkedRecommendations = recommendations.filter((r) => r.isLinked);
|
|
285
|
+
const pinnedRecommendations = recommendations.filter((r) => r.isPinned);
|
|
286
|
+
const closeCaseModal = (React.createElement(Modal, { variant: ModalVariant.small, title: t('Did this solve your case?'), isOpen: isCloseCaseModalOpen && caseStatus !== CaseStatusEnum.CLOSED, onClose: () => setIsCloseCaseModalOpen(false), actions: [
|
|
287
|
+
React.createElement(Button, { variant: "primary", isDisabled: isCaseCloseLoading, onClick: () => setIsCloseCaseModalOpen(false), key: "keep-case-open-btn" },
|
|
288
|
+
React.createElement(Trans, null, "Keep it open")),
|
|
289
|
+
React.createElement(Button, { variant: "secondary", isDisabled: isCaseCloseLoading, isLoading: isCaseCloseLoading, key: "close-case-btn", onClick: handleCaseClose },
|
|
290
|
+
React.createElement(Trans, null, "Close case")),
|
|
291
|
+
] },
|
|
292
|
+
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.")));
|
|
226
293
|
return (React.createElement(React.Fragment, null,
|
|
294
|
+
closeCaseModal,
|
|
295
|
+
linkedRecommendations.length !== 0 && pinnedRecommendations.length !== 0 && (React.createElement(Accordion, { isBordered: true, asDefinitionList: false, className: "card card-white case-details-aside-solutions" },
|
|
296
|
+
linkedRecommendations.length !== 0 && (React.createElement(AccordionItem, null,
|
|
297
|
+
React.createElement(AccordionToggle, { id: "sol-handpicked", isExpanded: handPickedOpen, onClick: () => setHandPickedOpen((pre) => !pre) },
|
|
298
|
+
React.createElement("span", null, canLinkUnlink ? (React.createElement(Trans, null, "Handpicked by you")) : (React.createElement(Trans, null, "Handpicked for this case"))),
|
|
299
|
+
React.createElement("span", { className: "badge-item pf-v5-u-font-size-sm pf-v5-u-mx-sm" }, linkedRecommendations.length)),
|
|
300
|
+
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
|
|
301
|
+
? renderHandPickedByRedHatter(rec, index, 'handpicked-recommendations')
|
|
302
|
+
: renderHandpickedCustomerView(rec, index, 'handpicked-recommendations')), perPage: 5, className: "list-icons list-icons-flush", isFetching: !!isLoadingRecommendations, perPageOptions: [
|
|
303
|
+
{ title: '5', value: 5 },
|
|
304
|
+
{ title: '10', value: 10 },
|
|
305
|
+
] }))))),
|
|
306
|
+
pinnedRecommendations.length !== 0 && (React.createElement(AccordionItem, null,
|
|
307
|
+
React.createElement(AccordionToggle, { id: "sol-pinned", isExpanded: pinnedOpen, onClick: () => setPinnedOpen((pre) => !pre) },
|
|
308
|
+
React.createElement("span", null, canLinkUnlink ? (React.createElement(Trans, null, "Pinned by customer")) : (React.createElement(Trans, null, "My pinned recommendations"))),
|
|
309
|
+
React.createElement("span", { className: "badge-item pf-v5-u-font-size-sm pf-v5-u-mx-sm" }, pinnedRecommendations.length)),
|
|
310
|
+
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
|
|
311
|
+
? renderPinnedByCustomerRedhatterView(rec, index, 'pinned-recommendations')
|
|
312
|
+
: renderPinsByCustomer(rec, index, 'pinned-recommendations')), perPage: 5, className: "list-icons list-icons-flush", isFetching: !!isLoadingRecommendations, perPageOptions: [
|
|
313
|
+
{ title: '5', value: 5 },
|
|
314
|
+
{ title: '10', value: 10 },
|
|
315
|
+
] }))))))),
|
|
227
316
|
topRecommendations.length > 0 && (React.createElement("div", { className: "card card-white card-support recommendations", ref: ref },
|
|
228
|
-
React.createElement("h3", { className: "card-heading" },
|
|
229
|
-
React.createElement(Trans, null, "
|
|
317
|
+
React.createElement("h3", { className: "card-heading case-detail-panel-card-heading" },
|
|
318
|
+
React.createElement(Trans, null, "Knowledgebase recommendations")),
|
|
230
319
|
React.createElement("div", { className: "card-body" },
|
|
231
|
-
React.createElement(PaginatedList, { id: "case-details-top-recommendations", className: "list-icons list-icons-flush", listItems: topRecommendations
|
|
320
|
+
React.createElement(PaginatedList, { id: "case-details-top-recommendations", className: "list-icons list-icons-flush", listItems: topRecommendations
|
|
321
|
+
.filter((r) => !pinnedRecommendations.some((pr) => pr.resourceId === r.resourceId))
|
|
322
|
+
.map((rec, index) => renderTopRecommendations(rec, index, 'top-recommendations')), perPage: 5, isFetching: !!isLoadingRecommendations, perPageOptions: [
|
|
232
323
|
{ title: '5', value: 5 },
|
|
233
324
|
{ title: '10', value: 10 },
|
|
234
|
-
] }))))
|
|
235
|
-
(hasPin || hasLink) && (React.createElement(Accordion, { asDefinitionList: false, className: "card card-white case-details-aside-solutions" },
|
|
236
|
-
hasLink && (React.createElement(AccordionItem, null,
|
|
237
|
-
React.createElement(AccordionToggle, { id: "sol-handpicked", isExpanded: expanded === 'sol-handpicked', onClick: () => setExpandedSection('sol-handpicked') }, canLinkUnlink ? React.createElement(Trans, null, "Handpicked by you") : React.createElement(Trans, null, "Handpicked for you")),
|
|
238
|
-
React.createElement(AccordionContent, { isHidden: expanded !== 'sol-handpicked' },
|
|
239
|
-
React.createElement(PaginatedList, { id: "case-details-handpicked-recommendations", listItems: recommendations
|
|
240
|
-
.filter((r) => r.isLinked)
|
|
241
|
-
.map((rec, index) => canLinkUnlink
|
|
242
|
-
? renderHandPickedByRedHatter(rec, index, 'handpicked-recommendations')
|
|
243
|
-
: renderHandpickedCustomerView(rec, index, 'handpicked-recommendations')), perPage: 5, className: "list-icons list-icons-flush", isFetching: !!isLoadingRecommendations, perPageOptions: [
|
|
244
|
-
{ title: '5', value: 5 },
|
|
245
|
-
{ title: '10', value: 10 },
|
|
246
|
-
] })))),
|
|
247
|
-
hasPin && (React.createElement(AccordionItem, null,
|
|
248
|
-
React.createElement(AccordionToggle, { id: "sol-pinned", isExpanded: expanded === 'sol-pinned', onClick: () => setExpandedSection('sol-pinned') }, canLinkUnlink ? React.createElement(Trans, null, "Pinned by customer") : React.createElement(Trans, null, "Your pins")),
|
|
249
|
-
React.createElement(AccordionContent, { isHidden: expanded !== 'sol-pinned' },
|
|
250
|
-
React.createElement(PaginatedList, { id: "case-details-pinned-recommendations", listItems: recommendations
|
|
251
|
-
.filter((r) => r.isPinned)
|
|
252
|
-
.map((rec, index) => canLinkUnlink
|
|
253
|
-
? renderPinnedByCustomerRedhatterView(rec, index, 'pinned-recommendations')
|
|
254
|
-
: renderPinsByCustomer(rec, index, 'pinned-recommendations')), perPage: 5, className: "list-icons list-icons-flush", isFetching: !!isLoadingRecommendations, perPageOptions: [
|
|
255
|
-
{ title: '5', value: 5 },
|
|
256
|
-
{ title: '10', value: 10 },
|
|
257
|
-
] }))))))));
|
|
325
|
+
] }))))));
|
|
258
326
|
});
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { ICaseResourceLink } from '@cee-eng/hydrajs/@types/api/public/case';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { CaseRecommendationEvalEnum } from '../../../constants/caseDetailsConstants';
|
|
2
4
|
interface IProps {
|
|
3
5
|
showPin?: boolean;
|
|
6
|
+
isPinned?: boolean;
|
|
4
7
|
showLink?: boolean;
|
|
5
8
|
pinTitle: string;
|
|
6
9
|
index: number;
|
|
@@ -8,12 +11,14 @@ interface IProps {
|
|
|
8
11
|
isPinLoading: any;
|
|
9
12
|
onPinClicked: () => void;
|
|
10
13
|
type: string;
|
|
14
|
+
onLinkClick: (name: string) => void;
|
|
11
15
|
}
|
|
12
|
-
interface ICaseDetailAsideRecommendation extends Partial<ICaseResourceLink> {
|
|
16
|
+
export interface ICaseDetailAsideRecommendation extends Partial<ICaseResourceLink> {
|
|
13
17
|
isPinned?: boolean;
|
|
14
18
|
isLinked?: boolean;
|
|
15
19
|
solutionAbstract?: string;
|
|
20
|
+
customerEvaluation?: CaseRecommendationEvalEnum;
|
|
16
21
|
}
|
|
17
|
-
export declare function CaseSolutionsItem(props: IProps): JSX.Element;
|
|
22
|
+
export declare function CaseSolutionsItem(props: IProps): React.JSX.Element;
|
|
18
23
|
export {};
|
|
19
24
|
//# sourceMappingURL=CaseSolutionsItem.d.ts.map
|
|
@@ -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;
|
|
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,6 +1,7 @@
|
|
|
1
|
-
import { Button } from '@patternfly/react-core';
|
|
1
|
+
import { Button, Icon } from '@patternfly/react-core';
|
|
2
2
|
import LinkIcon from '@patternfly/react-icons/dist/js/icons/link-icon';
|
|
3
|
-
import
|
|
3
|
+
import OutlinedStarIcon from '@patternfly/react-icons/dist/js/icons/outlined-star-icon';
|
|
4
|
+
import StarIcon from '@patternfly/react-icons/dist/js/icons/star-icon';
|
|
4
5
|
import { LoadingIndicator } from '@rh-support/components';
|
|
5
6
|
import { cleanupMarkDown, decodeMarkTag, truncate } from '@rh-support/utils';
|
|
6
7
|
import DOMPurify from 'dompurify';
|
|
@@ -9,15 +10,16 @@ export function CaseSolutionsItem(props) {
|
|
|
9
10
|
const maxTitleLength = 150;
|
|
10
11
|
const maxAbstractLength = 150;
|
|
11
12
|
const isLoading = !!props.isPinLoading[props.recommendation.resourceId];
|
|
12
|
-
return (React.createElement(
|
|
13
|
+
return (React.createElement("div", null,
|
|
13
14
|
React.createElement("div", { className: "recommendation-header" },
|
|
14
15
|
React.createElement(Button, { title: props.pinTitle, onClick: props.onPinClicked, "data-tracking-id": `case-resource-${props.pinTitle}`, variant: "plain", className: "list-icon" },
|
|
15
16
|
isLoading && React.createElement(LoadingIndicator, { show: isLoading, size: "xs" }),
|
|
16
|
-
!isLoading && props.showPin && React.createElement(
|
|
17
|
+
!isLoading && props.showPin && (React.createElement(React.Fragment, null,
|
|
18
|
+
React.createElement(Icon, { size: "md" }, props.isPinned ? (React.createElement(StarIcon, { className: "pinned-resource", color: "0066cc" })) : (React.createElement(OutlinedStarIcon, { className: "pinned-resource", color: "0066cc" }))))),
|
|
17
19
|
!isLoading && props.showLink && React.createElement(LinkIcon, null)),
|
|
18
|
-
React.createElement("a", { href: props.recommendation.resourceViewURI, "data-tracking-id": `case-resource-${props.type}-link-${props.index}`, target: "_blank", rel: "noopener noreferrer", dangerouslySetInnerHTML: {
|
|
20
|
+
React.createElement("a", { href: props.recommendation.resourceViewURI, "data-tracking-id": `case-resource-${props.type}-link-${props.index}`, target: "_blank", rel: "noopener noreferrer", className: "case-resource-recommendation-link", dangerouslySetInnerHTML: {
|
|
19
21
|
__html: DOMPurify.sanitize(truncate(decodeMarkTag(props.recommendation.title || ''), maxTitleLength)),
|
|
20
|
-
} })),
|
|
22
|
+
}, onClick: () => props.onLinkClick('case solution click') })),
|
|
21
23
|
React.createElement("div", { className: "result-body", dangerouslySetInnerHTML: {
|
|
22
24
|
__html: DOMPurify.sanitize(truncate(cleanupMarkDown(decodeMarkTag(props.recommendation.solutionAbstract || '')), maxAbstractLength)),
|
|
23
25
|
} })));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ICaseDetailAsideRecommendation } from './CaseSolutionsItem';
|
|
3
|
+
interface IProps {
|
|
4
|
+
pinTitle: string;
|
|
5
|
+
caseNumber: string;
|
|
6
|
+
index: number;
|
|
7
|
+
recommendation: ICaseDetailAsideRecommendation;
|
|
8
|
+
isPinLoading: any;
|
|
9
|
+
onRecommendationLike: () => void;
|
|
10
|
+
type: string;
|
|
11
|
+
onLinkClick: (name: string) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function HandpickedItem(props: IProps): React.JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=HandpicketItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HandpicketItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseSolutions/HandpicketItem.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,EAAE,8BAA8B,EAAE,MAAM,qBAAqB,CAAC;AAErE,UAAU,MAAM;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,8BAA8B,CAAC;IAC/C,YAAY,EAAE,GAAG,CAAC;IAClB,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,qBAyH3C"}
|