@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
|
@@ -18,19 +18,14 @@ const NoClusterIDReasonSelector = (props) => {
|
|
|
18
18
|
const globalDispatch = useGlobalDispatchContext();
|
|
19
19
|
const { globalMetadataState: { caseNoClusterIdReasons }, } = useContext(GlobalMetadataStateContext);
|
|
20
20
|
const { isExportingPDF } = useContext(PDFContext);
|
|
21
|
-
useEffect(() => {
|
|
22
|
-
setInputValue(props.noClusterIdReasonExplanation || '');
|
|
23
|
-
}, [props.noClusterIdReasonExplanation]);
|
|
24
21
|
const caseNoClusterIdReasonsList = props.isCustomer
|
|
25
22
|
? filter(caseNoClusterIdReasons.data, (item) => item !==
|
|
26
23
|
'I am opening a case on behalf of the customer and cannot provide their Cluster ID at this time')
|
|
27
24
|
: caseNoClusterIdReasons.data;
|
|
28
25
|
const clearSelection = () => {
|
|
29
|
-
var _a, _b;
|
|
30
26
|
setNotRegistered(false);
|
|
31
27
|
setInputValue('');
|
|
32
|
-
|
|
33
|
-
(_b = props.onReasonInputBoxChanged) === null || _b === void 0 ? void 0 : _b.call(props, '');
|
|
28
|
+
props.onReasonInputBoxChanged('');
|
|
34
29
|
props.onReasonChange('');
|
|
35
30
|
};
|
|
36
31
|
const handleReasonChange = (option) => {
|
|
@@ -42,24 +37,10 @@ const NoClusterIDReasonSelector = (props) => {
|
|
|
42
37
|
}
|
|
43
38
|
};
|
|
44
39
|
const handleInputChange = (_event, value) => {
|
|
45
|
-
var _a;
|
|
46
40
|
const cleaned = value.trim().length === 0 ? '' : value;
|
|
47
41
|
setInputValue(cleaned);
|
|
48
42
|
setHasLargeReasonExplanation(cleaned.length > SESSION_NO_CLUSTER_REASON_LENGTH_LIMIT);
|
|
49
|
-
|
|
50
|
-
(_a = props.onReasonInputBoxChanged) === null || _a === void 0 ? void 0 : _a.call(props, cleaned);
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
const handleInputBlur = () => {
|
|
54
|
-
var _a;
|
|
55
|
-
const cleaned = (inputValue || '').trim();
|
|
56
|
-
setInputValue(cleaned);
|
|
57
|
-
setHasLargeReasonExplanation(cleaned.length > SESSION_NO_CLUSTER_REASON_LENGTH_LIMIT);
|
|
58
|
-
if (props.onReasonInputBoxBlur) {
|
|
59
|
-
props.onReasonInputBoxBlur(cleaned);
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
(_a = props.onReasonInputBoxChanged) === null || _a === void 0 ? void 0 : _a.call(props, cleaned);
|
|
43
|
+
props.onReasonInputBoxChanged(cleaned);
|
|
63
44
|
};
|
|
64
45
|
const getDropdownOptions = () => {
|
|
65
46
|
return map(caseNoClusterIdReasonsList || [], (option) => ({
|
|
@@ -104,7 +85,7 @@ const NoClusterIDReasonSelector = (props) => {
|
|
|
104
85
|
React.createElement(SingleSelectDropdown, { placeholder: t('Select an option or briefly describe your reason'), dataTrackingId: "no-openshift-cluster-id-reason", options: getDropdownOptions(), selected: getSelectedOption(), isDisabled: caseNoClusterIdReasons.isFetching || props.isDisabled, isLoading: caseNoClusterIdReasons.isFetching, isInvalid: props.isInValid, onSelect: handleReasonChange, "aria-labelledby": titleId, "aria-invalid": props.isInValid, "aria-describedby": "validate-reason-helper" })),
|
|
105
86
|
props.noClusterIdReason === 'Other' && (React.createElement("div", { className: "text-input-wrapper" },
|
|
106
87
|
React.createElement(TextInputGroup, null,
|
|
107
|
-
React.createElement(TextInput, { value: inputValue, onChange: handleInputChange,
|
|
88
|
+
React.createElement(TextInput, { value: inputValue, onChange: handleInputChange, placeholder: t('Briefly describe your reason'), "aria-label": t('Other reason description'), validated: hasLargeReasonExplanation ? ValidatedOptions.error : ValidatedOptions.default }))))),
|
|
108
89
|
React.createElement(LoadingIndicator, { show: caseNoClusterIdReasons.isFetching, size: "xs" }),
|
|
109
90
|
React.createElement("p", { id: "validate-reason-helper", className: `form-instructions ${props.isInValid ? 'form-invalid' : ''}` }, notRegistered ? (registerMyClusterID()) : hasLargeReasonExplanation ? (React.createElement("span", { className: "form-instructions form-invalid pf-v6-u-danger-color-100 no-cluster-ID" }, t(`This reason exceeds ${SESSION_NO_CLUSTER_REASON_LENGTH_LIMIT} characters. Try shortening it.`))) : (React.createElement(React.Fragment, null,
|
|
110
91
|
props.isInValid && React.createElement(ExclamationCircleIcon, { color: "#c9190b", className: "pf-v6-u-mr-sm" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenShiftClusterId.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenShiftClusterId.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAuB/D,eAAO,MAAM,oBAAoB,yBAShC,CAAC;AAEF,eAAO,MAAM,uBAAuB,yBAInC,CAAC;AAEF,eAAO,MAAM,4BAA4B,yBAYxC,CAAC;AAEF,eAAO,MAAM,qBAAqB,yBAIjC,CAAC;AAEF,UAAU,MAAM;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"OpenShiftClusterId.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenShiftClusterId.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAuB/D,eAAO,MAAM,oBAAoB,yBAShC,CAAC;AAEF,eAAO,MAAM,uBAAuB,yBAInC,CAAC;AAEF,eAAO,MAAM,4BAA4B,yBAYxC,CAAC;AAEF,eAAO,MAAM,qBAAqB,yBAIjC,CAAC;AAEF,UAAU,MAAM;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,qBAmT/C"}
|
|
@@ -90,8 +90,8 @@ export function OpenShiftClusterId(props) {
|
|
|
90
90
|
if (isEmpty(product))
|
|
91
91
|
return;
|
|
92
92
|
const isClusterVisible = () => __awaiter(this, void 0, void 0, function* () {
|
|
93
|
-
var _a;
|
|
94
|
-
const hasCluster = yield isClusterIdEnabledForProduct(product);
|
|
93
|
+
var _a, _b;
|
|
94
|
+
const hasCluster = yield isClusterIdEnabledForProduct(product, (_a = allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult);
|
|
95
95
|
setShowClusterId(hasCluster);
|
|
96
96
|
if (!hasCluster) {
|
|
97
97
|
resetClusterData();
|
|
@@ -117,7 +117,7 @@ export function OpenShiftClusterId(props) {
|
|
|
117
117
|
setIsClusterIdInValid(false);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
const majorVersion = (
|
|
120
|
+
const majorVersion = (_b = getVersion(version)) === null || _b === void 0 ? void 0 : _b.major;
|
|
121
121
|
const isOpenShiftV3 = product === 'OpenShift Container Platform' && majorVersion === '3';
|
|
122
122
|
setShowV3TextBox(isOpenShiftV3);
|
|
123
123
|
if (isOpenShiftV3 || noClusterIdReasonExplanation === 'v3-cluster') {
|
|
@@ -207,23 +207,21 @@ export function OpenShiftClusterId(props) {
|
|
|
207
207
|
const infoMessage = v3Selected ? v3Tov4TransitionLink() : discoverV4ClusterIdLink();
|
|
208
208
|
return isNextBtnClickedToShowValidationError && errorMessage ? errorMessage : infoMessage;
|
|
209
209
|
};
|
|
210
|
-
const onReasonExplanationInputBoxChanged = (
|
|
210
|
+
const onReasonExplanationInputBoxChanged = (noClusterIdReasonExplanation) => {
|
|
211
211
|
if (noClusterIdReason === 'Other') {
|
|
212
|
-
|
|
213
|
-
setCaseDetails(caseDispatch, { noClusterIdReasonExplanation: explanation, description });
|
|
212
|
+
setCaseDetails(caseDispatch, { noClusterIdReasonExplanation: noClusterIdReasonExplanation });
|
|
214
213
|
}
|
|
215
214
|
};
|
|
216
215
|
const v3ClusterNameInputBoxChanged = (v3Cluster) => {
|
|
217
216
|
const v3ClusterName = product === 'OpenShift Container Platform' && version !== '3.11' && isEmpty(v3Cluster.trim())
|
|
218
217
|
? ''
|
|
219
218
|
: v3Cluster;
|
|
220
|
-
const description = getUpdatedDescription(issue, environment, periodicityOfIssue, timeFramesAndUrgency, v3ClusterName, product, version
|
|
219
|
+
const description = getUpdatedDescription(issue, environment, periodicityOfIssue, timeFramesAndUrgency, v3ClusterName, product, version);
|
|
221
220
|
setCaseState(caseDispatch, { v3ClusterName });
|
|
222
221
|
setCaseDetails(caseDispatch, { description });
|
|
223
222
|
};
|
|
224
223
|
const onReasonChange = (reason) => {
|
|
225
|
-
|
|
226
|
-
setCaseDetails(caseDispatch, { noClusterIdReason: reason, description });
|
|
224
|
+
setCaseDetails(caseDispatch, { noClusterIdReason: reason });
|
|
227
225
|
};
|
|
228
226
|
const isInVaidNoClusterIdReason = isNextBtnClickedToShowValidationError &&
|
|
229
227
|
(isEmpty(noClusterIdReason) ||
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenshiftDropdownV4.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenshiftDropdownV4.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAgB5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAI5D,OAAO,KAA2D,MAAM,OAAO,CAAC;AAOhF,UAAU,MAAO,SAAQ,gBAAgB;IACrC,uBAAuB,EAAE,MAAM,CAAC;IAChC,sBAAsB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzF,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iCAAiC,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAChD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,uBAAuB,CAAC,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI,CAAC;CAC3C;AAsBD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"OpenshiftDropdownV4.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenshiftDropdownV4.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAgB5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAI5D,OAAO,KAA2D,MAAM,OAAO,CAAC;AAOhF,UAAU,MAAO,SAAQ,gBAAgB;IACrC,uBAAuB,EAAE,MAAM,CAAC;IAChC,sBAAsB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzF,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iCAAiC,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAChD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,uBAAuB,CAAC,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI,CAAC;CAC3C;AAsBD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,qBAsfzC;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -37,18 +37,6 @@ function OpenshiftDropdownV4(props) {
|
|
|
37
37
|
const { t } = useTranslation();
|
|
38
38
|
const PER_PAGE = 200;
|
|
39
39
|
const LOAD_MORE_VALUE = 'loader';
|
|
40
|
-
const getDisplayName = (id, noClusterIdReasonExplanation, display_name) => {
|
|
41
|
-
if (isEmpty(id))
|
|
42
|
-
return '';
|
|
43
|
-
if (id === 'dont-have-id') {
|
|
44
|
-
return noClusterIdReasonExplanation === 'v3-cluster'
|
|
45
|
-
? t('The case is for a v3 cluster')
|
|
46
|
-
: t("I don't have my Cluster ID");
|
|
47
|
-
}
|
|
48
|
-
if (id === 'v3-cluster')
|
|
49
|
-
return t('The case is for a v3 cluster');
|
|
50
|
-
return display_name || id;
|
|
51
|
-
};
|
|
52
40
|
const [clustersRawResponse, setClustersRawResponse] = useState([]);
|
|
53
41
|
const clustersRawResponseRef = useRef(clustersRawResponse);
|
|
54
42
|
clustersRawResponseRef.current = clustersRawResponse;
|
|
@@ -56,7 +44,7 @@ function OpenshiftDropdownV4(props) {
|
|
|
56
44
|
const loadMoreInProgressRef = useRef(false);
|
|
57
45
|
const [clustersSelectOptions, setClustersSelectOptions] = useState([]);
|
|
58
46
|
const [isOpen, setIsOpen] = useState(false);
|
|
59
|
-
const [inputVal, setInputVal] = useState(
|
|
47
|
+
const [inputVal, setInputVal] = useState(props.openshiftDisplayName);
|
|
60
48
|
const inputValRef = useRef(inputVal);
|
|
61
49
|
inputValRef.current = inputVal;
|
|
62
50
|
const [showArchivedClusters, setShowArchivedClusters] = useState(false);
|
|
@@ -65,6 +53,19 @@ function OpenshiftDropdownV4(props) {
|
|
|
65
53
|
const { getFromCache, setInCache } = useLRUCache(50);
|
|
66
54
|
const textInputRef = useRef();
|
|
67
55
|
const { isExportingPDF } = useContext(PDFContext);
|
|
56
|
+
// gets a cluster id and returns display name
|
|
57
|
+
const getDisplayName = (id, noClusterIdReasonExplanation, display_name) => {
|
|
58
|
+
if (isEmpty(id))
|
|
59
|
+
return '';
|
|
60
|
+
if (id === 'dont-have-id') {
|
|
61
|
+
return noClusterIdReasonExplanation === 'v3-cluster'
|
|
62
|
+
? t('The case is for a v3 cluster')
|
|
63
|
+
: t("I don't have my Cluster ID");
|
|
64
|
+
}
|
|
65
|
+
if (id === 'v3-cluster')
|
|
66
|
+
return t('The case is for a v3 cluster');
|
|
67
|
+
return display_name || id;
|
|
68
|
+
};
|
|
68
69
|
const onDropdownClear = () => __awaiter(this, void 0, void 0, function* () {
|
|
69
70
|
setIsOpen(false);
|
|
70
71
|
setInputVal('');
|
|
@@ -223,14 +224,17 @@ function OpenshiftDropdownV4(props) {
|
|
|
223
224
|
}
|
|
224
225
|
else {
|
|
225
226
|
if (abortControllerRef.current !== undefined) {
|
|
227
|
+
// Cancel the previous request
|
|
226
228
|
abortControllerRef.current.abort();
|
|
227
229
|
}
|
|
230
|
+
// recreate a new AbortController for each call
|
|
228
231
|
let controller = new AbortController();
|
|
229
232
|
abortControllerRef.current = controller;
|
|
230
233
|
const clusterStatus = ` AND status not in ('Deprovisioned'${!showArchivedClusters ? ",'Archived'" : ''})`;
|
|
231
234
|
const searchPhrase = search
|
|
232
235
|
? ` AND (external_cluster_id ILIKE '%${search}%' OR display_name ILIKE '%${search}%' OR console_url ILIKE '%${search}%')`
|
|
233
236
|
: '';
|
|
237
|
+
// query language: https://github.com/yaacov/tree-search-language
|
|
234
238
|
clustersResponse = yield cloud.getAccountClustersSubscription({
|
|
235
239
|
order: 'display_name asc',
|
|
236
240
|
page,
|
|
@@ -261,6 +265,7 @@ function OpenshiftDropdownV4(props) {
|
|
|
261
265
|
};
|
|
262
266
|
}
|
|
263
267
|
catch (e) {
|
|
268
|
+
// silently fails
|
|
264
269
|
setIsFetchingClusters(false);
|
|
265
270
|
return { items: [], totalResult: 0, page: 1, total: 0 };
|
|
266
271
|
}
|
package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NonOrgCaseNotifyeesSelector.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAwB,oBAAoB,EAAY,MAAM,wBAAwB,CAAC;AAE9F,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,UAAU,MAAO,SAAQ,gBAAgB;IACrC,aAAa,EAAE,oBAAoB,EAAE,CAAC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,CAAC,aAAa,EAAE,oBAAoB,EAAE,KAAK,IAAI,CAAC;IAC1D,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAC1C,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AA+BD,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"NonOrgCaseNotifyeesSelector.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAwB,oBAAoB,EAAY,MAAM,wBAAwB,CAAC;AAE9F,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,UAAU,MAAO,SAAQ,gBAAgB;IACrC,aAAa,EAAE,oBAAoB,EAAE,CAAC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,CAAC,aAAa,EAAE,oBAAoB,EAAE,KAAK,IAAI,CAAC;IAC1D,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAC1C,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AA+BD,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,qBA+NxD"}
|
|
@@ -69,52 +69,58 @@ export function NonOrgCaseNotifyeesSelector(props) {
|
|
|
69
69
|
const onRemoveItem = (optionToRemove) => {
|
|
70
70
|
props.onChange && props.onChange([optionToRemove]);
|
|
71
71
|
};
|
|
72
|
-
const mapContactsToNotifyees = (rawContacts) => rawContacts
|
|
73
|
-
.filter((c) => !!c.ssoName)
|
|
74
|
-
.map((c) => {
|
|
75
|
-
const { ssoName } = c, rest = __rest(c, ["ssoName"]);
|
|
76
|
-
return Object.assign({ ssoUsername: ssoName }, rest);
|
|
77
|
-
});
|
|
78
|
-
const hasSelectedUsername = (mappedContacts) => mappedContacts.some((contact) => props.selectedItems.some((item) => isContact(item) && item.ssoUsername === contact.ssoUsername));
|
|
79
72
|
const onAddClick = () => __awaiter(this, void 0, void 0, function* () {
|
|
80
73
|
var _a, _b, _c, _d;
|
|
81
74
|
clearErrors();
|
|
82
|
-
const searchResults = yield request(props.accountNumber, inputVal,
|
|
75
|
+
const searchResults = yield request(props.accountNumber, inputVal,
|
|
76
|
+
// eslint-disable-next-line eqeqeq
|
|
77
|
+
props.groupNumber == '-1' ? null : props.groupNumber);
|
|
83
78
|
const { notificationAddress = { email: '' }, contacts = [] } = (_a = searchResults === null || searchResults === void 0 ? void 0 : searchResults[0]) !== null && _a !== void 0 ? _a : {};
|
|
84
79
|
if ((notificationAddress === null || notificationAddress === void 0 ? void 0 : notificationAddress.email) && (contacts === null || contacts === void 0 ? void 0 : contacts.length)) {
|
|
85
|
-
const mappedContacts =
|
|
86
|
-
|
|
80
|
+
const mappedContacts = contacts
|
|
81
|
+
.filter((c) => !!c.ssoName)
|
|
82
|
+
.map((c) => {
|
|
83
|
+
const { ssoName } = c, rest = __rest(c, ["ssoName"]);
|
|
84
|
+
return Object.assign({ ssoUsername: ssoName }, rest);
|
|
85
|
+
});
|
|
86
|
+
const isUsernameAlreadySelected = mappedContacts.some((contact) => props.selectedItems.some((item) => isContact(item) && item.ssoUsername === contact.ssoUsername));
|
|
87
|
+
if (!isUsernameAlreadySelected) {
|
|
87
88
|
(_b = props.onChange) === null || _b === void 0 ? void 0 : _b.call(props, [...mappedContacts]);
|
|
88
89
|
}
|
|
89
90
|
setInputVal('');
|
|
90
91
|
setNotifyeesList([...mappedContacts, { emailAddress: notificationAddress.email }]);
|
|
91
|
-
return;
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
(
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
(
|
|
93
|
+
else {
|
|
94
|
+
if (notificationAddress === null || notificationAddress === void 0 ? void 0 : notificationAddress.email) {
|
|
95
|
+
const isEmailAlreadySelected = props.selectedItems.some((item) => {
|
|
96
|
+
var _a, _b;
|
|
97
|
+
return isCustomEmailAddress(item) &&
|
|
98
|
+
((_a = item.emailAddress) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === ((_b = notificationAddress.email) === null || _b === void 0 ? void 0 : _b.toLowerCase());
|
|
99
|
+
});
|
|
100
|
+
if (!isEmailAlreadySelected) {
|
|
101
|
+
const updatedSelection = [{ emailAddress: notificationAddress.email, caseNumber: '' }];
|
|
102
|
+
(_c = props.onChange) === null || _c === void 0 ? void 0 : _c.call(props, updatedSelection);
|
|
103
|
+
}
|
|
104
|
+
setInputVal('');
|
|
101
105
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
else if (contacts === null || contacts === void 0 ? void 0 : contacts.length) {
|
|
107
|
+
const mappedContacts = contacts
|
|
108
|
+
.filter((c) => !!c.ssoName)
|
|
109
|
+
.map((c) => {
|
|
110
|
+
const { ssoName } = c, rest = __rest(c, ["ssoName"]);
|
|
111
|
+
return Object.assign({ ssoUsername: ssoName }, rest);
|
|
112
|
+
});
|
|
113
|
+
const isUsernameAlreadySelected = mappedContacts.some((contact) => props.selectedItems.some((item) => isContact(item) && item.ssoUsername === contact.ssoUsername));
|
|
114
|
+
if (!isUsernameAlreadySelected) {
|
|
115
|
+
(_d = props.onChange) === null || _d === void 0 ? void 0 : _d.call(props, [...mappedContacts]);
|
|
116
|
+
}
|
|
117
|
+
setInputVal('');
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
loggedInUsersAccount.data.hasGroupACLs && props.groupNumber && props.groupNumber !== '-1'
|
|
121
|
+
? setShowGroupPermissionError(true)
|
|
122
|
+
: setShowAccountPermissionError(true);
|
|
109
123
|
}
|
|
110
|
-
setInputVal('');
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
if (loggedInUsersAccount.data.hasGroupACLs && props.groupNumber) {
|
|
114
|
-
setShowGroupPermissionError(true);
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
setShowAccountPermissionError(true);
|
|
118
124
|
}
|
|
119
125
|
});
|
|
120
126
|
const clearErrors = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoAttachmentSelectedModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ConfirmationModals/NoAttachmentSelectedModal.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAkD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NoAttachmentSelectedModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ConfirmationModals/NoAttachmentSelectedModal.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAgBvE,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;CACzB;AAID,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,qBAgJtD"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { Button, ButtonVariant, Modal, ModalBody, ModalFooter, ModalHeader, ModalVariant, } from '@patternfly/react-core';
|
|
2
|
+
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
2
3
|
import { ability, resourceActions, resources } from '@rh-support/user-permissions';
|
|
3
|
-
import { pendoTrackEvent } from '@rh-support/utils';
|
|
4
4
|
import React, { useContext, useEffect, useRef, useState } from 'react';
|
|
5
5
|
import { Trans, useTranslation } from 'react-i18next';
|
|
6
6
|
import { RulesDispatchContext, RulesStateContext } from '../../context/RulesContext';
|
|
7
7
|
import { SessionRestoreStateContext } from '../../context/SessionRestoreContext';
|
|
8
8
|
import { RulesReducerConstants } from '../../reducers/RulesReducer';
|
|
9
9
|
import FileEARule from '../ImproveCase/FileEARule';
|
|
10
|
-
import { recsViewedFromNoAttachmentModalEvent } from '../shared/Constants';
|
|
11
10
|
import { AttachmentStateContext, isAnyFileAttached, isAnyFileDiagnosticsAttachment, isUploadingAttachment, } from '../shared/fileUpload';
|
|
12
11
|
import FileSelectorButton from '../shared/fileUpload/fileSelectors/FileSelectorButton';
|
|
13
12
|
import FileUpload from '../shared/fileUpload/FileUpload';
|
|
@@ -15,6 +14,7 @@ const TIMEOUT_DURATION = 9000;
|
|
|
15
14
|
export function NoAttachmentSelectedModal(props) {
|
|
16
15
|
const { t } = useTranslation();
|
|
17
16
|
const { sessionRestore: { activeSessionId }, } = useContext(SessionRestoreStateContext);
|
|
17
|
+
const { globalMetadataState: { loggedInUsersAccount }, } = useContext(GlobalMetadataStateContext);
|
|
18
18
|
const { attachmentState: { caseFiles: { selectedLocalFiles }, }, } = useContext(AttachmentStateContext);
|
|
19
19
|
const [isUploading, setIsUploading] = useState(false);
|
|
20
20
|
const isAnyFileAttachedLocal = isAnyFileAttached(selectedLocalFiles);
|
|
@@ -29,7 +29,6 @@ export function NoAttachmentSelectedModal(props) {
|
|
|
29
29
|
type: RulesReducerConstants.triggerEARulesModalVisibiltyChange,
|
|
30
30
|
payload: { isRuleModalVisible: true },
|
|
31
31
|
});
|
|
32
|
-
pendoTrackEvent(recsViewedFromNoAttachmentModalEvent);
|
|
33
32
|
props.onClose();
|
|
34
33
|
}
|
|
35
34
|
isFirstMounRef.current = false;
|
|
@@ -76,11 +75,7 @@ export function NoAttachmentSelectedModal(props) {
|
|
|
76
75
|
React.createElement("p", { className: "pf-v6-u-mb-md" },
|
|
77
76
|
React.createElement(Trans, null, "Uploading an attachment will speed up your case's resolution time")),
|
|
78
77
|
React.createElement(FileEARule, { isInline: true })))),
|
|
79
|
-
React.createElement(FileUpload, { idToUploadTo: activeSessionId, onUploadClick: onFileUploadClick, isSessionId: true, needsAnalyzing: true,
|
|
80
|
-
// TODO: Re-enable when Hydra/GraphQL attachment APIs support secure support again
|
|
81
|
-
// autoUploadOnSelect={loggedInUsersAccount.data.secureSupport ? false : true}
|
|
82
|
-
// isSecureSupport={loggedInUsersAccount.data.secureSupport}
|
|
83
|
-
autoUploadOnSelect: true, isPrivate: false }),
|
|
78
|
+
React.createElement(FileUpload, { idToUploadTo: activeSessionId, onUploadClick: onFileUploadClick, isSessionId: true, needsAnalyzing: true, autoUploadOnSelect: loggedInUsersAccount.data.secureSupport ? false : true, isSecureSupport: loggedInUsersAccount.data.secureSupport, isPrivate: false }),
|
|
84
79
|
React.createElement(ModalFooter, null, isUploading ? (React.createElement(Button, { key: "create-case", variant: ButtonVariant.primary, onClick: props.onConfirm, "data-tracking-id": "skip-upload-or-analysis-and-submit" },
|
|
85
80
|
React.createElement(Trans, null, "Skip analyze and create my case"))) : isAnyFileAttachedLocal ? (!canUseSessionManagement && (React.createElement(Button, { className: "pf-v6-u-mt-sm", variant: ButtonVariant.primary, onClick: props.onConfirm, "data-tracking-id": "no-attachment-modal-create-case" },
|
|
86
81
|
React.createElement(Trans, null, "Create Case")))) : (React.createElement(React.Fragment, null,
|
|
@@ -41,7 +41,7 @@ export default function EditDescription(props) {
|
|
|
41
41
|
try {
|
|
42
42
|
setIsUpdating(true);
|
|
43
43
|
const caseDetails = { description: localDescription };
|
|
44
|
-
//Only GS4 internal can edit description
|
|
44
|
+
// Only GS4 internal can edit description
|
|
45
45
|
yield kase.updateCase(caseNumber, caseDetails, true);
|
|
46
46
|
setIsUpdating(false);
|
|
47
47
|
setCaseDetails(caseDispatch, caseDetails);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdeaInformation.d.ts","sourceRoot":"","sources":["../../../../src/components/IdeaInformation/IdeaInformation.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IdeaInformation.d.ts","sourceRoot":"","sources":["../../../../src/components/IdeaInformation/IdeaInformation.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAiBrD,MAAM,CAAC,OAAO,UAAU,eAAe,sBA8ItC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { useApolloClient } from '@apollo/client/react';
|
|
2
1
|
import { Grid, GridItem } from '@patternfly/react-core';
|
|
3
2
|
import { AlertMessage, AlertType, LoadingIndicator } from '@rh-support/components';
|
|
4
3
|
import { fetchCaseSeverities, fetchCaseTypes, fetchLanguageMetadata, GlobalMetadataDispatchContext, GlobalMetadataStateContext, } from '@rh-support/react-context';
|
|
@@ -9,27 +8,26 @@ import React, { useContext, useEffect } from 'react';
|
|
|
9
8
|
import { Trans, useTranslation } from 'react-i18next';
|
|
10
9
|
import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
|
|
11
10
|
import { setCaseDetails } from '../../reducers/CaseReducer';
|
|
12
|
-
|
|
11
|
+
import CaseGroup from '../CaseInformation/CaseGroup';
|
|
13
12
|
import { ContactPhoneNumber } from '../CaseInformation/ContactPhoneNumber';
|
|
14
|
-
|
|
15
|
-
// import { ContactPhoneNumberAlert } from '../CaseInformation/ContactPhoneNumberAlert';
|
|
13
|
+
import { ContactPhoneNumberAlert } from '../CaseInformation/ContactPhoneNumberAlert';
|
|
16
14
|
import Severity from '../CaseInformation/Severity';
|
|
17
15
|
import SupportLevel from '../CaseInformation/SupportLevel';
|
|
18
16
|
import CaseLanguageSelector from '../CaseManagement/CaseLanguageSelector';
|
|
19
|
-
|
|
17
|
+
import { Cep } from '../CaseManagement/Cep';
|
|
20
18
|
import OpenReferenceNumber from '../CaseManagement/OpenReferenceNumber';
|
|
21
19
|
import { RHAssociatesSelector } from '../CaseManagement/RHAssociatesSelector';
|
|
22
|
-
|
|
20
|
+
import CaseContactSelector from '../CaseManagement/SendNotifications/CaseContactSelector';
|
|
23
21
|
import KtQuestions from '../ImproveCase/KtQuestions';
|
|
24
22
|
export default function IdeaInformation() {
|
|
25
23
|
const { t } = useTranslation();
|
|
26
24
|
const { globalMetadataState: { allCaseTypes, allCaseSeverities, caseLanguages, loggedInUser, loggedInUserJwtToken, loggedInUsersAccount, loggedInUserRights, }, } = useContext(GlobalMetadataStateContext);
|
|
27
25
|
const dispatchToGlobalMetadataReducer = useContext(GlobalMetadataDispatchContext);
|
|
28
|
-
const
|
|
29
|
-
const { contactSSOName, selectedAccountDetails, ownersCaseGroups } = useCaseSelector((state) => ({
|
|
26
|
+
const { contactSSOName, selectedAccountDetails, ownersCaseGroups, hasInvalidEntitlements } = useCaseSelector((state) => ({
|
|
30
27
|
contactSSOName: state.caseDetails.contactSSOName,
|
|
31
28
|
ownersCaseGroups: state.ownersCaseGroups,
|
|
32
29
|
selectedAccountDetails: state.selectedAccountDetails,
|
|
30
|
+
hasInvalidEntitlements: state.hasInvalidEntitlements,
|
|
33
31
|
}), isEqual);
|
|
34
32
|
const caseDispatch = useCaseDispatch();
|
|
35
33
|
const isMetadataLoading = () => {
|
|
@@ -50,13 +48,13 @@ export default function IdeaInformation() {
|
|
|
50
48
|
}
|
|
51
49
|
const allPromisses = [];
|
|
52
50
|
if (haventLoadedMetadata(allCaseTypes)) {
|
|
53
|
-
allPromisses.push(fetchCaseTypes(dispatchToGlobalMetadataReducer,
|
|
51
|
+
allPromisses.push(fetchCaseTypes(dispatchToGlobalMetadataReducer, loggedInUsersAccount.data.secureSupport));
|
|
54
52
|
}
|
|
55
53
|
if (haventLoadedMetadata(allCaseSeverities)) {
|
|
56
|
-
allPromisses.push(fetchCaseSeverities(dispatchToGlobalMetadataReducer,
|
|
54
|
+
allPromisses.push(fetchCaseSeverities(dispatchToGlobalMetadataReducer, loggedInUsersAccount.data.secureSupport));
|
|
57
55
|
}
|
|
58
56
|
if (haventLoadedMetadata(caseLanguages)) {
|
|
59
|
-
allPromisses.push(fetchLanguageMetadata(dispatchToGlobalMetadataReducer
|
|
57
|
+
allPromisses.push(fetchLanguageMetadata(dispatchToGlobalMetadataReducer));
|
|
60
58
|
}
|
|
61
59
|
Promise.all(allPromisses);
|
|
62
60
|
}, [
|
|
@@ -68,7 +66,6 @@ export default function IdeaInformation() {
|
|
|
68
66
|
loggedInUserJwtToken,
|
|
69
67
|
selectedAccountDetails,
|
|
70
68
|
loggedInUsersAccount.data.secureSupport,
|
|
71
|
-
apolloClient,
|
|
72
69
|
]);
|
|
73
70
|
const onSeverityChange = (payload) => {
|
|
74
71
|
setCaseDetails(caseDispatch, payload);
|
|
@@ -82,13 +79,13 @@ export default function IdeaInformation() {
|
|
|
82
79
|
' ',
|
|
83
80
|
React.createElement("a", { href: "/support/contact/customerService" }, "Customer Service"),
|
|
84
81
|
" for assistance.")),
|
|
85
|
-
React.createElement(AlertMessage, { show:
|
|
82
|
+
React.createElement(AlertMessage, { show: hasInvalidEntitlements, variant: AlertType.DANGER, className: "pf-v6-u-mb-md", isInline: true },
|
|
86
83
|
React.createElement(Trans, { i18nKey: "i18ValidEntitlementContactCustomerService" },
|
|
87
84
|
"You need a valid entitlement to create a case.\u00A0 Please contact",
|
|
88
85
|
' ',
|
|
89
86
|
React.createElement("a", { href: "/support/contact/customerService" }, "Customer Service"),
|
|
90
87
|
" for assistance.")),
|
|
91
|
-
|
|
88
|
+
!hasInvalidEntitlements &&
|
|
92
89
|
!isMetadataLoading() &&
|
|
93
90
|
!isMetadataLoadingError() &&
|
|
94
91
|
loggedInUserRights.data.canManageCases() && (React.createElement(React.Fragment, null,
|
|
@@ -100,9 +97,14 @@ export default function IdeaInformation() {
|
|
|
100
97
|
React.createElement(Severity, { showSeverityInfoIcon: true, onSeverityChange: onSeverityChange })),
|
|
101
98
|
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v6-u-mb-xl" },
|
|
102
99
|
React.createElement(ContactPhoneNumber, null))),
|
|
100
|
+
React.createElement(ContactPhoneNumberAlert, null),
|
|
103
101
|
React.createElement(Grid, { hasGutter: true },
|
|
104
102
|
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v6-u-mb-xs" },
|
|
105
|
-
React.createElement(CaseLanguageSelector, { isManageStep: true }))
|
|
103
|
+
React.createElement(CaseLanguageSelector, { isManageStep: true })),
|
|
104
|
+
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v6-u-mb-xs" },
|
|
105
|
+
React.createElement(CaseGroup, { init: true }))),
|
|
106
|
+
React.createElement(CaseContactSelector, null),
|
|
106
107
|
React.createElement(RHAssociatesSelector, null),
|
|
107
|
-
React.createElement(OpenReferenceNumber, { inlineEditable: false, hideSaveCancel: true })
|
|
108
|
+
React.createElement(OpenReferenceNumber, { inlineEditable: false, hideSaveCancel: true }),
|
|
109
|
+
React.createElement(Cep, null))))));
|
|
108
110
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SupportTypeSelectorPage.d.ts","sourceRoot":"","sources":["../../../../src/components/OpenCase/SupportTypeSelectorPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SupportTypeSelectorPage.d.ts","sourceRoot":"","sources":["../../../../src/components/OpenCase/SupportTypeSelectorPage.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAiB/D,MAAM,CAAC,OAAO,UAAU,uBAAuB,sBAiM9C"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { useApolloClient } from '@apollo/client/react';
|
|
2
1
|
import { Bullseye, Card, CardBody, Gallery, GalleryItem, Split, SplitItem } from '@patternfly/react-core';
|
|
3
2
|
import { LoadingIndicator } from '@rh-support/components';
|
|
4
3
|
import { fetchCaseTypes, useGlobalDispatchContext, useGlobalStateContext } from '@rh-support/react-context';
|
|
@@ -12,9 +11,8 @@ import { getUpdatedDescription } from '../../reducers/CaseHelpers';
|
|
|
12
11
|
import { setCaseDetails } from '../../reducers/CaseReducer';
|
|
13
12
|
import { BugIcon, CertificationIcon, CustomerServiceIcon, DocumentationIcon, GearIcon, IdeaIcon, RcaIcon, } from './SupportTypeIcons';
|
|
14
13
|
export default function SupportTypeSelectorPage() {
|
|
15
|
-
const { globalMetadataState: { allCaseTypes }, } = useGlobalStateContext();
|
|
14
|
+
const { globalMetadataState: { allCaseTypes, loggedInUsersAccount }, } = useGlobalStateContext();
|
|
16
15
|
const globalDispatch = useGlobalDispatchContext();
|
|
17
|
-
const apolloClient = useApolloClient();
|
|
18
16
|
const [selectedSupportType, setSelectedSupportType] = useState('');
|
|
19
17
|
const { routeState: { isNextBtnClickedToShowValidationError }, } = useContext(RouteContext);
|
|
20
18
|
const { caseType, isFetchingSelectedAccountDetails, issue, timeFramesAndUrgency, v3ClusterName } = useCaseSelector((state) => ({
|
|
@@ -29,7 +27,7 @@ export default function SupportTypeSelectorPage() {
|
|
|
29
27
|
useEffect(() => {
|
|
30
28
|
if (haventLoadedMetadata(allCaseTypes)) {
|
|
31
29
|
// Load support types.
|
|
32
|
-
fetchCaseTypes(globalDispatch,
|
|
30
|
+
fetchCaseTypes(globalDispatch, loggedInUsersAccount.data.secureSupport);
|
|
33
31
|
}
|
|
34
32
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
35
33
|
}, []);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AllProductsSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/AllProductsSelector.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AllProductsSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/AllProductsSelector.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAsD,MAAM,OAAO,CAAC;AAE3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAuC,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAMvG,UAAU,MAAM;IACZ,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAClC;AAQD;;;;;;;GAOG;AACH,QAAA,MAAM,mBAAmB,4EAuKvB,CAAC;AAGH,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Modal, ModalBody, ModalFooter, ModalHeader, ModalVariant } from '@patternfly/react-core';
|
|
2
|
+
import { AlertMessage, AlertType } from '@rh-support/components';
|
|
2
3
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
4
|
+
import filter from 'lodash/filter';
|
|
5
|
+
import find from 'lodash/find';
|
|
3
6
|
import isEmpty from 'lodash/isEmpty';
|
|
4
7
|
import isEqual from 'lodash/isEqual';
|
|
5
8
|
import React, { forwardRef, useContext, useEffect, useState } from 'react';
|
|
@@ -16,6 +19,7 @@ import { ProductVersionDropdownSelector } from './ProductVersionDropdownSelector
|
|
|
16
19
|
const defaultProps = {
|
|
17
20
|
loadTCOnChange: false,
|
|
18
21
|
showTCAfterButtonClicked: false,
|
|
22
|
+
checkEntitledProduct: false,
|
|
19
23
|
};
|
|
20
24
|
/**
|
|
21
25
|
* Renders a dropdown list to select all products.
|
|
@@ -26,12 +30,15 @@ const defaultProps = {
|
|
|
26
30
|
* @param props
|
|
27
31
|
*/
|
|
28
32
|
const AllProductsSelector = forwardRef((props, ref) => {
|
|
29
|
-
|
|
33
|
+
var _a, _b;
|
|
34
|
+
const { globalMetadataState: { allProducts, loggedInUserRights }, } = useContext(GlobalMetadataStateContext);
|
|
30
35
|
const caseDispatch = useCaseDispatch();
|
|
31
|
-
const { product, version } = useCaseSelector((state) => ({
|
|
36
|
+
const { product, version, contactSSOName } = useCaseSelector((state) => ({
|
|
32
37
|
product: state.caseDetails.product,
|
|
33
38
|
version: state.caseDetails.version,
|
|
39
|
+
contactSSOName: state.caseDetails.contactSSOName,
|
|
34
40
|
}), isEqual);
|
|
41
|
+
//test
|
|
35
42
|
const { topContentState: { topContent }, } = useContext(TCStateContext);
|
|
36
43
|
const { routeState: { activeSection, isCaseCreate }, } = useContext(RouteContext);
|
|
37
44
|
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
@@ -39,6 +46,7 @@ const AllProductsSelector = forwardRef((props, ref) => {
|
|
|
39
46
|
const [showModalButton, setShowModalButton] = useState(false);
|
|
40
47
|
const [isProductChanged, setProductChanged] = useState(false);
|
|
41
48
|
const { t } = useTranslation();
|
|
49
|
+
const isEntitledProduct = (_b = find((_a = allProducts === null || allProducts === void 0 ? void 0 : allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult, (p) => p.product === product)) === null || _b === void 0 ? void 0 : _b.isEntitledProduct;
|
|
42
50
|
useEffect(() => {
|
|
43
51
|
// after TC data is loaded we open the modal
|
|
44
52
|
const showTCPopUpModalOnProductChange = props.loadTCOnChange && !props.showTCAfterButtonClicked && showModal;
|
|
@@ -71,6 +79,7 @@ const AllProductsSelector = forwardRef((props, ref) => {
|
|
|
71
79
|
};
|
|
72
80
|
RouteUtils.updateQueryParams(props.routeProps, newParams);
|
|
73
81
|
}
|
|
82
|
+
const entitledProducts = filter(allProducts.data.productsResult, (p) => p.isEntitledProduct);
|
|
74
83
|
const renderProductVersionDropdownSelector = (activeSection === (isCaseCreate ? AppRouteSections.SUMMARIZE : AppRouteSections.TROUBLESHOOT) &&
|
|
75
84
|
!props.caseCreateExperience) ||
|
|
76
85
|
activeSection === AppRouteSections.GET_SUPPORT ||
|
|
@@ -82,9 +91,12 @@ const AllProductsSelector = forwardRef((props, ref) => {
|
|
|
82
91
|
return (React.createElement(React.Fragment, null,
|
|
83
92
|
renderProductVersionDropdownSelector && (React.createElement("div", { className: "form-group product-selector-wrapper" },
|
|
84
93
|
React.createElement("div", { className: "all-product-selector-dropdown" },
|
|
85
|
-
React.createElement(ProductVersionDropdownSelector, { isLoading: allProducts.isFetching, products: allProducts.data.productsResult, onProductChange: onProductChange, onVersionChange: onVersionChange, ref: ref, isOnSummaryPage: props.isOnSummaryPage, loadTCOnChange: props.loadTCOnChange, isFetching: topContent.isFetching })))),
|
|
94
|
+
React.createElement(ProductVersionDropdownSelector, { isLoading: allProducts.isFetching, products: props.checkEntitledProduct ? entitledProducts : allProducts.data.productsResult, onProductChange: onProductChange, onVersionChange: onVersionChange, ref: ref, isOnSummaryPage: props.isOnSummaryPage, loadTCOnChange: props.loadTCOnChange, isFetching: topContent.isFetching })))),
|
|
86
95
|
renderOpenCaseIssue && (React.createElement("div", { className: "case-details-summary" },
|
|
87
96
|
React.createElement(OpenCaseIssue, { inlineEditable: false, required: true, isOnSummaryPage: props.isOnSummaryPage, isOnGetSupportPage: props.isOnGetSupportPage }))),
|
|
97
|
+
React.createElement(AlertMessage, { isInline: true, variant: AlertType.DANGER, className: "pf-v6-u-mt-lg", title: t(`${loggedInUserRights.data.isSSOUsernameSameAsLoggedInUser(contactSSOName)
|
|
98
|
+
? 'You are'
|
|
99
|
+
: 'Selected owner is'} not allowed to create case on this product.`), show: !allProducts.isFetching && props.checkEntitledProduct && !isEntitledProduct && !isEmpty(product) }),
|
|
88
100
|
showModalButton &&
|
|
89
101
|
!isEmpty(product) &&
|
|
90
102
|
!isEmpty(version) &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewProductDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"NewProductDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAoBpE,OAAO,KAAkD,MAAM,OAAO,CAAC;AAUvE,UAAU,MAAM;IACZ,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IAChC,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,CAAC;IAC1C,qCAAqC,EAAE,OAAO,CAAC;IAC/C,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,0BAA0B,GAAI,OAAO,MAAM,sBA2MvD,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|