@rh-support/troubleshoot 2.7.0 → 2.7.10
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/lib/esm/components/AccountInfo/AccountSelector.d.ts.map +1 -1
- package/lib/esm/components/AccountInfo/AccountSelector.js +23 -33
- package/lib/esm/components/AccountInfo/ManagedAccountsDropdown.js +1 -1
- package/lib/esm/components/AccountInfo/OwnerSelector.d.ts.map +1 -1
- package/lib/esm/components/AccountInfo/OwnerSelector.js +90 -24
- package/lib/esm/components/AccountInfo/css/accountSelector.css +3 -2
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.js +47 -35
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +167 -90
- package/lib/esm/components/CaseEditView/ArchivedCaseBanner.d.ts +7 -0
- package/lib/esm/components/CaseEditView/ArchivedCaseBanner.d.ts.map +1 -0
- package/lib/esm/components/CaseEditView/ArchivedCaseBanner.js +12 -0
- package/lib/esm/components/CaseEditView/Case.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Case.js +103 -37
- package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsAside.js +44 -37
- package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.d.ts +1 -0
- package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.js +32 -11
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +94 -72
- package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.d.ts +2 -0
- package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.js +4 -4
- package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.d.ts +3 -2
- package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.js +24 -11
- package/lib/esm/components/CaseEditView/CaseOverview/CaseType.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseType.js +2 -4
- 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.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/index.js +123 -70
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.js +240 -121
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts +0 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.js +6 -6
- package/lib/esm/components/CaseEditView/CaseSolutions/HandpicketItem.js +3 -3
- package/lib/esm/components/CaseEditView/CaseSubscriptionAbuseAlert.js +1 -1
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts +1 -3
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.js +55 -43
- package/lib/esm/components/CaseEditView/PDFContainer.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/PDFContainer.js +19 -15
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.js +33 -16
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.js +31 -33
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.js +116 -91
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.js +33 -16
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +114 -89
- package/lib/esm/components/CaseEditView/RequestRemoteSession/remoteSessionUtils.d.ts +15 -0
- package/lib/esm/components/CaseEditView/RequestRemoteSession/remoteSessionUtils.d.ts.map +1 -0
- package/lib/esm/components/CaseEditView/RequestRemoteSession/remoteSessionUtils.js +47 -0
- package/lib/esm/components/CaseEditView/ShareCase/TnC.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.js +9 -6
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +54 -48
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.js +84 -17
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.js +8 -8
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInformation.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInformation.js +0 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInternalStatus.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInternalStatus.js +4 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftPopover.js +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.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.js +137 -59
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.js +6 -9
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.js +13 -8
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseSbrGroups.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseSbrGroups.js +3 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +119 -65
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/SFDCUrl.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/SFDCUrl.js +3 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.js +22 -15
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/useCustomEmails.d.ts +1 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/useCustomEmails.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/useCustomEmails.js +6 -5
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/AsaCommentFeedbackModal.d.ts +25 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/AsaCommentFeedbackModal.d.ts.map +1 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/AsaCommentFeedbackModal.js +102 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.js +44 -28
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseChat.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseChat.js +7 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +158 -101
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts +10 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +294 -143
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseExternalTrackerUpdate.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.js +16 -16
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/DiscussionItemLink.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/DiscussionItemLink.js +9 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/JumpAndCopyLink.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/JumpAndCopyLink.js +8 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useAttachmentUploadCompletion.d.ts +29 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useAttachmentUploadCompletion.d.ts.map +1 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useAttachmentUploadCompletion.js +29 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useCommentDrafts.d.ts +17 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useCommentDrafts.d.ts.map +1 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useCommentDrafts.js +62 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useMarkdownFileUploader.d.ts +1 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useMarkdownFileUploader.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useMarkdownFileUploader.js +14 -12
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts +9 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +223 -277
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.js +33 -25
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.d.ts +0 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.js +8 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.css +55 -42
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts +36 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.js +100 -248
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts +4 -5
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.js +29 -12
- package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.js +32 -18
- package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummaryErrorMessage.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummaryErrorMessage.js +5 -7
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.js +41 -55
- package/lib/esm/components/CaseEditView/Tabs/RelatedTasks/RelatedTasks.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/RelatedTasks/RelatedTasks.js +2 -3
- package/lib/esm/components/CaseInformation/AISureMessageCard.d.ts +7 -0
- package/lib/esm/components/CaseInformation/AISureMessageCard.d.ts.map +1 -0
- package/lib/esm/components/CaseInformation/AISureMessageCard.js +15 -0
- package/lib/esm/components/CaseInformation/CaseGroup.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/CaseGroup.js +177 -55
- package/lib/esm/components/CaseInformation/CaseInformation.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/CaseInformation.js +15 -14
- package/lib/esm/components/CaseInformation/CaseLabels.d.ts +3 -0
- package/lib/esm/components/CaseInformation/CaseLabels.d.ts.map +1 -0
- package/lib/esm/components/CaseInformation/CaseLabels.js +108 -0
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.js +108 -31
- package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.js +3 -3
- package/lib/esm/components/CaseInformation/Description.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Description.js +25 -7
- package/lib/esm/components/CaseInformation/FileDiag.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/FileDiag.js +2 -5
- package/lib/esm/components/CaseInformation/Fts.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Fts.js +41 -27
- package/lib/esm/components/CaseInformation/OpenCaseIssue.d.ts +1 -0
- package/lib/esm/components/CaseInformation/OpenCaseIssue.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/OpenCaseIssue.js +8 -3
- package/lib/esm/components/CaseInformation/Severity.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Severity.js +34 -25
- package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/SupportLevel.js +43 -51
- package/lib/esm/components/CaseManagement/CaseLabelsCreate.d.ts +4 -0
- package/lib/esm/components/CaseManagement/CaseLabelsCreate.d.ts.map +1 -0
- package/lib/esm/components/CaseManagement/CaseLabelsCreate.js +141 -0
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.js +14 -17
- package/lib/esm/components/CaseManagement/CaseManagement.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/CaseManagement.js +15 -12
- package/lib/esm/components/CaseManagement/Cep.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/Cep.js +56 -51
- package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.js +50 -42
- 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 +74 -72
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +14 -9
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts +1 -4
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +136 -84
- package/lib/esm/components/CaseManagement/RHAssociatesSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/RHAssociatesSelector.js +12 -8
- package/lib/esm/components/CaseManagement/SendNotifications/AddContactToGroupModal.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/AddContactToGroupModal.js +8 -8
- package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.js +19 -21
- package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.js +15 -10
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.js +94 -49
- package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.d.ts.map +1 -1
- package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.js +17 -34
- package/lib/esm/components/ConfirmationModals/PreCaseConfirmationModals.d.ts.map +1 -1
- package/lib/esm/components/ConfirmationModals/PreferredSecureSupportModal.d.ts.map +1 -1
- package/lib/esm/components/ConfirmationModals/PreferredSecureSupportModal.js +1 -1
- package/lib/esm/components/Cve/CveItem.d.ts.map +1 -1
- package/lib/esm/components/Cve/CveItem.js +14 -11
- package/lib/esm/components/Cve/CveModal.d.ts.map +1 -1
- package/lib/esm/components/Cve/CveModal.js +12 -11
- package/lib/esm/components/Cve/CvePanel.d.ts.map +1 -1
- package/lib/esm/components/Cve/CvePanel.js +18 -10
- package/lib/esm/components/Cve/CveSidebar.d.ts.map +1 -1
- package/lib/esm/components/Cve/CveSidebar.js +9 -8
- package/lib/esm/components/EditDescription/EditDescription.d.ts.map +1 -1
- package/lib/esm/components/EditDescription/EditDescription.js +4 -2
- package/lib/esm/components/IdeaInformation/IdeaInformation.d.ts.map +1 -1
- package/lib/esm/components/IdeaInformation/IdeaInformation.js +30 -24
- package/lib/esm/components/ImproveCase/Hostname.d.ts.map +1 -1
- package/lib/esm/components/ImproveCase/Hostname.js +2 -2
- package/lib/esm/components/ImproveCase/KtQuestions.js +6 -6
- package/lib/esm/components/OpenCase/CaseTypeIcons/BugIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/CertificationIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/CustomerServiceIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/DocumentationIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/GearIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/IdeaIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/RcaIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/OpenCase.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/OpenCase.js +2 -8
- package/lib/esm/components/OpenCase/SupportTypeIcons/BugIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/CertificationIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/CustomerServiceIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/DocumentationIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/GearIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/IdeaIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/RcaIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.js +10 -15
- package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts +0 -1
- package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/AllProductsSelector.js +20 -39
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts +1 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +67 -59
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +47 -56
- package/lib/esm/components/ProductSelector/ProductNotEntitledWarning.d.ts +3 -0
- package/lib/esm/components/ProductSelector/ProductNotEntitledWarning.d.ts.map +1 -0
- package/lib/esm/components/ProductSelector/ProductNotEntitledWarning.js +9 -0
- package/lib/esm/components/ProductSelector/ProductSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/ProductSelector.js +7 -16
- package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.js +13 -5
- package/lib/esm/components/Recommendations/AsideResults.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/AsideResults.js +22 -12
- package/lib/esm/components/Recommendations/ClusterRecommendationItems.d.ts +2 -0
- package/lib/esm/components/Recommendations/ClusterRecommendationItems.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendationItems.js +18 -13
- package/lib/esm/components/Recommendations/ClusterRecommendationToast.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendationToast.js +1 -4
- package/lib/esm/components/Recommendations/ClusterRecommendations.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendations.js +3 -9
- package/lib/esm/components/Recommendations/ClusterRecommendationsModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendationsModal.js +10 -11
- 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.map +1 -1
- package/lib/esm/components/Recommendations/EARules/EARule.js +9 -4
- package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.js +6 -4
- package/lib/esm/components/Recommendations/EARules/EARuleInfoInline.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/EARules/EARuleInfoInline.js +9 -9
- package/lib/esm/components/Recommendations/InsightsResults.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/InsightsResults.js +9 -5
- package/lib/esm/components/Recommendations/InsightsRuleInfo.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/InsightsRuleInfo.js +25 -16
- package/lib/esm/components/Recommendations/RecommendationFeedbackModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/RecommendationFeedbackModal.js +7 -7
- package/lib/esm/components/Recommendations/RecommendationInfoBox.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/RecommendationInfoBox.js +7 -7
- package/lib/esm/components/Recommendations/Recommendations.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/Recommendations.js +51 -42
- package/lib/esm/components/Recommendations/RecommendationsLoader.js +1 -1
- package/lib/esm/components/Recommendations/RulesModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/RulesModal.js +10 -12
- package/lib/esm/components/Recommendations/WatsonxAiIcon.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/WatsonxAiIcon.js +9 -10
- package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.d.ts.map +1 -1
- package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.js +10 -8
- package/lib/esm/components/RemoteRider/RemoteRiderBanner.js +1 -1
- package/lib/esm/components/Review/Review.d.ts.map +1 -1
- package/lib/esm/components/Review/Review.js +43 -28
- package/lib/esm/components/SessionRestore/RestoreLastSessionModal.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/RestoreLastSessionModal.js +7 -5
- package/lib/esm/components/SessionRestore/SessionRestore.d.ts +2 -0
- package/lib/esm/components/SessionRestore/SessionRestore.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/SessionRestore.js +35 -13
- package/lib/esm/components/SessionRestore/SessionRestoreCard.js +1 -1
- package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
- package/lib/esm/components/SubmitCase/SubmitCase.js +34 -22
- package/lib/esm/components/Suggestions/EmptyTopContentSidebar.d.ts +3 -0
- package/lib/esm/components/Suggestions/EmptyTopContentSidebar.d.ts.map +1 -0
- package/lib/esm/components/Suggestions/EmptyTopContentSidebar.js +26 -0
- package/lib/esm/components/Suggestions/Suggestions.d.ts.map +1 -1
- package/lib/esm/components/Suggestions/Suggestions.js +31 -25
- package/lib/esm/components/Suggestions/TopContent.d.ts.map +1 -1
- package/lib/esm/components/Suggestions/TopContent.js +17 -17
- package/lib/esm/components/TroubleshootSection/AskRedHat.d.ts +9 -0
- package/lib/esm/components/TroubleshootSection/AskRedHat.d.ts.map +1 -0
- package/lib/esm/components/TroubleshootSection/AskRedHat.js +367 -0
- package/lib/esm/components/TroubleshootSection/CloseButton.d.ts +9 -0
- package/lib/esm/components/TroubleshootSection/CloseButton.d.ts.map +1 -0
- package/lib/esm/components/TroubleshootSection/CloseButton.js +5 -0
- package/lib/esm/components/TroubleshootSection/QuickResponse.d.ts +15 -0
- package/lib/esm/components/TroubleshootSection/QuickResponse.d.ts.map +1 -0
- package/lib/esm/components/TroubleshootSection/QuickResponse.js +26 -0
- package/lib/esm/components/TroubleshootSection/ResponseActionButton.d.ts +18 -0
- package/lib/esm/components/TroubleshootSection/ResponseActionButton.d.ts.map +1 -0
- package/lib/esm/components/TroubleshootSection/ResponseActionButton.js +28 -0
- package/lib/esm/components/TroubleshootSection/ResponseActions.d.ts +20 -0
- package/lib/esm/components/TroubleshootSection/ResponseActions.d.ts.map +1 -0
- package/lib/esm/components/TroubleshootSection/ResponseActions.js +54 -0
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts +20 -0
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts.map +1 -1
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +346 -27
- package/lib/esm/components/TroubleshootSection/UserFeedback.d.ts +13 -0
- package/lib/esm/components/TroubleshootSection/UserFeedback.d.ts.map +1 -0
- package/lib/esm/components/TroubleshootSection/UserFeedback.js +50 -0
- package/lib/esm/components/TroubleshootSection/UserFeedbackComplete.d.ts +10 -0
- package/lib/esm/components/TroubleshootSection/UserFeedbackComplete.d.ts.map +1 -0
- package/lib/esm/components/TroubleshootSection/UserFeedbackComplete.js +50 -0
- package/lib/esm/components/TroubleshootSection/icons/CollapseIcon.d.ts +9 -0
- package/lib/esm/components/TroubleshootSection/icons/CollapseIcon.d.ts.map +1 -0
- package/lib/esm/components/TroubleshootSection/icons/CollapseIcon.js +9 -0
- package/lib/esm/components/TroubleshootSection/icons/StarIcon.d.ts +9 -0
- package/lib/esm/components/TroubleshootSection/icons/StarIcon.d.ts.map +1 -0
- package/lib/esm/components/TroubleshootSection/icons/StarIcon.js +17 -0
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts.map +1 -1
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +157 -105
- package/lib/esm/components/shared/Constants.d.ts +1 -4
- package/lib/esm/components/shared/Constants.d.ts.map +1 -1
- package/lib/esm/components/shared/Constants.js +1 -4
- 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.map +1 -1
- package/lib/esm/components/shared/fileUpload/FileLister.js +11 -14
- package/lib/esm/components/shared/fileUpload/FileUpload.js +2 -3
- package/lib/esm/components/shared/fileUpload/FileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/FileUploader.js +3 -1
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.d.ts +1 -0
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +13 -10
- package/lib/esm/components/shared/fileUpload/common/FileUploaderInfoIcon.js +1 -1
- package/lib/esm/components/shared/fileUpload/css/fileSelector.css +2 -0
- package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.d.ts +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.js +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.js +4 -4
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelectorImage.js +2 -2
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.d.ts +22 -5
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.js +311 -60
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducer.d.ts +5 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducer.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducer.js +36 -1
- package/lib/esm/components/shared/fileUpload/types/index.d.ts +5 -1
- package/lib/esm/components/shared/fileUpload/types/index.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/useFileUploader.d.ts +2 -2
- package/lib/esm/components/shared/fileUpload/useFileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/useFileUploader.js +119 -47
- package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts +16 -6
- package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts.map +1 -1
- package/lib/esm/components/shared/input/ContactSelectorInternal.js +133 -23
- package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
- package/lib/esm/components/shared/useIsSectionValid.js +70 -91
- package/lib/esm/components/shared/usePostComment.d.ts.map +1 -1
- package/lib/esm/components/shared/usePostComment.js +16 -28
- package/lib/esm/components/shared/utils.d.ts +1 -0
- package/lib/esm/components/shared/utils.d.ts.map +1 -1
- package/lib/esm/components/shared/utils.js +9 -3
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.js +187 -37
- package/lib/esm/components/wizardLayout/MainSection.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/MainSection.js +5 -4
- package/lib/esm/components/wizardLayout/NewFeatureModal.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/NewFeatureModal.js +6 -6
- package/lib/esm/components/wizardLayout/WizardAside.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardAside.js +35 -15
- package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardLayout.js +17 -46
- package/lib/esm/components/wizardLayout/WizardMain.d.ts +10 -1
- package/lib/esm/components/wizardLayout/WizardMain.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardMain.js +361 -22
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts +8 -2
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardNavigation.js +118 -75
- package/lib/esm/components/wizardLayout/index.d.ts +1 -0
- package/lib/esm/components/wizardLayout/index.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/index.js +1 -0
- package/lib/esm/constants/askRedHatMessages.d.ts +35 -0
- package/lib/esm/constants/askRedHatMessages.d.ts.map +1 -0
- package/lib/esm/constants/askRedHatMessages.js +61 -0
- package/lib/esm/constants/caseDetailsConstants.d.ts +15 -11
- package/lib/esm/constants/caseDetailsConstants.d.ts.map +1 -1
- package/lib/esm/constants/caseDetailsConstants.js +32 -12
- package/lib/esm/context/AIResponseContext.d.ts +10 -0
- package/lib/esm/context/AIResponseContext.d.ts.map +1 -0
- package/lib/esm/context/AIResponseContext.js +26 -0
- package/lib/esm/context/CaseContext.d.ts.map +1 -1
- package/lib/esm/context/RootTroubleshootProvider.d.ts.map +1 -1
- package/lib/esm/context/RootTroubleshootProvider.js +8 -6
- package/lib/esm/css/AskRedHat.css +495 -0
- package/lib/esm/css/app.css +54 -17
- package/lib/esm/css/case.css +499 -37
- package/lib/esm/css/productSelector.css +5 -1
- package/lib/esm/css/results.css +2 -2
- package/lib/esm/graphql/index.d.ts +4 -0
- package/lib/esm/graphql/index.d.ts.map +1 -0
- package/lib/esm/graphql/index.js +3 -0
- package/lib/esm/graphql/mutations/createRMECaseEscalation.d.ts +2 -0
- package/lib/esm/graphql/mutations/createRMECaseEscalation.d.ts.map +1 -0
- package/lib/esm/graphql/mutations/createRMECaseEscalation.js +24 -0
- package/lib/esm/graphql/mutations/index.d.ts +2 -0
- package/lib/esm/graphql/mutations/index.d.ts.map +1 -0
- package/lib/esm/graphql/mutations/index.js +1 -0
- package/lib/esm/graphql/queries/getEscalationDetails.d.ts +2 -0
- package/lib/esm/graphql/queries/getEscalationDetails.d.ts.map +1 -0
- package/lib/esm/graphql/queries/getEscalationDetails.js +36 -0
- package/lib/esm/graphql/queries/index.d.ts +2 -0
- package/lib/esm/graphql/queries/index.d.ts.map +1 -0
- package/lib/esm/graphql/queries/index.js +1 -0
- package/lib/esm/graphql/schemas/escalation.d.ts +66 -0
- package/lib/esm/graphql/schemas/escalation.d.ts.map +1 -0
- package/lib/esm/graphql/schemas/escalation.js +1 -0
- package/lib/esm/graphql/schemas/index.d.ts +2 -0
- package/lib/esm/graphql/schemas/index.d.ts.map +1 -0
- package/lib/esm/graphql/schemas/index.js +1 -0
- package/lib/esm/hooks/useAB.d.ts +23 -0
- package/lib/esm/hooks/useAB.d.ts.map +1 -0
- package/lib/esm/hooks/useAB.js +75 -0
- package/lib/esm/hooks/useARHResponse.d.ts +15 -0
- package/lib/esm/hooks/useARHResponse.d.ts.map +1 -0
- package/lib/esm/hooks/useARHResponse.js +103 -0
- package/lib/esm/hooks/useCaseComments/caseCommentsQuery.d.ts +4 -0
- package/lib/esm/hooks/useCaseComments/caseCommentsQuery.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseComments/caseCommentsQuery.js +57 -0
- package/lib/esm/hooks/useCaseComments/index.d.ts +8 -0
- package/lib/esm/hooks/useCaseComments/index.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseComments/index.js +5 -0
- package/lib/esm/hooks/useCaseComments/mapCaseComment.d.ts +25 -0
- package/lib/esm/hooks/useCaseComments/mapCaseComment.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseComments/mapCaseComment.js +75 -0
- package/lib/esm/hooks/useCaseComments/types.d.ts +93 -0
- package/lib/esm/hooks/useCaseComments/types.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseComments/types.js +1 -0
- package/lib/esm/hooks/useCaseComments/useCaseComments.d.ts +26 -0
- package/lib/esm/hooks/useCaseComments/useCaseComments.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseComments/useCaseComments.js +116 -0
- package/lib/esm/hooks/useCaseComments/useCreateCaseComment.d.ts +19 -0
- package/lib/esm/hooks/useCaseComments/useCreateCaseComment.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseComments/useCreateCaseComment.js +33 -0
- package/lib/esm/hooks/useCaseGroupUiState.d.ts +3 -0
- package/lib/esm/hooks/useCaseGroupUiState.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseGroupUiState.js +10 -0
- package/lib/esm/hooks/useCaseHistory.d.ts +26 -0
- package/lib/esm/hooks/useCaseHistory.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseHistory.js +107 -0
- package/lib/esm/hooks/useCaseLabelLinkMutations.d.ts +23 -0
- package/lib/esm/hooks/useCaseLabelLinkMutations.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseLabelLinkMutations.js +84 -0
- package/lib/esm/hooks/useCaseUpdateErrorMessage.d.ts +9 -1
- package/lib/esm/hooks/useCaseUpdateErrorMessage.d.ts.map +1 -1
- package/lib/esm/hooks/useCaseUpdateErrorMessage.js +108 -11
- package/lib/esm/hooks/useResetCaseCreate.d.ts.map +1 -1
- package/lib/esm/hooks/useResetCaseCreate.js +18 -11
- package/lib/esm/hooks/useS3Upload.d.ts +5 -4
- package/lib/esm/hooks/useS3Upload.d.ts.map +1 -1
- package/lib/esm/hooks/useS3Upload.js +28 -30
- package/lib/esm/hooks/useWizard.d.ts +14 -0
- package/lib/esm/hooks/useWizard.d.ts.map +1 -1
- package/lib/esm/hooks/useWizard.js +33 -11
- package/lib/esm/i18n/template-de.d.ts +82 -4
- package/lib/esm/i18n/template-de.d.ts.map +1 -1
- package/lib/esm/i18n/template-de.js +82 -4
- package/lib/esm/i18n/template-es.d.ts +81 -3
- package/lib/esm/i18n/template-es.d.ts.map +1 -1
- package/lib/esm/i18n/template-es.js +81 -3
- package/lib/esm/i18n/template-fr.d.ts +81 -3
- package/lib/esm/i18n/template-fr.d.ts.map +1 -1
- package/lib/esm/i18n/template-fr.js +81 -3
- package/lib/esm/i18n/template-it.d.ts +81 -3
- package/lib/esm/i18n/template-it.d.ts.map +1 -1
- package/lib/esm/i18n/template-it.js +81 -3
- package/lib/esm/i18n/template-jp.d.ts +81 -3
- package/lib/esm/i18n/template-jp.d.ts.map +1 -1
- package/lib/esm/i18n/template-jp.js +81 -3
- package/lib/esm/i18n/template-ko.d.ts +81 -3
- package/lib/esm/i18n/template-ko.d.ts.map +1 -1
- package/lib/esm/i18n/template-ko.js +81 -3
- package/lib/esm/i18n/template-pt.d.ts +81 -3
- package/lib/esm/i18n/template-pt.d.ts.map +1 -1
- package/lib/esm/i18n/template-pt.js +81 -3
- package/lib/esm/i18n/template-ru.d.ts +47 -3
- package/lib/esm/i18n/template-ru.d.ts.map +1 -1
- package/lib/esm/i18n/template-ru.js +47 -3
- package/lib/esm/i18n/template-zh.d.ts +59 -3
- package/lib/esm/i18n/template-zh.d.ts.map +1 -1
- package/lib/esm/i18n/template-zh.js +59 -3
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +2 -0
- package/lib/esm/models/cache.d.ts +0 -2
- package/lib/esm/models/cache.d.ts.map +1 -1
- package/lib/esm/models/caseHistory.d.ts +86 -0
- package/lib/esm/models/caseHistory.d.ts.map +1 -0
- package/lib/esm/models/caseHistory.js +1 -0
- package/lib/esm/reducers/AIResponseConstNTypes.d.ts +90 -0
- package/lib/esm/reducers/AIResponseConstNTypes.d.ts.map +1 -0
- package/lib/esm/reducers/AIResponseConstNTypes.js +33 -0
- package/lib/esm/reducers/AIResponseReducer.d.ts +14 -0
- package/lib/esm/reducers/AIResponseReducer.d.ts.map +1 -0
- package/lib/esm/reducers/AIResponseReducer.js +80 -0
- package/lib/esm/reducers/CaseConstNTypes.d.ts +129 -9
- package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.js +39 -10
- package/lib/esm/reducers/CaseDetailsPageReducer.d.ts +7 -5
- package/lib/esm/reducers/CaseDetailsPageReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseDetailsPageReducer.js +61 -26
- package/lib/esm/reducers/CaseDiscussionTabReducer.d.ts +11 -10
- package/lib/esm/reducers/CaseDiscussionTabReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseDiscussionTabReducer.js +95 -64
- package/lib/esm/reducers/CaseHelpers.d.ts +26 -7
- package/lib/esm/reducers/CaseHelpers.d.ts.map +1 -1
- package/lib/esm/reducers/CaseHelpers.js +150 -27
- package/lib/esm/reducers/CaseOverviewReducer.d.ts +3 -1
- package/lib/esm/reducers/CaseOverviewReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseOverviewReducer.js +7 -5
- package/lib/esm/reducers/CaseReducer.d.ts +59 -12
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.js +311 -95
- package/lib/esm/reducers/ClusterRecommendationsReducer.d.ts.map +1 -1
- package/lib/esm/reducers/RecommendationsReducer.d.ts.map +1 -1
- package/lib/esm/reducers/RecommendationsReducer.js +16 -19
- package/lib/esm/reducers/RouteConstNTypes.d.ts +1 -2
- package/lib/esm/reducers/RouteConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/RouteConstNTypes.js +4 -1
- package/lib/esm/reducers/RouteReducer.d.ts +2 -2
- package/lib/esm/reducers/RouteReducer.d.ts.map +1 -1
- package/lib/esm/reducers/RouteReducer.js +1 -1
- package/lib/esm/reducers/RulesReducer.d.ts +11 -4
- package/lib/esm/reducers/RulesReducer.d.ts.map +1 -1
- package/lib/esm/reducers/RulesReducer.js +6 -1
- package/lib/esm/reducers/SessionRestoreReducer.d.ts +4 -3
- package/lib/esm/reducers/SessionRestoreReducer.d.ts.map +1 -1
- package/lib/esm/reducers/SessionRestoreReducer.js +51 -17
- package/lib/esm/reducers/TopContentReducer.d.ts.map +1 -1
- package/lib/esm/reducers/TopContentReducer.js +1 -1
- package/lib/esm/scss/_main.scss +295 -117
- package/lib/esm/scss/_pf-overrides.scss +269 -162
- package/lib/esm/utils/TimelineUtils.d.ts +41 -0
- package/lib/esm/utils/TimelineUtils.d.ts.map +1 -0
- package/lib/esm/utils/TimelineUtils.js +135 -0
- package/lib/esm/utils/caseDetailsCacheUtils.d.ts.map +1 -1
- package/lib/esm/utils/caseDetailsCacheUtils.js +1 -0
- package/lib/esm/utils/caseHistoryUtils.d.ts +85 -0
- package/lib/esm/utils/caseHistoryUtils.d.ts.map +1 -0
- package/lib/esm/utils/caseHistoryUtils.js +200 -0
- package/lib/esm/utils/caseOpenshiftClusterIdUtils.d.ts +1 -2
- package/lib/esm/utils/caseOpenshiftClusterIdUtils.d.ts.map +1 -1
- package/lib/esm/utils/caseOpenshiftClusterIdUtils.js +4 -4
- package/lib/esm/utils/caseSeverityFtsGraphQLUtils.d.ts +6 -0
- package/lib/esm/utils/caseSeverityFtsGraphQLUtils.d.ts.map +1 -0
- package/lib/esm/utils/caseSeverityFtsGraphQLUtils.js +26 -0
- package/lib/esm/utils/caseUtils.d.ts.map +1 -1
- package/lib/esm/utils/engagementUtils.d.ts +3 -0
- package/lib/esm/utils/engagementUtils.d.ts.map +1 -0
- package/lib/esm/utils/engagementUtils.js +16 -0
- package/lib/esm/utils/linkifyHtmlTextNodes.d.ts +8 -0
- package/lib/esm/utils/linkifyHtmlTextNodes.d.ts.map +1 -0
- package/lib/esm/utils/linkifyHtmlTextNodes.js +37 -0
- package/lib/esm/utils/remoteRiderUtils.d.ts.map +1 -1
- package/lib/esm/utils/visitedResourcesUtils.d.ts +31 -0
- package/lib/esm/utils/visitedResourcesUtils.d.ts.map +1 -0
- package/lib/esm/utils/visitedResourcesUtils.js +99 -0
- package/package.json +21 -26
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.css +0 -0
|
@@ -7,31 +7,30 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
10
|
+
import { useApolloClient } from '@apollo/client/react';
|
|
11
|
+
import { escalations } from '@cee-eng/hydrajs';
|
|
12
|
+
import { Button, Form, FormGroup, FormHelperText, Grid, GridItem, HelperText, HelperTextItem, Modal, ModalBody, ModalFooter, ModalHeader, Popover, TextArea, TextInput, Title, ValidatedOptions, } from '@patternfly/react-core';
|
|
13
13
|
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
14
|
-
import { AlertMessage, AlertType, LoadingIndicator, ToastNotification, useFetch } from '@rh-support/components';
|
|
15
|
-
import { useGlobalStateContext } from '@rh-support/react-context';
|
|
14
|
+
import { AlertMessage, AlertType, LoadingIndicator, SingleSelectDropdown, ToastNotification, useFetch, } from '@rh-support/components';
|
|
15
|
+
import { fetchCaseDetails, useGlobalStateContext } from '@rh-support/react-context';
|
|
16
16
|
import isEmpty from 'lodash/isEmpty';
|
|
17
|
+
import isEqual from 'lodash/isEqual';
|
|
17
18
|
import React, { useEffect, useState } from 'react';
|
|
18
19
|
import { Trans, useTranslation } from 'react-i18next';
|
|
19
|
-
import { useCaseDispatch } from '../../../context/CaseContext';
|
|
20
|
-
import { useCaseDetailsPageDispatchContext
|
|
21
|
-
import { useCaseDiscussionTabDispatchContext, useCaseDiscussionTabStateContext, } from '../../../context/CaseDiscussionTabContext';
|
|
20
|
+
import { useCaseDispatch, useCaseSelector } from '../../../context/CaseContext';
|
|
21
|
+
import { useCaseDetailsPageDispatchContext } from '../../../context/CaseDetailsPageContext';
|
|
22
22
|
import { CustomerGEOs } from '../../../enums/customerGEOs';
|
|
23
|
-
import {
|
|
23
|
+
import { CREATE_RME_CASE_ESCALATION, } from '../../../graphql';
|
|
24
|
+
import { GET_CASE_COMMENTS, useCreateCaseComment } from '../../../hooks/useCaseComments';
|
|
25
|
+
import { ESCALATION_BUSINESS_IMPACT_LENGTH_LIMIT, ESCALATION_DESCRIPTION_LENGTH_LIMIT, ESCALATION_EXPECTATIONS_LENGTH_LIMIT, ESCALATION_SUBJECT_LENGTH_LIMIT, } from '../../../reducers/CaseConstNTypes';
|
|
24
26
|
import { fetchCaseEscalations } from '../../../reducers/CaseDetailsPageReducer';
|
|
25
|
-
import {
|
|
26
|
-
import { checkForCaseStatusToggleOnAttachOrComment, fetchCaseDetails } from '../../../reducers/CaseReducer';
|
|
27
|
+
import { checkForCaseStatusToggleOnAttachOrComment, setCaseAccountNumber } from '../../../reducers/CaseReducer';
|
|
27
28
|
const customerGEOKeys = Object.keys(CustomerGEOs);
|
|
29
|
+
const ESCALATION_DESCRIPTION_EXPECTATIONS_SEPARATOR = '\n\nExpectations:\n';
|
|
28
30
|
export function RequestEscalationModal(props) {
|
|
29
|
-
const { globalMetadataState: {
|
|
31
|
+
const { globalMetadataState: { loggedInUserRights, loggedInUsersAccount }, } = useGlobalStateContext();
|
|
30
32
|
const { t } = useTranslation();
|
|
31
|
-
const
|
|
32
|
-
const onGeoDropdownToggle = (toggle) => setGeoShowDropdown(toggle);
|
|
33
|
-
const [showCategoryDropdown, setCategoryShowDropdown] = useState(false);
|
|
34
|
-
const onCategoryDropdownToggle = (toggle) => setCategoryShowDropdown(toggle);
|
|
33
|
+
const apolloClient = useApolloClient();
|
|
35
34
|
const [categories, setCategories] = useState([]);
|
|
36
35
|
const initialState = {
|
|
37
36
|
subject: '',
|
|
@@ -43,39 +42,43 @@ export function RequestEscalationModal(props) {
|
|
|
43
42
|
};
|
|
44
43
|
const [formState, setFormState] = useState(initialState);
|
|
45
44
|
const [hasLargeSubject, setHasLargeSubject] = useState(false);
|
|
45
|
+
const [hasLargeDescription, setHasLargeDescription] = useState(false);
|
|
46
|
+
const [hasLargeExpectations, setHasLargeExpectations] = useState(false);
|
|
47
|
+
const [hasLargeBusinessImpact, setHasLargeBusinessImpact] = useState(false);
|
|
46
48
|
const [submitButtonIsClicked, setSubmitSaveButtonIsClicked] = useState(false);
|
|
49
|
+
const hasFormLengthErrors = hasLargeSubject || hasLargeDescription || hasLargeExpectations || hasLargeBusinessImpact;
|
|
47
50
|
// checks if all the fields have values.
|
|
48
51
|
const hasRequiredInfo = () => Object.keys(formState).reduce((accumulator, currentValue) => { var _a; return !accumulator ? accumulator : formState[currentValue].length > 0 && ((_a = formState[currentValue]) === null || _a === void 0 ? void 0 : _a.trim()); }, true);
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const { request: postCommentRequest, isFetching: isPostingComment } = useFetch(publicApi.kase.postComment, {
|
|
52
|
-
propgateErrors: true,
|
|
53
|
-
});
|
|
54
|
-
const { request: updateCaseRequest, isFetching: isUpdatingCase } = useFetch(publicApi.kase.updateCase);
|
|
52
|
+
const [isCreatingEscalation, setIsCreatingEscalation] = useState(false);
|
|
53
|
+
const { createComment, loading: isPostingComment } = useCreateCaseComment();
|
|
55
54
|
const { request: getRmeCategories, isFetching: isCategoriesFetching } = useFetch(escalations.getEscalationCategories, { propgateErrors: true });
|
|
56
|
-
const
|
|
57
|
-
const dispatchDiscussion = useCaseDiscussionTabDispatchContext();
|
|
58
|
-
const { caseDetailsPageState: { caseFeedbacksHydra }, } = useCaseDetailsPageStateContext();
|
|
55
|
+
const client = useApolloClient();
|
|
59
56
|
const caseDetailsPageDispatch = useCaseDetailsPageDispatchContext();
|
|
60
57
|
const caseDispatch = useCaseDispatch();
|
|
58
|
+
const caseSalesforceId = useCaseSelector((state) => state.caseDetails.id, isEqual);
|
|
59
|
+
const existingCaseDetails = useCaseSelector((state) => state.caseDetails, isEqual);
|
|
61
60
|
const [creationError, setCreationError] = useState(false);
|
|
62
61
|
const onErrorClose = () => setCreationError(false);
|
|
63
|
-
const setGeoState = (
|
|
64
|
-
setFormState(Object.assign(Object.assign({}, formState), { geo: selection }));
|
|
65
|
-
onGeoDropdownToggle(false);
|
|
62
|
+
const setGeoState = (selection) => {
|
|
63
|
+
setFormState(Object.assign(Object.assign({}, formState), { geo: selection.value }));
|
|
66
64
|
};
|
|
67
|
-
const setCategoryState = (
|
|
68
|
-
setFormState(Object.assign(Object.assign({}, formState), { rmeCategory: selection }));
|
|
69
|
-
onCategoryDropdownToggle(false);
|
|
65
|
+
const setCategoryState = (selection) => {
|
|
66
|
+
setFormState(Object.assign(Object.assign({}, formState), { rmeCategory: selection.value }));
|
|
70
67
|
};
|
|
71
|
-
const submitEscalationComment = (escalationNum, comment) => __awaiter(this, void 0, void 0, function* () {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
yield
|
|
77
|
-
|
|
78
|
-
|
|
68
|
+
const submitEscalationComment = (escalationNum, comment, caseId) => __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
var _a, _b;
|
|
70
|
+
yield createComment({ caseId, body: comment, isPublic: true });
|
|
71
|
+
client.refetchQueries({ include: [GET_CASE_COMMENTS] });
|
|
72
|
+
// await updateCaseRequest(props.caseNumber, { customerEscalation: true });
|
|
73
|
+
yield checkForCaseStatusToggleOnAttachOrComment(caseDispatch, loggedInUserRights.data.isInternal(), props.caseStatus, {
|
|
74
|
+
apolloClient,
|
|
75
|
+
caseNumber: props.caseNumber,
|
|
76
|
+
existingCaseDetails,
|
|
77
|
+
});
|
|
78
|
+
yield fetchCaseDetails((action) => caseDispatch(action), apolloClient, props.caseNumber, setCaseAccountNumber, Boolean((_a = loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data) === null || _a === void 0 ? void 0 : _a.secureSupport));
|
|
79
|
+
if (escalationNum && caseSalesforceId) {
|
|
80
|
+
yield fetchCaseEscalations(caseDetailsPageDispatch, caseSalesforceId, apolloClient, false, Boolean((_b = loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data) === null || _b === void 0 ? void 0 : _b.secureSupport), 'network-only');
|
|
81
|
+
}
|
|
79
82
|
escalationNum &&
|
|
80
83
|
ToastNotification.addSuccessMessage(t('Your escalation request has been successfully submitted.'));
|
|
81
84
|
});
|
|
@@ -84,21 +87,59 @@ export function RequestEscalationModal(props) {
|
|
|
84
87
|
setHasLargeSubject(isSubjectLarge);
|
|
85
88
|
setFormState(Object.assign(Object.assign({}, formState), { subject }));
|
|
86
89
|
};
|
|
90
|
+
const onDescriptionChange = (description) => {
|
|
91
|
+
setHasLargeDescription(description.length > ESCALATION_DESCRIPTION_LENGTH_LIMIT);
|
|
92
|
+
setFormState(Object.assign(Object.assign({}, formState), { description }));
|
|
93
|
+
};
|
|
94
|
+
const onExpectationsChange = (expectations) => {
|
|
95
|
+
setHasLargeExpectations(expectations.length > ESCALATION_EXPECTATIONS_LENGTH_LIMIT);
|
|
96
|
+
setFormState(Object.assign(Object.assign({}, formState), { expectations }));
|
|
97
|
+
};
|
|
98
|
+
const onBusinessImpactChange = (businessImpactDescription) => {
|
|
99
|
+
setHasLargeBusinessImpact(businessImpactDescription.length > ESCALATION_BUSINESS_IMPACT_LENGTH_LIMIT);
|
|
100
|
+
setFormState(Object.assign(Object.assign({}, formState), { businessImpactDescription }));
|
|
101
|
+
};
|
|
87
102
|
const onCancel = () => {
|
|
88
|
-
if (isPostingComment ||
|
|
103
|
+
if (isPostingComment || isCreatingEscalation)
|
|
89
104
|
return;
|
|
90
105
|
setSubmitSaveButtonIsClicked(false);
|
|
91
106
|
setFormState(initialState);
|
|
92
107
|
setHasLargeSubject(false);
|
|
108
|
+
setHasLargeDescription(false);
|
|
109
|
+
setHasLargeExpectations(false);
|
|
110
|
+
setHasLargeBusinessImpact(false);
|
|
93
111
|
props.onClose();
|
|
94
112
|
};
|
|
95
113
|
const onSubmit = () => __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
var _a, _b, _c, _d;
|
|
96
115
|
setSubmitSaveButtonIsClicked(true);
|
|
97
|
-
if (!hasRequiredInfo() ||
|
|
116
|
+
if (!hasRequiredInfo() || hasFormLengthErrors)
|
|
98
117
|
return;
|
|
99
118
|
try {
|
|
100
|
-
|
|
101
|
-
|
|
119
|
+
setIsCreatingEscalation(true);
|
|
120
|
+
if (!caseSalesforceId)
|
|
121
|
+
throw new Error('Could not find parent case ID');
|
|
122
|
+
// GraphQL CaseCreate has no Expectations field; serialize into Description for the payload.
|
|
123
|
+
const serializedDescription = `${formState.description}${ESCALATION_DESCRIPTION_EXPECTATIONS_SEPARATOR}${formState.expectations}`;
|
|
124
|
+
const { data: escalationData } = yield apolloClient.mutate({
|
|
125
|
+
mutation: CREATE_RME_CASE_ESCALATION,
|
|
126
|
+
variables: {
|
|
127
|
+
caseInput: {
|
|
128
|
+
Subject: formState.subject,
|
|
129
|
+
Description: serializedDescription,
|
|
130
|
+
Status: 'In Progress',
|
|
131
|
+
Origin: 'Portal RME',
|
|
132
|
+
Priority: props.severity || '3 (Medium)',
|
|
133
|
+
Type: 'RME',
|
|
134
|
+
RecordTypeId: '012Ek00000JUtx5IAD',
|
|
135
|
+
ParentId: caseSalesforceId,
|
|
136
|
+
EscalationCategory__c: formState.rmeCategory,
|
|
137
|
+
ImpactOnUserOrBusiness__c: formState.businessImpactDescription,
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
});
|
|
141
|
+
const createdCaseNumber = (_d = (_c = (_b = (_a = escalationData === null || escalationData === void 0 ? void 0 : escalationData.redhat_support_uiapi) === null || _a === void 0 ? void 0 : _a.CaseCreate) === null || _b === void 0 ? void 0 : _b.RedHatSupportRecord) === null || _c === void 0 ? void 0 : _c.CaseNumber__c) === null || _d === void 0 ? void 0 : _d.value;
|
|
142
|
+
const fullComment = t('<h3>Request Management Escalation:</h3><p><strong>Subject</strong></p><p>{{subject}}</p><p><strong>Category</strong></p><p>{{rmeCategory}}</p><p><strong>Description</strong></p><p>{{description}}</p><p><strong>Expectations</strong></p><p>{{expectations}}</p><p><strong>Business Impact</strong></p><p>{{businessImpactDescription}}</p>', {
|
|
102
143
|
category: formState.rmeCategory,
|
|
103
144
|
subject: formState.subject,
|
|
104
145
|
description: formState.description,
|
|
@@ -107,7 +148,7 @@ export function RequestEscalationModal(props) {
|
|
|
107
148
|
rmeCategory: formState.rmeCategory,
|
|
108
149
|
});
|
|
109
150
|
try {
|
|
110
|
-
yield submitEscalationComment(
|
|
151
|
+
yield submitEscalationComment(createdCaseNumber, fullComment, caseSalesforceId);
|
|
111
152
|
}
|
|
112
153
|
catch (e) {
|
|
113
154
|
// silently fails, escalation is created but adding comment fails
|
|
@@ -115,23 +156,17 @@ export function RequestEscalationModal(props) {
|
|
|
115
156
|
props.onClose();
|
|
116
157
|
}
|
|
117
158
|
catch (error) {
|
|
118
|
-
//=> handle error
|
|
119
159
|
setCreationError(true);
|
|
120
160
|
}
|
|
161
|
+
finally {
|
|
162
|
+
setIsCreatingEscalation(false);
|
|
163
|
+
}
|
|
121
164
|
});
|
|
122
|
-
const
|
|
123
|
-
React.createElement(Button, { key: "submit", variant: "primary", onClick: onSubmit, "data-tracking-id": "request-rme-submit", isDisabled: submitButtonIsClicked &&
|
|
124
|
-
(isPostingComment || isUpdatingCase || createEscalationFetch.isFetching || !hasRequiredInfo()), "aria-label": t('Submit') },
|
|
125
|
-
(isPostingComment || isUpdatingCase || createEscalationFetch.isFetching) && (React.createElement(LoadingIndicator, { key: "loading", isInline: true })),
|
|
126
|
-
' ',
|
|
127
|
-
t('Submit')),
|
|
128
|
-
React.createElement(Button, { key: "cancel", variant: "link", onClick: onCancel, "data-tracking-id": "request-rme-cancel", isDisabled: createEscalationFetch.isFetching || isPostingComment || isUpdatingCase, "aria-label": t('Cancel') }, t('Cancel')),
|
|
129
|
-
];
|
|
130
|
-
const header = (React.createElement(Title, { className: "pf-v5-u-mb-0", id: "custom-header-label", headingLevel: "h1" },
|
|
165
|
+
const header = (React.createElement(Title, { className: "pf-v6-u-mb-0", id: "custom-header-label", headingLevel: "h1" },
|
|
131
166
|
React.createElement(Trans, null, "Request an escalation"),
|
|
132
167
|
React.createElement(Popover, { showClose: false, position: 'top', hasAutoWidth: true, bodyContent: () => (React.createElement("a", { href: "/support/escalation", target: "_blank", "aria-label": t('Learn more about escalation cases.') },
|
|
133
168
|
React.createElement(Trans, null, "Learn more about escalation cases."))) },
|
|
134
|
-
React.createElement(InfoCircleIcon, { className: "pf-
|
|
169
|
+
React.createElement(InfoCircleIcon, { className: "pf-v6-u-ml-sm" }))));
|
|
135
170
|
// load rme categories as soon as user opens the modal
|
|
136
171
|
useEffect(() => {
|
|
137
172
|
if (!props.show || categories.length !== 0)
|
|
@@ -148,41 +183,83 @@ export function RequestEscalationModal(props) {
|
|
|
148
183
|
fetchCategories();
|
|
149
184
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
150
185
|
}, [props.show]);
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
186
|
+
const categoryOptions = categories.map((value) => ({
|
|
187
|
+
value: value,
|
|
188
|
+
label: value,
|
|
189
|
+
}));
|
|
190
|
+
// Create selected option object based on current selection
|
|
191
|
+
const selectedCategory = {
|
|
192
|
+
value: formState.rmeCategory,
|
|
193
|
+
label: formState.rmeCategory || t('Select an option that best fits'),
|
|
194
|
+
};
|
|
195
|
+
const geoOptions = customerGEOKeys.map((key) => ({
|
|
196
|
+
value: CustomerGEOs[key].value,
|
|
197
|
+
label: t(CustomerGEOs[key].label),
|
|
198
|
+
}));
|
|
199
|
+
// Create selected option object based on current selection
|
|
200
|
+
const findSelectedGeoLabel = () => {
|
|
201
|
+
const selectedKey = customerGEOKeys.find((key) => CustomerGEOs[key].value === formState.geo);
|
|
202
|
+
return selectedKey ? t(CustomerGEOs[selectedKey].label) : '';
|
|
203
|
+
};
|
|
204
|
+
const selectedGeo = {
|
|
205
|
+
value: formState.geo,
|
|
206
|
+
label: findSelectedGeoLabel() || t('Select a location'),
|
|
207
|
+
};
|
|
208
|
+
return (React.createElement(Modal, { id: "request-mgmt-escalation-modal", className: "request-escalation-modal", isOpen: props.show, onClose: onCancel, "aria-label": t('Request an escalation') },
|
|
209
|
+
React.createElement(ModalHeader, null, header),
|
|
210
|
+
React.createElement(ModalBody, null,
|
|
211
|
+
React.createElement("p", { className: "pf-v6-u-mb-md" },
|
|
212
|
+
React.createElement(Trans, { i18nKey: "i18RequestEscalationDescription" }, "Submit an escalation if an issue has become more severe or you feel the case needs a higher priority. A support manager will review your escalation request.")),
|
|
213
|
+
React.createElement(AlertMessage, { variant: AlertType.DANGER, title: t('Could not create case escalation'), show: creationError, onClose: onErrorClose, isInline: true, className: "pf-v6-u-mb-md", "aria-label": t('Could not create case escalation') }),
|
|
214
|
+
React.createElement(Form, { "aria-label": t('form'), className: "request-escalation-form" },
|
|
215
|
+
React.createElement(Grid, { hasGutter: true, md: 12 },
|
|
216
|
+
React.createElement(GridItem, { span: 6 },
|
|
217
|
+
React.createElement(FormGroup, { isRequired: true, label: t('Category'), fieldId: "escalation-category" },
|
|
218
|
+
React.createElement(SingleSelectDropdown, { id: "customer-category-select", ariaLabel: t('Category'), selected: selectedCategory, options: categoryOptions, isDisabled: false, isLoading: isCategoriesFetching, isInvalid: submitButtonIsClicked && isEmpty(formState.rmeCategory), placeholder: t('Select an option that best fits'), onSelect: (option) => setCategoryState(option), isScrollable: true }))),
|
|
219
|
+
React.createElement(GridItem, { span: 6 },
|
|
220
|
+
React.createElement(FormGroup, { isRequired: true, label: t('My region'), fieldId: "escalation-region" },
|
|
221
|
+
React.createElement(SingleSelectDropdown, { ariaLabel: t('My region'), id: "customer-geo-select", selected: selectedGeo, options: geoOptions, isInvalid: submitButtonIsClicked && isEmpty(formState.geo), placeholder: t('Select a location'), onSelect: (option) => setGeoState(option) }))),
|
|
222
|
+
React.createElement(FormGroup, { isRequired: true, label: t('Subject'), fieldId: "escalation-subject" },
|
|
223
|
+
submitButtonIsClicked && hasLargeSubject && (React.createElement(FormHelperText, null,
|
|
224
|
+
React.createElement(HelperText, null,
|
|
225
|
+
React.createElement(HelperTextItem, { variant: ValidatedOptions.error }, t('Subject cannot be more than {{limit}} characters', {
|
|
226
|
+
limit: ESCALATION_SUBJECT_LENGTH_LIMIT,
|
|
227
|
+
}))))),
|
|
228
|
+
React.createElement(TextInput, { isRequired: true, validated: (submitButtonIsClicked && isEmpty(formState.subject)) || hasLargeSubject
|
|
229
|
+
? ValidatedOptions.error
|
|
230
|
+
: ValidatedOptions.default, type: "text", placeholder: t('Enter a subject for your request'), id: "subject-input", name: "subject-input", value: formState.subject, onChange: (_event, subject) => onSubjectChange(subject), "aria-label": t('Subject') })),
|
|
231
|
+
React.createElement(FormGroup, { isRequired: true, label: t('Description'), fieldId: "escalation-description" },
|
|
232
|
+
submitButtonIsClicked && hasLargeDescription && (React.createElement(FormHelperText, null,
|
|
233
|
+
React.createElement(HelperText, null,
|
|
234
|
+
React.createElement(HelperTextItem, { variant: ValidatedOptions.error }, t('Description cannot be more than {{limit}} characters.', {
|
|
235
|
+
limit: ESCALATION_DESCRIPTION_LENGTH_LIMIT,
|
|
236
|
+
}))))),
|
|
237
|
+
React.createElement(TextArea, { value: formState.description, onChange: (_event, value) => onDescriptionChange(value), isRequired: true, validated: (submitButtonIsClicked && isEmpty(formState.description)) || hasLargeDescription
|
|
238
|
+
? ValidatedOptions.error
|
|
239
|
+
: ValidatedOptions.default, "aria-label": t('Description'), id: "description-textarea", placeholder: t('Provide a detailed comment for us to best assist you'), resizeOrientation: "vertical" })),
|
|
240
|
+
React.createElement(FormGroup, { isRequired: true, label: t('Expectations'), fieldId: "escalation-expectations" },
|
|
241
|
+
submitButtonIsClicked && hasLargeExpectations && (React.createElement(FormHelperText, null,
|
|
242
|
+
React.createElement(HelperText, null,
|
|
243
|
+
React.createElement(HelperTextItem, { variant: ValidatedOptions.error }, t('Expectations cannot be more than {{limit}} characters.', {
|
|
244
|
+
limit: ESCALATION_EXPECTATIONS_LENGTH_LIMIT,
|
|
245
|
+
}))))),
|
|
246
|
+
React.createElement(TextArea, { onChange: (_event, value) => onExpectationsChange(value), isRequired: true, validated: (submitButtonIsClicked && isEmpty(formState.expectations)) || hasLargeExpectations
|
|
160
247
|
? ValidatedOptions.error
|
|
161
|
-
: ValidatedOptions.default,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
248
|
+
: ValidatedOptions.default, placeholder: t('What do you expect to happen with this escalation?'), id: "expectations-input", value: formState.expectations, "aria-label": t('Expectations'), resizeOrientation: "vertical" })),
|
|
249
|
+
React.createElement(FormGroup, { isRequired: true, label: t('Business impact'), fieldId: "escalation-business-impact" },
|
|
250
|
+
submitButtonIsClicked && hasLargeBusinessImpact && (React.createElement(FormHelperText, null,
|
|
251
|
+
React.createElement(HelperText, null,
|
|
252
|
+
React.createElement(HelperTextItem, { variant: ValidatedOptions.error }, t('Business impact cannot be more than {{limit}} characters.', {
|
|
253
|
+
limit: ESCALATION_BUSINESS_IMPACT_LENGTH_LIMIT,
|
|
254
|
+
}))))),
|
|
255
|
+
React.createElement(TextArea, { onChange: (_event, value) => onBusinessImpactChange(value), isRequired: true, validated: (submitButtonIsClicked && isEmpty(formState.businessImpactDescription)) ||
|
|
256
|
+
hasLargeBusinessImpact
|
|
165
257
|
? ValidatedOptions.error
|
|
166
|
-
: ValidatedOptions.default,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
React.createElement(TextInput, { isRequired: true, validated: (submitButtonIsClicked && isEmpty(formState.subject)) || hasLargeSubject
|
|
174
|
-
? ValidatedOptions.error
|
|
175
|
-
: ValidatedOptions.default, type: "text", placeholder: t('Enter a subject for your request'), id: "subject-input", name: "subject-input", value: formState.subject, onChange: (_event, subject) => onSubjectChange(subject), "aria-label": t('Subject') })),
|
|
176
|
-
React.createElement(FormGroup, { isRequired: true, label: t('Description'), fieldId: "escalation-description" },
|
|
177
|
-
React.createElement(TextArea, { value: formState.description, onChange: (e, value) => setFormStateValue('description', value), isRequired: true, validated: submitButtonIsClicked && isEmpty(formState.description)
|
|
178
|
-
? ValidatedOptions.error
|
|
179
|
-
: ValidatedOptions.default, "aria-label": t('Description'), id: "description-textarea", placeholder: t('Provide a detailed comment for us to best assist you'), resizeOrientation: "vertical" })),
|
|
180
|
-
React.createElement(FormGroup, { isRequired: true, label: t('Expectations'), fieldId: "escalation-expectations" },
|
|
181
|
-
React.createElement(TextArea, { onChange: (e, value) => setFormStateValue('expectations', value), isRequired: true, validated: submitButtonIsClicked && isEmpty(formState.expectations)
|
|
182
|
-
? ValidatedOptions.error
|
|
183
|
-
: ValidatedOptions.default, placeholder: t('What do you expect to happen with this escalation?'), id: "expectations-input", value: formState.expectations, "aria-label": t('Expectations'), resizeOrientation: "vertical" })),
|
|
184
|
-
React.createElement(FormGroup, { isRequired: true, label: t('Business impact'), fieldId: "escalation-business-impact" },
|
|
185
|
-
React.createElement(TextArea, { onChange: (e, value) => setFormStateValue('businessImpactDescription', value), isRequired: true, validated: submitButtonIsClicked && isEmpty(formState.businessImpactDescription)
|
|
186
|
-
? ValidatedOptions.error
|
|
187
|
-
: ValidatedOptions.default, placeholder: t('Does your business impact change with this escalation? Please describe how it changed.'), id: "business-impact-input", value: formState.businessImpactDescription, "aria-label": t('Business impact'), resizeOrientation: "vertical" }))))));
|
|
258
|
+
: ValidatedOptions.default, placeholder: t('Does your business impact change with this escalation? Please describe how it changed.'), id: "business-impact-input", value: formState.businessImpactDescription, "aria-label": t('Business impact'), resizeOrientation: "vertical" }))))),
|
|
259
|
+
React.createElement(ModalFooter, null,
|
|
260
|
+
React.createElement(Button, { key: "submit", variant: "primary", onClick: onSubmit, "data-tracking-id": "request-rme-submit", isDisabled: submitButtonIsClicked && (isPostingComment || isCreatingEscalation || !hasRequiredInfo()), "aria-label": t('Submit') },
|
|
261
|
+
(isPostingComment || isCreatingEscalation) && React.createElement(LoadingIndicator, { key: "loading", isInline: true }),
|
|
262
|
+
' ',
|
|
263
|
+
t('Submit')),
|
|
264
|
+
React.createElement(Button, { key: "cancel", variant: "link", onClick: onCancel, "data-tracking-id": "request-rme-cancel", isDisabled: isCreatingEscalation || isPostingComment, "aria-label": t('Cancel') }, t('Cancel')))));
|
|
188
265
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArchivedCaseBanner.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/ArchivedCaseBanner.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,uBAAuB;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAID,wBAAgB,kBAAkB,CAAC,EAAE,UAAU,EAAE,EAAE,uBAAuB,qBAUzE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Alert, AlertVariant } from '@patternfly/react-core';
|
|
2
|
+
import { isCaseArchivedStatus } from '@rh-support/utils';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Trans } from 'react-i18next';
|
|
5
|
+
const ARCHIVED_CASE_BODY = 'This case is archived and locked for editing.';
|
|
6
|
+
export function ArchivedCaseBanner({ caseStatus }) {
|
|
7
|
+
if (!isCaseArchivedStatus(caseStatus)) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
return (React.createElement(Alert, { className: "pf-v6-u-mb-md", isInline: true, variant: AlertVariant.info, title: React.createElement(Trans, null, "Archived case") },
|
|
11
|
+
React.createElement(Trans, null, ARCHIVED_CASE_BODY)));
|
|
12
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Case.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/Case.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Case.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/Case.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAS,mBAAmB,EAAiD,MAAM,kBAAkB,CAAC;AAoB7G,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAK,EAAE,MAAM,qBAgRzC"}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { useApolloClient } from '@apollo/client/react';
|
|
1
11
|
import { CoverSpinner, ErrorBoundary, OverviewContentLoader, ToastNotification, useDocumentTitle, usePrevious, } from '@rh-support/components';
|
|
2
|
-
import { GlobalMetadataStateContext, HostnameAwarenessModal } from '@rh-support/react-context';
|
|
12
|
+
import { CaseStatusProvider, fetchCaseDetails, GlobalMetadataStateContext, HostnameAwarenessModal, } from '@rh-support/react-context';
|
|
3
13
|
import { AbilityContext, CaseDetailsFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
4
14
|
import { getUrlParsedParams, isValidCaseNumber } from '@rh-support/utils';
|
|
5
15
|
import isEmpty from 'lodash/isEmpty';
|
|
@@ -9,8 +19,13 @@ import { useTranslation } from 'react-i18next';
|
|
|
9
19
|
import { Route, Switch, useLocation, useParams, useRouteMatch } from 'react-router-dom';
|
|
10
20
|
import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
|
|
11
21
|
import { useCaseDetailsPageDispatchContext } from '../../context/CaseDetailsPageContext';
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
22
|
+
import { CaseReducerConstants } from '../../reducers/CaseConstNTypes';
|
|
23
|
+
import { fetchAttachments, fetchCaseEscalations,
|
|
24
|
+
// fetchExternalTrackers,
|
|
25
|
+
// fetchFeedbacks,
|
|
26
|
+
} from '../../reducers/CaseDetailsPageReducer';
|
|
27
|
+
import { setCaseAccountNumber } from '../../reducers/CaseReducer';
|
|
28
|
+
import { ArchivedCaseBanner } from './ArchivedCaseBanner';
|
|
14
29
|
import { CaseDetailsAside } from './CaseDetailsAside';
|
|
15
30
|
import { CaseDetailsErrorMessage } from './CaseDetailsErrorMessage';
|
|
16
31
|
import CaseDetailsModals from './CaseDetailsModals';
|
|
@@ -18,24 +33,36 @@ import { CaseDetailsTabs } from './CaseDetailsTabs';
|
|
|
18
33
|
import CaseOverview from './CaseOverview';
|
|
19
34
|
import { PDFContext } from './PDFContainer';
|
|
20
35
|
export default function Case(props) {
|
|
21
|
-
|
|
36
|
+
var _a;
|
|
37
|
+
const { globalMetadataState: { loggedInUserRights, loggedInUsersAccount }, } = useContext(GlobalMetadataStateContext);
|
|
22
38
|
const caseDetailsPageDispatch = useCaseDetailsPageDispatchContext();
|
|
39
|
+
const apolloClient = useApolloClient();
|
|
40
|
+
const includeSecureSupportCases = Boolean((_a = loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data) === null || _a === void 0 ? void 0 : _a.secureSupport);
|
|
23
41
|
const { t } = useTranslation();
|
|
24
42
|
// The `path` lets us build <Route> paths that are
|
|
25
43
|
// relative to the parent route, while the `url` lets
|
|
26
|
-
//
|
|
44
|
+
//us build relative links.
|
|
27
45
|
const { path, url } = useRouteMatch();
|
|
28
46
|
const { caseNumber } = useParams();
|
|
29
47
|
const queryParams = getUrlParsedParams(useLocation().search);
|
|
30
48
|
const ability = useContext(AbilityContext);
|
|
31
49
|
const caseDetailsTabsRef = useRef(null);
|
|
50
|
+
const currentCaseRef = useRef();
|
|
32
51
|
const canSeeFeedbackButtons = ability.can(resourceActions.PATCH, resources.CASE_DETAILS, CaseDetailsFields.CASE_DETAILS_FEEDBACK_BUTTONS);
|
|
33
52
|
const canReadCase = ability.can(resourceActions.READ, resources.CASE_DETAILS);
|
|
34
|
-
const
|
|
53
|
+
const canManageCase = ability.can(resourceActions.UPDATE, resources.CASE_DETAILS);
|
|
54
|
+
// TODO: Re-enable after GraphQL migration of external trackers
|
|
55
|
+
// const canSeeExternalTracker = ability.can(
|
|
56
|
+
// resourceActions.PATCH,
|
|
57
|
+
// resources.CASE_DETAILS,
|
|
58
|
+
// CaseDetailsFields.CASE_DETAILS_EXTERNAL_TRACKER
|
|
59
|
+
// );
|
|
60
|
+
// TODO: Re-enable after GraphQL migration of attachments
|
|
35
61
|
const canSeeAttachments = ability.can(resourceActions.PATCH, resources.CASE_DETAILS, CaseDetailsFields.CASE_DETAILS_SEE_ATTACHMENTS);
|
|
36
62
|
const canSeeRMEs = ability.can(resourceActions.PATCH, resources.CASE_DETAILS, CaseDetailsFields.CASE_DETAILS_RMES);
|
|
37
|
-
const { product, isFetchingCaseDetails, isFetchingCaseDetailsError, caseDetailsError, selectedAccountDetails } = useCaseSelector((state) => ({
|
|
63
|
+
const { product, status, isFetchingCaseDetails, isFetchingCaseDetailsError, caseDetailsError, selectedAccountDetails, } = useCaseSelector((state) => ({
|
|
38
64
|
product: state.caseDetails.product,
|
|
65
|
+
status: state.caseDetails.status,
|
|
39
66
|
isFetchingCaseDetails: state.isFetchingCaseDetails,
|
|
40
67
|
isFetchingCaseDetailsError: state.isFetchingCaseDetailsError,
|
|
41
68
|
caseDetailsError: state.caseDetailsError,
|
|
@@ -67,6 +94,7 @@ export default function Case(props) {
|
|
|
67
94
|
useEffect(() => {
|
|
68
95
|
if (!isEmpty(loggedInUsersAccount.data) &&
|
|
69
96
|
!isEmpty(selectedAccountDetails.data) &&
|
|
97
|
+
selectedAccountDetails.data.accountNumber &&
|
|
70
98
|
loggedInUserRights.data.isAccountSameAsLoggedInAccount(selectedAccountDetails.data.accountNumber) &&
|
|
71
99
|
!isEqual(loggedInUsersAccount.data, selectedAccountDetails.data)) {
|
|
72
100
|
setCaseAccountNumber(caseDispatch, loggedInUsersAccount.data.accountNumber, true, loggedInUsersAccount.data);
|
|
@@ -80,19 +108,55 @@ export default function Case(props) {
|
|
|
80
108
|
props.routeProps.history.replace('/case/list');
|
|
81
109
|
return;
|
|
82
110
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
111
|
+
const targetCaseNumber = caseNumber;
|
|
112
|
+
caseDispatch({ type: CaseReducerConstants.resetCaseState });
|
|
113
|
+
// Update reference after reset
|
|
114
|
+
currentCaseRef.current = targetCaseNumber;
|
|
115
|
+
const safeFetchCaseDetails = () => __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
try {
|
|
117
|
+
// Check that we're still on the intended case before fetching
|
|
118
|
+
if (currentCaseRef.current !== targetCaseNumber)
|
|
119
|
+
return;
|
|
120
|
+
const safeDispatch = (action) => {
|
|
121
|
+
// Only dispatch if we're still working with the target case number
|
|
122
|
+
if (currentCaseRef.current === targetCaseNumber) {
|
|
123
|
+
caseDispatch(action);
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
const caseDetails = yield fetchCaseDetails(safeDispatch, apolloClient, targetCaseNumber, setCaseAccountNumber, includeSecureSupportCases);
|
|
127
|
+
if (currentCaseRef.current !== targetCaseNumber)
|
|
128
|
+
return;
|
|
129
|
+
const caseSalesforceId = typeof (caseDetails === null || caseDetails === void 0 ? void 0 : caseDetails.id) === 'string' ? caseDetails.id : undefined;
|
|
130
|
+
if (canSeeRMEs && caseSalesforceId) {
|
|
131
|
+
fetchCaseEscalations((action) => currentCaseRef.current === targetCaseNumber && caseDetailsPageDispatch(action), caseSalesforceId, apolloClient, true, includeSecureSupportCases);
|
|
132
|
+
}
|
|
133
|
+
if (canSeeAttachments) {
|
|
134
|
+
fetchAttachments((action) => currentCaseRef.current === targetCaseNumber && caseDetailsPageDispatch(action), targetCaseNumber, apolloClient, caseSalesforceId, includeSecureSupportCases);
|
|
135
|
+
}
|
|
136
|
+
// TODO: Re-enable after GraphQL migration of external trackers
|
|
137
|
+
// if (canSeeExternalTracker) {
|
|
138
|
+
// fetchExternalTrackers(
|
|
139
|
+
// (action) => currentCaseRef.current === targetCaseNumber && caseDetailsPageDispatch(action),
|
|
140
|
+
// targetCaseNumber
|
|
141
|
+
// );
|
|
142
|
+
// }
|
|
143
|
+
// TODO: Re-enable after GraphQL migration of feedback
|
|
144
|
+
// if (canSeeFeedbackButtons) {
|
|
145
|
+
// fetchFeedbacks(
|
|
146
|
+
// (action) => currentCaseRef.current === targetCaseNumber && caseDetailsPageDispatch(action),
|
|
147
|
+
// targetCaseNumber
|
|
148
|
+
// );
|
|
149
|
+
// }
|
|
150
|
+
if (currentCaseRef.current === targetCaseNumber) {
|
|
151
|
+
checkRemoteSessionFlag();
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
catch (error) {
|
|
155
|
+
console.error('Error fetching case details:', error);
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
if (canManageCase) {
|
|
159
|
+
safeFetchCaseDetails();
|
|
96
160
|
}
|
|
97
161
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
98
162
|
}, [
|
|
@@ -106,22 +170,24 @@ export default function Case(props) {
|
|
|
106
170
|
]);
|
|
107
171
|
return (React.createElement(React.Fragment, null,
|
|
108
172
|
isExportingPDF && React.createElement(CoverSpinner, null),
|
|
109
|
-
React.createElement(
|
|
110
|
-
React.createElement("div", {
|
|
111
|
-
React.createElement("
|
|
112
|
-
React.createElement("
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
173
|
+
React.createElement(CaseStatusProvider, { caseStatus: status },
|
|
174
|
+
React.createElement("div", { id: "rh-support-case" },
|
|
175
|
+
React.createElement("div", { className: "support-grid-case-details support-case" }, isFetchingCaseDetails && !isFetchingCaseDetailsError ? (React.createElement(OverviewContentLoader, null)) : (React.createElement(React.Fragment, null,
|
|
176
|
+
React.createElement("article", { className: "grid-main" },
|
|
177
|
+
React.createElement("section", { className: "grid-main-section" },
|
|
178
|
+
(isFetchingCaseDetailsError || !canReadCase || !canManageCase) && (React.createElement(CaseDetailsErrorMessage, { isError: isFetchingCaseDetailsError, errorDetails: caseDetailsError, canReadCase: canReadCase, canManageCase: canManageCase, caseNumber: caseNumber, isInlineError: true })),
|
|
179
|
+
canReadCase &&
|
|
180
|
+
(!isFetchingCaseDetails || !isEmpty(product)) &&
|
|
181
|
+
!isFetchingCaseDetailsError && (React.createElement(React.Fragment, null,
|
|
182
|
+
React.createElement(ArchivedCaseBanner, { caseStatus: status }),
|
|
183
|
+
React.createElement(ErrorBoundary, { errorMsgInfo: {
|
|
184
|
+
message: t('There was an error loading cases. Please try refreshing the page.'),
|
|
185
|
+
} },
|
|
186
|
+
React.createElement(CaseOverview, { caseNumber: caseNumber, tabsRef: caseDetailsTabsRef })),
|
|
187
|
+
React.createElement(Switch, null,
|
|
188
|
+
React.createElement(Route, { path: `${path}/:activeTab?` },
|
|
189
|
+
React.createElement(CaseDetailsTabs, { basePath: url, caseNumber: caseNumber, routeProps: props.routeProps, tabdRef: caseDetailsTabsRef }))))))),
|
|
190
|
+
!isFetchingCaseDetailsError && canReadCase && canManageCase && (React.createElement(CaseDetailsAside, { caseNumber: caseNumber })),
|
|
191
|
+
React.createElement(CaseDetailsModals, { caseNumber: caseNumber, isSecureSupport: loggedInUsersAccount.data.secureSupport, loggedInUserRights: loggedInUserRights })))))),
|
|
126
192
|
React.createElement(HostnameAwarenessModal, null)));
|
|
127
193
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseDetailsAside.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsAside.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CaseDetailsAside.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsAside.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAYhF,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;CACtB;AAMD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,qBA8Y7C"}
|