@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
package/lib/esm/css/case.css
CHANGED
|
@@ -83,7 +83,198 @@ button,
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
.support-comment.comment-automated {
|
|
86
|
-
border-left: 4px solid #
|
|
86
|
+
border-left: 4px solid #006d8c;
|
|
87
|
+
padding: 24px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.support-comment.comment-automated header {
|
|
91
|
+
align-items: center;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.support-comment.comment-automated header h4 {
|
|
95
|
+
display: flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
gap: 8px;
|
|
98
|
+
font-size: 18px;
|
|
99
|
+
font-weight: 500;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.support-comment.comment-automated .asa-comment-author-icon {
|
|
103
|
+
width: 1rem;
|
|
104
|
+
height: 1rem;
|
|
105
|
+
flex-shrink: 0;
|
|
106
|
+
font-weight: bold;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.support-comment.comment-automated .asa-comment-alert.pf-v6-c-alert {
|
|
110
|
+
margin-top: 16px;
|
|
111
|
+
padding: 16px;
|
|
112
|
+
background-color: #fff;
|
|
113
|
+
border: 2px solid #5e40be;
|
|
114
|
+
border-radius: 16px;
|
|
115
|
+
box-shadow: none;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.support-comment.comment-automated .asa-comment-alert.pf-v6-c-alert::before {
|
|
119
|
+
display: none;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.support-comment.comment-automated .asa-comment-alert .pf-v6-c-alert__icon {
|
|
123
|
+
color: #5e40be;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.support-comment.comment-automated .asa-comment-alert .pf-v6-c-alert__title {
|
|
127
|
+
font-weight: 600;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.support-comment.comment-automated .asa-comment-alert .pf-v6-c-alert__description {
|
|
131
|
+
margin-top: 4px;
|
|
132
|
+
padding-block-start: 0;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.support-comment.comment-automated .asa-comment-alert .pf-v6-c-alert__description p {
|
|
136
|
+
margin: 0;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.support-comment.comment-automated .asa-comment-alert .pf-v6-c-alert__action-group {
|
|
140
|
+
margin-top: 8px;
|
|
141
|
+
padding-block-start: 0;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.asa-send-feedback-link,
|
|
145
|
+
.asa-send-feedback-link.pf-v6-c-button,
|
|
146
|
+
.asa-send-feedback-link.pf-v6-c-button.pf-m-link,
|
|
147
|
+
.asa-send-feedback-link .pf-v6-c-button__text,
|
|
148
|
+
.support-comment.comment-automated .asa-comment-alert .pf-v6-c-alert__action-group .pf-v6-c-button,
|
|
149
|
+
.support-comment.comment-automated .asa-comment-alert .pf-v6-c-alert__action-group .pf-v6-c-button__text {
|
|
150
|
+
text-decoration: none;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.asa-send-feedback-link:hover,
|
|
154
|
+
.asa-send-feedback-link:focus,
|
|
155
|
+
.asa-send-feedback-link.pf-v6-c-button:hover,
|
|
156
|
+
.asa-send-feedback-link.pf-v6-c-button:focus,
|
|
157
|
+
.asa-send-feedback-link:hover .pf-v6-c-button__text,
|
|
158
|
+
.asa-send-feedback-link:focus .pf-v6-c-button__text,
|
|
159
|
+
.support-comment.comment-automated .asa-comment-alert .pf-v6-c-alert__action-group .pf-v6-c-button:hover,
|
|
160
|
+
.support-comment.comment-automated .asa-comment-alert .pf-v6-c-alert__action-group .pf-v6-c-button:focus {
|
|
161
|
+
text-decoration: none;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.asa-comment-feedback-modal,
|
|
165
|
+
#asa-comment-feedback-modal {
|
|
166
|
+
font-size: 14px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.asa-comment-feedback-modal .pf-v6-c-modal-box__close,
|
|
170
|
+
#asa-comment-feedback-modal .pf-v6-c-modal-box__close {
|
|
171
|
+
display: none;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.asa-comment-feedback-modal-title-row {
|
|
175
|
+
display: flex;
|
|
176
|
+
align-items: flex-start;
|
|
177
|
+
justify-content: space-between;
|
|
178
|
+
gap: 16px;
|
|
179
|
+
width: 100%;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.asa-comment-feedback-modal-close.pf-v6-c-button,
|
|
183
|
+
.asa-comment-feedback-modal-close.pf-v6-c-button.pf-m-plain,
|
|
184
|
+
.asa-comment-feedback-modal-close.pf-v6-c-button:hover,
|
|
185
|
+
.asa-comment-feedback-modal-close.pf-v6-c-button:focus,
|
|
186
|
+
.asa-comment-feedback-modal-close.pf-v6-c-button:active {
|
|
187
|
+
background: transparent;
|
|
188
|
+
background-color: transparent;
|
|
189
|
+
box-shadow: none;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.asa-comment-feedback-modal .asa-comment-feedback-modal-title,
|
|
193
|
+
#asa-comment-feedback-modal .asa-comment-feedback-modal-title {
|
|
194
|
+
font-size: 24px;
|
|
195
|
+
font-weight: 600;
|
|
196
|
+
line-height: 1.3;
|
|
197
|
+
margin: 0;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.asa-comment-feedback-modal .asa-comment-feedback-modal-description,
|
|
201
|
+
.asa-comment-feedback-modal .pf-v6-c-form__label,
|
|
202
|
+
.asa-comment-feedback-modal .pf-v6-c-form__label-text,
|
|
203
|
+
.asa-comment-feedback-modal .asa-feedback-rating-option,
|
|
204
|
+
.asa-comment-feedback-modal .pf-v6-c-form-control,
|
|
205
|
+
.asa-comment-feedback-modal textarea,
|
|
206
|
+
.asa-comment-feedback-modal .asa-feedback-privacy,
|
|
207
|
+
.asa-comment-feedback-modal .pf-v6-c-button,
|
|
208
|
+
#asa-comment-feedback-modal .asa-comment-feedback-modal-description,
|
|
209
|
+
#asa-comment-feedback-modal .pf-v6-c-form__label,
|
|
210
|
+
#asa-comment-feedback-modal .pf-v6-c-form__label-text,
|
|
211
|
+
#asa-comment-feedback-modal .asa-feedback-rating-option,
|
|
212
|
+
#asa-comment-feedback-modal .pf-v6-c-form-control,
|
|
213
|
+
#asa-comment-feedback-modal textarea,
|
|
214
|
+
#asa-comment-feedback-modal .asa-feedback-privacy,
|
|
215
|
+
#asa-comment-feedback-modal .pf-v6-c-button {
|
|
216
|
+
font-size: 14px;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.asa-comment-feedback-modal .asa-comment-feedback-modal-description,
|
|
220
|
+
#asa-comment-feedback-modal .asa-comment-feedback-modal-description {
|
|
221
|
+
margin-bottom: 1rem;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.asa-comment-feedback-modal .asa-feedback-privacy {
|
|
225
|
+
color: #151515;
|
|
226
|
+
line-height: 21px;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.asa-comment-feedback-modal .asa-feedback-rating-option {
|
|
230
|
+
background-color: #fff;
|
|
231
|
+
color: #151515;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.asa-comment-feedback-modal .asa-feedback-rating-option .pf-v6-c-icon,
|
|
235
|
+
.asa-comment-feedback-modal .asa-feedback-rating-option svg {
|
|
236
|
+
color: #151515;
|
|
237
|
+
fill: currentColor;
|
|
238
|
+
background: transparent;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.support-comment.comment-automated .comment-body {
|
|
242
|
+
margin-top: 16px;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.support-comment.comment-automated .comment-body > .push-top-narrow {
|
|
246
|
+
margin-top: 0;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.asa-feedback-rating-options {
|
|
250
|
+
display: flex;
|
|
251
|
+
gap: 16px;
|
|
252
|
+
width: 100%;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.asa-feedback-rating-option {
|
|
256
|
+
flex: 1;
|
|
257
|
+
display: flex;
|
|
258
|
+
flex-direction: column;
|
|
259
|
+
align-items: center;
|
|
260
|
+
justify-content: center;
|
|
261
|
+
gap: 8px;
|
|
262
|
+
padding: 8px 16px;
|
|
263
|
+
border: 1px solid var(--pf-t--global--border--color--default, #e0e0e0);
|
|
264
|
+
border-radius: 6px;
|
|
265
|
+
background: transparent;
|
|
266
|
+
cursor: pointer;
|
|
267
|
+
color: inherit;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.asa-feedback-rating-option:hover,
|
|
271
|
+
.asa-feedback-rating-option:focus {
|
|
272
|
+
border-color: var(--pf-t--global--border--color--hover, #0066cc);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.asa-feedback-rating-option.is-selected {
|
|
276
|
+
border-color: var(--pf-t--global--border--color--clicked, #0066cc);
|
|
277
|
+
box-shadow: inset 0 0 0 1px var(--pf-t--global--border--color--clicked, #0066cc);
|
|
87
278
|
}
|
|
88
279
|
|
|
89
280
|
.support-comment.comment-external-tracker {
|
|
@@ -124,12 +315,11 @@ button,
|
|
|
124
315
|
}
|
|
125
316
|
|
|
126
317
|
.support-comment .comment-body ul {
|
|
127
|
-
list-style: '-
|
|
128
|
-
padding-left: 1.5em;
|
|
318
|
+
list-style: '-';
|
|
129
319
|
}
|
|
130
320
|
|
|
131
|
-
.support-comment .comment-body
|
|
132
|
-
|
|
321
|
+
.support-comment .comment-body blockquote {
|
|
322
|
+
border-left: 5px solid #c0c0c0 !important;
|
|
133
323
|
}
|
|
134
324
|
|
|
135
325
|
#case-description ul {
|
|
@@ -241,13 +431,7 @@ button,
|
|
|
241
431
|
}
|
|
242
432
|
|
|
243
433
|
.comment-body .attachment-download-btn {
|
|
244
|
-
--pf-v6-c-button--m-link--m-inline--TextDecorationLine: none;
|
|
245
|
-
--pf-v6-c-button--m-link--m-inline--hover--TextDecorationLine: none;
|
|
246
|
-
--pf-v6-c-button--TextDecorationLine: none;
|
|
247
|
-
--pf-v6-c-button--hover--TextDecorationLine: none;
|
|
248
434
|
padding: 0px 3px;
|
|
249
|
-
white-space: nowrap;
|
|
250
|
-
text-decoration: none;
|
|
251
435
|
}
|
|
252
436
|
|
|
253
437
|
.downshift input[disabled] + label {
|
|
@@ -322,28 +506,23 @@ button,
|
|
|
322
506
|
}
|
|
323
507
|
|
|
324
508
|
.case-comment-input-container {
|
|
509
|
+
display: -ms-flexbox;
|
|
325
510
|
display: flex;
|
|
326
|
-
align-items: center;
|
|
327
|
-
gap: 0.5rem;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
.case-comment-input-container .case-comment-search-input-wrapper {
|
|
331
511
|
position: relative;
|
|
332
|
-
flex: 1;
|
|
333
512
|
}
|
|
334
513
|
|
|
335
|
-
.case-comment-input-container
|
|
336
|
-
padding-right:
|
|
514
|
+
.case-comment-input-container input {
|
|
515
|
+
padding-right: 35px;
|
|
516
|
+
margin-right: 1rem;
|
|
337
517
|
}
|
|
338
518
|
|
|
339
519
|
.case-comment-input-container .clear-btn {
|
|
340
520
|
position: absolute;
|
|
341
|
-
top:
|
|
342
|
-
right:
|
|
343
|
-
transform: translateY(-50%);
|
|
521
|
+
top: 8px;
|
|
522
|
+
right: 92px;
|
|
344
523
|
font-size: 14px;
|
|
345
524
|
background-color: transparent;
|
|
346
|
-
padding: 0
|
|
525
|
+
padding: 0 1rem;
|
|
347
526
|
}
|
|
348
527
|
|
|
349
528
|
.ReactVirtualized__List:focus {
|
|
@@ -360,43 +539,6 @@ input[aria-invalid='true'].pf-v6-c-form-control {
|
|
|
360
539
|
padding-left: 1.5em;
|
|
361
540
|
}
|
|
362
541
|
|
|
363
|
-
.comment-body ol,
|
|
364
|
-
.markdown-preview ol {
|
|
365
|
-
padding-left: 1.5em;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
.comment-body .ql-align-center {
|
|
369
|
-
text-align: center;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
.comment-body .ql-align-right {
|
|
373
|
-
text-align: right;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
.comment-body .ql-align-justify {
|
|
377
|
-
text-align: justify;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
.comment-body .ql-indent-1 {
|
|
381
|
-
padding-left: 3em;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
.comment-body .ql-indent-2 {
|
|
385
|
-
padding-left: 6em;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
.comment-body .ql-indent-3 {
|
|
389
|
-
padding-left: 9em;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
.comment-body .ql-indent-4 {
|
|
393
|
-
padding-left: 12em;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
.comment-body .ql-indent-5 {
|
|
397
|
-
padding-left: 15em;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
542
|
.tab-title-with-badge {
|
|
401
543
|
display: flex;
|
|
402
544
|
align-items: center;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCaseUpdateErrorMessage.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCaseUpdateErrorMessage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCaseUpdateErrorMessage.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCaseUpdateErrorMessage.ts"],"names":[],"mappings":"AAIA,wBAAgB,yBAAyB;;EAaxC"}
|
|
@@ -1,27 +1,17 @@
|
|
|
1
|
-
import { formattedApiErrorMessage,
|
|
1
|
+
import { formattedApiErrorMessage, ToastNotification } from '@rh-support/components';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
|
+
// TO DO
|
|
3
4
|
export function useCaseUpdateErrorMessage() {
|
|
4
5
|
const { t } = useTranslation();
|
|
5
|
-
const showError = (e,
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
ToastNotification.addDangerMessage(errorMessage);
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
const directMessage = getDirectErrorMessage(e);
|
|
20
|
-
if (directMessage) {
|
|
21
|
-
ToastNotification.addDangerMessage(directMessage);
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
ToastNotification.addDangerMessage(fallbackMessage);
|
|
6
|
+
const showError = (e, message500) => {
|
|
7
|
+
const errorMessage = formattedApiErrorMessage(e, {
|
|
8
|
+
'500': { title: t('There was a problem with your request'), message: message500 },
|
|
9
|
+
'403': {
|
|
10
|
+
title: t('There was a problem with your request'),
|
|
11
|
+
message: t('You are not authorized to update this case.'),
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
ToastNotification.addDangerMessage(errorMessage);
|
|
25
15
|
};
|
|
26
16
|
return { showError };
|
|
27
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useResetCaseCreate.d.ts","sourceRoot":"","sources":["../../../src/hooks/useResetCaseCreate.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useResetCaseCreate.d.ts","sourceRoot":"","sources":["../../../src/hooks/useResetCaseCreate.tsx"],"names":[],"mappings":"AAqBA,wBAAgB,kBAAkB;;EA2CjC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { fetchLoggedInUser, fetchLoggedInUsersAccount, GlobalMetadataDispatchContext, GlobalMetadataStateContext, } from '@rh-support/react-context';
|
|
1
2
|
import { useContext } from 'react';
|
|
2
3
|
import { AttachmentDispatchContext, resetAttachment } from '../components/shared/fileUpload';
|
|
3
4
|
import { useCaseDispatch } from '../context/CaseContext';
|
|
@@ -6,6 +7,7 @@ import { useRecommendationDispatchContext } from '../context/RecommendationConte
|
|
|
6
7
|
import { RulesDispatchContext } from '../context/RulesContext';
|
|
7
8
|
import { TCDispatchContext } from '../context/TopContentContext';
|
|
8
9
|
import { CaseReducerConstants } from '../reducers/CaseConstNTypes';
|
|
10
|
+
import { setCaseAccountNumber, setCaseOwner } from '../reducers/CaseReducer';
|
|
9
11
|
import { resetClusterRecommendations } from '../reducers/ClusterRecommendationsReducer';
|
|
10
12
|
import { resetRecommendations } from '../reducers/RecommendationsReducer';
|
|
11
13
|
import { resetEARules } from '../reducers/RulesReducer';
|
|
@@ -15,31 +17,22 @@ export function useResetCaseCreate() {
|
|
|
15
17
|
const tcDispatch = useContext(TCDispatchContext);
|
|
16
18
|
const recommendationsDispatch = useRecommendationDispatchContext();
|
|
17
19
|
const caseDispatch = useCaseDispatch();
|
|
20
|
+
const dispatchToGlobalMetadataReducer = useContext(GlobalMetadataDispatchContext);
|
|
18
21
|
const rulesDispatch = useContext(RulesDispatchContext);
|
|
19
22
|
const clusterRecommendationsDispatch = useContext(ClusterRecommendationsDispatchContext);
|
|
23
|
+
const { globalMetadataState: { loggedInUsersAccount, loggedInUserRights, loggedInUserJwtToken }, } = useContext(GlobalMetadataStateContext);
|
|
20
24
|
const resetCaseCreateState = () => {
|
|
21
|
-
//
|
|
22
|
-
|
|
25
|
+
// On case creation we refetch the user contact details to get users updated phone number
|
|
26
|
+
fetchLoggedInUser(dispatchToGlobalMetadataReducer, loggedInUserJwtToken, {});
|
|
23
27
|
resetAttachment(dispatchToAttachmentReducer);
|
|
24
28
|
resetTopContent(tcDispatch);
|
|
25
29
|
resetRecommendations(recommendationsDispatch);
|
|
26
30
|
caseDispatch({ type: CaseReducerConstants.resetCaseState });
|
|
27
|
-
//
|
|
28
|
-
//
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
// loggedInUserRights.data.getHydraContactFromLoggedInUser(),
|
|
33
|
-
// '',
|
|
34
|
-
// undefined,
|
|
35
|
-
// undefined,
|
|
36
|
-
// true,
|
|
37
|
-
// undefined,
|
|
38
|
-
// true,
|
|
39
|
-
// undefined,
|
|
40
|
-
// undefined,
|
|
41
|
-
// loggedInUserRights.data.isInternal() ? loggedInUserRights.data.getAccountNumber() : undefined
|
|
42
|
-
// );
|
|
31
|
+
// on case creation we refetch the account details to check if user still has all valid
|
|
32
|
+
// access for next case creation. For ex. may be user has exhausted his available enhanced sla limit
|
|
33
|
+
fetchLoggedInUsersAccount(dispatchToGlobalMetadataReducer, loggedInUserJwtToken, true);
|
|
34
|
+
setCaseAccountNumber(caseDispatch, loggedInUserRights.data.getAccountNumber(), true, loggedInUsersAccount.data);
|
|
35
|
+
setCaseOwner(caseDispatch, loggedInUserRights.data.getHydraContactFromLoggedInUser(), '', undefined, undefined, true, undefined, true, undefined, undefined, loggedInUserRights.data.isInternal() ? loggedInUserRights.data.getAccountNumber() : undefined);
|
|
43
36
|
resetEARules(rulesDispatch);
|
|
44
37
|
resetClusterRecommendations(clusterRecommendationsDispatch);
|
|
45
38
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
file: File;
|
|
1
|
+
export declare function useS3Upload(idToUploadTo: any, isSecureSupport: any): {
|
|
2
|
+
uploadFile: ({ file, description, isPrivate, listenerFn }: {
|
|
3
|
+
file: any;
|
|
5
4
|
description?: string;
|
|
6
5
|
isPrivate?: boolean;
|
|
7
|
-
listenerFn?: (percent:
|
|
6
|
+
listenerFn?: (percent: any, abort: any) => void;
|
|
8
7
|
}) => Promise<string>;
|
|
9
8
|
isUploadingFile: boolean;
|
|
10
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useS3Upload.d.ts","sourceRoot":"","sources":["../../../src/hooks/useS3Upload.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useS3Upload.d.ts","sourceRoot":"","sources":["../../../src/hooks/useS3Upload.ts"],"names":[],"mappings":"AASA,wBAAgB,WAAW,CAAC,YAAY,KAAA,EAAE,eAAe,KAAA;;;;;;;;EA0ExD"}
|
|
@@ -7,15 +7,14 @@ 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 { fetchCaseDetailsByCaseNumber, pollAttachmentUploadStatus, uploadCaseAttachment, } from '@rh-support/utils';
|
|
10
|
+
import { caseAttachments } from '@cee-eng/hydrajs';
|
|
11
|
+
import { ToastNotification, useFetch } from '@rh-support/components';
|
|
13
12
|
import { useTranslation } from 'react-i18next';
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
export function useS3Upload(idToUploadTo, isSecureSupport) {
|
|
14
|
+
const { request, isFetching: isUploadingFile } = useFetch(caseAttachments.uploadAttachmentS3, {
|
|
15
|
+
propgateErrors: true,
|
|
16
|
+
});
|
|
17
17
|
const { t } = useTranslation();
|
|
18
|
-
const { globalMetadataState: { loggedInUsersAccount }, } = useGlobalStateContext();
|
|
19
18
|
const getFileAccessDetails = (file) => __awaiter(this, void 0, void 0, function* () {
|
|
20
19
|
const fileName = (file === null || file === void 0 ? void 0 : file.name) || '';
|
|
21
20
|
if (file.size === 0) {
|
|
@@ -24,12 +23,12 @@ export function useS3Upload(caseNumber, apolloClient, caseSalesforceId) {
|
|
|
24
23
|
const reader = new FileReader();
|
|
25
24
|
return new Promise((resolve, reject) => {
|
|
26
25
|
reader.onloadend = () => resolve({ ableToUpload: true, ableToUploadMessage: 'File attached, but not yet uploaded' });
|
|
27
|
-
reader.onerror = () => reject({ ableToUpload: false, ableToUploadMessage: `${fileName} ${t("Can't be selected")}` });
|
|
26
|
+
reader.onerror = (ev) => reject({ ableToUpload: false, ableToUploadMessage: `${fileName} ${t("Can't be selected")}` });
|
|
27
|
+
// only read the first 10 bytes. readAsBinaryString is not supported in IE 11
|
|
28
28
|
reader.readAsArrayBuffer(file.slice(0, 10));
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
|
-
const uploadFile = (_a) => __awaiter(this, [_a], void 0, function* ({ file, description = '', isPrivate = false, listenerFn = (
|
|
32
|
-
var _b;
|
|
31
|
+
const uploadFile = (_a) => __awaiter(this, [_a], void 0, function* ({ file, description = '', isPrivate = false, listenerFn = (percent, abort) => { } }) {
|
|
33
32
|
try {
|
|
34
33
|
yield getFileAccessDetails(file);
|
|
35
34
|
}
|
|
@@ -39,30 +38,33 @@ export function useS3Upload(caseNumber, apolloClient, caseSalesforceId) {
|
|
|
39
38
|
return;
|
|
40
39
|
}
|
|
41
40
|
}
|
|
41
|
+
const listener = (progress, abort) => {
|
|
42
|
+
const decimal = progress.loaded / progress.total;
|
|
43
|
+
const percent = decimal * 100;
|
|
44
|
+
// const verifyingUpdate = decimal === 1;
|
|
45
|
+
const currentUploadProgress = Math.floor(percent);
|
|
46
|
+
// Forwarding abort single to parent callback function
|
|
47
|
+
listenerFn(currentUploadProgress, abort);
|
|
48
|
+
};
|
|
49
|
+
const putObjectRequest = {
|
|
50
|
+
Body: file, // use the original file for upload
|
|
51
|
+
ContentLength: file.size,
|
|
52
|
+
Metadata: Object.assign(Object.assign(Object.assign(Object.assign({}, (description && { 'x-amz-meta-description': description })), (file.name && { 'x-amz-meta-fileName': file.name })), (file.size && { 'x-amz-meta-byteLength': file.size.toString() })), (file.type && { 'x-amz-meta-content-type': file.type })),
|
|
53
|
+
};
|
|
42
54
|
try {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const caseDetails = yield fetchCaseDetailsByCaseNumber(apolloClient, caseNumber, Boolean((_b = loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data) === null || _b === void 0 ? void 0 : _b.secureSupport));
|
|
50
|
-
resolvedCaseSalesforceId = caseDetails === null || caseDetails === void 0 ? void 0 : caseDetails.id;
|
|
51
|
-
}
|
|
52
|
-
if (apolloClient && resolvedCaseSalesforceId) {
|
|
53
|
-
yield pollAttachmentUploadStatus(apolloClient, resolvedCaseSalesforceId, attachmentId);
|
|
54
|
-
}
|
|
55
|
+
const attachmentId = yield request(idToUploadTo, {
|
|
56
|
+
description: description,
|
|
57
|
+
fileName: file.name,
|
|
58
|
+
isPrivate: isPrivate,
|
|
59
|
+
size: file.size,
|
|
60
|
+
}, putObjectRequest, listener, true, { partSize: 5 * 1024 * 1024, queueSize: 5 }, isSecureSupport);
|
|
55
61
|
return attachmentId;
|
|
56
62
|
}
|
|
57
63
|
catch (error) {
|
|
58
64
|
if (error.message === 'Request aborted by user') {
|
|
59
|
-
|
|
65
|
+
// Show alert if needed
|
|
60
66
|
}
|
|
61
|
-
throw error;
|
|
62
67
|
}
|
|
63
68
|
});
|
|
64
|
-
return {
|
|
65
|
-
uploadFile,
|
|
66
|
-
isUploadingFile: false,
|
|
67
|
-
};
|
|
69
|
+
return { uploadFile, isUploadingFile };
|
|
68
70
|
}
|
|
@@ -137,7 +137,7 @@ declare const _default: {
|
|
|
137
137
|
'Exporting CSV': string;
|
|
138
138
|
'Could not export CSV': string;
|
|
139
139
|
'4 (Low)': string;
|
|
140
|
-
'3 (
|
|
140
|
+
'3 (Normal)': string;
|
|
141
141
|
'2 (High)': string;
|
|
142
142
|
'1 (Urgent)': string;
|
|
143
143
|
'Saved for later': string;
|
|
@@ -533,7 +533,7 @@ declare const _default: {
|
|
|
533
533
|
STANDARD: string;
|
|
534
534
|
PREMIUM: string;
|
|
535
535
|
'4 (Low) - 2 business days': string;
|
|
536
|
-
'3 (
|
|
536
|
+
'3 (Normal) - 1 business day': string;
|
|
537
537
|
'2 (High) - 4 business hours': string;
|
|
538
538
|
'1 (Urgent) - 1 business hour': string;
|
|
539
539
|
'Loading...': string;
|
|
@@ -137,7 +137,7 @@ export default {
|
|
|
137
137
|
'Exporting CSV': 'CSV wird exportiert',
|
|
138
138
|
'Could not export CSV': 'CSV nicht exportiert',
|
|
139
139
|
'4 (Low)': '4 (Niedrig)',
|
|
140
|
-
'3 (
|
|
140
|
+
'3 (Normal)': '3 (Normal)',
|
|
141
141
|
'2 (High)': '2 (Hoch)',
|
|
142
142
|
'1 (Urgent)': '1 (Dringend)',
|
|
143
143
|
'Saved for later': 'Gespeichert für später',
|
|
@@ -533,7 +533,7 @@ export default {
|
|
|
533
533
|
STANDARD: 'STANDARD',
|
|
534
534
|
PREMIUM: 'PREMIUM',
|
|
535
535
|
'4 (Low) - 2 business days': '4 (Niedrig) – 2 Werktage',
|
|
536
|
-
'3 (
|
|
536
|
+
'3 (Normal) - 1 business day': '3 (Normal) – 1 Werktag',
|
|
537
537
|
'2 (High) - 4 business hours': '2 (Hoch) – 4 Geschäftsstunden',
|
|
538
538
|
'1 (Urgent) - 1 business hour': '1 (Dringend) – 1 Geschäftsstunde',
|
|
539
539
|
'Loading...': 'Laden...',
|
|
@@ -138,7 +138,7 @@ declare const _default: {
|
|
|
138
138
|
'Exporting CSV': string;
|
|
139
139
|
'Could not export CSV': string;
|
|
140
140
|
'4 (Low)': string;
|
|
141
|
-
'3 (
|
|
141
|
+
'3 (Normal)': string;
|
|
142
142
|
'2 (High)': string;
|
|
143
143
|
'1 (Urgent)': string;
|
|
144
144
|
'Saved for later': string;
|
|
@@ -534,7 +534,7 @@ declare const _default: {
|
|
|
534
534
|
STANDARD: string;
|
|
535
535
|
PREMIUM: string;
|
|
536
536
|
'4 (Low) - 2 business days': string;
|
|
537
|
-
'3 (
|
|
537
|
+
'3 (Normal) - 1 business day': string;
|
|
538
538
|
'2 (High) - 4 business hours': string;
|
|
539
539
|
'1 (Urgent) - 1 business hour': string;
|
|
540
540
|
'Loading...': string;
|
|
@@ -138,7 +138,7 @@ export default {
|
|
|
138
138
|
'Exporting CSV': 'Exportación de CSV',
|
|
139
139
|
'Could not export CSV': 'No pudo exportar el CSV',
|
|
140
140
|
'4 (Low)': '4 (bajo)',
|
|
141
|
-
'3 (
|
|
141
|
+
'3 (Normal)': '3 (Normal)',
|
|
142
142
|
'2 (High)': '2 (alto)',
|
|
143
143
|
'1 (Urgent)': '1 (urgente)',
|
|
144
144
|
'Saved for later': 'Guardado para más tarde',
|
|
@@ -534,7 +534,7 @@ export default {
|
|
|
534
534
|
STANDARD: 'STANDARD',
|
|
535
535
|
PREMIUM: 'PREMIUM',
|
|
536
536
|
'4 (Low) - 2 business days': '4 (Bajo) - 2 días hábiles',
|
|
537
|
-
'3 (
|
|
537
|
+
'3 (Normal) - 1 business day': '3 (Normal) - 1 día hábil',
|
|
538
538
|
'2 (High) - 4 business hours': '2 (Alto) - 4 horas de trabajo',
|
|
539
539
|
'1 (Urgent) - 1 business hour': '1 (Urgente) - 1 hora de trabajo',
|
|
540
540
|
'Loading...': 'Cargando...',
|
|
@@ -138,7 +138,7 @@ declare const _default: {
|
|
|
138
138
|
'Exporting CSV': string;
|
|
139
139
|
'Could not export CSV': string;
|
|
140
140
|
'4 (Low)': string;
|
|
141
|
-
'3 (
|
|
141
|
+
'3 (Normal)': string;
|
|
142
142
|
'2 (High)': string;
|
|
143
143
|
'1 (Urgent)': string;
|
|
144
144
|
'Saved for later': string;
|
|
@@ -533,7 +533,7 @@ declare const _default: {
|
|
|
533
533
|
STANDARD: string;
|
|
534
534
|
PREMIUM: string;
|
|
535
535
|
'4 (Low) - 2 business days': string;
|
|
536
|
-
'3 (
|
|
536
|
+
'3 (Normal) - 1 business day': string;
|
|
537
537
|
'2 (High) - 4 business hours': string;
|
|
538
538
|
'1 (Urgent) - 1 business hour': string;
|
|
539
539
|
'Loading...': string;
|
|
@@ -138,7 +138,7 @@ export default {
|
|
|
138
138
|
'Exporting CSV': 'Exportation de CSV',
|
|
139
139
|
'Could not export CSV': 'N’a pas pu exporter CSV',
|
|
140
140
|
'4 (Low)': '4 (faible)',
|
|
141
|
-
'3 (
|
|
141
|
+
'3 (Normal)': '3 (normal)',
|
|
142
142
|
'2 (High)': '2 (élevé)',
|
|
143
143
|
'1 (Urgent)': '1 (urgent)',
|
|
144
144
|
'Saved for later': 'Sauvegardé pour plus tard',
|
|
@@ -534,7 +534,7 @@ export default {
|
|
|
534
534
|
STANDARD: 'STANDARD',
|
|
535
535
|
PREMIUM: 'PREMIUM',
|
|
536
536
|
'4 (Low) - 2 business days': '4 (faible) - 2 jours ouvrables',
|
|
537
|
-
'3 (
|
|
537
|
+
'3 (Normal) - 1 business day': '3 (normal) - 1 jour ouvrable',
|
|
538
538
|
'2 (High) - 4 business hours': '2 (élevé) - 4 heures ouvrables',
|
|
539
539
|
'1 (Urgent) - 1 business hour': '1 (Urgent) - 1 heure ouvrable',
|
|
540
540
|
'Loading...': 'Chargement...',
|
|
@@ -138,7 +138,7 @@ declare const _default: {
|
|
|
138
138
|
'Exporting CSV': string;
|
|
139
139
|
'Could not export CSV': string;
|
|
140
140
|
'4 (Low)': string;
|
|
141
|
-
'3 (
|
|
141
|
+
'3 (Normal)': string;
|
|
142
142
|
'2 (High)': string;
|
|
143
143
|
'1 (Urgent)': string;
|
|
144
144
|
'Saved for later': string;
|
|
@@ -534,7 +534,7 @@ declare const _default: {
|
|
|
534
534
|
STANDARD: string;
|
|
535
535
|
PREMIUM: string;
|
|
536
536
|
'4 (Low) - 2 business days': string;
|
|
537
|
-
'3 (
|
|
537
|
+
'3 (Normal) - 1 business day': string;
|
|
538
538
|
'2 (High) - 4 business hours': string;
|
|
539
539
|
'1 (Urgent) - 1 business hour': string;
|
|
540
540
|
'Loading...': string;
|