@rh-support/troubleshoot 2.6.354 → 2.6.357
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 +19 -29
- package/lib/esm/components/AccountInfo/OwnerSelector.d.ts.map +1 -1
- package/lib/esm/components/AccountInfo/OwnerSelector.js +91 -16
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.js +6 -2
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +61 -32
- package/lib/esm/components/CaseEditView/ArchivedCaseBanner.d.ts +8 -0
- package/lib/esm/components/CaseEditView/ArchivedCaseBanner.d.ts.map +1 -0
- package/lib/esm/components/CaseEditView/ArchivedCaseBanner.js +18 -0
- package/lib/esm/components/CaseEditView/Case.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Case.js +60 -33
- package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsAside.js +19 -9
- package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.js +15 -4
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +82 -55
- package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.d.ts +2 -0
- package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.js +3 -3
- package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.d.ts +1 -2
- package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.js +8 -6
- package/lib/esm/components/CaseEditView/CaseOverview/index.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/index.js +76 -45
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.js +203 -109
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts +0 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.js +5 -5
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts +1 -3
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.js +5 -9
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.js +18 -17
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.js +51 -47
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +49 -44
- package/lib/esm/components/CaseEditView/RequestRemoteSession/remoteSessionUtils.d.ts +4 -0
- package/lib/esm/components/CaseEditView/RequestRemoteSession/remoteSessionUtils.d.ts.map +1 -0
- package/lib/esm/components/CaseEditView/RequestRemoteSession/remoteSessionUtils.js +23 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +51 -45
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.js +23 -10
- 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 +0 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInternalStatus.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInternalStatus.js +3 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.js +132 -57
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.js +10 -5
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +110 -65
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.js +16 -9
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.js +40 -26
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts +2 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +122 -148
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts +4 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +76 -145
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.js +22 -9
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/DiscussionItemLink.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/DiscussionItemLink.js +9 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/JumpAndCopyLink.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/JumpAndCopyLink.js +8 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useAttachmentUploadCompletion.d.ts +29 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useAttachmentUploadCompletion.d.ts.map +1 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useAttachmentUploadCompletion.js +29 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useCommentDrafts.d.ts +17 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useCommentDrafts.d.ts.map +1 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useCommentDrafts.js +60 -0
- 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 +18 -7
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts +9 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +217 -267
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.js +6 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.js +3 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.css +4 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts +35 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.js +63 -224
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts +4 -5
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.js +18 -5
- package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.js +7 -2
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.js +38 -52
- package/lib/esm/components/CaseInformation/CaseGroup.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/CaseGroup.js +168 -61
- package/lib/esm/components/CaseInformation/CaseInformation.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/CaseInformation.js +10 -9
- package/lib/esm/components/CaseInformation/CaseLabels.d.ts +3 -0
- package/lib/esm/components/CaseInformation/CaseLabels.d.ts.map +1 -0
- package/lib/esm/components/CaseInformation/CaseLabels.js +103 -0
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.js +108 -31
- package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.js +2 -2
- package/lib/esm/components/CaseInformation/Description.js +1 -1
- package/lib/esm/components/CaseInformation/FileDiag.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/FileDiag.js +2 -5
- package/lib/esm/components/CaseInformation/Fts.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Fts.js +31 -17
- package/lib/esm/components/CaseInformation/Severity.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Severity.js +21 -13
- package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/SupportLevel.js +36 -55
- package/lib/esm/components/CaseManagement/CaseLabelsCreate.d.ts +4 -0
- package/lib/esm/components/CaseManagement/CaseLabelsCreate.d.ts.map +1 -0
- package/lib/esm/components/CaseManagement/CaseLabelsCreate.js +110 -0
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.js +2 -8
- package/lib/esm/components/CaseManagement/CaseManagement.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/CaseManagement.js +13 -10
- package/lib/esm/components/CaseManagement/Cep.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/Cep.js +11 -9
- package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.d.ts +2 -1
- package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.js +22 -3
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +6 -6
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +15 -22
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.js +34 -40
- package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.d.ts.map +1 -1
- package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.js +8 -4
- 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 +16 -18
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.js +4 -2
- package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts +0 -1
- package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/AllProductsSelector.js +3 -15
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +13 -37
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +37 -50
- package/lib/esm/components/ProductSelector/ProductNotEntitledWarning.d.ts +3 -0
- package/lib/esm/components/ProductSelector/ProductNotEntitledWarning.d.ts.map +1 -0
- package/lib/esm/components/ProductSelector/ProductNotEntitledWarning.js +9 -0
- package/lib/esm/components/ProductSelector/ProductSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/ProductSelector.js +1 -3
- package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.js +9 -1
- package/lib/esm/components/Recommendations/AsideResults.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/AsideResults.js +4 -3
- package/lib/esm/components/Recommendations/ClusterRecommendationToast.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendationToast.js +1 -4
- package/lib/esm/components/Recommendations/ClusterRecommendations.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendations.js +1 -4
- package/lib/esm/components/Recommendations/InsightsResults.js +3 -3
- package/lib/esm/components/Recommendations/Recommendations.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/Recommendations.js +3 -9
- package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.d.ts.map +1 -1
- package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.js +10 -8
- package/lib/esm/components/Review/Review.d.ts.map +1 -1
- package/lib/esm/components/Review/Review.js +25 -19
- package/lib/esm/components/SessionRestore/SessionRestore.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/SessionRestore.js +3 -1
- 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 +104 -62
- package/lib/esm/components/shared/Constants.d.ts +5 -0
- package/lib/esm/components/shared/Constants.d.ts.map +1 -1
- package/lib/esm/components/shared/Constants.js +5 -0
- 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 +2 -3
- package/lib/esm/components/shared/fileUpload/FileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/FileUploader.js +3 -1
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.d.ts +1 -0
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +4 -3
- 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 +21 -5
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.js +210 -34
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducer.d.ts +5 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducer.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducer.js +36 -1
- package/lib/esm/components/shared/fileUpload/types/index.d.ts +5 -1
- package/lib/esm/components/shared/fileUpload/types/index.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/useFileUploader.d.ts +2 -2
- package/lib/esm/components/shared/fileUpload/useFileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/useFileUploader.js +116 -47
- package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
- package/lib/esm/components/shared/useIsSectionValid.js +22 -57
- package/lib/esm/components/shared/usePostComment.d.ts.map +1 -1
- package/lib/esm/components/shared/usePostComment.js +16 -28
- package/lib/esm/components/shared/utils.d.ts +1 -0
- package/lib/esm/components/shared/utils.d.ts.map +1 -1
- package/lib/esm/components/shared/utils.js +9 -3
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.js +178 -38
- package/lib/esm/components/wizardLayout/WizardAside.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardAside.js +2 -4
- package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardLayout.js +12 -13
- package/lib/esm/components/wizardLayout/WizardMain.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardMain.js +7 -0
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardNavigation.js +14 -11
- package/lib/esm/constants/caseDetailsConstants.d.ts +5 -0
- package/lib/esm/constants/caseDetailsConstants.d.ts.map +1 -1
- package/lib/esm/constants/caseDetailsConstants.js +5 -0
- package/lib/esm/context/CaseContext.d.ts.map +1 -1
- package/lib/esm/css/app.css +28 -0
- package/lib/esm/css/case.css +60 -209
- package/lib/esm/graphql/index.d.ts +4 -0
- package/lib/esm/graphql/index.d.ts.map +1 -0
- package/lib/esm/graphql/index.js +3 -0
- package/lib/esm/graphql/mutations/createRMECaseEscalation.d.ts +2 -0
- package/lib/esm/graphql/mutations/createRMECaseEscalation.d.ts.map +1 -0
- package/lib/esm/graphql/mutations/createRMECaseEscalation.js +24 -0
- package/lib/esm/graphql/mutations/index.d.ts +2 -0
- package/lib/esm/graphql/mutations/index.d.ts.map +1 -0
- package/lib/esm/graphql/mutations/index.js +1 -0
- package/lib/esm/graphql/queries/getEscalationDetails.d.ts +2 -0
- package/lib/esm/graphql/queries/getEscalationDetails.d.ts.map +1 -0
- package/lib/esm/graphql/queries/getEscalationDetails.js +31 -0
- package/lib/esm/graphql/queries/index.d.ts +2 -0
- package/lib/esm/graphql/queries/index.d.ts.map +1 -0
- package/lib/esm/graphql/queries/index.js +1 -0
- package/lib/esm/graphql/schemas/escalation.d.ts +66 -0
- package/lib/esm/graphql/schemas/escalation.d.ts.map +1 -0
- package/lib/esm/graphql/schemas/escalation.js +1 -0
- package/lib/esm/graphql/schemas/index.d.ts +2 -0
- package/lib/esm/graphql/schemas/index.d.ts.map +1 -0
- package/lib/esm/graphql/schemas/index.js +1 -0
- package/lib/esm/hooks/useAB.d.ts.map +1 -1
- package/lib/esm/hooks/useAB.js +45 -23
- package/lib/esm/hooks/useCaseComments/caseCommentsQuery.d.ts +4 -0
- package/lib/esm/hooks/useCaseComments/caseCommentsQuery.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseComments/caseCommentsQuery.js +52 -0
- package/lib/esm/hooks/useCaseComments/index.d.ts +7 -0
- package/lib/esm/hooks/useCaseComments/index.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseComments/index.js +5 -0
- package/lib/esm/hooks/useCaseComments/mapCaseComment.d.ts +25 -0
- package/lib/esm/hooks/useCaseComments/mapCaseComment.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseComments/mapCaseComment.js +75 -0
- package/lib/esm/hooks/useCaseComments/types.d.ts +85 -0
- package/lib/esm/hooks/useCaseComments/types.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseComments/types.js +1 -0
- package/lib/esm/hooks/useCaseComments/useCaseComments.d.ts +17 -0
- package/lib/esm/hooks/useCaseComments/useCaseComments.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseComments/useCaseComments.js +38 -0
- package/lib/esm/hooks/useCaseComments/useCreateCaseComment.d.ts +19 -0
- package/lib/esm/hooks/useCaseComments/useCreateCaseComment.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseComments/useCreateCaseComment.js +33 -0
- package/lib/esm/hooks/useCaseGroupUiState.d.ts +3 -0
- package/lib/esm/hooks/useCaseGroupUiState.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseGroupUiState.js +10 -0
- package/lib/esm/hooks/useCaseHistory.d.ts +26 -0
- package/lib/esm/hooks/useCaseHistory.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseHistory.js +98 -0
- package/lib/esm/hooks/useCaseLabelLinkMutations.d.ts +21 -0
- package/lib/esm/hooks/useCaseLabelLinkMutations.d.ts.map +1 -0
- package/lib/esm/hooks/useCaseLabelLinkMutations.js +91 -0
- 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 +21 -11
- package/lib/esm/hooks/useResetCaseCreate.d.ts.map +1 -1
- package/lib/esm/hooks/useResetCaseCreate.js +18 -11
- package/lib/esm/hooks/useS3Upload.d.ts +5 -4
- package/lib/esm/hooks/useS3Upload.d.ts.map +1 -1
- package/lib/esm/hooks/useS3Upload.js +28 -30
- package/lib/esm/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 +1 -0
- package/lib/esm/models/cache.d.ts +0 -2
- package/lib/esm/models/cache.d.ts.map +1 -1
- package/lib/esm/models/caseHistory.d.ts +80 -0
- package/lib/esm/models/caseHistory.d.ts.map +1 -0
- package/lib/esm/models/caseHistory.js +1 -0
- package/lib/esm/reducers/CaseConstNTypes.d.ts +123 -9
- package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.js +31 -7
- package/lib/esm/reducers/CaseDetailsPageReducer.d.ts +7 -5
- package/lib/esm/reducers/CaseDetailsPageReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseDetailsPageReducer.js +58 -26
- package/lib/esm/reducers/CaseDiscussionTabReducer.d.ts +11 -12
- package/lib/esm/reducers/CaseDiscussionTabReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseDiscussionTabReducer.js +63 -70
- package/lib/esm/reducers/CaseHelpers.d.ts +11 -1
- package/lib/esm/reducers/CaseHelpers.d.ts.map +1 -1
- package/lib/esm/reducers/CaseHelpers.js +117 -17
- package/lib/esm/reducers/CaseOverviewReducer.d.ts +3 -1
- package/lib/esm/reducers/CaseOverviewReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseOverviewReducer.js +7 -5
- package/lib/esm/reducers/CaseReducer.d.ts +56 -11
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.js +279 -99
- package/lib/esm/reducers/RecommendationsReducer.d.ts.map +1 -1
- package/lib/esm/reducers/RecommendationsReducer.js +15 -18
- package/lib/esm/scss/_main.scss +9 -0
- package/lib/esm/utils/TimelineUtils.d.ts +41 -0
- package/lib/esm/utils/TimelineUtils.d.ts.map +1 -0
- package/lib/esm/utils/TimelineUtils.js +135 -0
- package/lib/esm/utils/caseHistoryUtils.d.ts +66 -0
- package/lib/esm/utils/caseHistoryUtils.d.ts.map +1 -0
- package/lib/esm/utils/caseHistoryUtils.js +165 -0
- package/lib/esm/utils/caseOpenshiftClusterIdUtils.d.ts +1 -2
- package/lib/esm/utils/caseOpenshiftClusterIdUtils.d.ts.map +1 -1
- package/lib/esm/utils/caseOpenshiftClusterIdUtils.js +4 -4
- package/lib/esm/utils/caseSeverityFtsGraphQLUtils.d.ts +6 -0
- package/lib/esm/utils/caseSeverityFtsGraphQLUtils.d.ts.map +1 -0
- package/lib/esm/utils/caseSeverityFtsGraphQLUtils.js +26 -0
- package/package.json +9 -8
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/AsaCommentFeedbackModal.d.ts +0 -25
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/AsaCommentFeedbackModal.d.ts.map +0 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/AsaCommentFeedbackModal.js +0 -88
|
@@ -1,52 +1,65 @@
|
|
|
1
1
|
import { Flex, FlexItem } from '@patternfly/react-core';
|
|
2
|
+
import { AlertMessage, AlertType } from '@rh-support/components';
|
|
2
3
|
import { AbilityContext, CaseDetailsFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
3
4
|
import isEqual from 'lodash/isEqual';
|
|
4
5
|
import React, { useContext, useState } from 'react';
|
|
6
|
+
import { useTranslation } from 'react-i18next';
|
|
5
7
|
import { useCaseSelector } from '../../../../context/CaseContext';
|
|
8
|
+
import { useShowCaseGroupField } from '../../../../hooks/useCaseGroupUiState';
|
|
6
9
|
import { OwnerSelector } from '../../../AccountInfo/OwnerSelector';
|
|
7
10
|
import CaseGroup from '../../../CaseInformation/CaseGroup';
|
|
11
|
+
import CaseLabels from '../../../CaseInformation/CaseLabels';
|
|
8
12
|
import Fts from '../../../CaseInformation/Fts';
|
|
9
|
-
import { Cep } from '../../../CaseManagement/Cep';
|
|
10
|
-
import { RHAssociatesSelector } from '../../../CaseManagement/RHAssociatesSelector';
|
|
11
|
-
import CaseContactSelector from '../../../CaseManagement/SendNotifications/CaseContactSelector';
|
|
13
|
+
// import { Cep } from '../../../CaseManagement/Cep';
|
|
14
|
+
// import { RHAssociatesSelector } from '../../../CaseManagement/RHAssociatesSelector';
|
|
15
|
+
// import CaseContactSelector from '../../../CaseManagement/SendNotifications/CaseContactSelector';
|
|
12
16
|
import { PartnerCaseHelper } from '../../ShareCase/PartnerCaseHelper';
|
|
13
17
|
import { ShareWithPartner } from '../../ShareCase/PartnerShare';
|
|
14
18
|
import { CaseContactPhoneNumber } from './CaseContactPhoneNumber';
|
|
15
19
|
import CaseInternalStatus from './CaseInternalStatus';
|
|
16
|
-
|
|
20
|
+
// TODO: Re-enable once phone number verification flow is fully supported with GraphQL
|
|
21
|
+
// import { CaseContactPhoneNumberAlert } from './CasePhoneNumberConfirmAlert';
|
|
17
22
|
import CaseReferenceNumber from './CaseReferenceNumber';
|
|
18
23
|
import CaseSbrGroups from './CaseSbrGroups';
|
|
19
24
|
import SFDCUrl from './SFDCUrl';
|
|
20
25
|
export default function CaseDetailsManagement(props) {
|
|
26
|
+
const { t } = useTranslation();
|
|
21
27
|
const [isUpdatingPartner, setIsUpdatingPartner] = useState(false);
|
|
22
28
|
const caseState = useCaseSelector((state) => ({
|
|
23
29
|
caseDetails: {
|
|
24
30
|
accountNumber: state.caseDetails.accountNumberRef,
|
|
25
31
|
},
|
|
32
|
+
showMandatoryCaseGroupValidationError: state.showMandatoryCaseGroupValidationError,
|
|
26
33
|
}), isEqual);
|
|
27
34
|
const accountNumber = caseState.caseDetails.accountNumber;
|
|
35
|
+
const showCaseGroupField = useShowCaseGroupField();
|
|
28
36
|
const ability = useContext(AbilityContext);
|
|
29
|
-
const canSeeEmailNotifications = ability.can(
|
|
37
|
+
// const canSeeEmailNotifications = ability.can(
|
|
38
|
+
// resourceActions.PATCH,
|
|
39
|
+
// resources.CASE_DETAILS,
|
|
40
|
+
// CaseDetailsFields.CASE_DETAILS_SEND_NOTIFICATIONS
|
|
41
|
+
// );
|
|
30
42
|
const canSeeInternalStatus = ability.can(resourceActions.PATCH, resources.CASE_DETAILS, CaseDetailsFields.CASE_DETAILS_INTERNAL_STATUS);
|
|
31
43
|
const canSeeSBRGroups = ability.can(resourceActions.PATCH, resources.CASE_DETAILS, CaseDetailsFields.CASE_DETAILS_SBR_GROUP);
|
|
32
44
|
return (React.createElement(React.Fragment, null,
|
|
33
45
|
React.createElement(PartnerCaseHelper, { setIsUpdatingPartners: setIsUpdatingPartner, caseNumber: props.caseNumber, routeProps: props.routeProps }),
|
|
34
46
|
React.createElement("section", { className: "card card-white" },
|
|
47
|
+
React.createElement(AlertMessage, { show: !!caseState.showMandatoryCaseGroupValidationError, variant: AlertType.DANGER, isInline: true, title: t('Please address the errors to proceed'), className: "pf-v6-u-mb-lg", "data-tracking-id": "proceed-address-errors" }),
|
|
35
48
|
React.createElement("form", null,
|
|
36
49
|
React.createElement(Flex, { direction: { default: 'column', '2xl': 'row' } },
|
|
37
50
|
React.createElement(FlexItem, { flex: { default: 'flex_1' } },
|
|
38
51
|
React.createElement(OwnerSelector, null)),
|
|
39
52
|
React.createElement(FlexItem, { flex: { default: 'flex_1' } },
|
|
40
53
|
React.createElement(CaseContactPhoneNumber, null))),
|
|
41
|
-
React.createElement(CaseContactPhoneNumberAlert, { isConfirm: true }),
|
|
42
54
|
canSeeInternalStatus && React.createElement(CaseInternalStatus, null),
|
|
43
55
|
canSeeSBRGroups && React.createElement(CaseSbrGroups, null),
|
|
44
|
-
React.createElement(
|
|
56
|
+
React.createElement(Flex, { direction: { default: 'column', lg: 'row' } },
|
|
57
|
+
showCaseGroupField && (React.createElement(FlexItem, { flex: { default: 'flex_1' } },
|
|
58
|
+
React.createElement(CaseGroup, null))),
|
|
59
|
+
React.createElement(FlexItem, { flex: { default: 'flex_1' } },
|
|
60
|
+
React.createElement(CaseLabels, null))),
|
|
45
61
|
React.createElement(CaseReferenceNumber, null),
|
|
46
|
-
canSeeEmailNotifications && React.createElement(CaseContactSelector, null),
|
|
47
|
-
React.createElement(RHAssociatesSelector, null),
|
|
48
62
|
React.createElement(Fts, { inlineEditable: true }),
|
|
49
|
-
React.createElement(Cep, null),
|
|
50
63
|
React.createElement(SFDCUrl, null),
|
|
51
64
|
React.createElement(ShareWithPartner, { routeProps: props.routeProps, isUpdatingPartner: isUpdatingPartner, accountNumber: accountNumber })))));
|
|
52
65
|
}
|
|
@@ -111,7 +111,7 @@ function CaseHostname(props) {
|
|
|
111
111
|
React.createElement(InlineEdit, { labelProps: { htmlFor: 'case-details-hostname' }, formClassName: props.className || '', labelContent: React.createElement(React.Fragment, null,
|
|
112
112
|
React.createElement(Trans, { className: "pf-v6-u-mr-xs" }, "Hostname"),
|
|
113
113
|
React.createElement(ValueChangedIcon, { afterLocalChange: afterLocalChange, isLocalChange: localHostnameChange, value: hostname, getTooltipContent: getChangedValueTooltip(() => CaseValuesToWatch.hostname) })), helperContent: !isExportingPDF ? (React.createElement(Popover, { "aria-label": "Hostname Info", position: PopoverPosition.auto, bodyContent: hostNameVisibilityContent, closeBtnAriaLabel: "Close", headerContent: 'Share hostname?', onShow: () => userOriginalHostnameValue() },
|
|
114
|
-
React.createElement(QuestionCircleIcon, { className: "pf-v6-u-ml-sm F icon-size cursor-pointer", "aria-label": "Hostname Info", color: "#5e40be" }))) : undefined, allowInlineEdit: props.inlineEditable, content: hostname, saveDisabled: hostnameState === hostname || isHostnameUpdating || lengthError, onSave: onSave, onCancel: onCancel, initialIsEditing: false, loadingIndicator: isHostnameUpdating ? React.createElement(LoadingIndicator, { show: isHostnameUpdating, isInline: true }) : undefined, isExportingPDF: isExportingPDF },
|
|
114
|
+
React.createElement(QuestionCircleIcon, { className: "pf-v6-u-ml-sm F icon-size cursor-pointer", "aria-label": "Hostname Info", color: "#5e40be" }))) : undefined, allowInlineEdit: props.inlineEditable && !canEditCase.isCaseNotEditable, content: hostname, saveDisabled: hostnameState === hostname || isHostnameUpdating || lengthError, onSave: onSave, onCancel: onCancel, initialIsEditing: false, loadingIndicator: isHostnameUpdating ? React.createElement(LoadingIndicator, { show: isHostnameUpdating, isInline: true }) : undefined, isExportingPDF: isExportingPDF },
|
|
115
115
|
React.createElement(TextInput, { type: "text", id: "case-details-hostname", className: `${lengthError ? ' form-invalid' : ''}`, name: "case-details-hostname", value: hostnameState, onChange: (e, phone) => onHostnameChange(phone), isDisabled: isHostnameUpdating, "data-tracking-id": "case-details-hostname", "aria-invalid": lengthError })),
|
|
116
116
|
lengthError && (React.createElement("div", { className: "pull-top" },
|
|
117
117
|
React.createElement("p", { className: "form-instructions form-invalid" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseInformation.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseInformation.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAI5D,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CaseInformation.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseInformation.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAI5D,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,UAAU,MAAO,SAAQ,gBAAgB;CAAG;AAE5C,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,qBAwD5C"}
|
|
@@ -8,7 +8,6 @@ import React from 'react';
|
|
|
8
8
|
import { Trans } from 'react-i18next';
|
|
9
9
|
import { useCaseSelector } from '../../../../context/CaseContext';
|
|
10
10
|
import { KtQuestionConstant } from '../../../../reducers/CaseConstNTypes';
|
|
11
|
-
import { CaseHostname } from './CaseHostname';
|
|
12
11
|
import { CaseOpenshiftClusterId } from './CaseOpenshiftClusterId/CaseOpenshiftClusterId';
|
|
13
12
|
import ProductVersion from './ProductVersion';
|
|
14
13
|
export function CaseInformation(props) {
|
|
@@ -40,7 +39,6 @@ export function CaseInformation(props) {
|
|
|
40
39
|
React.createElement("form", null,
|
|
41
40
|
React.createElement(ProductVersion, null),
|
|
42
41
|
React.createElement(CaseOpenshiftClusterId, null),
|
|
43
|
-
caseType !== PreviousCaseTypes.FEATURE_ENHANCEMENT && React.createElement(CaseHostname, { inlineEditable: true }),
|
|
44
42
|
React.createElement("div", { className: "form-group" },
|
|
45
43
|
React.createElement("label", { htmlFor: "case-description" },
|
|
46
44
|
React.createElement(Trans, null, "Description")),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseInternalStatus.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseInternalStatus.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CaseInternalStatus.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseInternalStatus.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAQpE,MAAM,CAAC,OAAO,UAAU,kBAAkB,sBA0FzC"}
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { Flex, FlexItem, MenuToggle, Select, SelectList, SelectOption, Spinner, } from '@patternfly/react-core';
|
|
11
11
|
import { ToastNotification } from '@rh-support/components';
|
|
12
|
-
import { fetchInternalStatusMetadata, GlobalMetadataDispatchContext, GlobalMetadataStateContext, } from '@rh-support/react-context';
|
|
12
|
+
import { fetchInternalStatusMetadata, GlobalMetadataDispatchContext, GlobalMetadataStateContext, useCanEditCase, } from '@rh-support/react-context';
|
|
13
13
|
import { haventLoadedMetadata } from '@rh-support/utils';
|
|
14
14
|
import React, { useContext, useEffect, useState } from 'react';
|
|
15
15
|
import { Trans, useTranslation } from 'react-i18next';
|
|
@@ -20,6 +20,7 @@ import { updateCaseDetails } from '../../../../reducers/CaseReducer';
|
|
|
20
20
|
export default function CaseInternalStatus() {
|
|
21
21
|
const { t } = useTranslation();
|
|
22
22
|
const caseUpdateError = useCaseUpdateErrorMessage();
|
|
23
|
+
const canEditCase = useCanEditCase();
|
|
23
24
|
const { internalStatus, caseNumber } = useCaseSelector((state) => ({
|
|
24
25
|
internalStatus: state.caseDetails.internalStatus,
|
|
25
26
|
caseNumber: state.caseDetails.caseNumber,
|
|
@@ -34,7 +35,7 @@ export default function CaseInternalStatus() {
|
|
|
34
35
|
e.stopPropagation();
|
|
35
36
|
setIsOpen(!isOpen);
|
|
36
37
|
};
|
|
37
|
-
const toggle = (toggleRef) => (React.createElement(MenuToggle, { ref: toggleRef, onClick: onToggleClick, isExpanded: isOpen, isDisabled: isIStatusUpdating, isFullWidth: true, className: "case-internal-status-selector-text" },
|
|
38
|
+
const toggle = (toggleRef) => (React.createElement(MenuToggle, { ref: toggleRef, onClick: onToggleClick, isExpanded: isOpen, isDisabled: isIStatusUpdating || canEditCase.isCaseNotEditable, isFullWidth: true, className: "case-internal-status-selector-text" },
|
|
38
39
|
React.createElement(Flex, { justifyContent: { default: 'justifyContentSpaceBetween' } },
|
|
39
40
|
React.createElement(FlexItem, null,
|
|
40
41
|
" ",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseOpenshiftClusterId.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CaseOpenshiftClusterId.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAqBxE,wBAAgB,sBAAsB,sBAiZrC"}
|
|
@@ -7,17 +7,17 @@ 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 { useApolloClient } from '@apollo/client/react';
|
|
10
11
|
import { LoadingIndicator, ToastNotification, usePrevious } from '@rh-support/components';
|
|
11
|
-
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
12
|
-
import { getVersion } from '@rh-support/utils';
|
|
13
|
-
import debounce from 'lodash/debounce';
|
|
12
|
+
import { GlobalMetadataStateContext, useCanEditCase } from '@rh-support/react-context';
|
|
13
|
+
import { extractNoClusterIdFieldsFromAdditionalCaseInformation, getVersion, hasNoClusterIdFieldsInAdditionalCaseInformation, } from '@rh-support/utils';
|
|
14
14
|
import isEmpty from 'lodash/isEmpty';
|
|
15
15
|
import isEqual from 'lodash/isEqual';
|
|
16
|
-
import React, { useContext, useEffect, useState } from 'react';
|
|
16
|
+
import React, { useContext, useEffect, useMemo, useState } from 'react';
|
|
17
17
|
import { useTranslation } from 'react-i18next';
|
|
18
18
|
import { useCaseDispatch, useCaseSelector } from '../../../../../context/CaseContext';
|
|
19
19
|
import { useCaseUpdateErrorMessage } from '../../../../../hooks/useCaseUpdateErrorMessage';
|
|
20
|
-
import { setCaseDetails,
|
|
20
|
+
import { setCaseDetails, updateCaseDetailsGraphQL } from '../../../../../reducers/CaseReducer';
|
|
21
21
|
import { getIsClusterIdInvalid, isClusterIdEnabledForProduct, } from '../../../../../utils/caseOpenshiftClusterIdUtils';
|
|
22
22
|
import { NoClusterIDReasonSelector } from '../../../../CaseManagement/NoClusterIDReasonSelector';
|
|
23
23
|
import { discoverV4ClusterIdLink, discoverV4ClusterIdLinkError, isInvalidErrorMessage, v3Tov4TransitionLink, } from '../../../../CaseManagement/OpenShiftClusterId';
|
|
@@ -25,20 +25,25 @@ import { OpenshiftDropdownV4 } from '../../../../CaseManagement/OpenshiftDropdow
|
|
|
25
25
|
import { PDFContext } from '../../../PDFContainer';
|
|
26
26
|
export function CaseOpenshiftClusterId() {
|
|
27
27
|
const caseUpdateError = useCaseUpdateErrorMessage();
|
|
28
|
-
const
|
|
28
|
+
const apolloClient = useApolloClient();
|
|
29
|
+
const { openshiftClusterID, product, version, caseNumber, caseId, openshiftClusterVersion, noClusterIdReason, noClusterIdReasonExplanation, selectedAccountDetails, description, additionalCaseInformation, isFetchingCaseDetails, } = useCaseSelector((state) => ({
|
|
29
30
|
openshiftClusterID: state.caseDetails.openshiftClusterID,
|
|
30
31
|
product: state.caseDetails.product,
|
|
31
32
|
version: state.caseDetails.version,
|
|
32
33
|
caseNumber: state.caseDetails.caseNumber,
|
|
34
|
+
caseId: state.caseDetails.id,
|
|
33
35
|
openshiftClusterVersion: state.caseDetails.openshiftClusterVersion,
|
|
34
36
|
noClusterIdReason: state.caseDetails.noClusterIdReason,
|
|
35
37
|
noClusterIdReasonExplanation: state.caseDetails.noClusterIdReasonExplanation,
|
|
36
38
|
selectedAccountDetails: state.selectedAccountDetails,
|
|
37
39
|
description: state.caseDetails.description,
|
|
40
|
+
additionalCaseInformation: state.caseDetails.additionalCaseInformation,
|
|
38
41
|
isFetchingCaseDetails: state.isFetchingCaseDetails,
|
|
39
42
|
}), isEqual);
|
|
40
43
|
const caseDispatch = useCaseDispatch();
|
|
41
|
-
const
|
|
44
|
+
const canEditCase = useCanEditCase();
|
|
45
|
+
const isCaseReadOnly = canEditCase.isCaseNotEditable;
|
|
46
|
+
const { globalMetadataState: { loggedInUserRights }, } = useContext(GlobalMetadataStateContext);
|
|
42
47
|
const majorVersion = (version && getVersion(version).major) || '';
|
|
43
48
|
const isOpenShiftV3 = product === 'OpenShift Container Platform' && majorVersion === '3';
|
|
44
49
|
const isCustomer = loggedInUserRights.data.isAccountSameAsLoggedInAccount(selectedAccountDetails.data.accountNumber);
|
|
@@ -55,6 +60,47 @@ export function CaseOpenshiftClusterId() {
|
|
|
55
60
|
const previousProduct = usePrevious(product);
|
|
56
61
|
const { t } = useTranslation();
|
|
57
62
|
const { isExportingPDF } = useContext(PDFContext);
|
|
63
|
+
const additionalCaseNoClusterFields = useMemo(() => extractNoClusterIdFieldsFromAdditionalCaseInformation(additionalCaseInformation), [additionalCaseInformation]);
|
|
64
|
+
const resolvedNoClusterFields = useMemo(() => ({
|
|
65
|
+
reason: noClusterIdReason || additionalCaseNoClusterFields.noClusterIdReason,
|
|
66
|
+
explanation: noClusterIdReasonExplanation || additionalCaseNoClusterFields.noClusterIdReasonExplanation,
|
|
67
|
+
}), [noClusterIdReason, noClusterIdReasonExplanation, additionalCaseNoClusterFields]);
|
|
68
|
+
const hasNoClusterIdSelection = useMemo(() => {
|
|
69
|
+
const { reason, explanation } = resolvedNoClusterFields;
|
|
70
|
+
if (reason) {
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
return explanation !== '' && explanation !== 'v3-cluster';
|
|
74
|
+
}, [resolvedNoClusterFields]);
|
|
75
|
+
const clusterDropdownId = useMemo(() => {
|
|
76
|
+
if (!isEmpty(localOpenshiftClusterIDState)) {
|
|
77
|
+
return localOpenshiftClusterIDState;
|
|
78
|
+
}
|
|
79
|
+
if (!isEmpty(selectedReason)) {
|
|
80
|
+
return selectedReason;
|
|
81
|
+
}
|
|
82
|
+
if (!isEmpty(openshiftClusterID)) {
|
|
83
|
+
return openshiftClusterID;
|
|
84
|
+
}
|
|
85
|
+
const { reason, explanation } = resolvedNoClusterFields;
|
|
86
|
+
if (reason === 'Other' && explanation === 'v3-cluster') {
|
|
87
|
+
return 'v3-cluster';
|
|
88
|
+
}
|
|
89
|
+
if (hasNoClusterIdSelection) {
|
|
90
|
+
return 'dont-have-id';
|
|
91
|
+
}
|
|
92
|
+
return '';
|
|
93
|
+
}, [
|
|
94
|
+
localOpenshiftClusterIDState,
|
|
95
|
+
selectedReason,
|
|
96
|
+
openshiftClusterID,
|
|
97
|
+
resolvedNoClusterFields,
|
|
98
|
+
hasNoClusterIdSelection,
|
|
99
|
+
]);
|
|
100
|
+
const resolvedNoClusterIdReason = resolvedNoClusterFields.reason;
|
|
101
|
+
const resolvedNoClusterIdReasonExplanation = resolvedNoClusterFields.explanation;
|
|
102
|
+
const shouldShowNoClusterReasonSelector = resolvedNoClusterIdReasonExplanation !== 'v3-cluster' &&
|
|
103
|
+
(clusterDropdownId === 'dont-have-id' || dontKnowSelected);
|
|
58
104
|
const clusterStateReset = () => {
|
|
59
105
|
setSelectedReason('');
|
|
60
106
|
setDontKnowSelected(false);
|
|
@@ -67,58 +113,84 @@ export function CaseOpenshiftClusterId() {
|
|
|
67
113
|
openshiftClusterVersion: '',
|
|
68
114
|
noClusterIdReasonExplanation: '',
|
|
69
115
|
noClusterIdReason: '',
|
|
116
|
+
additionalCaseInformation: null,
|
|
70
117
|
});
|
|
71
118
|
};
|
|
119
|
+
const clearedClusterProductFields = {
|
|
120
|
+
openshiftClusterID: '',
|
|
121
|
+
openshiftClusterVersion: '',
|
|
122
|
+
noClusterIdReasonExplanation: '',
|
|
123
|
+
noClusterIdReason: '',
|
|
124
|
+
};
|
|
72
125
|
const onDisplayNameChange = (val) => {
|
|
73
126
|
setDisplayName(val);
|
|
74
127
|
};
|
|
75
128
|
useEffect(() => {
|
|
76
|
-
var _a;
|
|
77
129
|
const isClusterVisible = () => __awaiter(this, void 0, void 0, function* () {
|
|
78
|
-
|
|
79
|
-
const hasCluster = yield isClusterIdEnabledForProduct(product, (_a = allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult);
|
|
130
|
+
const hasCluster = yield isClusterIdEnabledForProduct(product);
|
|
80
131
|
setShowClusterId(hasCluster);
|
|
81
|
-
// when product changes from a product with cluster to a product without cluster, reset the clusterId
|
|
82
132
|
const hasPreviousProduct = previousProduct !== undefined;
|
|
83
133
|
const hasCurrentProduct = product !== undefined;
|
|
84
134
|
//need to check if they are undefined as the data loads in and can cause eval against product version === undefined causing edge case to reset our cluster with logic as if product changed.
|
|
85
135
|
const IsProductHasChanged = hasPreviousProduct && hasCurrentProduct && previousProduct !== product;
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
noClusterIdReason: '',
|
|
92
|
-
};
|
|
93
|
-
yield clusterIdUpdate(caseDetails, false);
|
|
94
|
-
setCaseDetails(caseDispatch, caseDetails);
|
|
136
|
+
const currentIsClusterEnabled = hasCluster && !isOpenShiftV3;
|
|
137
|
+
const previousIsClusterEnabled = !isEmpty(previousProduct) && isClusterIdEnabledForProduct(previousProduct);
|
|
138
|
+
const shouldResetOnClusterProductBoundaryChange = IsProductHasChanged && previousIsClusterEnabled !== currentIsClusterEnabled;
|
|
139
|
+
if (shouldResetOnClusterProductBoundaryChange) {
|
|
140
|
+
setCaseDetails(caseDispatch, Object.assign(Object.assign({}, clearedClusterProductFields), { additionalCaseInformation: null }));
|
|
95
141
|
setLocalOpenshiftClusterIDState('');
|
|
96
142
|
clusterStateReset();
|
|
143
|
+
const hasClusterRelatedData = !isEmpty(openshiftClusterID) ||
|
|
144
|
+
!isEmpty(openshiftClusterVersion) ||
|
|
145
|
+
!isEmpty(noClusterIdReason) ||
|
|
146
|
+
!isEmpty(noClusterIdReasonExplanation) ||
|
|
147
|
+
hasNoClusterIdFieldsInAdditionalCaseInformation(additionalCaseInformation);
|
|
148
|
+
if (hasClusterRelatedData) {
|
|
149
|
+
yield clusterIdUpdate(clearedClusterProductFields, false);
|
|
150
|
+
}
|
|
97
151
|
}
|
|
98
152
|
});
|
|
99
|
-
|
|
100
|
-
isClusterVisible();
|
|
101
|
-
}
|
|
153
|
+
isClusterVisible();
|
|
102
154
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
103
|
-
}, [product
|
|
155
|
+
}, [product]);
|
|
104
156
|
/**
|
|
105
|
-
*
|
|
106
|
-
* we also fetch the details for the cluster id so that we can have fields like cluster version while creating the case
|
|
157
|
+
* Keep local invalid state in sync when a real cluster ID is present on the case.
|
|
107
158
|
*/
|
|
108
159
|
useEffect(() => {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
160
|
+
setIsClusterIdInValid(getIsClusterIdInvalid(openshiftClusterID));
|
|
161
|
+
if (!isEmpty(openshiftClusterID)) {
|
|
162
|
+
setLocalOpenshiftClusterIDState(openshiftClusterID);
|
|
163
|
+
setSelectedReason('');
|
|
164
|
+
setDontKnowSelected(false);
|
|
114
165
|
}
|
|
115
|
-
|
|
116
|
-
}, [noClusterIdReason, openshiftClusterID, openshiftClusterVersion]);
|
|
166
|
+
}, [openshiftClusterID, openshiftClusterVersion]);
|
|
117
167
|
const clusterIdUpdate = (caseDetails_1, ...args_1) => __awaiter(this, [caseDetails_1, ...args_1], void 0, function* (caseDetails, showToast = true) {
|
|
118
168
|
if (showToast)
|
|
119
169
|
setIsClusterIdUpdating(true);
|
|
120
170
|
try {
|
|
121
|
-
|
|
171
|
+
const caseUpdate = {};
|
|
172
|
+
if (caseDetails.openshiftClusterID !== undefined) {
|
|
173
|
+
caseUpdate.openshiftClusterID = caseDetails.openshiftClusterID;
|
|
174
|
+
}
|
|
175
|
+
if (caseDetails.openshiftClusterVersion !== undefined) {
|
|
176
|
+
caseUpdate.openshiftClusterVersion = caseDetails.openshiftClusterVersion;
|
|
177
|
+
}
|
|
178
|
+
if (caseDetails.noClusterIdReason !== undefined) {
|
|
179
|
+
caseUpdate.noClusterIdReason = caseDetails.noClusterIdReason;
|
|
180
|
+
}
|
|
181
|
+
if (caseDetails.noClusterIdReasonExplanation !== undefined) {
|
|
182
|
+
caseUpdate.noClusterIdReasonExplanation = caseDetails.noClusterIdReasonExplanation;
|
|
183
|
+
}
|
|
184
|
+
yield updateCaseDetailsGraphQL(caseDispatch, apolloClient, caseNumber, caseUpdate, false, {
|
|
185
|
+
salesforceCaseId: caseId,
|
|
186
|
+
existingCaseDetails: {
|
|
187
|
+
product,
|
|
188
|
+
version,
|
|
189
|
+
noClusterIdReason,
|
|
190
|
+
noClusterIdReasonExplanation,
|
|
191
|
+
additionalCaseInformation,
|
|
192
|
+
},
|
|
193
|
+
});
|
|
122
194
|
if (showToast) {
|
|
123
195
|
setIsClusterIdUpdating(false);
|
|
124
196
|
ToastNotification.addSuccessMessage(t(`OpenShift Cluster ID has been successfully updated`));
|
|
@@ -185,38 +257,37 @@ export function CaseOpenshiftClusterId() {
|
|
|
185
257
|
yield clusterIdUpdate(caseDetails);
|
|
186
258
|
}
|
|
187
259
|
});
|
|
188
|
-
const isDedicatedV3 = () =>
|
|
260
|
+
const isDedicatedV3 = () => resolvedNoClusterIdReason === 'Other' && resolvedNoClusterIdReasonExplanation === 'v3-cluster';
|
|
189
261
|
const v3Message = () => description.match(/Cluster Name: /g) ? (React.createElement(React.Fragment, null,
|
|
190
262
|
"Your Cluster Name has been added to the description below. ",
|
|
191
263
|
v3Tov4TransitionLink())) : (React.createElement(React.Fragment, null, v3Tov4TransitionLink()));
|
|
192
264
|
const clusterIdDropdownFormInstructions = () => {
|
|
193
265
|
const errorMessage = isClusterIdInvalid
|
|
194
266
|
? isInvalidErrorMessage()
|
|
195
|
-
: isEmpty(
|
|
196
|
-
?
|
|
197
|
-
:
|
|
267
|
+
: isEmpty(clusterDropdownId) || clusterDropdownId === 'dont-have-id' || clusterDropdownId === 'v3-cluster'
|
|
268
|
+
? null
|
|
269
|
+
: discoverV4ClusterIdLinkError();
|
|
198
270
|
const infoMessage = isDedicatedV3() ? v3Message() : discoverV4ClusterIdLink();
|
|
199
271
|
return errorMessage ? errorMessage : infoMessage;
|
|
200
272
|
};
|
|
201
273
|
const onReasonExplanationInputBoxChanged = (explanationInput) => __awaiter(this, void 0, void 0, function* () {
|
|
202
274
|
explanationInput = (explanationInput || '').trim();
|
|
203
|
-
if (explanationInput) {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
275
|
+
if (!explanationInput || explanationInput === (noClusterIdReasonExplanation || '').trim()) {
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
const caseDetails = {
|
|
279
|
+
noClusterIdReason: 'Other',
|
|
280
|
+
openshiftClusterID: '',
|
|
281
|
+
noClusterIdReasonExplanation: explanationInput,
|
|
282
|
+
};
|
|
283
|
+
try {
|
|
284
|
+
setCaseDetails(caseDispatch, { noClusterIdReasonExplanation: explanationInput });
|
|
285
|
+
yield clusterIdUpdate(caseDetails);
|
|
286
|
+
}
|
|
287
|
+
catch (e) {
|
|
288
|
+
setCaseDetails(caseDispatch, { noClusterIdReasonExplanation });
|
|
216
289
|
}
|
|
217
290
|
});
|
|
218
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
219
|
-
const debounceFn = debounce(onReasonExplanationInputBoxChanged, 1000);
|
|
220
291
|
const onReasonChange = (reason) => __awaiter(this, void 0, void 0, function* () {
|
|
221
292
|
if (!reason || reason === noClusterIdReason)
|
|
222
293
|
return;
|
|
@@ -236,7 +307,8 @@ export function CaseOpenshiftClusterId() {
|
|
|
236
307
|
}
|
|
237
308
|
setIsReasonUpdating(false);
|
|
238
309
|
});
|
|
239
|
-
const isInVaidNoClusterIdReason = isEmpty(
|
|
310
|
+
const isInVaidNoClusterIdReason = isEmpty(resolvedNoClusterIdReason) ||
|
|
311
|
+
(resolvedNoClusterIdReason === 'Other' && isEmpty((resolvedNoClusterIdReasonExplanation || '').trim()));
|
|
240
312
|
if (!showClusterId || isFetchingCaseDetails) {
|
|
241
313
|
return null;
|
|
242
314
|
}
|
|
@@ -245,9 +317,12 @@ export function CaseOpenshiftClusterId() {
|
|
|
245
317
|
}
|
|
246
318
|
else {
|
|
247
319
|
return (React.createElement(React.Fragment, null,
|
|
248
|
-
React.createElement(OpenshiftDropdownV4, { openshiftDisplayName: displayName, setOpenshiftDisplayName: onDisplayNameChange, openshiftClusterIDState:
|
|
249
|
-
|
|
250
|
-
|
|
320
|
+
React.createElement(OpenshiftDropdownV4, { openshiftDisplayName: displayName, setOpenshiftDisplayName: onDisplayNameChange, openshiftClusterIDState: clusterDropdownId || '', onClusterIdStateUpdate: onClusterIdSave, isClusterIdInvalid: isEmpty(clusterDropdownId) ||
|
|
321
|
+
clusterDropdownId === 'dont-have-id' ||
|
|
322
|
+
clusterDropdownId === 'v3-cluster'
|
|
323
|
+
? false
|
|
324
|
+
: isClusterIdInvalid, clusterIdDropdownFormInstructions: !isExportingPDF ? clusterIdDropdownFormInstructions() : undefined, onClusterClear: resetClusterData, isV3: product === 'OpenShift Container Platform', isDisabled: isClusterIdUpdating || isCaseReadOnly, noClusterIdReasonExplanation: resolvedNoClusterIdReasonExplanation || '' }),
|
|
325
|
+
shouldShowNoClusterReasonSelector && (React.createElement(NoClusterIDReasonSelector, { noClusterIdReasonExplanation: resolvedNoClusterIdReasonExplanation || '', noClusterIdReason: resolvedNoClusterIdReason || '', onReasonInputBoxBlur: onReasonExplanationInputBoxChanged, onReasonChange: onReasonChange, isInValid: isInVaidNoClusterIdReason, isCustomer: isCustomer, isDisabled: isReasonUpdating || isCaseReadOnly })),
|
|
251
326
|
React.createElement(LoadingIndicator, { show: isClusterIdUpdating, size: "xs" })));
|
|
252
327
|
}
|
|
253
328
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseReferenceNumber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CaseReferenceNumber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAW/D,UAAU,MAAM;IACZ,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,MAAM,qBAqMxD"}
|
|
@@ -7,6 +7,7 @@ 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 { useApolloClient } from '@apollo/client/react';
|
|
10
11
|
import { InputGroupText, Spinner, TextInput, TextInputGroup, Tooltip, TooltipPosition, ValidatedOptions, } from '@patternfly/react-core';
|
|
11
12
|
import CheckIcon from '@patternfly/react-icons/dist/js/icons/check-icon';
|
|
12
13
|
import InfoIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
@@ -19,7 +20,7 @@ import { Trans, useTranslation } from 'react-i18next';
|
|
|
19
20
|
import { useCaseDispatch, useCaseSelector } from '../../../../context/CaseContext';
|
|
20
21
|
import { useCaseUpdateErrorMessage } from '../../../../hooks/useCaseUpdateErrorMessage';
|
|
21
22
|
import { CASE_REFERENCE_NUMBER_LIMIT } from '../../../../reducers/CaseConstNTypes';
|
|
22
|
-
import { setCaseDetails,
|
|
23
|
+
import { setCaseDetails, updateCaseDetailsGraphQL } from '../../../../reducers/CaseReducer';
|
|
23
24
|
import { CaseValuesToWatch } from '../../../shared/Constants';
|
|
24
25
|
import { getChangedValueTooltip } from '../../../shared/utils';
|
|
25
26
|
import { PDFContext } from '../../PDFContainer';
|
|
@@ -27,11 +28,13 @@ export default function CaseReferenceNumber(props) {
|
|
|
27
28
|
const { hideSaveCancel = true, inlineEditable = true } = props;
|
|
28
29
|
const { t } = useTranslation();
|
|
29
30
|
const caseUpdateError = useCaseUpdateErrorMessage();
|
|
30
|
-
const { referenceNumber, caseNumber } = useCaseSelector((state) => ({
|
|
31
|
+
const { referenceNumber, caseNumber, existingCaseDetails } = useCaseSelector((state) => ({
|
|
31
32
|
referenceNumber: state.caseDetails.alternateId,
|
|
32
33
|
caseNumber: state.caseDetails.caseNumber,
|
|
34
|
+
existingCaseDetails: state.caseDetails,
|
|
33
35
|
}), isEqual);
|
|
34
36
|
const caseDispatch = useCaseDispatch();
|
|
37
|
+
const apolloClient = useApolloClient();
|
|
35
38
|
const [isUpdating, setIsUpdating] = useState(false);
|
|
36
39
|
const [referenceNumberState, setReferenceNumberState] = useState(referenceNumber);
|
|
37
40
|
const { isExportingPDF } = useContext(PDFContext);
|
|
@@ -60,7 +63,9 @@ export default function CaseReferenceNumber(props) {
|
|
|
60
63
|
try {
|
|
61
64
|
setIsUpdating(true);
|
|
62
65
|
const caseDetails = { alternateId: referenceNumberState === null || referenceNumberState === void 0 ? void 0 : referenceNumberState.trim() };
|
|
63
|
-
yield
|
|
66
|
+
yield updateCaseDetailsGraphQL(caseDispatch, apolloClient, caseNumber, caseDetails, false, {
|
|
67
|
+
existingCaseDetails,
|
|
68
|
+
});
|
|
64
69
|
ToastNotification.addSuccessMessage(t(`Personal reference number has been successfully updated`));
|
|
65
70
|
setIsUpdating(false);
|
|
66
71
|
}
|
|
@@ -106,9 +111,9 @@ export default function CaseReferenceNumber(props) {
|
|
|
106
111
|
React.createElement(ValueChangedIcon, { afterLocalChange: afterLocalChange, isLocalChange: localRefNumberChange, value: referenceNumber, getTooltipContent: getChangedValueTooltip(() => CaseValuesToWatch.altID) }),
|
|
107
112
|
' ',
|
|
108
113
|
!isExportingPDF ? (React.createElement(Tooltip, { trigger: 'mouseenter focus', position: TooltipPosition.top, content: React.createElement(Trans, null, "Add your internal tracking ID to better identify and organize support issues.") },
|
|
109
|
-
React.createElement(InfoIcon, { className: "pf-v6-u-ml-sm cursor-pointer", "aria-label": "Case Alternate ID", color: "#5e40be" }))) : ('')), allowInlineEdit: inlineEditable, content: referenceNumber || t('No personal reference number to display.'), hideSaveCancel: hideSaveCancel, saveDisabled: saveDisabled, charCount: (referenceNumberState === null || referenceNumberState === void 0 ? void 0 : referenceNumberState.length) || 0, charTotal: CASE_REFERENCE_NUMBER_LIMIT, cancelToggleState: isCancelClicked, saveToggleState: isSaveClicked, isExportingPDF: isExportingPDF },
|
|
114
|
+
React.createElement(InfoIcon, { className: "pf-v6-u-ml-sm cursor-pointer", "aria-label": "Case Alternate ID", color: "#5e40be" }))) : ('')), allowInlineEdit: inlineEditable && !canEditCase.isCaseNotEditable, showAlwaysEditableInput: false, content: referenceNumber || t('No personal reference number to display.'), hideSaveCancel: hideSaveCancel, saveDisabled: saveDisabled, charCount: (referenceNumberState === null || referenceNumberState === void 0 ? void 0 : referenceNumberState.length) || 0, charTotal: CASE_REFERENCE_NUMBER_LIMIT, cancelToggleState: isCancelClicked, saveToggleState: isSaveClicked, isExportingPDF: isExportingPDF },
|
|
110
115
|
React.createElement(TextInputGroup, null,
|
|
111
|
-
React.createElement(TextInput, { value: referenceNumberState, type: "text", id: "case-details-reference-number", placeholder: t(`Enter the reference number used personally or within your company`), onChange: (_event, value) => onReferenceNumberChange(value), "data-tracking-id": "case-details-reference-number", isDisabled: isUpdating, onKeyDown: handleKeyDown, validated: (referenceNumberState === null || referenceNumberState === void 0 ? void 0 : referenceNumberState.length) > CASE_REFERENCE_NUMBER_LIMIT
|
|
116
|
+
React.createElement(TextInput, { value: referenceNumberState, type: "text", id: "case-details-reference-number", placeholder: t(`Enter the reference number used personally or within your company`), onChange: (_event, value) => onReferenceNumberChange(value), "data-tracking-id": "case-details-reference-number", isDisabled: isUpdating || canEditCase.isCaseNotEditable, onKeyDown: handleKeyDown, validated: (referenceNumberState === null || referenceNumberState === void 0 ? void 0 : referenceNumberState.length) > CASE_REFERENCE_NUMBER_LIMIT
|
|
112
117
|
? ValidatedOptions.error
|
|
113
118
|
: ValidatedOptions.default }),
|
|
114
119
|
!isUpdating ? (React.createElement(InputGroupText, null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductVersion.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/ProductVersion.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProductVersion.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/ProductVersion.tsx"],"names":[],"mappings":"AA2CA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAehF,UAAU,MAAM;IACZ,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACvC;AAED,iBAAS,eAAe,CAAC,KAAK,EAAE,MAAM,qBAsbrC;AAED,eAAe,eAAe,CAAC"}
|