@rh-support/troubleshoot 2.6.340 → 2.6.349
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/components/AccountInfo/AccountSelector.d.ts.map +1 -1
- package/lib/esm/components/AccountInfo/AccountSelector.js +29 -19
- package/lib/esm/components/AccountInfo/OwnerSelector.d.ts.map +1 -1
- package/lib/esm/components/AccountInfo/OwnerSelector.js +16 -91
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.js +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +32 -61
- package/lib/esm/components/CaseEditView/Case.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Case.js +33 -60
- package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsAside.js +10 -39
- package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.js +4 -15
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +55 -82
- package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.d.ts +0 -2
- package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.js +3 -3
- 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/CaseStatus.js +6 -8
- package/lib/esm/components/CaseEditView/CaseOverview/index.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/index.js +45 -76
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.js +109 -203
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts +1 -0
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.js +5 -5
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts +3 -1
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.js +9 -5
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.js +17 -18
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.js +47 -51
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +44 -49
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +45 -51
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.js +10 -21
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInformation.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInformation.js +2 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInternalStatus.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInternalStatus.js +2 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.js +57 -132
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.js +4 -9
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +58 -93
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.js +9 -16
- 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 +91 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.js +33 -78
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts +4 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +153 -122
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts +2 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +137 -74
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.js +9 -22
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/DiscussionItemLink.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/DiscussionItemLink.js +2 -9
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/JumpAndCopyLink.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/JumpAndCopyLink.js +1 -8
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useMarkdownFileUploader.d.ts +2 -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 +7 -18
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts +3 -9
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +263 -211
- 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 -6
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.js +1 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.css +4 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts +3 -35
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.js +224 -63
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts +5 -4
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.js +5 -18
- package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.js +2 -7
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.js +52 -38
- package/lib/esm/components/CaseInformation/CaseGroup.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/CaseGroup.js +57 -123
- package/lib/esm/components/CaseInformation/CaseInformation.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/CaseInformation.js +9 -10
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.js +30 -107
- package/lib/esm/components/CaseInformation/Description.js +1 -1
- package/lib/esm/components/CaseInformation/FileDiag.js +7 -10
- package/lib/esm/components/CaseInformation/Fts.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Fts.js +1 -2
- package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/SupportLevel.js +55 -36
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.js +2 -2
- package/lib/esm/components/CaseManagement/CaseManagement.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/CaseManagement.js +7 -8
- package/lib/esm/components/CaseManagement/Cep.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/Cep.js +9 -11
- package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.d.ts +1 -2
- package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.js +3 -22
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +7 -9
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +18 -13
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.js +40 -34
- package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.d.ts.map +1 -1
- package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.js +3 -8
- package/lib/esm/components/EditDescription/EditDescription.js +1 -1
- package/lib/esm/components/IdeaInformation/IdeaInformation.d.ts.map +1 -1
- package/lib/esm/components/IdeaInformation/IdeaInformation.js +18 -16
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.js +2 -4
- package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts +1 -0
- package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/AllProductsSelector.js +15 -3
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +37 -13
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +50 -37
- package/lib/esm/components/ProductSelector/ProductSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/ProductSelector.js +3 -1
- package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.js +1 -9
- package/lib/esm/components/Recommendations/AsideResults.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/AsideResults.js +3 -4
- package/lib/esm/components/Recommendations/ClusterRecommendationToast.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendationToast.js +4 -1
- package/lib/esm/components/Recommendations/ClusterRecommendations.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendations.js +4 -1
- package/lib/esm/components/Recommendations/InsightsResults.js +3 -3
- package/lib/esm/components/Recommendations/Recommendations.js +2 -2
- package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.d.ts.map +1 -1
- package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.js +8 -10
- package/lib/esm/components/Review/Review.d.ts.map +1 -1
- package/lib/esm/components/Review/Review.js +16 -20
- package/lib/esm/components/SessionRestore/SessionRestore.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/SessionRestore.js +1 -3
- package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
- package/lib/esm/components/SubmitCase/SubmitCase.js +1 -1
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +2 -2
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts.map +1 -1
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +62 -135
- package/lib/esm/components/shared/Constants.d.ts +0 -5
- package/lib/esm/components/shared/Constants.d.ts.map +1 -1
- package/lib/esm/components/shared/Constants.js +0 -5
- package/lib/esm/components/shared/fileUpload/FileLister.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/FileLister.js +3 -3
- package/lib/esm/components/shared/fileUpload/FileUpload.js +3 -2
- package/lib/esm/components/shared/fileUpload/FileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/FileUploader.js +1 -3
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +2 -2
- 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/reducer/AttachmentHelper.d.ts +5 -21
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.js +34 -210
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducer.d.ts +1 -5
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducer.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducer.js +1 -36
- package/lib/esm/components/shared/fileUpload/types/index.d.ts +1 -4
- 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 +47 -116
- package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
- package/lib/esm/components/shared/useIsSectionValid.js +57 -22
- package/lib/esm/components/shared/usePostComment.d.ts.map +1 -1
- package/lib/esm/components/shared/usePostComment.js +28 -16
- package/lib/esm/components/shared/utils.d.ts +0 -1
- package/lib/esm/components/shared/utils.d.ts.map +1 -1
- package/lib/esm/components/shared/utils.js +3 -9
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.js +38 -160
- package/lib/esm/components/wizardLayout/WizardAside.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardAside.js +4 -2
- package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardLayout.js +12 -11
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardNavigation.js +10 -11
- package/lib/esm/constants/caseDetailsConstants.d.ts +0 -5
- package/lib/esm/constants/caseDetailsConstants.d.ts.map +1 -1
- package/lib/esm/constants/caseDetailsConstants.js +0 -5
- package/lib/esm/context/CaseContext.d.ts.map +1 -1
- package/lib/esm/css/case.css +202 -60
- package/lib/esm/hooks/useCaseUpdateErrorMessage.d.ts +1 -1
- package/lib/esm/hooks/useCaseUpdateErrorMessage.d.ts.map +1 -1
- package/lib/esm/hooks/useCaseUpdateErrorMessage.js +11 -21
- package/lib/esm/hooks/useResetCaseCreate.d.ts.map +1 -1
- package/lib/esm/hooks/useResetCaseCreate.js +11 -18
- package/lib/esm/hooks/useS3Upload.d.ts +4 -5
- package/lib/esm/hooks/useS3Upload.d.ts.map +1 -1
- package/lib/esm/hooks/useS3Upload.js +30 -28
- package/lib/esm/i18n/template-de.d.ts +2 -2
- package/lib/esm/i18n/template-de.js +2 -2
- package/lib/esm/i18n/template-es.d.ts +2 -2
- package/lib/esm/i18n/template-es.js +2 -2
- package/lib/esm/i18n/template-fr.d.ts +2 -2
- package/lib/esm/i18n/template-fr.js +2 -2
- package/lib/esm/i18n/template-it.d.ts +2 -2
- package/lib/esm/i18n/template-it.js +2 -2
- package/lib/esm/i18n/template-jp.d.ts +2 -2
- package/lib/esm/i18n/template-jp.js +2 -2
- package/lib/esm/i18n/template-ko.d.ts +2 -2
- package/lib/esm/i18n/template-ko.js +2 -2
- package/lib/esm/i18n/template-pt.d.ts +2 -2
- package/lib/esm/i18n/template-pt.js +2 -2
- package/lib/esm/i18n/template-ru.d.ts +2 -2
- package/lib/esm/i18n/template-ru.js +2 -2
- package/lib/esm/i18n/template-zh.d.ts +2 -2
- package/lib/esm/i18n/template-zh.js +2 -2
- package/lib/esm/index.js +0 -1
- package/lib/esm/models/cache.d.ts +2 -0
- package/lib/esm/models/cache.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.d.ts +9 -121
- package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.js +7 -30
- package/lib/esm/reducers/CaseDetailsPageReducer.d.ts +5 -7
- package/lib/esm/reducers/CaseDetailsPageReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseDetailsPageReducer.js +26 -58
- package/lib/esm/reducers/CaseDiscussionTabReducer.d.ts +12 -11
- package/lib/esm/reducers/CaseDiscussionTabReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseDiscussionTabReducer.js +70 -63
- package/lib/esm/reducers/CaseHelpers.d.ts +2 -3
- package/lib/esm/reducers/CaseHelpers.d.ts.map +1 -1
- package/lib/esm/reducers/CaseHelpers.js +15 -98
- package/lib/esm/reducers/CaseOverviewReducer.d.ts +1 -3
- package/lib/esm/reducers/CaseOverviewReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseOverviewReducer.js +5 -7
- package/lib/esm/reducers/CaseReducer.d.ts +11 -50
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.js +99 -270
- package/lib/esm/reducers/RecommendationsReducer.d.ts.map +1 -1
- package/lib/esm/reducers/RecommendationsReducer.js +18 -15
- package/lib/esm/scss/_main.scss +0 -9
- package/lib/esm/utils/caseOpenshiftClusterIdUtils.d.ts +2 -1
- package/lib/esm/utils/caseOpenshiftClusterIdUtils.d.ts.map +1 -1
- package/lib/esm/utils/caseOpenshiftClusterIdUtils.js +4 -4
- package/package.json +8 -9
- package/lib/esm/components/CaseEditView/ArchivedCaseBanner.d.ts +0 -7
- package/lib/esm/components/CaseEditView/ArchivedCaseBanner.d.ts.map +0 -1
- package/lib/esm/components/CaseEditView/ArchivedCaseBanner.js +0 -17
- package/lib/esm/components/CaseEditView/RequestRemoteSession/remoteSessionUtils.d.ts +0 -4
- package/lib/esm/components/CaseEditView/RequestRemoteSession/remoteSessionUtils.d.ts.map +0 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/remoteSessionUtils.js +0 -23
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useAttachmentUploadCompletion.d.ts +0 -29
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useAttachmentUploadCompletion.d.ts.map +0 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useAttachmentUploadCompletion.js +0 -29
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useCommentDrafts.d.ts +0 -17
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useCommentDrafts.d.ts.map +0 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useCommentDrafts.js +0 -60
- package/lib/esm/components/CaseInformation/CaseLabels.d.ts +0 -3
- package/lib/esm/components/CaseInformation/CaseLabels.d.ts.map +0 -1
- package/lib/esm/components/CaseInformation/CaseLabels.js +0 -103
- package/lib/esm/components/CaseManagement/CaseLabelsCreate.d.ts +0 -4
- package/lib/esm/components/CaseManagement/CaseLabelsCreate.d.ts.map +0 -1
- package/lib/esm/components/CaseManagement/CaseLabelsCreate.js +0 -109
- package/lib/esm/components/ProductSelector/ProductNotEntitledWarning.d.ts +0 -3
- package/lib/esm/components/ProductSelector/ProductNotEntitledWarning.d.ts.map +0 -1
- package/lib/esm/components/ProductSelector/ProductNotEntitledWarning.js +0 -9
- package/lib/esm/graphql/index.d.ts +0 -4
- package/lib/esm/graphql/index.d.ts.map +0 -1
- package/lib/esm/graphql/index.js +0 -3
- package/lib/esm/graphql/mutations/createRMECaseEscalation.d.ts +0 -2
- package/lib/esm/graphql/mutations/createRMECaseEscalation.d.ts.map +0 -1
- package/lib/esm/graphql/mutations/createRMECaseEscalation.js +0 -24
- package/lib/esm/graphql/mutations/index.d.ts +0 -2
- package/lib/esm/graphql/mutations/index.d.ts.map +0 -1
- package/lib/esm/graphql/mutations/index.js +0 -1
- package/lib/esm/graphql/queries/getEscalationDetails.d.ts +0 -2
- package/lib/esm/graphql/queries/getEscalationDetails.d.ts.map +0 -1
- package/lib/esm/graphql/queries/getEscalationDetails.js +0 -31
- package/lib/esm/graphql/queries/getParentId.d.ts +0 -2
- package/lib/esm/graphql/queries/getParentId.d.ts.map +0 -1
- package/lib/esm/graphql/queries/getParentId.js +0 -16
- package/lib/esm/graphql/queries/index.d.ts +0 -3
- package/lib/esm/graphql/queries/index.d.ts.map +0 -1
- package/lib/esm/graphql/queries/index.js +0 -2
- package/lib/esm/graphql/schemas/escalation.d.ts +0 -88
- package/lib/esm/graphql/schemas/escalation.d.ts.map +0 -1
- package/lib/esm/graphql/schemas/escalation.js +0 -1
- package/lib/esm/graphql/schemas/index.d.ts +0 -2
- package/lib/esm/graphql/schemas/index.d.ts.map +0 -1
- package/lib/esm/graphql/schemas/index.js +0 -1
- package/lib/esm/hooks/useCaseComments/caseCommentsQuery.d.ts +0 -4
- package/lib/esm/hooks/useCaseComments/caseCommentsQuery.d.ts.map +0 -1
- package/lib/esm/hooks/useCaseComments/caseCommentsQuery.js +0 -52
- package/lib/esm/hooks/useCaseComments/index.d.ts +0 -7
- package/lib/esm/hooks/useCaseComments/index.d.ts.map +0 -1
- package/lib/esm/hooks/useCaseComments/index.js +0 -5
- package/lib/esm/hooks/useCaseComments/mapCaseComment.d.ts +0 -25
- package/lib/esm/hooks/useCaseComments/mapCaseComment.d.ts.map +0 -1
- package/lib/esm/hooks/useCaseComments/mapCaseComment.js +0 -75
- package/lib/esm/hooks/useCaseComments/types.d.ts +0 -85
- package/lib/esm/hooks/useCaseComments/types.d.ts.map +0 -1
- package/lib/esm/hooks/useCaseComments/types.js +0 -1
- package/lib/esm/hooks/useCaseComments/useCaseComments.d.ts +0 -17
- package/lib/esm/hooks/useCaseComments/useCaseComments.d.ts.map +0 -1
- package/lib/esm/hooks/useCaseComments/useCaseComments.js +0 -38
- package/lib/esm/hooks/useCaseComments/useCreateCaseComment.d.ts +0 -19
- package/lib/esm/hooks/useCaseComments/useCreateCaseComment.d.ts.map +0 -1
- package/lib/esm/hooks/useCaseComments/useCreateCaseComment.js +0 -33
- package/lib/esm/hooks/useCaseHistory.d.ts +0 -26
- package/lib/esm/hooks/useCaseHistory.d.ts.map +0 -1
- package/lib/esm/hooks/useCaseHistory.js +0 -98
- package/lib/esm/hooks/useCaseLabelLinkMutations.d.ts +0 -21
- package/lib/esm/hooks/useCaseLabelLinkMutations.d.ts.map +0 -1
- package/lib/esm/hooks/useCaseLabelLinkMutations.js +0 -84
- package/lib/esm/models/caseHistory.d.ts +0 -80
- package/lib/esm/models/caseHistory.d.ts.map +0 -1
- package/lib/esm/models/caseHistory.js +0 -1
- package/lib/esm/utils/TimelineUtils.d.ts +0 -41
- package/lib/esm/utils/TimelineUtils.d.ts.map +0 -1
- package/lib/esm/utils/TimelineUtils.js +0 -135
- package/lib/esm/utils/caseHistoryUtils.d.ts +0 -66
- package/lib/esm/utils/caseHistoryUtils.d.ts.map +0 -1
- package/lib/esm/utils/caseHistoryUtils.js +0 -165
|
@@ -8,7 +8,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
11
|
-
import { useApolloClient } from '@apollo/client/react';
|
|
12
11
|
import { pcm } from '@cee-eng/hydrajs';
|
|
13
12
|
import { useDebounce, useDeepCompareDebounce, usePrevious } from '@rh-support/components';
|
|
14
13
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
@@ -44,7 +43,6 @@ export const isSessionFromCurrentAuthCycle = (sessionItem, currentLoginStartTime
|
|
|
44
43
|
};
|
|
45
44
|
export function SessionRestore(props) {
|
|
46
45
|
var _a;
|
|
47
|
-
const apolloClient = useApolloClient();
|
|
48
46
|
const sessionRestoreDispatch = useContext(SessionRestoreDispatchContext);
|
|
49
47
|
const dispatchToAttachmentReducer = useContext(AttachmentDispatchContext);
|
|
50
48
|
const { sessionRestore } = useContext(SessionRestoreStateContext);
|
|
@@ -241,7 +239,7 @@ export function SessionRestore(props) {
|
|
|
241
239
|
const reg = new RegExp('Cluster Name: (.*) ');
|
|
242
240
|
const v3ClusterName = reg.exec(sessionDetails.description) ? reg.exec(sessionDetails.description)[1] : '';
|
|
243
241
|
setCaseState(caseDispatch, { v3ClusterName });
|
|
244
|
-
yield updateCaseWithSession(caseDispatch, sessionItem, loggedInUserRights.data.getAccountNumber(), loggedInUserRights.data.getHydraContactFromLoggedInUser(), loggedInUsersAccount.data
|
|
242
|
+
yield updateCaseWithSession(caseDispatch, sessionItem, loggedInUserRights.data.getAccountNumber(), loggedInUserRights.data.getHydraContactFromLoggedInUser(), loggedInUsersAccount.data);
|
|
245
243
|
if (!isAISureSession(sessionItem)) {
|
|
246
244
|
restoreFilesFromSession(dispatchToAttachmentReducer, sessionItem.session.id);
|
|
247
245
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAErD,OAAO,EAAQ,mBAAmB,EAAe,MAAM,kBAAkB,CAAC;AAQ1E,OAAO,EAAqB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAWrF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAErD,OAAO,EAAQ,mBAAmB,EAAe,MAAM,kBAAkB,CAAC;AAQ1E,OAAO,EAAqB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAWrF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,qBA6Y/C"}
|
|
@@ -214,7 +214,7 @@ export default function SubmitCase(props) {
|
|
|
214
214
|
React.createElement(Button, { className: "pf-v6-u-ml-md view-case-button", component: "a", href: getCaseURL(), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case'), isAriaDisabled: isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles) },
|
|
215
215
|
React.createElement(Trans, null, "View case"))))) : (React.createElement(Button, { component: (props) => (React.createElement(Link, Object.assign({}, props, { to: `/case/${caseNoOfCreatedCase}` }))), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case'), className: "view-case-button" },
|
|
216
216
|
React.createElement(Trans, null, "View case"))))))),
|
|
217
|
-
!isEmpty(attachmentState.caseFiles.selectedLocalFiles) && (React.createElement(FileUploader, { idToUploadTo: caseNoOfCreatedCase, isSessionId: false })),
|
|
217
|
+
!isEmpty(attachmentState.caseFiles.selectedLocalFiles) && (React.createElement(FileUploader, { idToUploadTo: caseNoOfCreatedCase, isSessionId: false, isSecureSupport: loggedInUsersAccount.data.secureSupport })),
|
|
218
218
|
React.createElement("div", null,
|
|
219
219
|
(!isEmpty(topContent.data) || !rulesState.EARules.rules || !clusterRecommendations) &&
|
|
220
220
|
!isIdea && (React.createElement(Content, { className: "pf-v6-u-mt-2xl pf-v6-u-font-weight-light", component: ContentVariants.h2 },
|
|
@@ -143,7 +143,7 @@ function TroubleshootSection(props) {
|
|
|
143
143
|
updateSession(sessionRestoreDispatch, activeSessionId, sessionDetails, newSession);
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
// Enable
|
|
146
|
+
// Enable Continue button when first chunk is received
|
|
147
147
|
if (eventData.eventName === ARHEventName.FirstMessageReceived) {
|
|
148
148
|
aiResponseDispatch(setHasChunkReceived(true));
|
|
149
149
|
}
|
|
@@ -355,7 +355,7 @@ function TroubleshootSection(props) {
|
|
|
355
355
|
React.createElement("button", { onClick: props.onSeeMoreResources, className: "btn btn-app btn-primary main-nav-button", type: "button", disabled: isFunctionalCookieAccepted() &&
|
|
356
356
|
props.aiServicesAvailable &&
|
|
357
357
|
!aiResponseState.hasChunkReceived &&
|
|
358
|
-
!aiResponseState.error },
|
|
358
|
+
!aiResponseState.error }, t('Continue')))) : isCaseCreate ? (React.createElement("span", null,
|
|
359
359
|
React.createElement(Trans, { i18nKey: "<span>Return to</span> <button>case creation</button>", components: {
|
|
360
360
|
span: React.createElement("span", { className: "return-to-case-text" }),
|
|
361
361
|
button: (React.createElement(Button, { className: "return-to-case-btn", variant: "link", component: "a", onClick: () => props.setIsAIChatMode(false) })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateSeverityModal.d.ts","sourceRoot":"","sources":["../../../../src/components/UpdateSeverityModal/UpdateSeverityModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UpdateSeverityModal.d.ts","sourceRoot":"","sources":["../../../../src/components/UpdateSeverityModal/UpdateSeverityModal.tsx"],"names":[],"mappings":"AAmCA,OAAO,KAAmE,MAAM,OAAO,CAAC;AAgBxF,UAAU,MAAM;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,MAAM,qBAqlBxD"}
|
|
@@ -7,11 +7,11 @@ 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 {
|
|
10
|
+
import { publicApi } from '@cee-eng/hydrajs';
|
|
11
11
|
import { Button, Dropdown, DropdownItem, DropdownList, Flex, FlexItem, MenuToggle, Modal, ModalBody, ModalFooter, ModalHeader, Spinner, TextArea, } from '@patternfly/react-core';
|
|
12
|
-
import { ToastNotification } from '@rh-support/components';
|
|
12
|
+
import { ToastNotification, useFetch } from '@rh-support/components';
|
|
13
13
|
import { GlobalMetadataStateContext, useCanEditCase } from '@rh-support/react-context';
|
|
14
|
-
import { autoEnableFtsOnCaseViewEditPage,
|
|
14
|
+
import { autoEnableFtsOnCaseViewEditPage, isFtsEditableOnEditPage, isSev1, PreviousCaseTypes, severitySort, showFtsOnCreateCasePage, } from '@rh-support/utils';
|
|
15
15
|
import { isUndefined } from 'lodash';
|
|
16
16
|
import find from 'lodash/find';
|
|
17
17
|
import includes from 'lodash/includes';
|
|
@@ -21,11 +21,13 @@ import map from 'lodash/map';
|
|
|
21
21
|
import React, { useContext, useEffect, useReducer, useRef, useState } from 'react';
|
|
22
22
|
import { Trans, useTranslation } from 'react-i18next';
|
|
23
23
|
import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
|
|
24
|
+
import { useCaseDetailsPageStateContext } from '../../context/CaseDetailsPageContext';
|
|
25
|
+
import { useCaseDiscussionTabDispatchContext, useCaseDiscussionTabStateContext, } from '../../context/CaseDiscussionTabContext';
|
|
24
26
|
import { useCaseUpdateErrorMessage } from '../../hooks/useCaseUpdateErrorMessage';
|
|
27
|
+
import { updateDiscussionStateComments } from '../../reducers/CaseDiscussionTabReducer';
|
|
25
28
|
import { getNewSeverityStringDef, getSeverityDescription } from '../../reducers/CaseHelpers';
|
|
26
29
|
import { caseOverviewReducer, initialCaseViewState, setSeverityUpdating } from '../../reducers/CaseOverviewReducer';
|
|
27
|
-
import { checkForCaseStatusToggleOnAttachOrComment, setCaseState,
|
|
28
|
-
import { usePostComment } from '../shared/usePostComment';
|
|
30
|
+
import { checkForCaseStatusToggleOnAttachOrComment, setCaseState, updateCaseDetails } from '../../reducers/CaseReducer';
|
|
29
31
|
export default function UpdateSeverityModal(props) {
|
|
30
32
|
const { show, onClose, isDisabled, isFetching } = props;
|
|
31
33
|
const { t } = useTranslation();
|
|
@@ -38,7 +40,12 @@ export default function UpdateSeverityModal(props) {
|
|
|
38
40
|
const [isUpdateClickedToShowError, setIsUpdateClickedToShowError] = useState(false);
|
|
39
41
|
const [isSeverityInValid, setIsSeverityInValid] = useState(false);
|
|
40
42
|
const [seviritiesOptions, setSeveritiesOptions] = useState([]);
|
|
41
|
-
const
|
|
43
|
+
const { request: postCommentRequest, isFetching: isPostingComment } = useFetch(publicApi.kase.postComment, {
|
|
44
|
+
propgateErrors: true,
|
|
45
|
+
});
|
|
46
|
+
const { caseDetailsPageState: { caseFeedbacksHydra }, } = useCaseDetailsPageStateContext();
|
|
47
|
+
const dispatchDiscussion = useCaseDiscussionTabDispatchContext();
|
|
48
|
+
const { sort, allDiscussions, discussionFiltersListState } = useCaseDiscussionTabStateContext();
|
|
42
49
|
const { globalMetadataState: { allCaseSeverities, allProducts, loggedInUserRights }, } = useContext(GlobalMetadataStateContext);
|
|
43
50
|
const caseState = useCaseSelector((state) => ({
|
|
44
51
|
caseDetails: {
|
|
@@ -54,56 +61,19 @@ export default function UpdateSeverityModal(props) {
|
|
|
54
61
|
phoneCountryCode: state.caseDetails.phoneCountryCode,
|
|
55
62
|
phoneAreaCodePrefixLineNumber: state.caseDetails.phoneAreaCodePrefixLineNumber || '',
|
|
56
63
|
},
|
|
57
|
-
existingCaseDetails: state.caseDetails,
|
|
58
64
|
isCaseUpdating: state.isCaseUpdating,
|
|
59
65
|
versionsDetails: state.versionsDetails,
|
|
60
66
|
ownersEntitlements: state.ownersEntitlements,
|
|
61
67
|
ftsContactSameAsOwner: state.ftsContactSameAsOwner,
|
|
62
68
|
}), isEqual);
|
|
63
|
-
const {
|
|
64
|
-
caseNumber: caseState.caseDetails.caseNumber,
|
|
65
|
-
});
|
|
66
|
-
const { caseDetails, existingCaseDetails, isCaseUpdating, ownersEntitlements, versionsDetails, ftsContactSameAsOwner, } = caseState;
|
|
69
|
+
const { caseDetails, isCaseUpdating, ownersEntitlements, versionsDetails, ftsContactSameAsOwner } = caseState;
|
|
67
70
|
const { entitlementSla, fts, contactInfo24x7, caseType, phoneAreaCodePrefixLineNumber, phoneCountryCode } = caseDetails;
|
|
68
71
|
const isIdea = caseType === PreviousCaseTypes.FEATURE_ENHANCEMENT;
|
|
69
72
|
const [currentSeverity, setCurrentSeverity] = useState(caseDetails.caseSeverity);
|
|
70
|
-
/** GraphQL CaseUpdate for severity/status and FTS (X24x7__c / X24x7ContactInformation__c). */
|
|
71
|
-
const updateSeverityViaGraphQL = (payload) => __awaiter(this, void 0, void 0, function* () {
|
|
72
|
-
var _a, _b;
|
|
73
|
-
const { severity, status, fts: ftsUpdate, contactInfo24x7: contactUpdate } = payload;
|
|
74
|
-
const graphqlUpdate = {};
|
|
75
|
-
if (severity !== undefined) {
|
|
76
|
-
graphqlUpdate.severity = severity;
|
|
77
|
-
}
|
|
78
|
-
if (status !== undefined) {
|
|
79
|
-
graphqlUpdate.status = status;
|
|
80
|
-
}
|
|
81
|
-
if (ftsUpdate !== undefined) {
|
|
82
|
-
graphqlUpdate.fts = ftsUpdate;
|
|
83
|
-
}
|
|
84
|
-
if (contactUpdate !== undefined) {
|
|
85
|
-
graphqlUpdate.contactInfo24x7 = contactUpdate;
|
|
86
|
-
}
|
|
87
|
-
const severityForPatch = String((_b = (_a = severity !== null && severity !== void 0 ? severity : currentSeverity) !== null && _a !== void 0 ? _a : caseDetails.caseSeverity) !== null && _b !== void 0 ? _b : '').trim();
|
|
88
|
-
if ((ftsUpdate !== undefined || contactUpdate !== undefined) &&
|
|
89
|
-
graphqlUpdate.severity === undefined &&
|
|
90
|
-
isSev1(severityForPatch)) {
|
|
91
|
-
graphqlUpdate.severity = severityForPatch;
|
|
92
|
-
}
|
|
93
|
-
if (Object.keys(graphqlUpdate).length === 0) {
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
yield updateCaseDetailsGraphQL(caseDispatch, client, caseDetails.caseNumber, graphqlUpdate, false, {
|
|
97
|
-
existingCaseDetails,
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
73
|
const [localFtsContact, setLocalFtsContact] = useState(contactInfo24x7 || '');
|
|
101
74
|
const [localFts, setLocalFts] = useState(isUndefined(fts) ? true : fts);
|
|
102
75
|
const initialContactSameAsOwnerRef = useRef(ftsContactSameAsOwner !== null && ftsContactSameAsOwner !== void 0 ? ftsContactSameAsOwner : false);
|
|
103
|
-
const
|
|
104
|
-
const severityForFts = String(currentSeverity !== null && currentSeverity !== void 0 ? currentSeverity : '').trim();
|
|
105
|
-
const shouldShowFts = isSev1(severityForFts) && hasPremiumSla;
|
|
106
|
-
const isPreviousSeveritySelected = isEqual(caseDetails.caseSeverity, currentSeverity);
|
|
76
|
+
const isFtsEditable = isFtsEditableOnEditPage(entitlementSla, currentSeverity);
|
|
107
77
|
const [isOpen, setIsOpen] = useState(false);
|
|
108
78
|
const onToggleClick = () => {
|
|
109
79
|
setIsOpen(!isOpen);
|
|
@@ -178,34 +148,25 @@ export default function UpdateSeverityModal(props) {
|
|
|
178
148
|
const getFtsUpdateComment = () => {
|
|
179
149
|
if (isIdea)
|
|
180
150
|
return '';
|
|
181
|
-
|
|
182
|
-
if (!shouldShowFts)
|
|
183
|
-
return '';
|
|
184
|
-
const normalize24x7Contact = (value) => (value !== null && value !== void 0 ? value : '').trim();
|
|
185
|
-
const savedContact = normalize24x7Contact(caseDetails.contactInfo24x7);
|
|
186
|
-
const localContact = normalize24x7Contact(localFtsContact);
|
|
187
|
-
if (isEqual(caseDetails.fts, localFts) && isEqual(savedContact, localContact))
|
|
151
|
+
if (isEqual(caseDetails.fts, localFts) && isEqual(caseDetails.contactInfo24x7, localFtsContact))
|
|
188
152
|
return '';
|
|
189
|
-
if (caseDetails.fts && !localFts)
|
|
190
|
-
return '
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}
|
|
195
|
-
return '<h4>Contact Support Update</h4><p>User updated 24x7 contact information</p>';
|
|
153
|
+
if (caseDetails.fts && !localFts)
|
|
154
|
+
return '#### Contact Support Update \n User disabled 24x7 contact support';
|
|
155
|
+
if (!caseDetails.fts && localFts)
|
|
156
|
+
return '#### Contact Support Update \n User enabled 24x7 contact support';
|
|
157
|
+
return '#### Contact Support Update \n User updated 24x7 contact information';
|
|
196
158
|
};
|
|
197
159
|
const updateCaseFtsInfo = () => __awaiter(this, void 0, void 0, function* () {
|
|
198
160
|
try {
|
|
199
|
-
const ftsUpdateComment = `${getFtsUpdateComment()}
|
|
200
|
-
yield
|
|
201
|
-
severity: currentSeverity || caseDetails.caseSeverity,
|
|
161
|
+
const ftsUpdateComment = `${getFtsUpdateComment()} \n\n #### Description \n ${descriptionValue.trim()}`;
|
|
162
|
+
yield updateCaseDetails(caseDispatch, caseDetails.caseNumber, {
|
|
202
163
|
fts: localFts,
|
|
203
164
|
contactInfo24x7: localFtsContact,
|
|
204
165
|
});
|
|
205
|
-
yield
|
|
166
|
+
yield postCommentRequest({
|
|
167
|
+
caseNumber: caseDetails.caseNumber,
|
|
206
168
|
commentBody: ftsUpdateComment === null || ftsUpdateComment === void 0 ? void 0 : ftsUpdateComment.trim(),
|
|
207
169
|
contentType: 'markdown',
|
|
208
|
-
updateDiscussionState: true,
|
|
209
170
|
});
|
|
210
171
|
ToastNotification.addSuccessMessage(t(`Case has been successfully updated`));
|
|
211
172
|
}
|
|
@@ -229,53 +190,46 @@ export default function UpdateSeverityModal(props) {
|
|
|
229
190
|
}
|
|
230
191
|
const ftsUpdateComment = getFtsUpdateComment();
|
|
231
192
|
// Severity update successful comment body
|
|
232
|
-
const severityUpdateComment = t(
|
|
193
|
+
const severityUpdateComment = t(`#### Severity update \n Severity changed from {{oldSeverity}} to {{newSeverity}}\n\n ${isEmpty(ftsUpdateComment) ? '' : ftsUpdateComment + '\n\n\n'} #### Description \n{{description}}`, {
|
|
233
194
|
oldSeverity: caseDetails.caseSeverity,
|
|
234
195
|
newSeverity: updatedCaseDetails['severity'],
|
|
235
196
|
description: descriptionValue === null || descriptionValue === void 0 ? void 0 : descriptionValue.trim(),
|
|
236
197
|
});
|
|
237
198
|
// Severity update failed comment body
|
|
238
|
-
const severityUpdateFailedComment = t('
|
|
199
|
+
const severityUpdateFailedComment = t('#### Severity update \n Failed to change severity from {{oldSeverity}} to {{newSeverity}}. Please try again\n', {
|
|
239
200
|
oldSeverity: caseDetails.caseSeverity,
|
|
240
|
-
|
|
201
|
+
newSeveritay: updatedCaseDetails['severity'],
|
|
241
202
|
});
|
|
242
203
|
try {
|
|
243
204
|
setSeverityUpdating(caseOverviewDispatch, true);
|
|
244
|
-
yield
|
|
205
|
+
yield updateCaseDetails(caseDispatch, caseDetails.caseNumber, updatedCaseDetails);
|
|
245
206
|
try {
|
|
246
|
-
yield
|
|
207
|
+
yield postCommentRequest({
|
|
208
|
+
caseNumber: caseDetails.caseNumber,
|
|
247
209
|
commentBody: severityUpdateComment === null || severityUpdateComment === void 0 ? void 0 : severityUpdateComment.trim(),
|
|
248
210
|
contentType: 'markdown',
|
|
249
|
-
updateDiscussionState: true,
|
|
250
211
|
});
|
|
251
212
|
try {
|
|
252
|
-
|
|
253
|
-
apolloClient: client,
|
|
254
|
-
caseNumber: caseDetails.caseNumber,
|
|
255
|
-
existingCaseDetails,
|
|
256
|
-
});
|
|
213
|
+
checkForCaseStatusToggleOnAttachOrComment(caseDispatch, loggedInUserRights.data.isInternal(), caseDetails.caseStatus);
|
|
257
214
|
setCurrentSeverity(updatedCaseDetails['severity']);
|
|
258
215
|
onSuccessfulSubmit();
|
|
259
216
|
ToastNotification.addSuccessMessage(t('Severity has been successfully updated'));
|
|
260
217
|
}
|
|
261
218
|
catch (e) {
|
|
262
|
-
yield
|
|
219
|
+
yield postCommentRequest({
|
|
220
|
+
caseNumber: caseDetails.caseNumber,
|
|
263
221
|
commentBody: severityUpdateFailedComment === null || severityUpdateFailedComment === void 0 ? void 0 : severityUpdateFailedComment.trim(),
|
|
264
222
|
contentType: 'markdown',
|
|
265
|
-
updateDiscussionState: true,
|
|
266
223
|
});
|
|
267
224
|
onClose();
|
|
268
225
|
caseUpdateError.showError(e, t(`Failed to update case status. Please try again`));
|
|
269
|
-
yield
|
|
270
|
-
status: 'Waiting on Customer Action Required',
|
|
271
|
-
severity: updatedCaseDetails['severity'],
|
|
272
|
-
});
|
|
226
|
+
yield updateCaseDetails(caseDispatch, caseDetails.caseNumber, Object.assign({ status: 'Waiting on Customer' }, updateCaseDetails));
|
|
273
227
|
}
|
|
274
228
|
}
|
|
275
229
|
catch (e) {
|
|
276
230
|
onClose();
|
|
277
231
|
caseUpdateError.showError(e, t(`Couldn't post severity update comment. Please try again`));
|
|
278
|
-
yield
|
|
232
|
+
yield updateCaseDetails(caseDispatch, caseDetails.caseNumber, {
|
|
279
233
|
severity: caseDetails.caseSeverity,
|
|
280
234
|
});
|
|
281
235
|
setDescriptionValue(descriptionValue === null || descriptionValue === void 0 ? void 0 : descriptionValue.trim());
|
|
@@ -286,13 +240,14 @@ export default function UpdateSeverityModal(props) {
|
|
|
286
240
|
catch (e) {
|
|
287
241
|
onClose();
|
|
288
242
|
caseUpdateError.showError(e, t('Severity failed to update'));
|
|
289
|
-
yield
|
|
243
|
+
yield updateCaseDetails(caseDispatch, caseDetails.caseNumber, {
|
|
290
244
|
severity: caseDetails.caseSeverity,
|
|
291
245
|
});
|
|
292
246
|
reUpdateSeverity(caseDetails.caseSeverity);
|
|
293
247
|
setDescriptionValue(descriptionValue === null || descriptionValue === void 0 ? void 0 : descriptionValue.trim());
|
|
294
248
|
}
|
|
295
249
|
finally {
|
|
250
|
+
yield updateDiscussionStateComments(dispatchDiscussion, caseDispatch, caseDetails.caseNumber, allDiscussions, sort, caseFeedbacksHydra.data, discussionFiltersListState);
|
|
296
251
|
setIsUpdateClickedToShowError(false);
|
|
297
252
|
setDescriptionValue('');
|
|
298
253
|
}
|
|
@@ -310,12 +265,14 @@ export default function UpdateSeverityModal(props) {
|
|
|
310
265
|
if (isEmpty(updatedCaseDetails)) {
|
|
311
266
|
return false;
|
|
312
267
|
}
|
|
313
|
-
if (isEqual(caseDetails.caseSeverity, currentSeverity) &&
|
|
268
|
+
else if (isEqual(caseDetails.caseSeverity, currentSeverity) &&
|
|
314
269
|
isEqual(caseDetails.fts, localFts) &&
|
|
315
270
|
isEqual(caseDetails.contactInfo24x7, localFtsContact)) {
|
|
316
271
|
return false;
|
|
317
272
|
}
|
|
318
|
-
|
|
273
|
+
else {
|
|
274
|
+
return true;
|
|
275
|
+
}
|
|
319
276
|
};
|
|
320
277
|
const onFtsChange = (e) => {
|
|
321
278
|
if (canEditCase.alert())
|
|
@@ -330,9 +287,8 @@ export default function UpdateSeverityModal(props) {
|
|
|
330
287
|
if (!e.target.checked) {
|
|
331
288
|
return;
|
|
332
289
|
}
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
setLocalFtsContact(ownerPhone);
|
|
290
|
+
setUpdatedCaseDetails((pre) => (Object.assign(Object.assign({}, pre), { contactInfo24x7: `${phoneCountryCode}-${phoneAreaCodePrefixLineNumber}` })));
|
|
291
|
+
setLocalFtsContact(`${phoneCountryCode}-${phoneAreaCodePrefixLineNumber}`);
|
|
336
292
|
};
|
|
337
293
|
const onFtsContactChange = (e) => {
|
|
338
294
|
if (canEditCase.alert())
|
|
@@ -340,49 +296,19 @@ export default function UpdateSeverityModal(props) {
|
|
|
340
296
|
setLocalFtsContact(e.target.value);
|
|
341
297
|
setUpdatedCaseDetails((pre) => (Object.assign(Object.assign({}, pre), { contactInfo24x7: e.target.value.trim() })));
|
|
342
298
|
};
|
|
343
|
-
|
|
344
|
-
const
|
|
345
|
-
const isSubmitButtonDisabled = !(isUpdateValid && isTextAreaValid());
|
|
299
|
+
// To disable submit button wrt above conditions
|
|
300
|
+
const isSubmitButtonDisabled = checkIsUpdateValid() && isTextAreaValid() ? false : true;
|
|
346
301
|
// To handle the severity change
|
|
347
|
-
const onSeverityChange = (
|
|
302
|
+
const onSeverityChange = (event, option) => {
|
|
348
303
|
if (canEditCase.alert())
|
|
349
304
|
return;
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
name: String(value),
|
|
354
|
-
disabled: false,
|
|
355
|
-
label: String(value),
|
|
356
|
-
additionalInfo: '',
|
|
357
|
-
};
|
|
358
|
-
// Re-selecting the previously saved severity: reset and keep description/Update disabled
|
|
359
|
-
if (isEqual(caseDetails.caseSeverity, option.name)) {
|
|
360
|
-
setCurrentSeverity(option.name);
|
|
361
|
-
setUpdatedCaseDetails({});
|
|
362
|
-
setLocalFts(isUndefined(fts) ? true : !!fts);
|
|
363
|
-
setLocalFtsContact(contactInfo24x7 || '');
|
|
364
|
-
setCaseState(caseDispatch, { ftsContactSameAsOwner: initialContactSameAsOwnerRef.current });
|
|
365
|
-
setDescriptionValue('');
|
|
366
|
-
setIsUpdateClickedToShowError(false);
|
|
367
|
-
setIsSeverityInValidLocal(option);
|
|
368
|
-
setIsOpen(false);
|
|
369
|
-
return;
|
|
370
|
-
}
|
|
371
|
-
if (isSev1(option.name) && (hasPremiumSla || isEmpty(entitlementSla))) {
|
|
305
|
+
if (!isEqual(caseDetails.caseSeverity, option.name) &&
|
|
306
|
+
isSev1(option.name) &&
|
|
307
|
+
isFtsEditableOnEditPage(entitlementSla, option.name)) {
|
|
372
308
|
setLocalFts(true);
|
|
373
309
|
setLocalFtsContact('');
|
|
374
310
|
setCaseState(caseDispatch, { ftsContactSameAsOwner: false });
|
|
375
|
-
setUpdatedCaseDetails({
|
|
376
|
-
severity: option.name,
|
|
377
|
-
fts: !isIdea,
|
|
378
|
-
contactInfo24x7: '',
|
|
379
|
-
});
|
|
380
|
-
}
|
|
381
|
-
else if (isSev2(option.name) &&
|
|
382
|
-
(hasPremiumSla || isEmpty(entitlementSla) || showFtsOnCaseViewEditPage(entitlementSla || '', option.name))) {
|
|
383
|
-
setUpdatedCaseDetails({
|
|
384
|
-
severity: option.name,
|
|
385
|
-
});
|
|
311
|
+
setUpdatedCaseDetails((pre) => (Object.assign(Object.assign({}, pre), { severity: option.name, fts: !isIdea, contactInfo24x7: '' })));
|
|
386
312
|
}
|
|
387
313
|
else {
|
|
388
314
|
setUpdatedCaseDetails({ severity: option.name, fts: false });
|
|
@@ -434,8 +360,8 @@ export default function UpdateSeverityModal(props) {
|
|
|
434
360
|
]);
|
|
435
361
|
useEffect(() => {
|
|
436
362
|
const phone = `${phoneCountryCode}-${phoneAreaCodePrefixLineNumber}`;
|
|
437
|
-
setLocalFts(
|
|
438
|
-
setLocalFtsContact(contactInfo24x7
|
|
363
|
+
setLocalFts(fts);
|
|
364
|
+
setLocalFtsContact(contactInfo24x7);
|
|
439
365
|
if (contactInfo24x7 === phone) {
|
|
440
366
|
setCaseState(caseDispatch, { ftsContactSameAsOwner: true });
|
|
441
367
|
}
|
|
@@ -457,21 +383,23 @@ export default function UpdateSeverityModal(props) {
|
|
|
457
383
|
React.createElement(FlexItem, null, selectedSeverity.label || t(`Select a severity`)),
|
|
458
384
|
React.createElement(FlexItem, null, isFetching || versionsDetails.isFetching ? React.createElement(Spinner, { size: "md" }) : '')))), shouldFocusToggleOnSelect: true, isScrollable: true, popperProps: { direction: 'down', enableFlip: false } },
|
|
459
385
|
React.createElement(DropdownList, null, allCaseSeverities.data
|
|
460
|
-
? filteredSeverities.map((option) => (React.createElement(DropdownItem, { value: option
|
|
386
|
+
? filteredSeverities.map((option) => (React.createElement(DropdownItem, { value: option, key: option.name, description: option.additionalInfo }, option.label)))
|
|
461
387
|
: []))),
|
|
462
388
|
React.createElement("div", null,
|
|
463
389
|
React.createElement("label", { htmlFor: "date-input", className: "pf-v6-u-mt-md" },
|
|
464
390
|
React.createElement(Trans, null, "Describe update"),
|
|
465
391
|
React.createElement("span", { className: "form-required", "aria-hidden": "true" }, "*")),
|
|
466
|
-
React.createElement(TextArea, { placeholder: t('How has the business impact changed? If you have increased severity, please explain why.'), isDisabled:
|
|
392
|
+
React.createElement(TextArea, { placeholder: t('How has the business impact changed? If you have increased severity, please explain why.'), isDisabled: (caseOverviewState.caseSeverityUpdating && isCaseUpdating) ||
|
|
393
|
+
isPostingComment ||
|
|
394
|
+
!checkIsUpdateValid(), value: descriptionValue, onChange: (_event, value) => handleTextAreaChange(value), resizeOrientation: "vertical", "aria-label": "severity-update-descritpion", validated: isEmpty(descriptionValue) && isUpdateClickedToShowError ? 'error' : 'default', isRequired: true }),
|
|
467
395
|
React.createElement("div", { className: "pf-v6-u-mt-xs" },
|
|
468
396
|
React.createElement(Trans, null, "To view your comment, go to the Discussion tab."))),
|
|
469
|
-
|
|
397
|
+
!isIdea && isFtsEditable && (React.createElement("div", { className: "pf-v6-u-mt-md pf-v6-u-mb-sm" },
|
|
470
398
|
React.createElement("div", null,
|
|
471
399
|
React.createElement("input", { type: "checkbox", id: "update-severity-fts", "data-tracking-id": "update-severity-fts", name: "update-severity-fts", checked: localFts, onChange: onFtsChange }),
|
|
472
400
|
React.createElement("label", { htmlFor: "update-severity-fts" },
|
|
473
401
|
React.createElement(Trans, null, "24x7 Support"))),
|
|
474
|
-
|
|
402
|
+
localFts && (React.createElement("div", null,
|
|
475
403
|
React.createElement("label", { htmlFor: "update-severity-24-7-contact", className: "pf-v6-u-mt-xs" },
|
|
476
404
|
React.createElement(Trans, null, "Contact for 24x7 support")),
|
|
477
405
|
React.createElement("div", null,
|
|
@@ -491,9 +419,8 @@ export default function UpdateSeverityModal(props) {
|
|
|
491
419
|
React.createElement("p", { className: "pf-v6-u-text-color-subtle pf-v6-u-font-size-sm pf-v6-u-mb-md" }, t('Describing your update helps us better assist you.')),
|
|
492
420
|
modalBody()),
|
|
493
421
|
React.createElement(ModalFooter, null,
|
|
494
|
-
React.createElement(Button, { key: "submit", variant: "primary", onClick: onSubmit, isLoading: isCaseUpdating || isPostingComment, "data-tracking-id": "update-severity-submit", isDisabled:
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
: isSubmitButtonDisabled || isCaseUpdating || isPostingComment) }, t('Update')),
|
|
422
|
+
React.createElement(Button, { key: "submit", variant: "primary", onClick: onSubmit, isLoading: isCaseUpdating || isPostingComment, "data-tracking-id": "update-severity-submit", isDisabled: !isUpdateClickedToShowError && checkIsUpdateValid()
|
|
423
|
+
? false
|
|
424
|
+
: isSubmitButtonDisabled || isCaseUpdating || isPostingComment }, t('Update')),
|
|
498
425
|
React.createElement(Button, { key: "back", variant: "link", onClick: onCancel, "data-tracking-id": "update-severity-cancel", isDisabled: isCaseUpdating || isPostingComment }, t('Cancel')))));
|
|
499
426
|
}
|
|
@@ -11,7 +11,6 @@ declare const _default: {
|
|
|
11
11
|
de: string;
|
|
12
12
|
es: string;
|
|
13
13
|
pt: string;
|
|
14
|
-
pt_BR: string;
|
|
15
14
|
fr: string;
|
|
16
15
|
ko: string;
|
|
17
16
|
it: string;
|
|
@@ -48,10 +47,6 @@ export declare enum CaseValuesToWatch {
|
|
|
48
47
|
hostname = "Hostname",
|
|
49
48
|
openshiftClusterID = "OpenShift Cluster ID"
|
|
50
49
|
}
|
|
51
|
-
export declare const preferredSSModalOpenPendoEvent = "PCM-Next > Preferred-secured-support-modal-open";
|
|
52
|
-
export declare const recsViewedFromNoAttachmentModalEvent = "PCM-Next > No-Attachment-modal-view-recommendations";
|
|
53
|
-
export declare const markdownInlineFileSelectEvent = "PCM-Next > Markdown-toolbar-file-select";
|
|
54
|
-
export declare const markdownFilePasteEvent = "PCM-Next > Markdown-toolbar-file-paste";
|
|
55
50
|
export declare const riskLabels: {
|
|
56
51
|
1: {
|
|
57
52
|
icon: React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/Constants.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC
|
|
1
|
+
{"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/Constants.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE1B,wBA+BE;AAEF;;GAEG;AACH,oBAAY,iBAAiB;IACzB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,IAAI,iBAAiB;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,8BAA8B;IACnC,KAAK,UAAU;IACf,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,kBAAkB,yBAAyB;CAC9C;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;CAKtB,CAAC"}
|
|
@@ -15,7 +15,6 @@ export default {
|
|
|
15
15
|
de: 'Deutsch',
|
|
16
16
|
es: 'Español',
|
|
17
17
|
pt: 'Português',
|
|
18
|
-
pt_BR: 'Português',
|
|
19
18
|
fr: 'Français',
|
|
20
19
|
ko: '한국어',
|
|
21
20
|
it: 'Italiano',
|
|
@@ -52,10 +51,6 @@ export var CaseValuesToWatch;
|
|
|
52
51
|
CaseValuesToWatch["hostname"] = "Hostname";
|
|
53
52
|
CaseValuesToWatch["openshiftClusterID"] = "OpenShift Cluster ID";
|
|
54
53
|
})(CaseValuesToWatch || (CaseValuesToWatch = {}));
|
|
55
|
-
export const preferredSSModalOpenPendoEvent = 'PCM-Next > Preferred-secured-support-modal-open';
|
|
56
|
-
export const recsViewedFromNoAttachmentModalEvent = 'PCM-Next > No-Attachment-modal-view-recommendations';
|
|
57
|
-
export const markdownInlineFileSelectEvent = 'PCM-Next > Markdown-toolbar-file-select';
|
|
58
|
-
export const markdownFilePasteEvent = 'PCM-Next > Markdown-toolbar-file-paste';
|
|
59
54
|
export const riskLabels = {
|
|
60
55
|
1: { icon: React.createElement(AngleDoubleDownIcon, null), label: 'Low', className: 'pf-m-blue' },
|
|
61
56
|
2: { icon: React.createElement(EqualsIcon, null), label: 'Moderate', className: 'pf-m-gold' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileLister.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/FileLister.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FileLister.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/FileLister.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,OAAO,CAAC;AAsB1B,OAAO,EAAiB,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGxE,eAAO,MAAM,qBAAqB,2FAAyC,CAAC;AAiB5E,UAAU,MAAM;IACZ,kBAAkB,EAAE,UAAU,EAAE,CAAC;IACjC,UAAU,EAAE,CAAC,eAAe,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IACtG,YAAY,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACtE,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,eAAe,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,CAAC,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,qBAqS/C"}
|
|
@@ -11,7 +11,7 @@ import React from 'react';
|
|
|
11
11
|
import { Trans, useTranslation } from 'react-i18next';
|
|
12
12
|
import { useCaseSelector } from '../../../context/CaseContext';
|
|
13
13
|
import { ATTACHMENT_DESCRIPTION_LENGTH_LIMIT } from '../../../reducers/CaseConstNTypes';
|
|
14
|
-
import { isAnalysingFile, isAnalysisFailed, isFileDeleted, isUploadAborted, isUploadedAndAnalysisFailed, isUploadedAndAnalysisSkipped, isUploadedAndAnalyzed, isUploadFailed, isUploading, isUploadingAttachment, isUploadingOnCase, isUploadingOnSession, isUploadOnTrack, isVerifyingUpload, shouldHideDescription,
|
|
14
|
+
import { isAnalysingFile, isAnalysisFailed, isFileDeleted, isUploadAborted, isUploadedAndAnalysisFailed, isUploadedAndAnalysisSkipped, isUploadedAndAnalyzed, isUploadFailed, isUploading, isUploadingAttachment, isUploadingOnCase, isUploadingOnSession, isUploadOnTrack, isVerifyingUpload, shouldHideDescription, } from './reducer/AttachmentHelper';
|
|
15
15
|
import { FileStatusHelper } from './reducer/FileStatusHelper';
|
|
16
16
|
export const CaseDiagnosticsStatus = pcm.preCase.diag.CaseDiagnosticsStatus;
|
|
17
17
|
const analysisSteps = [
|
|
@@ -108,7 +108,7 @@ export default function FileLister(props) {
|
|
|
108
108
|
!isUploadOnTrack(localFile) && (React.createElement("i", { className: "icon-warning pf-v6-u-mr-sm", title: getUploadErrorMessage(localFile, localFile.uploadability), "aria-label": getUploadErrorMessage(localFile, localFile.uploadability) })),
|
|
109
109
|
isUploadedAndAnalysisFailed(localFile) && (React.createElement("i", { className: "icon-warning text-danger pf-v6-u-mr-sm", title: getUploadErrorMessage(localFile, localFile.uploadability), "aria-label": getUploadErrorMessage(localFile, localFile.uploadability) })),
|
|
110
110
|
isUploadedAndAnalyzed(localFile) && (React.createElement("i", { className: "icon-check-alt text-green pf-v6-u-mr-sm", title: t('File uploaded and analyzed'), "aria-label": t('File uploaded and analyzed') })),
|
|
111
|
-
|
|
111
|
+
isUploading(localFile.uploadProgress.uploadStatus) && (React.createElement("div", { className: "pf-v6-u-mr-sm pf-v6-u-display-inline-block", style: { height: '20px', width: '20px' } },
|
|
112
112
|
React.createElement(CircularProgressbar, { title: getRadialProgressTitle(localFile), strokeWidth: 13, value: localFile.uploadProgress.percentUploaded }))),
|
|
113
113
|
React.createElement("span", null, `${localFile.name} (${humanizeSize(localFile.size)})`),
|
|
114
114
|
!localFile.uploadability.ableToUpload && (React.createElement("span", { className: "file-error" },
|
|
@@ -122,7 +122,7 @@ export default function FileLister(props) {
|
|
|
122
122
|
React.createElement(HistoryIcon, null))),
|
|
123
123
|
!isVerifyingUpload(localFile.uploadProgress.uploadStatus) &&
|
|
124
124
|
!isAnalysingFile(localFile.analysisMetadata.analysisStatus) && (React.createElement(React.Fragment, null,
|
|
125
|
-
canShowAbortBtn(localFile.uploadProgress.uploadStatus) && (React.createElement(Button, { variant: ButtonVariant.link, isDanger: true, "aria-label": t('Cancel Upload'), title: t('Cancel Upload'), className: "btn btn-link btn-app remove-file", "data-tracking-id": "file-lister-abort", onClick: onAbortClick(localFile, index), hidden: !localFile.uploadability.ableToUpload, isDisabled: !localFile.uploadProgress.
|
|
125
|
+
canShowAbortBtn(localFile.uploadProgress.uploadStatus) && (React.createElement(Button, { variant: ButtonVariant.link, isDanger: true, "aria-label": t('Cancel Upload'), title: t('Cancel Upload'), className: "btn btn-link btn-app remove-file", "data-tracking-id": "file-lister-abort", onClick: onAbortClick(localFile, index), hidden: !localFile.uploadability.ableToUpload, isDisabled: !(localFile.uploadProgress.percentUploaded > 0) },
|
|
126
126
|
React.createElement(Trans, null, "Cancel"))),
|
|
127
127
|
showDeleteBtn(localFile.uploadProgress.uploadStatus, localFile) && (React.createElement(Button, { variant: ButtonVariant.link, isDanger: true, "aria-label": t('Delete file'), title: t('Delete file'), className: "btn btn-link btn-app remove-file", "data-tracking-id": "file-lister-delete", onClick: onRemoveClick(localFile, index), hidden: !localFile.uploadability.ableToUpload },
|
|
128
128
|
React.createElement(Trans, null, "Remove")))))),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import { Trans } from 'react-i18next';
|
|
3
3
|
import FileLister from './FileLister';
|
|
4
|
-
import {
|
|
4
|
+
import { isUploadingAttachment } from './reducer/AttachmentHelper';
|
|
5
5
|
import { AttachmentStateContext } from './reducer/AttachmentReducerContext';
|
|
6
6
|
import { FileUploadButton } from './UploadButton';
|
|
7
7
|
import { useFileUploader } from './useFileUploader';
|
|
@@ -14,11 +14,12 @@ const defaultProps = {
|
|
|
14
14
|
showDescriptionInfoMsg: false,
|
|
15
15
|
};
|
|
16
16
|
function FileUpload(props) {
|
|
17
|
+
var _a, _b, _c;
|
|
17
18
|
// Attachment Reducer Related
|
|
18
19
|
const { attachmentState } = useContext(AttachmentStateContext);
|
|
19
20
|
const { editFile, removeFile, retryUpload, uploadAll, retryAnalysis } = useFileUploader(props);
|
|
20
21
|
return (React.createElement("section", { className: `${props.className}`, id: `${props.id}` },
|
|
21
|
-
|
|
22
|
+
((_c = (_b = (_a = attachmentState === null || attachmentState === void 0 ? void 0 : attachmentState.caseFiles) === null || _a === void 0 ? void 0 : _a.selectedLocalFiles) === null || _b === void 0 ? void 0 : _b.length) !== null && _c !== void 0 ? _c : 0) > 0 && (React.createElement(React.Fragment, null,
|
|
22
23
|
!props.isSessionId ? (React.createElement("h4", null,
|
|
23
24
|
React.createElement(Trans, null, "Uploading attachment(s)"))) : null,
|
|
24
25
|
React.createElement(FileLister, { onRetryAnalysis: retryAnalysis, selectedLocalFiles: attachmentState.caseFiles.selectedLocalFiles, onFileEdit: editFile, onFileRemove: removeFile, onRetry: retryUpload, isSessionId: props.isSessionId, showSlowUploadMsg: attachmentState.showUploadingOnSlowConnectionMsg }))),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploader.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/FileUploader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FileUploader.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/FileUploader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAYrD,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAGnD,UAAU,MAAO,SAAQ,wBAAwB;CAAG;AAQpD,iBAAS,YAAY,CAAC,KAAK,EAAE,MAAM,qBA4ClC;kBA5CQ,YAAY;;;AA8CrB,eAAe,YAAY,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { useApolloClient } from '@apollo/client/react';
|
|
2
1
|
import React, { useContext, useEffect } from 'react';
|
|
3
2
|
import { Trans } from 'react-i18next';
|
|
4
3
|
import { SessionRestoreStateContext } from '../../../context/SessionRestoreContext';
|
|
@@ -19,14 +18,13 @@ function FileUploader(props) {
|
|
|
19
18
|
const dispatchToAttachmentReducer = useContext(AttachmentDispatchContext);
|
|
20
19
|
const { sessionRestore: { activeSessionId }, } = useContext(SessionRestoreStateContext);
|
|
21
20
|
const { editFile, removeFile, retryUpload, uploadFile } = useFileUploader(props);
|
|
22
|
-
const apolloClient = useApolloClient();
|
|
23
21
|
useEffect(() => {
|
|
24
22
|
attachmentState.caseFiles.selectedLocalFiles.forEach((file, index) => {
|
|
25
23
|
if (file.uploadProgress.uploadStatus === UploadStatusConstants.attachedOnSession) {
|
|
26
24
|
uploadFile(index);
|
|
27
25
|
}
|
|
28
26
|
else if (isSessionUploadComplete(file.uploadProgress.uploadStatus)) {
|
|
29
|
-
moveSessionAttachmentToCase(dispatchToAttachmentReducer, props.idToUploadTo, activeSessionId, file, index
|
|
27
|
+
moveSessionAttachmentToCase(dispatchToAttachmentReducer, props.idToUploadTo, activeSessionId, file, index);
|
|
30
28
|
}
|
|
31
29
|
});
|
|
32
30
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetFileUploader.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/WidgetFileUploader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,KAA0C,MAAM,OAAO,CAAC;AA0B/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAInD,UAAU,MAAO,SAAQ,wBAAwB,EAAE,gBAAgB;IAC/D,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACtC,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"WidgetFileUploader.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/WidgetFileUploader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,KAA0C,MAAM,OAAO,CAAC;AA0B/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAInD,UAAU,MAAO,SAAQ,wBAAwB,EAAE,gBAAgB;IAC/D,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACtC,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB;AAYD,iBAAS,kBAAkB,CAAC,KAAK,EAAE,MAAM,qBAiPxC;kBAjPQ,kBAAkB;;;AAqP3B,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -28,7 +28,7 @@ const defaultProps = {
|
|
|
28
28
|
autoUploadOnSelect: false,
|
|
29
29
|
isPrivate: false,
|
|
30
30
|
isIdea: false,
|
|
31
|
-
|
|
31
|
+
isSecureSupport: false,
|
|
32
32
|
};
|
|
33
33
|
function WidgetFileUploader(props) {
|
|
34
34
|
const { t } = useTranslation();
|
|
@@ -148,7 +148,7 @@ function WidgetFileUploader(props) {
|
|
|
148
148
|
});
|
|
149
149
|
return (React.createElement(Card, { id: "file-uploader-card", className: "file-diag pf-v6-u-mb-md", onPaste: handlePaste },
|
|
150
150
|
React.createElement(CardHeader, { "aria-label": t('File uploader') },
|
|
151
|
-
React.createElement("h3", { id: "file-uploader-title" }, props.isIdea ? React.createElement(Trans, null, "File uploader") : React.createElement(Trans, null, "Upload a file for Red Hat to analyze"))),
|
|
151
|
+
React.createElement("h3", { id: "file-uploader-title" }, props.isIdea || props.isSecureSupport ? (React.createElement(Trans, null, "File uploader")) : (React.createElement(Trans, null, "Upload a file for Red Hat to analyze")))),
|
|
152
152
|
React.createElement(CardBody, { "aria-label": t('File upload area'), className: "file-upload-body" },
|
|
153
153
|
React.createElement(WidgetFileSelector, { isSessionId: props.isSessionId, isPrivate: props.isPrivate, isIdea: props.isIdea, showFileExceed: fileExceedInfo }),
|
|
154
154
|
!hasSomeSelectedFiles(selectedLocalFiles) ? ((!props.isIdea && props.helperText) || (React.createElement("p", { className: "pf-v6-u-mt-md" },
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
interface IProps extends React.HTMLProps<HTMLButtonElement> {
|
|
3
3
|
isSessionId: boolean;
|
|
4
4
|
isPrivate?: boolean;
|
|
5
|
-
buttonLabel?:
|
|
5
|
+
buttonLabel?: string;
|
|
6
6
|
isDisabled?: boolean;
|
|
7
7
|
}
|
|
8
8
|
declare function FileSelectorButton({ isSessionId, id, className, buttonLabel, isPrivate, isDisabled, ...btnProps }: IProps): React.JSX.Element;
|