@rh-support/troubleshoot 2.2.51 → 2.4.10-beta.7
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/README.md +1 -1
- package/lib/esm/components/AccountInfo/AccountSelector.d.ts.map +1 -1
- package/lib/esm/components/AccountInfo/AccountSelector.js +4 -4
- package/lib/esm/components/AccountInfo/ManagedAccountsDropdown.js +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.js +2 -2
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +19 -22
- package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsAside.js +9 -14
- package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.js +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +13 -18
- package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.js +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/DateTime.js +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/index.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/index.js +11 -14
- package/lib/esm/components/CaseEditView/CaseSecureSupportAlert.js +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.js +38 -82
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts +1 -4
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.js +4 -6
- package/lib/esm/components/CaseEditView/CaseSubscriptionAbuseAlert.js +1 -1
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.js +11 -17
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.js +2 -2
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.js +6 -7
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.js +10 -11
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.js +2 -2
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +10 -11
- package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.js +3 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +4 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftPopover.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftV3Popover.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.js +7 -7
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.js +6 -6
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseChat.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +4 -6
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +1 -18
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseExternalTrackerUpdate.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseExternalTrackerUpdate.js +3 -5
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +4 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.js +2 -3
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.js +3 -3
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.js +1 -1
- package/lib/esm/components/CaseEditView/index.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/index.js +6 -8
- package/lib/esm/components/CaseInformation/CaseInformation.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/CaseInformation.js +3 -3
- package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.js +1 -1
- package/lib/esm/components/CaseInformation/Description.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Description.js +3 -3
- package/lib/esm/components/CaseInformation/Fts.js +3 -3
- package/lib/esm/components/CaseInformation/Severity.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Severity.js +3 -5
- package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/SupportLevel.js +3 -4
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.js +2 -3
- package/lib/esm/components/CaseManagement/CaseManagement.js +2 -2
- package/lib/esm/components/CaseManagement/Cep.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/Cep.js +14 -30
- package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.js +12 -13
- package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.js +3 -3
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +1 -1
- package/lib/esm/components/CaseManagement/OpenShiftV3Inputbox.js +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +3 -4
- package/lib/esm/components/CaseManagement/RHAssociatesSelector.js +2 -2
- package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.js +14 -15
- package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.js +3 -3
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.js +1 -1
- package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.js +3 -3
- package/lib/esm/components/IdeaInformation/IdeaInformation.js +5 -5
- package/lib/esm/components/ImproveCase/KtQuestions.d.ts.map +1 -1
- package/lib/esm/components/ImproveCase/KtQuestions.js +7 -7
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.js +15 -12
- package/lib/esm/components/ProductSelector/AllProductsSelector.js +1 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +5 -6
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +2 -2
- package/lib/esm/components/ProductSelector/ProductSelector.js +2 -2
- package/lib/esm/components/Recommendations/AlertToastWrapper.d.ts +0 -3
- package/lib/esm/components/Recommendations/AlertToastWrapper.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/AlertToastWrapper.js +2 -2
- package/lib/esm/components/Recommendations/AsideResults.d.ts +7 -1
- package/lib/esm/components/Recommendations/AsideResults.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/AsideResults.js +17 -4
- package/lib/esm/components/Recommendations/ClusterRecommendationItems.js +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendations.js +1 -1
- package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.js +1 -1
- package/lib/esm/components/Recommendations/EARules/EARuleInfoInline.js +7 -7
- package/lib/esm/components/Recommendations/InsightsResults.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/InsightsResults.js +3 -3
- package/lib/esm/components/Recommendations/InsightsRuleInfo.js +7 -7
- package/lib/esm/components/Recommendations/RecommendationFeedbackModal.js +1 -1
- package/lib/esm/components/Recommendations/Recommendations.d.ts +3 -0
- package/lib/esm/components/Recommendations/Recommendations.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/Recommendations.js +22 -6
- package/lib/esm/components/Recommendations/RulesModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/RulesModal.js +1 -2
- package/lib/esm/components/Recommendations/ShowRank.d.ts +12 -0
- package/lib/esm/components/Recommendations/ShowRank.d.ts.map +1 -0
- package/lib/esm/components/Recommendations/ShowRank.js +27 -0
- package/lib/esm/components/RemoteRider/RemoteRiderBanner.js +1 -1
- package/lib/esm/components/Review/Review.js +2 -2
- package/lib/esm/components/SessionRestore/SessionRestore.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/SessionRestore.js +14 -9
- package/lib/esm/components/SessionRestore/SessionRestoreCard.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/SessionRestoreCard.js +16 -9
- package/lib/esm/components/SubmitCase/ResubmitToast.d.ts +0 -3
- package/lib/esm/components/SubmitCase/ResubmitToast.d.ts.map +1 -1
- package/lib/esm/components/SubmitCase/ResubmitToast.js +1 -3
- package/lib/esm/components/SubmitCase/SubmitCase.d.ts +7 -1
- package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
- package/lib/esm/components/SubmitCase/SubmitCase.js +17 -19
- package/lib/esm/components/Suggestions/Suggestions.js +1 -1
- package/lib/esm/components/Suggestions/TopContent.d.ts.map +1 -1
- package/lib/esm/components/Suggestions/TopContent.js +12 -58
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +6 -6
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +4 -4
- package/lib/esm/components/shared/Rule.js +6 -6
- package/lib/esm/components/shared/fileUpload/FileLister.js +6 -6
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +2 -2
- package/lib/esm/components/shared/fileUpload/common/FileUploaderInfoIcon.js +1 -1
- package/lib/esm/components/shared/fileUpload/css/fileSelector.css +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.js +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.js +2 -2
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelectorImage.js +2 -2
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.js +1 -1
- package/lib/esm/components/shared/useIsSectionValid.js +1 -1
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.js +0 -6
- package/lib/esm/components/wizardLayout/MainSection.js +1 -1
- package/lib/esm/components/wizardLayout/WizardAside.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardAside.js +3 -3
- package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardLayout.js +37 -6
- package/lib/esm/components/wizardLayout/WizardMain.js +2 -2
- package/lib/esm/components/wizardLayout/WizardNavigation.js +1 -1
- package/lib/esm/constants/caseDetailsConstants.d.ts +1 -7
- package/lib/esm/constants/caseDetailsConstants.d.ts.map +1 -1
- package/lib/esm/constants/caseDetailsConstants.js +0 -7
- package/lib/esm/css/app.css +7 -7
- package/lib/esm/css/case.css +3 -3
- package/lib/esm/hooks/useWizard.js +1 -1
- package/lib/esm/reducers/CaseConstNTypes.d.ts +4 -4
- package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.js +4 -4
- package/lib/esm/reducers/CaseHelpers.d.ts.map +1 -1
- package/lib/esm/reducers/CaseHelpers.js +0 -2
- package/lib/esm/reducers/CaseOverviewReducer.d.ts +1 -1
- package/lib/esm/reducers/CaseOverviewReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.d.ts +2 -1
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.js +14 -20
- package/lib/esm/reducers/RecommendationsReducer.d.ts +2 -1
- package/lib/esm/reducers/RecommendationsReducer.d.ts.map +1 -1
- package/lib/esm/reducers/RecommendationsReducer.js +30 -2
- package/lib/esm/reducers/RouteConstNTypes.d.ts +2 -2
- package/lib/esm/reducers/RouteConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/SessionRestoreReducer.d.ts +1 -1
- package/lib/esm/reducers/SessionRestoreReducer.d.ts.map +1 -1
- package/lib/esm/reducers/SessionRestoreReducer.js +1 -7
- package/lib/esm/scss/_main.scss +43 -109
- package/lib/esm/scss/_pf4-imports.scss +30 -0
- package/lib/esm/scss/{_pf-overrides.scss → _pf4-overrides.scss} +85 -214
- package/lib/esm/scss/index.scss +2 -1
- package/package.json +14 -13
- package/lib/esm/components/CaseEditView/CaseSolutions/HandpicketItem.d.ts +0 -13
- package/lib/esm/components/CaseEditView/CaseSolutions/HandpicketItem.d.ts.map +0 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/HandpicketItem.js +0 -76
- package/lib/esm/components/CaseEditView/Tabs/RelatedTickets/RelatedTickets.d.ts +0 -3
- package/lib/esm/components/CaseEditView/Tabs/RelatedTickets/RelatedTickets.d.ts.map +0 -1
- package/lib/esm/components/CaseEditView/Tabs/RelatedTickets/RelatedTickets.js +0 -118
- package/lib/esm/context/CaseOverviewContext.d.ts +0 -8
- package/lib/esm/context/CaseOverviewContext.d.ts.map +0 -1
- package/lib/esm/context/CaseOverviewContext.js +0 -10
|
@@ -25,6 +25,6 @@ function FileSelectorButton(_a) {
|
|
|
25
25
|
React.createElement("label", { className: "sr-only", htmlFor: "upload-btn" },
|
|
26
26
|
React.createElement(Trans, null, "Upload new file")),
|
|
27
27
|
React.createElement("input", Object.assign({ value: "", style: { display: 'none !important' }, id: `${id !== null && id !== void 0 ? id : 'upload-btn'}` }, getInputProps())),
|
|
28
|
-
React.createElement("button", Object.assign({}, btnProps, { type: "button", className: `pf-
|
|
28
|
+
React.createElement("button", Object.assign({}, btnProps, { type: "button", className: `pf-c-button ${className}`, "data-tracking-id": "upload-a-file" }), buttonLabel)));
|
|
29
29
|
}
|
|
30
30
|
export default FileSelectorButton;
|
|
@@ -28,9 +28,9 @@ function WidgetFileSelector({ id = '', className = '', isSessionId, isPrivate =
|
|
|
28
28
|
React.createElement("label", Object.assign({ className: "file-diag-dragndrop", htmlFor: "file-diag-selector" }, getRootProps({ onClick: onLabelClick }), { "data-tracking-id": "file-selector-widget-main" }),
|
|
29
29
|
React.createElement("input", Object.assign({ id: "file-diag-selector" }, getInputProps())),
|
|
30
30
|
isDragActive ? (t(`Drop your file here...`)) : (React.createElement(Trans, null, "Drag and drop, paste, or browse to upload a file")),
|
|
31
|
-
isIdea && (React.createElement("div", { className: "pf-
|
|
31
|
+
isIdea && (React.createElement("div", { className: "pf-u-text-align-center pf-u-color-300 pf-u-font-weight-normal" },
|
|
32
32
|
React.createElement(Trans, null, "Files must be less than 5 MB.")))),
|
|
33
|
-
isIdea && (React.createElement("p", { className: "pf-
|
|
33
|
+
isIdea && (React.createElement("p", { className: "pf-u-danger-color-200" },
|
|
34
34
|
rejectedFiles.map((rejectedFile) => {
|
|
35
35
|
const isImage = /image\/(png|gif|jpe?g)/.test(rejectedFile.type);
|
|
36
36
|
return !isImage ? (React.createElement("div", null,
|
|
@@ -27,10 +27,10 @@ function WidgetFileSelectorImage({ id = '', className = '', isSessionId, isPriva
|
|
|
27
27
|
React.createElement("label", Object.assign({ className: "file-diag-dragndrop", htmlFor: "file-diag-selector" }, getRootProps({ onClick: onLabelClick }), { "data-tracking-id": "file-selector-widget-main" }),
|
|
28
28
|
React.createElement("input", Object.assign({ id: "file-diag-selector" }, getInputProps())),
|
|
29
29
|
isDragActive ? (t(`Drop your file here...`)) : (React.createElement(Trans, null, "Drag and drop, paste, or browse to upload a file")),
|
|
30
|
-
React.createElement("div", { className: "pf-
|
|
30
|
+
React.createElement("div", { className: "pf-u-text-align-center pf-u-color-300 pf-u-font-weight-normal" },
|
|
31
31
|
React.createElement(Trans, null, "Files must be less than 5 MB."))),
|
|
32
32
|
' ',
|
|
33
|
-
React.createElement("p", { className: "pf-
|
|
33
|
+
React.createElement("p", { className: "pf-u-danger-color-200" }, rejectedFiles.map((rejectedFile) => {
|
|
34
34
|
const isImage = /image\/(png|gif|jpe?g)/.test(rejectedFile.type);
|
|
35
35
|
return !isImage ? (React.createElement("div", null,
|
|
36
36
|
rejectedFile.name,
|
|
@@ -209,7 +209,6 @@ export const uploadFile = ({ dispatch, idToUploadTo, localFile, originalFile, in
|
|
|
209
209
|
size: localFile.size,
|
|
210
210
|
}, putObjectRequest, listener, true, { partSize: 5 * 1024 * 1024, queueSize: 5 }, isSecureSupport, Object.assign(Object.assign({}, slowUploadConfig), { preferSlowS3Upload: Config.userConfig.preferSlowS3Upload }));
|
|
211
211
|
}
|
|
212
|
-
attachmentId && updateAttachmentIdForFile(dispatch, attachmentId, index);
|
|
213
212
|
const uploadPayload = {
|
|
214
213
|
uploadStatus: isSessionId ? UploadStatusConstants.uploadedOnSession : UploadStatusConstants.uploadedOnCase,
|
|
215
214
|
uploadErrorMessage: '',
|
|
@@ -217,6 +216,7 @@ export const uploadFile = ({ dispatch, idToUploadTo, localFile, originalFile, in
|
|
|
217
216
|
onAbort: undefined,
|
|
218
217
|
};
|
|
219
218
|
updateUploadMetadata(dispatch, index, uploadPayload);
|
|
219
|
+
attachmentId && updateAttachmentIdForFile(dispatch, attachmentId, index);
|
|
220
220
|
if (isSessionId && needsAnalyzing) {
|
|
221
221
|
doSosReportAnalysisForFile(dispatch, idToUploadTo, attachmentId, localFile, isSessionId, index);
|
|
222
222
|
}
|
|
@@ -60,7 +60,7 @@ export function useIsSectionValid(sectionName) {
|
|
|
60
60
|
!topContent.isFetching &&
|
|
61
61
|
!isEmpty(summary) &&
|
|
62
62
|
!recommendationState.isLoadingRecommendations &&
|
|
63
|
-
((_a = summary) === null || _a === void 0 ? void 0 : _a.length)
|
|
63
|
+
((_a = summary) === null || _a === void 0 ? void 0 : _a.length) <= SUMMARY_LENGTH_LIMIT);
|
|
64
64
|
};
|
|
65
65
|
const isCaseManagementSectionValid = () => {
|
|
66
66
|
const hasContactInfo24x7ValidLength = contactInfo24x7
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalTroubleshootEffects.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/GlobalTroubleshootEffects.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAUvD,OAAO,EAAqB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AASrF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"GlobalTroubleshootEffects.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/GlobalTroubleshootEffects.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAUvD,OAAO,EAAqB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AASrF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,eA6VtD"}
|
|
@@ -74,12 +74,6 @@ export function GlobalTroubleshootEffects(props) {
|
|
|
74
74
|
if (isFirstMountProduct.current) {
|
|
75
75
|
const productFromUrl = urlQueryParams.product;
|
|
76
76
|
const versionFromUrl = urlQueryParams.version;
|
|
77
|
-
const sourceFromUrl = urlQueryParams.source;
|
|
78
|
-
if (sourceFromUrl) {
|
|
79
|
-
setCaseDetails(caseDispatch, {
|
|
80
|
-
referrer: sourceFromUrl,
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
77
|
if (!productFromUrl ||
|
|
84
78
|
allProducts.isFetching ||
|
|
85
79
|
allProducts.isError ||
|
|
@@ -8,7 +8,7 @@ const MainSection = (props) => {
|
|
|
8
8
|
React.createElement("section", { id: `${props.section}`, tabIndex: -1, "aria-labelledby": `${props.section}-heading`, "aria-describedby": `${props.section}-description`, className: `${props.className ? props.className : ''}` },
|
|
9
9
|
React.createElement(LoadingIndicator, { show: props.isLoading, size: "lg" }),
|
|
10
10
|
!props.isLoading && (React.createElement(React.Fragment, null,
|
|
11
|
-
React.createElement("header", { className: "pf-
|
|
11
|
+
React.createElement("header", { className: "pf-u-display-none-on-sm" },
|
|
12
12
|
props.title && React.createElement("h2", { id: `${props.section}-heading` }, props.title),
|
|
13
13
|
props.description && (React.createElement("p", { id: `${props.section}-description`, className: `${props.descriptionClassName ? props.descriptionClassName : ''}` }, props.description))),
|
|
14
14
|
props.children)))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardAside.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardAside.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAInD,OAAO,
|
|
1
|
+
{"version":3,"file":"WizardAside.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardAside.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAInD,OAAO,EAEH,eAAe,EAIlB,MAAM,iCAAiC,CAAC;AAQzC,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,2BAA2B,EAAE,OAAO,CAAC;CACxC;AAGD,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,eAwCjC;kBAxCQ,WAAW;;;AA0CpB,eAAe,WAAW,CAAC"}
|
|
@@ -4,7 +4,7 @@ import isEqual from 'lodash/isEqual';
|
|
|
4
4
|
import React, { useContext } from 'react';
|
|
5
5
|
import { useCaseSelector } from '../../context/CaseContext';
|
|
6
6
|
import { RouteContext } from '../../context/RouteContext';
|
|
7
|
-
import {
|
|
7
|
+
import { hideFileUploadSidebarWidgetSections, showSideBarClusterIdRuleWidgetSections, showSideBarEARuleWidgetSections, showSideBarFileRecommendationSections, } from '../../reducers/RouteConstNTypes';
|
|
8
8
|
import { FileDiag } from '../CaseInformation/FileDiag';
|
|
9
9
|
import { AsideResults } from '../Recommendations/AsideResults';
|
|
10
10
|
import ClusterRecommendations from '../Recommendations/ClusterRecommendations';
|
|
@@ -32,10 +32,10 @@ function WizardAside(props) {
|
|
|
32
32
|
canshowEARuleWidget && React.createElement(EARuleWidget, null),
|
|
33
33
|
React.createElement(InsightsResults, null),
|
|
34
34
|
" ",
|
|
35
|
-
!(isIdea && activeSection === 'submit-case') && React.createElement(AsideResults,
|
|
35
|
+
!(isIdea && activeSection === 'submit-case') && React.createElement(AsideResults, { routeProps: props.routeProps }),
|
|
36
36
|
canShowFileRecommendationSectionsWidget && React.createElement(InsightsResults, { isDisplayOnMain: true }),
|
|
37
37
|
React.createElement(ClusterRecommendations, { showClusterRecommendationsList: canShowClusterIdReportWidget }),
|
|
38
|
-
canUseSessionManagement && !isCreatingCase &&
|
|
38
|
+
canUseSessionManagement && !isCreatingCase && React.createElement(SessionRestore, { routeProps: props.routeProps }),
|
|
39
39
|
canShowFileUploadWidget() && React.createElement(FileDiag, { className: "pf-u-mt-md" }))));
|
|
40
40
|
}
|
|
41
41
|
WizardAside.defaultProps = defaultProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardLayout.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WizardLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardLayout.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAuC,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAavG,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,eAyLzC"}
|
|
@@ -11,15 +11,16 @@ import { Grid, GridItem } from '@patternfly/react-core';
|
|
|
11
11
|
import { SupportFeedbackForm } from '@rh-support/components';
|
|
12
12
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
13
13
|
import { ability, CaseListFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
14
|
-
import { getVersionIfOnlyVersion, pendoTrackEvent, PreviousCaseTypes } from '@rh-support/utils';
|
|
14
|
+
import { getConfigField, getVersionIfOnlyVersion, PCM_CONFIG_FIELD_TYPE, pendoTrackEvent, PreviousCaseTypes, trafficSplit, } from '@rh-support/utils';
|
|
15
15
|
import findIndex from 'lodash/findIndex';
|
|
16
|
+
import isEmpty from 'lodash/isEmpty';
|
|
16
17
|
import isEqual from 'lodash/isEqual';
|
|
17
|
-
import React, { useContext, useRef, useState } from 'react';
|
|
18
|
+
import React, { useContext, useEffect, useRef, useState } from 'react';
|
|
18
19
|
import { Trans } from 'react-i18next';
|
|
19
20
|
import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
|
|
20
21
|
import { RouteContext } from '../../context/RouteContext';
|
|
21
22
|
import { SessionRestoreDispatchContext, SessionRestoreStateContext } from '../../context/SessionRestoreContext';
|
|
22
|
-
import { submitCase } from '../../reducers/CaseReducer';
|
|
23
|
+
import { setFetchingRecommendationsFromWatsonXFlag, submitCase } from '../../reducers/CaseReducer';
|
|
23
24
|
import { AppRouteSections } from '../../reducers/RouteConstNTypes';
|
|
24
25
|
import RouteUtils from '../../utils/routeUtils';
|
|
25
26
|
import PreCaseConfirmationModals, { PreCaseConfirmationModalsEnum, } from '../ConfirmationModals/PreCaseConfirmationModals';
|
|
@@ -36,12 +37,42 @@ export function WizardLayout(props) {
|
|
|
36
37
|
const sessionRestoreDispatch = useContext(SessionRestoreDispatchContext);
|
|
37
38
|
const caseDispatch = useCaseDispatch();
|
|
38
39
|
const { sessionRestore: { activeSessionId, previousSessions }, } = useContext(SessionRestoreStateContext);
|
|
39
|
-
const { globalMetadataState: { allProducts, loggedInUser, loggedInUsersAccount }, } = useContext(GlobalMetadataStateContext);
|
|
40
|
+
const { globalMetadataState: { allProducts, loggedInUser, loggedInUserRights, loggedInUsersAccount, pcmConfig }, } = useContext(GlobalMetadataStateContext);
|
|
40
41
|
const canAddAttachments = ability.can(resourceActions.PATCH, resources.CASE_CREATE, CaseListFields.ATTACHMENTS);
|
|
41
42
|
const { attachmentState } = useContext(AttachmentStateContext);
|
|
42
43
|
const isAnyFileAttachedLocal = isAnyFileAttached(attachmentState.caseFiles.selectedLocalFiles);
|
|
43
44
|
const [confirmationModalType, setConfirmationModalType] = useState(null);
|
|
44
45
|
const viewedConfirmationModalsList = useRef([]);
|
|
46
|
+
const isWatsonXEnabled = getConfigField(pcmConfig.data, 'isWatsonxEnabled', PCM_CONFIG_FIELD_TYPE.FEATURE_FLAG);
|
|
47
|
+
const testVariationWeight = getConfigField(pcmConfig.data, 'testVariationWeightZeroToTen', PCM_CONFIG_FIELD_TYPE.NUMBER);
|
|
48
|
+
const urlQueryParams = RouteUtils.getQueryParams(props.routeProps);
|
|
49
|
+
const rerankingFromUrl = urlQueryParams.reranking;
|
|
50
|
+
const isShowRerankingForInternalUsers = (rerankingFromUrl === 'true' || rerankingFromUrl === 'false') && loggedInUserRights.data.isInternal();
|
|
51
|
+
useEffect(() => {
|
|
52
|
+
if (isEmpty(activeSessionId) || !isWatsonXEnabled || !testVariationWeight)
|
|
53
|
+
return;
|
|
54
|
+
if (isShowRerankingForInternalUsers && rerankingFromUrl === 'true') {
|
|
55
|
+
setFetchingRecommendationsFromWatsonXFlag(caseDispatch, true);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
if (isShowRerankingForInternalUsers && rerankingFromUrl === 'false') {
|
|
59
|
+
setFetchingRecommendationsFromWatsonXFlag(caseDispatch, false);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
const sessionItem = previousSessions.data[activeSessionId];
|
|
63
|
+
if (sessionItem && trafficSplit(testVariationWeight, sessionItem.session.createdDate) === 'A') {
|
|
64
|
+
setFetchingRecommendationsFromWatsonXFlag(caseDispatch, true);
|
|
65
|
+
}
|
|
66
|
+
}, [
|
|
67
|
+
caseDispatch,
|
|
68
|
+
isWatsonXEnabled,
|
|
69
|
+
activeSessionId,
|
|
70
|
+
previousSessions,
|
|
71
|
+
testVariationWeight,
|
|
72
|
+
isShowRerankingForInternalUsers,
|
|
73
|
+
rerankingFromUrl,
|
|
74
|
+
props.routeProps,
|
|
75
|
+
]);
|
|
45
76
|
const closeROCMProductModal = () => {
|
|
46
77
|
const productName = 'OpenShift Container Platform';
|
|
47
78
|
// if user click on Cancel then change product selection.
|
|
@@ -85,7 +116,7 @@ export function WizardLayout(props) {
|
|
|
85
116
|
"Try submitting again after a minute. Please ",
|
|
86
117
|
React.createElement(SupportFeedbackForm, { isInline: true }),
|
|
87
118
|
" if you continue to see this message.")));
|
|
88
|
-
submitCase(caseDispatch, sessionRestoreDispatch, caseState, sessionItem, isCaseCreate, errorMessageCaseSubmit500, loggedInUser.data.ssoUsername, loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data.secureSupport
|
|
119
|
+
submitCase(caseDispatch, sessionRestoreDispatch, caseState, sessionItem, isCaseCreate, errorMessageCaseSubmit500, loggedInUser.data.ssoUsername, loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data.secureSupport);
|
|
89
120
|
// reset viewedModals on case submit
|
|
90
121
|
viewedConfirmationModalsList.current = [];
|
|
91
122
|
!isReSubmitting &&
|
|
@@ -116,5 +147,5 @@ export function WizardLayout(props) {
|
|
|
116
147
|
React.createElement(WizardMain, { routeProps: props.routeProps, submitCaseAndNavigate: submitCaseAndNavigate, confirmSupportModal: confirmSupportModal })),
|
|
117
148
|
React.createElement(GridItem, { span: 4, className: "grid-wizard-aside-content" },
|
|
118
149
|
React.createElement(WizardAside, { isAttachmentUploadModalOpen: confirmationModalType === PreCaseConfirmationModalsEnum.NO_ATTACHMENT_MODAL, routeProps: props.routeProps }))),
|
|
119
|
-
React.createElement(AlertToastWrapper, { submitCaseAndNavigate: submitCaseAndNavigate
|
|
150
|
+
React.createElement(AlertToastWrapper, { submitCaseAndNavigate: submitCaseAndNavigate })));
|
|
120
151
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Wizard, WizardContextConsumer, WizardFooter } from '@patternfly/react-core
|
|
1
|
+
import { Wizard, WizardContextConsumer, WizardFooter } from '@patternfly/react-core';
|
|
2
2
|
import { LoadingIndicator } from '@rh-support/components';
|
|
3
3
|
import isEqual from 'lodash/isEqual';
|
|
4
4
|
import React, { Suspense, useContext, useState } from 'react';
|
|
@@ -23,7 +23,7 @@ function WizardMain(props) {
|
|
|
23
23
|
const { t } = useTranslation();
|
|
24
24
|
const renderSubmitCasePage = () => (React.createElement(MainSection, { section: AppRouteSections.SUBMIT_CASE, title: t('Case has been submitted'), isLoading: isCreatingCase, description: t("We'll be in contact with you shortly. Look for updates on this case."), className: "case-submit-page" },
|
|
25
25
|
React.createElement(Suspense, { fallback: React.createElement(LoadingIndicator, { size: "sm" }) },
|
|
26
|
-
React.createElement(SubmitCase,
|
|
26
|
+
React.createElement(SubmitCase, { routeProps: props.routeProps }))));
|
|
27
27
|
const onNext = (step) => {
|
|
28
28
|
RouteUtils.navigateToSection(props.routeProps, `${props.routeProps.location.pathname}/${step.id}`, false);
|
|
29
29
|
};
|
|
@@ -112,7 +112,7 @@ function WizardNavigation(props) {
|
|
|
112
112
|
noValidEntitlement, onClick: onNext, className: "btn btn-app btn-primary main-nav-button", "data-tracking-id": `next-of-${activeSection}` }, t(props.activeStep.nextButtonLabel)),
|
|
113
113
|
activeSection === AppRouteSections.TROUBLESHOOT && isFileRecommendationsTriggered && (React.createElement(Button, { onClick: handleFileRecsSelfSolved, variant: ButtonVariant.secondary, className: "issue-solved-button solved-issue-button", "data-tracking-id": "troubleshoot-self-solved-issue" }, t('I solved my issue'))),
|
|
114
114
|
React.createElement(RecommendationFeedbackModal, { isModalOpen: isRecsModalVisible, handleModalToggle: onRecsFeedbackModalToggle, modalContent: t(`Great, we're glad that resolved your issue`) }),
|
|
115
|
-
activeSectionError ? (React.createElement("small", { className: "pf-
|
|
115
|
+
activeSectionError ? (React.createElement("small", { className: "pf-u-align-self-center pf-u-ml-md text-red" }, activeSectionError)) : null));
|
|
116
116
|
}
|
|
117
117
|
WizardNavigation.defaultProps = defaultProps;
|
|
118
118
|
export default WizardNavigation;
|
|
@@ -5,19 +5,13 @@ export declare enum CaseDetailsTabsEnum {
|
|
|
5
5
|
BUGZILLA = "Bugzilla",
|
|
6
6
|
ACTION_PLAN = "Action plan",
|
|
7
7
|
PRIVATE_NOTES = "Private Notes",
|
|
8
|
-
ESCALATION = "Escalations"
|
|
9
|
-
RELATED_TICKETS = "Related Tickets"
|
|
8
|
+
ESCALATION = "Escalations"
|
|
10
9
|
}
|
|
11
10
|
export declare enum CaseStatusEnum {
|
|
12
11
|
CLOSED = "Closed",
|
|
13
12
|
WAITING_ON_CUSTOMER = "Waiting on Customer",
|
|
14
13
|
WAITING_ON_REDHAT = "Waiting on Red Hat"
|
|
15
14
|
}
|
|
16
|
-
export declare enum CaseRecommendationEvalEnum {
|
|
17
|
-
HELPFUL = "1",
|
|
18
|
-
NOT_HELPFUL = "-1",
|
|
19
|
-
NEUTRAL = "0"
|
|
20
|
-
}
|
|
21
15
|
export declare const PHONE_LINE_CANNOT_BE_EMPTY = "Phone number cannot be empty when country code is given.";
|
|
22
16
|
export declare const PHONE_NO_CHAR_ERROR = "Phone number can only have digits.";
|
|
23
17
|
export declare const PHONE_IS_NOT_VALID = "Phone number is invalid.";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"caseDetailsConstants.d.ts","sourceRoot":"","sources":["../../../src/constants/caseDetailsConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oCAAoC,yBAAyB,CAAC;AAE3E,oBAAY,mBAAmB;IAC3B,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,UAAU,gBAAgB;
|
|
1
|
+
{"version":3,"file":"caseDetailsConstants.d.ts","sourceRoot":"","sources":["../../../src/constants/caseDetailsConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oCAAoC,yBAAyB,CAAC;AAE3E,oBAAY,mBAAmB;IAC3B,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,UAAU,gBAAgB;CAC7B;AAED,oBAAY,cAAc;IACtB,MAAM,WAAW;IACjB,mBAAmB,wBAAwB;IAC3C,iBAAiB,uBAAuB;CAC3C;AAED,eAAO,MAAM,0BAA0B,6DAA6D,CAAC;AAErG,eAAO,MAAM,mBAAmB,uCAAuC,CAAC;AAExE,eAAO,MAAM,kBAAkB,6BAA6B,CAAC;AAE7D,eAAO,MAAM,iBAAiB,8EAA8E,CAAC"}
|
|
@@ -7,7 +7,6 @@ export var CaseDetailsTabsEnum;
|
|
|
7
7
|
CaseDetailsTabsEnum["ACTION_PLAN"] = "Action plan";
|
|
8
8
|
CaseDetailsTabsEnum["PRIVATE_NOTES"] = "Private Notes";
|
|
9
9
|
CaseDetailsTabsEnum["ESCALATION"] = "Escalations";
|
|
10
|
-
CaseDetailsTabsEnum["RELATED_TICKETS"] = "Related Tickets";
|
|
11
10
|
})(CaseDetailsTabsEnum || (CaseDetailsTabsEnum = {}));
|
|
12
11
|
export var CaseStatusEnum;
|
|
13
12
|
(function (CaseStatusEnum) {
|
|
@@ -15,12 +14,6 @@ export var CaseStatusEnum;
|
|
|
15
14
|
CaseStatusEnum["WAITING_ON_CUSTOMER"] = "Waiting on Customer";
|
|
16
15
|
CaseStatusEnum["WAITING_ON_REDHAT"] = "Waiting on Red Hat";
|
|
17
16
|
})(CaseStatusEnum || (CaseStatusEnum = {}));
|
|
18
|
-
export var CaseRecommendationEvalEnum;
|
|
19
|
-
(function (CaseRecommendationEvalEnum) {
|
|
20
|
-
CaseRecommendationEvalEnum["HELPFUL"] = "1";
|
|
21
|
-
CaseRecommendationEvalEnum["NOT_HELPFUL"] = "-1";
|
|
22
|
-
CaseRecommendationEvalEnum["NEUTRAL"] = "0";
|
|
23
|
-
})(CaseRecommendationEvalEnum || (CaseRecommendationEvalEnum = {}));
|
|
24
17
|
export const PHONE_LINE_CANNOT_BE_EMPTY = 'Phone number cannot be empty when country code is given.';
|
|
25
18
|
export const PHONE_NO_CHAR_ERROR = 'Phone number can only have digits.';
|
|
26
19
|
export const PHONE_IS_NOT_VALID = 'Phone number is invalid.';
|
package/lib/esm/css/app.css
CHANGED
|
@@ -94,8 +94,8 @@ form textarea {
|
|
|
94
94
|
resize: vertical !important;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
.pf-
|
|
98
|
-
border-bottom-color: var(--pf-
|
|
97
|
+
.pf-c-form-control.pf-m-warning {
|
|
98
|
+
border-bottom-color: var(--pf-c-form-control--m-warning--BorderBottomColor);
|
|
99
99
|
border-bottom-width: 2px;
|
|
100
100
|
}
|
|
101
101
|
|
|
@@ -287,17 +287,17 @@ input[type='checkbox'] {
|
|
|
287
287
|
margin-left: 5px;
|
|
288
288
|
}
|
|
289
289
|
|
|
290
|
-
.pf-tippy-theme.tippy-tooltip .pf-
|
|
290
|
+
.pf-tippy-theme.tippy-tooltip .pf-c-popover {
|
|
291
291
|
background-color: #fff;
|
|
292
292
|
-webkit-box-shadow: rgba(3, 3, 3, 0.05) 0px 1px 1px 0px, rgba(3, 3, 3, 0.06) 0px 4px 8px 4px;
|
|
293
293
|
box-shadow: rgba(3, 3, 3, 0.05) 0px 1px 1px 0px, rgba(3, 3, 3, 0.06) 0px 4px 8px 4px;
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
-
.pf-
|
|
296
|
+
.pf-c-popover .pf-c-popover__body > * {
|
|
297
297
|
margin-bottom: 0;
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
-
.pf-
|
|
300
|
+
.pf-c-popover .pf-c-button {
|
|
301
301
|
position: absolute;
|
|
302
302
|
top: 8px;
|
|
303
303
|
right: 2px;
|
|
@@ -317,14 +317,14 @@ input[type='checkbox'] {
|
|
|
317
317
|
pointer-events: initial !important;
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
-
.pf-tippy-theme.tippy-tooltip .pf-
|
|
320
|
+
.pf-tippy-theme.tippy-tooltip .pf-c-popover .pf-c-popover__content {
|
|
321
321
|
position: relative;
|
|
322
322
|
background-color: #fff;
|
|
323
323
|
padding: 1.5rem;
|
|
324
324
|
font-size: 16px;
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
-
.pf-tippy-theme.tippy-tooltip .pf-
|
|
327
|
+
.pf-tippy-theme.tippy-tooltip .pf-c-popover .pf-c-popover__arrow {
|
|
328
328
|
position: absolute;
|
|
329
329
|
width: 25px;
|
|
330
330
|
height: 25px;
|
package/lib/esm/css/case.css
CHANGED
|
@@ -26,7 +26,7 @@ pfe-collapse-toggle[aria-expanded='true'] h3:after {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
button,
|
|
29
|
-
.pf-
|
|
29
|
+
.pf-c-button,
|
|
30
30
|
.btn.btn-app {
|
|
31
31
|
font-size: 14px;
|
|
32
32
|
}
|
|
@@ -297,11 +297,11 @@ button,
|
|
|
297
297
|
outline: none;
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
-
button.pf-
|
|
300
|
+
button.pf-c-button.pf-m-secondary {
|
|
301
301
|
background-color: #fff;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
input[aria-invalid='true'].pf-
|
|
304
|
+
input[aria-invalid='true'].pf-c-form-control {
|
|
305
305
|
border-bottom-width: 2px !important;
|
|
306
306
|
}
|
|
307
307
|
|
|
@@ -44,7 +44,7 @@ export function useWizard(routeProps) {
|
|
|
44
44
|
const title = isLoading
|
|
45
45
|
? t('Please wait while recommendations are loading')
|
|
46
46
|
: t('Please address the errors to proceed');
|
|
47
|
-
return (React.createElement(AlertMessage, { show: isNextBtnClickedToShowValidationError && !isActiveSectionValid, variant: (isLoadingRecommendations && summary) || topContent.isFetching ? AlertType.INFO : AlertType.DANGER, isInline: true, title: title, className: "pf-
|
|
47
|
+
return (React.createElement(AlertMessage, { show: isNextBtnClickedToShowValidationError && !isActiveSectionValid, variant: (isLoadingRecommendations && summary) || topContent.isFetching ? AlertType.INFO : AlertType.DANGER, isInline: true, title: title, className: "pf-u-mb-lg", "data-tracking-id": isLoading ? 'wait-recommendations-loading' : 'proceed-address-errors' }));
|
|
48
48
|
};
|
|
49
49
|
// components that are used in wizard steps
|
|
50
50
|
const appRouteConfugurations = {
|
|
@@ -27,6 +27,8 @@ export declare const SESSION_REFERRER_URL_LIMIT = 1024;
|
|
|
27
27
|
export declare const SESSION_NO_CLUSTER_REASON_LENGTH_LIMIT = 255;
|
|
28
28
|
export declare const SESSION_NO_CLUSTER_REASON_EXPLANATION_LENGTH_LIMIT = 255;
|
|
29
29
|
export declare const SESSION_PHONE_LENGTH_LIMIT = 23;
|
|
30
|
+
export declare const WATSONX_SUMMARY_LIMIT = 255;
|
|
31
|
+
export declare const WATSONX_DESCRIPTION_LIMIT = 4000;
|
|
30
32
|
export declare const CASE_DEATILS_ISSUE_LIMIT = 20000;
|
|
31
33
|
export declare const CASE_DETAILS_TIMEFRAMESANDURGENCY_LIMIT = 4000;
|
|
32
34
|
export declare const CASE_DEATILS_ENVIRONMENT_LIMIT = 3000;
|
|
@@ -156,8 +158,7 @@ export declare enum CaseReducerConstants {
|
|
|
156
158
|
getVersionDetails = "getVersionDetails",
|
|
157
159
|
caseCreation500ErrorStatus = "caseCreation500ErrorStatus",
|
|
158
160
|
resetCaseNoOfCreatedCase = "resetCaseNoOfCreatedCase",
|
|
159
|
-
|
|
160
|
-
setIsPostingRemoteRequestCommentCompletedError = "setIsPostingRemoteRequestCommentCompletedError"
|
|
161
|
+
setFetchingRecommendationsFromWatsonXFlag = "setFetchingRecommendationsFromWatsonXFlag"
|
|
161
162
|
}
|
|
162
163
|
export declare const initialCaseState: ICaseState;
|
|
163
164
|
export interface ICaseState {
|
|
@@ -204,8 +205,7 @@ export interface ICaseState {
|
|
|
204
205
|
isCaseOwnerUpdating: boolean;
|
|
205
206
|
isFileRecommendationsTriggered?: boolean;
|
|
206
207
|
caseNoOfCreatedCase?: string;
|
|
207
|
-
|
|
208
|
-
isPostingRemoteRequestCommentCompletedErrorMessage?: string | undefined;
|
|
208
|
+
isFetchingRecommendationsFromWatsonX: boolean;
|
|
209
209
|
}
|
|
210
210
|
export interface ICreateCasePayloadType extends ICaseState {
|
|
211
211
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseConstNTypes.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseConstNTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACjH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEnF,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,eAAO,MAAM,oBAAoB,MAAM,CAAC;AACxC,eAAO,MAAM,mCAAmC,MAAM,CAAC;AACvD,eAAO,MAAM,+BAA+B,MAAM,CAAC;AACnD,eAAO,MAAM,wBAAwB,QAAQ,CAAC;AAC9C,eAAO,MAAM,iCAAiC,QAAQ,CAAC;AACvD,eAAO,MAAM,qBAA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E,OAAO,CAAC;IAChC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,SAAS,CAAC;IAC5B,0BAA0B,EAAE,OAAO,CAAC;IACpC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,oCAAoC,EAAE,OAAO,CAAC;IAC9C,sCAAsC,EAAE,OAAO,CAAC;IAChD,eAAe,EAAE,mBAAmB,CAAC,gBAAgB,EAAE,CAAC,CAAC;IACzD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0BAA0B,EAAE,OAAO,CAAC;IACpC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,oCAAoC,EAAE,OAAO,CAAC;CACjD;AAED,MAAM,WAAW,sBAAuB,SAAQ,UAAU;CAAG;AAC7D,oBAAY,eAAe,GAAG,OAAO,CAAC,oBAAoB,EAAE,sBAAsB,CAAC,CAAC;AACpF,oBAAY,uBAAuB,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;AAEhE,eAAO,MAAM,qCAAqC,+CAA+C,CAAC;AAClG,eAAO,MAAM,yCAAyC,+CAA+C,CAAC"}
|
|
@@ -19,6 +19,8 @@ export const SESSION_REFERRER_URL_LIMIT = 1024;
|
|
|
19
19
|
export const SESSION_NO_CLUSTER_REASON_LENGTH_LIMIT = 255;
|
|
20
20
|
export const SESSION_NO_CLUSTER_REASON_EXPLANATION_LENGTH_LIMIT = 255;
|
|
21
21
|
export const SESSION_PHONE_LENGTH_LIMIT = 23;
|
|
22
|
+
export const WATSONX_SUMMARY_LIMIT = 255; // In the UI, we allow only 255 characters for the summary
|
|
23
|
+
export const WATSONX_DESCRIPTION_LIMIT = 4000;
|
|
22
24
|
//Case detail limits for each individual KT Question in order as they appear on troubleshoot/opencase
|
|
23
25
|
//We are totaling 31k here to allow for the backend to accept response when combined with question copy.
|
|
24
26
|
export const CASE_DEATILS_ISSUE_LIMIT = 20000; // 1st Q
|
|
@@ -106,8 +108,7 @@ export var CaseReducerConstants;
|
|
|
106
108
|
CaseReducerConstants["getVersionDetails"] = "getVersionDetails";
|
|
107
109
|
CaseReducerConstants["caseCreation500ErrorStatus"] = "caseCreation500ErrorStatus";
|
|
108
110
|
CaseReducerConstants["resetCaseNoOfCreatedCase"] = "resetCaseNoOfCreatedCase";
|
|
109
|
-
CaseReducerConstants["
|
|
110
|
-
CaseReducerConstants["setIsPostingRemoteRequestCommentCompletedError"] = "setIsPostingRemoteRequestCommentCompletedError";
|
|
111
|
+
CaseReducerConstants["setFetchingRecommendationsFromWatsonXFlag"] = "setFetchingRecommendationsFromWatsonXFlag";
|
|
111
112
|
})(CaseReducerConstants || (CaseReducerConstants = {}));
|
|
112
113
|
export const initialCaseState = {
|
|
113
114
|
isCreatingCase: false,
|
|
@@ -198,8 +199,7 @@ export const initialCaseState = {
|
|
|
198
199
|
isCaseOwnerUpdating: false,
|
|
199
200
|
isFileRecommendationsTriggered: false,
|
|
200
201
|
caseNoOfCreatedCase: '',
|
|
201
|
-
|
|
202
|
-
isPostingRemoteRequestCommentCompletedErrorMessage: '',
|
|
202
|
+
isFetchingRecommendationsFromWatsonX: false,
|
|
203
203
|
};
|
|
204
204
|
export const ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967811';
|
|
205
205
|
export const NON_ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967831';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseHelpers.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACpG,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,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,MAAM,yBACJ,MAAM,KAC9B,MAQF,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBAAkB,MAAM,YAAY,MAAM,KAAG,MAQhF,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBAAkB,MAAM,YAAY,MAAM,KAAG,MAQhF,CAAC;AAEF,eAAO,MAAM,sBAAsB,aAAc,MAAM,KAAG,MAKzD,CAAC;AAEF,eAAO,MAAM,gBAAgB,+CAqC5B,CAAC;AAIF,eAAO,MAAM,gBAAgB,cAAe,UAAU,wBAAwB,QAAQ,eAAe,CAAC,KAAG,OA6BxG,CAAC;AAEF,eAAO,MAAM,oBAAoB,cAClB,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAyBF,CAAC;AAEF,eAAO,MAAM,0BAA0B,cACxB,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAmBF,CAAC;AAIF,eAAO,MAAM,6BAA6B,cAC3B,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAuBF,CAAC;AAEF,eAAO,MAAM,iBAAiB,cACf,UAAU,gBACP,YAAY,iBACZ,OAAO,KACtB,QAAQ,YAAY,CA6EtB,CAAC;AAEF,eAAO,MAAM,wBAAwB,qBAAsB,YAAY,EAAE,KAAG,YAAY,EAEvF,CAAC;AACF,eAAO,MAAM,yBAAyB,qBAAsB,YAAY,EAAE,KAAG,OAE5E,CAAC;AAEF,eAAO,MAAM,yBAAyB,gBACrB,YAAY,6BACE,MAAM,mBAChB,MAAM,KACxB,QAAQ,YAAY,CAiCtB,CAAC;AACF,eAAO,MAAM,yBAAyB,gBACrB,QAAQ,YAAY,CAAC,gCACJ,QAAQ,EAAE,KACzC,eAiDF,CAAC"}
|
|
@@ -236,7 +236,6 @@ export const createCasePayload = (caseState, sessionItem, isCaseCreate = false)
|
|
|
236
236
|
!isEmpty(case_details.caseLanguage) && (casePayload.caseLanguage = case_details.caseLanguage);
|
|
237
237
|
case_details.cep && (casePayload.cep = !!case_details.cep);
|
|
238
238
|
!isEmpty(case_details.hostname) && (casePayload.hostname = case_details.hostname);
|
|
239
|
-
!isEmpty(case_details.referrer) && (casePayload.referrer = case_details.referrer);
|
|
240
239
|
!isEmpty(case_details.caseResourceLinks) && (casePayload.caseResourceLinks = case_details.caseResourceLinks);
|
|
241
240
|
!isEmpty(trimAndReplacePlus((case_details === null || case_details === void 0 ? void 0 : case_details.phoneCountryCode) || '')) &&
|
|
242
241
|
(casePayload.phoneCountryCode = (_b = case_details.phoneCountryCode) === null || _b === void 0 ? void 0 : _b.trim());
|
|
@@ -327,7 +326,6 @@ export const getCaseFromSessionDetails = (sessionItem, loggedInUserAccountNumber
|
|
|
327
326
|
userAgent: session.userAgent,
|
|
328
327
|
originatingSystem: session.originatingSystem,
|
|
329
328
|
screenSessionRequested: (_p = sessionDetails.screenSessionRequested) !== null && _p !== void 0 ? _p : false,
|
|
330
|
-
referrer: session.referrerUrl,
|
|
331
329
|
};
|
|
332
330
|
};
|
|
333
331
|
export const getSessionDetailsFromCase = (caseDetails, selectedNotificationContacts) => {
|
|
@@ -8,7 +8,7 @@ export declare enum CaseDetailsConstants {
|
|
|
8
8
|
getCaseStatuses = "getCaseStatuses",
|
|
9
9
|
getCaseDetailsHydra = "getCaseDetailsHydra"
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
interface ICaseViewState {
|
|
12
12
|
caseTypeUpdating?: boolean;
|
|
13
13
|
caseStatusUpdating?: boolean;
|
|
14
14
|
caseSeverityUpdating?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseOverviewReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseOverviewReducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAGxE,aAAK,WAAW,GAAG,OAAO,CAAC,oBAAoB,EAAE,cAAc,CAAC,CAAC;AACjE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AO,MAAM,mBAAmB,UAAW,cAAc,0BAAwB,cAkBhF,CAAC;AAEF,eAAO,MAAM,eAAe,aAAc,8BAA8B,gBAAgB,MAAM,SAE7F,CAAC;AAEF,eAAO,MAAM,mBAAmB,aAAc,8BAA8B,oBAAoB,MAAM,SAErG,CAAC;AAEF,eAAO,MAAM,iBAAiB,aAAc,8BAA8B,kBAAkB,MAAM,SAEjG,CAAC;AAEF,eAAO,MAAM,mBAAmB,aAAc,8BAA8B,wBAAwB,OAAO,SAE1G,CAAC;AAEF,eAAO,MAAM,iBAAiB,aAAc,8BAA8B,sBAAsB,OAAO,SAEtG,CAAC;AAEF,eAAO,MAAM,eAAe,aAAc,8BAA8B,oBAAoB,OAAO,SAElG,CAAC;AAEF,eAAO,MAAM,gBAAgB,aAAoB,8BAA8B,mBAAmB,OAAO,kBAiBxG,CAAC;AAEF,eAAO,MAAM,cAAc,aAAoB,8BAA8B,cAAc,MAAM,kBAiBhG,CAAC"}
|
|
@@ -12,7 +12,8 @@ export declare const caseReducer: (pState: ICaseState, action: any) => ICaseStat
|
|
|
12
12
|
export declare const setCaseDetails: (dispatch: CaseReducerDispatchType, caseState: Partial<ICasePayload>) => void;
|
|
13
13
|
export declare const setCaseState: (dispatch: CaseReducerDispatchType, caseState: Partial<ICaseState>) => void;
|
|
14
14
|
export declare const setNotifiedUser: (dispatch: CaseReducerDispatchType, selectedNotificationContacts: IContact[]) => void;
|
|
15
|
-
export declare const
|
|
15
|
+
export declare const setFetchingRecommendationsFromWatsonXFlag: (dispatch: CaseReducerDispatchType, isFetchingRecommendationsFromWatsonX: boolean) => void;
|
|
16
|
+
export declare const submitCase: (dispatch: CaseReducerDispatchType, sessionRestoreDispatch: SessionReducerDispatchType, caseDetails: ICaseState, sessionItem: ISessionItem, isCaseCreate: boolean, errorMessage500: string | JSX.Element, loggedInUserSsoUsername: string, isSecureSupport?: boolean) => Promise<void>;
|
|
16
17
|
/**
|
|
17
18
|
* Update case details if there is HTTP 500 error while submitting case
|
|
18
19
|
* @param dispatch CaseReducerDispatchType
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseReducer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAEtH,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAA+B,MAAM,qCAAqC,CAAC;AAC9G,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAUxD,OAAO,EAEH,uBAAuB,EAEvB,UAAU,EAEb,MAAM,mBAAmB,CAAC;AAS3B,OAAO,EAAE,0BAA0B,EAAiB,MAAM,yBAAyB,CAAC;AAEpF,eAAO,MAAM,WAAW,WAAY,UAAU,UAAU,GAAG,KAAG,
|
|
1
|
+
{"version":3,"file":"CaseReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseReducer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAEtH,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAA+B,MAAM,qCAAqC,CAAC;AAC9G,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AA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