@rh-support/troubleshoot 2.2.40 → 2.2.43
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.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 +22 -19
- package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsAside.js +14 -9
- package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.js +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +3 -3
- 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.js +8 -8
- package/lib/esm/components/CaseEditView/CaseSecureSupportAlert.js +1 -1
- 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 +17 -11
- 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 +7 -6
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.js +11 -10
- 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 +11 -10
- 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 +6 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +18 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseExternalTrackerUpdate.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseExternalTrackerUpdate.js +5 -3
- 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 +3 -2
- 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/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 -2
- package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/SupportLevel.js +4 -3
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.js +3 -2
- 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 +28 -12
- package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.js +13 -12
- 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 +4 -3
- 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 +15 -14
- 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 +12 -15
- 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 +4 -3
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +2 -2
- package/lib/esm/components/ProductSelector/ProductSelector.js +1 -1
- package/lib/esm/components/Recommendations/AlertToastWrapper.d.ts +3 -0
- 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/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/InsightsRuleInfo.js +7 -7
- package/lib/esm/components/Recommendations/RecommendationFeedbackModal.js +1 -1
- package/lib/esm/components/Recommendations/Recommendations.js +1 -1
- package/lib/esm/components/Recommendations/RulesModal.js +1 -1
- 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 +5 -3
- package/lib/esm/components/SessionRestore/SessionRestoreCard.js +9 -9
- package/lib/esm/components/SubmitCase/ResubmitToast.d.ts +3 -0
- package/lib/esm/components/SubmitCase/ResubmitToast.d.ts.map +1 -1
- package/lib/esm/components/SubmitCase/ResubmitToast.js +3 -1
- package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
- package/lib/esm/components/SubmitCase/SubmitCase.js +18 -16
- package/lib/esm/components/Suggestions/TopContent.d.ts.map +1 -1
- package/lib/esm/components/Suggestions/TopContent.js +31 -4
- 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/wizardLayout/MainSection.js +1 -1
- package/lib/esm/components/wizardLayout/WizardAside.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardAside.js +2 -2
- package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardLayout.js +2 -2
- package/lib/esm/components/wizardLayout/WizardMain.js +1 -1
- package/lib/esm/components/wizardLayout/WizardNavigation.js +1 -1
- 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 +5 -1
- package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.js +4 -0
- package/lib/esm/reducers/CaseReducer.d.ts +1 -1
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.js +19 -5
- package/lib/esm/reducers/RouteConstNTypes.d.ts +1 -1
- 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 +7 -1
- package/lib/esm/scss/_main.scss +35 -35
- package/lib/esm/scss/_pf4-overrides.scss +132 -84
- package/lib/esm/scss/index.scss +0 -1
- package/package.json +10 -12
- package/lib/esm/scss/_pf4-imports.scss +0 -30
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Env, publicApi } from '@cee-eng/hydrajs';
|
|
2
|
-
import { ActionList, ActionListItem, Button, Text, TextVariants, Tooltip } from '@patternfly/react-core';
|
|
2
|
+
import { ActionList, ActionListItem, Button, Icon, Text, TextVariants, Tooltip } from '@patternfly/react-core';
|
|
3
3
|
import CheckCircleIcon from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
4
4
|
import { AlertMessage, AlertType, useFetch } from '@rh-support/components';
|
|
5
5
|
import { GlobalMetadataStateContext, useGlobalStateContext } from '@rh-support/react-context';
|
|
@@ -84,27 +84,29 @@ export default function SubmitCase() {
|
|
|
84
84
|
// To check if the user is ESS Customer and Product has ESS Support
|
|
85
85
|
const isESSCustomer = isSpecialSupportOfferingEnabled((_a = allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult, product);
|
|
86
86
|
return (React.createElement("article", { className: "gird-main" },
|
|
87
|
-
React.createElement(AlertMessage, { className: "pf-u-mt-lg", title: t('Failed to add user.'), variant: AlertType.DANGER, show: addNotifiedUserError }),
|
|
88
|
-
React.createElement(AlertMessage, { className: "pf-u-mt-lg", variant: AlertType.DANGER, show: caseCreationError, title: t("Sorry, we're experiencing an error"), isInline: true },
|
|
87
|
+
React.createElement(AlertMessage, { className: "pf-v5-u-mt-lg", title: t('Failed to add user.'), variant: AlertType.DANGER, show: addNotifiedUserError }),
|
|
88
|
+
React.createElement(AlertMessage, { className: "pf-v5-u-mt-lg", variant: AlertType.DANGER, show: caseCreationError, title: t("Sorry, we're experiencing an error"), isInline: true },
|
|
89
89
|
React.createElement(React.Fragment, null, caseCreationErrorMessage)),
|
|
90
90
|
!isCreatingCase && !caseCreationError && (React.createElement(React.Fragment, null,
|
|
91
91
|
!isESSCustomer && !screenSessionRequested && showRemoteRiderBanner && (React.createElement(RemoteRiderBanner, { onConfirm: onRemoteRiderConfirm, onClose: onRemoteRiderClose, caseNumber: caseNoOfCreatedCase, isSecureSupport: loggedInUsersAccount.data.secureSupport, loggedInUserRights: loggedInUserRights })),
|
|
92
92
|
React.createElement("div", { className: "submit-case-header-container" },
|
|
93
|
-
React.createElement("p", { className: "kicker kicker-sm pf-u-mb-sm" }, !isEmpty(RouteUtils.seBasePath) &&
|
|
93
|
+
React.createElement("p", { className: "kicker kicker-sm pf-v5-u-mb-sm" }, !isEmpty(RouteUtils.seBasePath) &&
|
|
94
94
|
!isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles) ? (React.createElement(React.Fragment, null,
|
|
95
|
-
React.createElement("div", { className: "submit-page-title pf-u-mb-lg" },
|
|
96
|
-
React.createElement(
|
|
95
|
+
React.createElement("div", { className: "submit-page-title pf-v5-u-mb-lg" },
|
|
96
|
+
React.createElement(Icon, { className: "submit-case-check-icon", size: "lg" },
|
|
97
|
+
React.createElement(CheckCircleIcon, null)),
|
|
97
98
|
' ',
|
|
98
|
-
React.createElement(Text, { className: "pf-u-ml-md pf-u-mb-0", component: TextVariants.h1 },
|
|
99
|
+
React.createElement(Text, { className: "pf-v5-u-ml-md pf-v5-u-mb-0", component: TextVariants.h1 },
|
|
99
100
|
React.createElement(Trans, null, "We've added your case to our queue"))),
|
|
100
|
-
React.createElement("div", { className: "pf-u-mt-sm" },
|
|
101
|
+
React.createElement("div", { className: "pf-v5-u-mt-sm" },
|
|
101
102
|
React.createElement(Trans, null, "Case number:"),
|
|
102
103
|
"\u00A0",
|
|
103
104
|
React.createElement(Link, { to: `/case/${caseNoOfCreatedCase}`, "data-tracking-id": "get-support-queued-case-number", className: isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles)
|
|
104
105
|
? 'case-link-disabled'
|
|
105
106
|
: '' }, caseNoOfCreatedCase)))) : (React.createElement(React.Fragment, null,
|
|
106
107
|
React.createElement("div", { className: "submit-page-title" },
|
|
107
|
-
React.createElement(
|
|
108
|
+
React.createElement(Icon, { size: "lg", className: "submit-case-check-icon" },
|
|
109
|
+
React.createElement(CheckCircleIcon, null)),
|
|
108
110
|
' ',
|
|
109
111
|
React.createElement(Text, { component: TextVariants.h1 },
|
|
110
112
|
React.createElement(Trans, null, "We\u2019ve added your case to our queue"))),
|
|
@@ -119,10 +121,10 @@ export default function SubmitCase() {
|
|
|
119
121
|
getResponseTimeMessage(entitlementSla, severity),
|
|
120
122
|
React.createElement("a", { className: "inline-link", rel: "noopener noreferrer", href: "/support/offerings/production/sla", target: "_blank", "data-tracking-id": "get-support-sla" },
|
|
121
123
|
React.createElement(Trans, null, "Service Level Agreement (SLA)."))),
|
|
122
|
-
React.createElement("div", { className: "submit-page-contact-info pf-u-mt-lg pf-u-mb-sm" },
|
|
123
|
-
React.createElement("p", { className: "contact-info-title pf-u-mb-sm" },
|
|
124
|
+
React.createElement("div", { className: "submit-page-contact-info pf-v5-u-mt-lg pf-v5-u-mb-sm" },
|
|
125
|
+
React.createElement("p", { className: "contact-info-title pf-v5-u-mb-sm" },
|
|
124
126
|
React.createElement(Trans, null, "Is this contact information correct?")),
|
|
125
|
-
React.createElement("p", { className: "pf-u-font-size-sm" },
|
|
127
|
+
React.createElement("p", { className: "pf-v5-u-font-size-sm" },
|
|
126
128
|
React.createElement("strong", null,
|
|
127
129
|
React.createElement(Trans, null, "Email:")),
|
|
128
130
|
' ',
|
|
@@ -133,16 +135,16 @@ export default function SubmitCase() {
|
|
|
133
135
|
React.createElement(Button, { component: "a", href: `${getRedhatDotComHost(Env.getEnvName())}/wapps/ugc/protected/${'personalInfo.html'}`, target: "_blank", variant: "secondary", "data-tracking-id": "get-support-update-info", className: "update-info-button" }, "Update info")),
|
|
134
136
|
React.createElement(ActionListItem, null, isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles) ? (React.createElement(React.Fragment, null,
|
|
135
137
|
React.createElement(Tooltip, { content: t('File upload in progress.'), position: "bottom" },
|
|
136
|
-
React.createElement(Button, { className: "pf-u-ml-md", component: "a", href: getCaseURL(), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case'), isAriaDisabled: isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles) }, "View case")))) : (React.createElement(Button, { className: "pf-u-ml-md", component: (props) => (React.createElement(Link, Object.assign({}, props, { to: `/case/${caseNoOfCreatedCase}` }))), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case') }, "View case")))))),
|
|
138
|
+
React.createElement(Button, { className: "pf-v5-u-ml-md", component: "a", href: getCaseURL(), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case'), isAriaDisabled: isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles) }, "View case")))) : (React.createElement(Button, { className: "pf-v5-u-ml-md", component: (props) => (React.createElement(Link, Object.assign({}, props, { to: `/case/${caseNoOfCreatedCase}` }))), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case') }, "View case")))))),
|
|
137
139
|
!isEmpty(attachmentState.caseFiles.selectedLocalFiles) && (React.createElement(FileUploader, { idToUploadTo: caseNoOfCreatedCase, isSessionId: false, isSecureSupport: loggedInUsersAccount.data.secureSupport })),
|
|
138
140
|
React.createElement("div", null,
|
|
139
141
|
(!isEmpty(topContent.data) || !rulesState.EARules.rules || !clusterRecommendations) &&
|
|
140
|
-
!isIdea && (React.createElement(Text, { className: "pf-u-mt-2xl pf-u-font-weight-light", component: TextVariants.h2 },
|
|
142
|
+
!isIdea && (React.createElement(Text, { className: "pf-v5-u-mt-2xl pf-v5-u-font-weight-light", component: TextVariants.h2 },
|
|
141
143
|
React.createElement(Trans, null, "Troubleshoot this case"))),
|
|
142
144
|
isNotAnIdea && (React.createElement(React.Fragment, null,
|
|
143
|
-
React.createElement("div", { className: isIdea ? 'pf-u-mt-lg' : '' },
|
|
145
|
+
React.createElement("div", { className: isIdea ? 'pf-v5-u-mt-lg' : '' },
|
|
144
146
|
React.createElement(InsightsResults, { isDisplayOnMain: true })),
|
|
145
147
|
React.createElement(ClusterRecommendations, { showClusterRecommendationsModal: false }))),
|
|
146
|
-
React.createElement("div", { className: "pf-u-mt-lg" }, isIdea ? (React.createElement(AsideResults, null)) : (!isEmpty(topContent.data) &&
|
|
148
|
+
React.createElement("div", { className: "pf-v5-u-mt-lg" }, isIdea ? (React.createElement(AsideResults, null)) : (!isEmpty(topContent.data) &&
|
|
147
149
|
isNotAnIdea && (React.createElement(Suggestions, { title: isIdea ? t('Search recommendations') : t('Product recommendations'), showTitleDescription: true, showMax: 6 })))))))));
|
|
148
150
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Suggestions/TopContent.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAGnC,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;
|
|
1
|
+
{"version":3,"file":"TopContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Suggestions/TopContent.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAGnC,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AAaxF,UAAU,MAAM;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,eAwF/C"}
|
|
@@ -1,21 +1,48 @@
|
|
|
1
1
|
import '@patternfly/pfe-accordion';
|
|
2
2
|
import { pcm } from '@cee-eng/hydrajs';
|
|
3
3
|
import { Tooltip } from '@patternfly/react-core';
|
|
4
|
+
import isEqual from 'lodash/isEqual';
|
|
4
5
|
import map from 'lodash/map';
|
|
5
6
|
import React from 'react';
|
|
7
|
+
import { useCaseSelector } from '../../context/CaseContext';
|
|
8
|
+
import { SessionRestoreDispatchContext, SessionRestoreStateContext } from '../../context/SessionRestoreContext';
|
|
9
|
+
import { getDescriptionWOQues } from '../../reducers/CaseHelpers';
|
|
10
|
+
import { createOrUpdateSessionResources, getSessResTC } from '../../reducers/SessionRestoreReducer';
|
|
6
11
|
import RouteUtils from '../../utils/routeUtils';
|
|
7
|
-
const { SessionResourceSource } = pcm.preCase.session;
|
|
12
|
+
const { SessionResourceVisibility, SessionResourceSource } = pcm.preCase.session;
|
|
8
13
|
export default function TopContent(props) {
|
|
14
|
+
const sessionRestoreDispatch = React.useContext(SessionRestoreDispatchContext);
|
|
15
|
+
const { sessionRestore: { activeSessionId, sessionResourceTracking }, } = React.useContext(SessionRestoreStateContext);
|
|
16
|
+
const { product, version, summary, issue, environment, periodicityOfIssue, timeFramesAndUrgency } = useCaseSelector((state) => ({
|
|
17
|
+
product: state.caseDetails.product,
|
|
18
|
+
version: state.caseDetails.version,
|
|
19
|
+
summary: state.caseDetails.summary,
|
|
20
|
+
issue: state.caseDetails.issue,
|
|
21
|
+
environment: state.caseDetails.environment,
|
|
22
|
+
periodicityOfIssue: state.caseDetails.periodicityOfIssue,
|
|
23
|
+
timeFramesAndUrgency: state.caseDetails.timeFramesAndUrgency,
|
|
24
|
+
}), isEqual);
|
|
9
25
|
const onLinkClick = (item) => (event) => {
|
|
10
26
|
props.onResourceClick && props.onResourceClick(item);
|
|
11
27
|
};
|
|
28
|
+
// when user opens a top content tab, presented resouces are sent to session api
|
|
29
|
+
const onTopContentTabClicked = (e, docs) => {
|
|
30
|
+
if (e.target.hasAttribute('expanded')) {
|
|
31
|
+
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.TOP_CONTENT, docs.map((doc, index) => getSessResTC(doc, SessionResourceVisibility.PRESENTED, doc.id, index)), JSON.stringify({
|
|
32
|
+
product,
|
|
33
|
+
version,
|
|
34
|
+
summary,
|
|
35
|
+
description: getDescriptionWOQues(issue, environment, periodicityOfIssue, timeFramesAndUrgency),
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
38
|
+
};
|
|
12
39
|
return (React.createElement(React.Fragment, null,
|
|
13
40
|
props.helperText ? (React.createElement(Tooltip, { content: React.createElement("div", null, props.helperText) },
|
|
14
|
-
React.createElement("pfe-accordion-header", { "data-tracking-id": `top-content-accordion-header-${props.topContentIndex}
|
|
15
|
-
React.createElement("h3", null, props.name)))) : (React.createElement("pfe-accordion-header", { "data-tracking-id": `top-content-accordion-header-${props.topContentIndex}
|
|
41
|
+
React.createElement("pfe-accordion-header", { "data-tracking-id": `top-content-accordion-header-${props.topContentIndex}`, onClick: (e) => onTopContentTabClicked(e, props.items) },
|
|
42
|
+
React.createElement("h3", null, props.name)))) : (React.createElement("pfe-accordion-header", { "data-tracking-id": `top-content-accordion-header-${props.topContentIndex}`, onClick: (e) => onTopContentTabClicked(e, props.items) },
|
|
16
43
|
React.createElement("h3", null, props.name))),
|
|
17
44
|
React.createElement("pfe-accordion-panel", null,
|
|
18
|
-
React.createElement("ul", { className: "list-flushleft" }, map(props.items, (item, i) => (React.createElement("li", { key: i + item.contentTitle },
|
|
45
|
+
React.createElement("ul", { className: "list-flushleft", style: { listStyleType: 'disc' } }, map(props.items, (item, i) => (React.createElement("li", { key: i + item.contentTitle },
|
|
19
46
|
React.createElement("p", null,
|
|
20
47
|
React.createElement("a", { className: "se-recommended ts-top-problems", "data-tracking-id": "se-recommended-top-content", onClick: onLinkClick(item), href: `${item.contentUrl}?${RouteUtils.getSEResourceQueryParams(props.seSessionId, props.seResourceOriginID, SessionResourceSource.TOP_CONTENT)}`, target: "_blank", rel: "noopener noreferrer" }, item.contentTitle)))))))));
|
|
21
48
|
}
|
|
@@ -47,24 +47,24 @@ function TroubleshootSection(props) {
|
|
|
47
47
|
" ",
|
|
48
48
|
React.createElement("b", null, product))),
|
|
49
49
|
React.createElement(LoadingDots, { show: topContent.isFetching }),
|
|
50
|
-
topContent.data.length === 0 && (React.createElement(Card, { id: "card", className: "card-support top-recommendations pf-u-mb-md", isCompact: true },
|
|
50
|
+
topContent.data.length === 0 && (React.createElement(Card, { id: "card", className: "card-support top-recommendations pf-v5-u-mb-md", isCompact: true },
|
|
51
51
|
React.createElement(CardHeader, { "aria-label": t('Popular solutions and docs'), className: "popular-solutions" },
|
|
52
52
|
React.createElement(CardTitle, { id: "card-title", className: "card-title" },
|
|
53
53
|
React.createElement(Trans, { i18nKey: 'i18nKeyPopularSolutions' }, "Popular solutions and docs"))),
|
|
54
|
-
React.createElement(CardBody, { "aria-label": t('No recommendations for this product'), className: "file-recs-no-recommendation pf-u-mt-md" },
|
|
54
|
+
React.createElement(CardBody, { "aria-label": t('No recommendations for this product'), className: "file-recs-no-recommendation pf-v5-u-mt-md" },
|
|
55
55
|
React.createElement(Trans, null, "No recommendations for this product")))),
|
|
56
56
|
React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading suggestions') } }, canShowTopContent && !isEmpty(version) && React.createElement(Suggestions, null)),
|
|
57
|
-
!isCreatingCase && React.createElement(ClusterRecommendations, { className: "pf-u-mt-lg" }))),
|
|
58
|
-
React.createElement("section", { className: "pf-u-mt-lg" },
|
|
57
|
+
!isCreatingCase && React.createElement(ClusterRecommendations, { className: "pf-v5-u-mt-lg" }))),
|
|
58
|
+
React.createElement("section", { className: "pf-v5-u-mt-lg" },
|
|
59
59
|
isNotAnIdea && (React.createElement(InsightsResults, { isDisplayOnMain: true, "data-tracking-id": "troubleshoot-section-file-recs" })),
|
|
60
|
-
React.createElement("div", { className: "pf-u-mt-lg" }, canAddAttachments ? (React.createElement(FileDiag, null)) : (React.createElement(React.Fragment, null,
|
|
60
|
+
React.createElement("div", { className: "pf-v5-u-mt-lg" }, canAddAttachments ? (React.createElement(FileDiag, null)) : (React.createElement(React.Fragment, null,
|
|
61
61
|
React.createElement(Card, { id: "card", className: "card-support card-white file-diag", isCompact: true },
|
|
62
62
|
React.createElement(CardHeader, { "aria-label": !isNotAnIdea || loggedInUsersAccount.data.secureSupport
|
|
63
63
|
? t('File uploader')
|
|
64
64
|
: t('Upload file to analyze'), className: "card-heading" },
|
|
65
65
|
React.createElement(CardTitle, { id: "card-title", className: "card-title" }, !isNotAnIdea || loggedInUsersAccount.data.secureSupport ? (React.createElement(Trans, null, "File uploader")) : (React.createElement(Trans, null, "Upload file to analyze")))),
|
|
66
66
|
React.createElement(CardBody, { "aria-label": t('No recommendations for this product'), className: "no-access-file-diag" },
|
|
67
|
-
React.createElement("div", { className: "display-dashed pf-u-font-weight-bold pf-u-text-align-center pf-u-mt-md" },
|
|
67
|
+
React.createElement("div", { className: "display-dashed pf-v5-u-font-weight-bold pf-v5-u-text-align-center pf-v5-u-mt-md" },
|
|
68
68
|
React.createElement(Trans, null, "You do not have access to upload files"),
|
|
69
69
|
".")))))))));
|
|
70
70
|
}
|
|
@@ -286,7 +286,7 @@ export default function UpdateSeverityModal(props) {
|
|
|
286
286
|
const modalBody = () => {
|
|
287
287
|
return (React.createElement(React.Fragment, null,
|
|
288
288
|
React.createElement("form", { "aria-label": t('form') },
|
|
289
|
-
React.createElement("div", { className: "form-group pf-u-mt-xs" },
|
|
289
|
+
React.createElement("div", { className: "form-group pf-v5-u-mt-xs" },
|
|
290
290
|
React.createElement("div", null,
|
|
291
291
|
React.createElement(Dropdown, { name: "get-support-severity-modal", placeholder: t(`Select a severity`), title: t(`Select a severity`), list: allCaseSeverities.data
|
|
292
292
|
? toOptions(filteredSeverities, {
|
|
@@ -304,11 +304,11 @@ export default function UpdateSeverityModal(props) {
|
|
|
304
304
|
ownersEntitlements.isFetching ||
|
|
305
305
|
versionsDetails.isFetching, isLoadingList: isFetching || versionsDetails.isFetching, isInValid: allCaseSeverities.isError || isSeverityInValid, required: true, onChange: onSeverityChange, onOuterClick: setIsSeverityInValidLocal, "data-tracking-id": "get-support-severity-modal" })),
|
|
306
306
|
React.createElement("div", null,
|
|
307
|
-
React.createElement("label", { htmlFor: "date-input", className: "pf-u-mt-md" },
|
|
307
|
+
React.createElement("label", { htmlFor: "date-input", className: "pf-v5-u-mt-md" },
|
|
308
308
|
React.createElement(Trans, null, "Describe update"),
|
|
309
309
|
React.createElement("span", { className: "form-required", "aria-hidden": "true" }, "*")),
|
|
310
|
-
React.createElement(TextArea, { placeholder: "Please identify any changes in the case's business impact", isDisabled: (caseOverviewState.caseSeverityUpdating && isCaseUpdating) || isPostingComment, value: descriptionValue, onChange: handleTextAreaChange, resizeOrientation: "vertical", "aria-label": "summary", isRequired: true }),
|
|
311
|
-
React.createElement("div", { className: "pf-u-mt-xs" },
|
|
310
|
+
React.createElement(TextArea, { placeholder: "Please identify any changes in the case's business impact", isDisabled: (caseOverviewState.caseSeverityUpdating && isCaseUpdating) || isPostingComment, value: descriptionValue, onChange: (_event, value) => handleTextAreaChange(value), resizeOrientation: "vertical", "aria-label": "summary", isRequired: true }),
|
|
311
|
+
React.createElement("div", { className: "pf-v5-u-mt-xs" },
|
|
312
312
|
React.createElement(Trans, null, "Your comment will be visible under discussions")))))));
|
|
313
313
|
};
|
|
314
314
|
// Main modal and its headings
|
|
@@ -14,11 +14,11 @@ export default function Rule(props) {
|
|
|
14
14
|
const onCtaClick = (event) => {
|
|
15
15
|
props.onLinkClick && props.onLinkClick(props.link);
|
|
16
16
|
};
|
|
17
|
-
return (React.createElement("div", { className: `pf-c-alert ea-rule-alert${props.isInline ? ' pf-m-inline' : ''}`, role: "alert" },
|
|
18
|
-
React.createElement("span", { className: "pf-c-alert__icon icon-info-circle", "aria-hidden": true }),
|
|
19
|
-
React.createElement("h3", { className: "pf-c-alert__title" }, !isEmpty(props.link) ? (React.createElement("a", { href: getTrackingULRWithQueryParams(props.link, SessionResourceSource.EDMOUND_ABOTT), target: "_blank", rel: "noopener noreferrer", className: "se-recommended ts-known-vuln", "data-tracking-id": "se-recommended-asa-rule", onClick: onCtaClick }, props.title)) : (props.title)),
|
|
20
|
-
React.createElement("div", { className: "pf-c-alert__description", dangerouslySetInnerHTML: { __html: DOMPurify.sanitize(parseMarkdown(props.description)) } }),
|
|
21
|
-
props.onHide && (React.createElement("div", { className: "pf-c-alert__action" },
|
|
22
|
-
React.createElement("button", { className: "pf-c-button pf-m-plain", type: "button", "aria-label": "Close", onClick: hide },
|
|
17
|
+
return (React.createElement("div", { className: `pf-v5-c-alert ea-rule-alert${props.isInline ? ' pf-m-inline' : ''}`, role: "alert" },
|
|
18
|
+
React.createElement("span", { className: "pf-v5-c-alert__icon icon-info-circle", "aria-hidden": true }),
|
|
19
|
+
React.createElement("h3", { className: "pf-v5-c-alert__title" }, !isEmpty(props.link) ? (React.createElement("a", { href: getTrackingULRWithQueryParams(props.link, SessionResourceSource.EDMOUND_ABOTT), target: "_blank", rel: "noopener noreferrer", className: "se-recommended ts-known-vuln", "data-tracking-id": "se-recommended-asa-rule", onClick: onCtaClick }, props.title)) : (props.title)),
|
|
20
|
+
React.createElement("div", { className: "pf-v5-c-alert__description", dangerouslySetInnerHTML: { __html: DOMPurify.sanitize(parseMarkdown(props.description)) } }),
|
|
21
|
+
props.onHide && (React.createElement("div", { className: "pf-v5-c-alert__action" },
|
|
22
|
+
React.createElement("button", { className: "pf-v5-c-button pf-m-plain", type: "button", "aria-label": "Close", onClick: hide },
|
|
23
23
|
React.createElement(TimesIcon, { "aria-hidden": "true" }))))));
|
|
24
24
|
}
|
|
@@ -105,15 +105,15 @@ export default function FileLister(props) {
|
|
|
105
105
|
: `file-${index + 1} text-error`}` },
|
|
106
106
|
React.createElement("div", { className: "file-name" },
|
|
107
107
|
React.createElement("label", { htmlFor: `file-${index + 1}-description` },
|
|
108
|
-
!isUploadOnTrack(localFile) && (React.createElement("i", { className: "icon-warning pf-u-mr-sm", title: getUploadErrorMessage(localFile, localFile.uploadability), "aria-label": getUploadErrorMessage(localFile, localFile.uploadability) })),
|
|
109
|
-
isUploadedAndAnalysisFailed(localFile) && (React.createElement("i", { className: "icon-warning text-danger pf-u-mr-sm", title: getUploadErrorMessage(localFile, localFile.uploadability), "aria-label": getUploadErrorMessage(localFile, localFile.uploadability) })),
|
|
110
|
-
isUploadedAndAnalyzed(localFile) && (React.createElement("i", { className: "icon-check-alt text-green pf-u-mr-sm", title: t('File uploaded and analyzed'), "aria-label": t('File uploaded and analyzed') })),
|
|
111
|
-
isUploading(localFile.uploadProgress.uploadStatus) && (React.createElement("div", { className: "pf-u-mr-sm pf-u-display-inline-block", style: { height: '20px', width: '20px' } },
|
|
108
|
+
!isUploadOnTrack(localFile) && (React.createElement("i", { className: "icon-warning pf-v5-u-mr-sm", title: getUploadErrorMessage(localFile, localFile.uploadability), "aria-label": getUploadErrorMessage(localFile, localFile.uploadability) })),
|
|
109
|
+
isUploadedAndAnalysisFailed(localFile) && (React.createElement("i", { className: "icon-warning text-danger pf-v5-u-mr-sm", title: getUploadErrorMessage(localFile, localFile.uploadability), "aria-label": getUploadErrorMessage(localFile, localFile.uploadability) })),
|
|
110
|
+
isUploadedAndAnalyzed(localFile) && (React.createElement("i", { className: "icon-check-alt text-green pf-v5-u-mr-sm", title: t('File uploaded and analyzed'), "aria-label": t('File uploaded and analyzed') })),
|
|
111
|
+
isUploading(localFile.uploadProgress.uploadStatus) && (React.createElement("div", { className: "pf-v5-u-mr-sm pf-v5-u-display-inline-block", style: { height: '20px', width: '20px' } },
|
|
112
112
|
React.createElement(CircularProgressbar, { title: getRadialProgressTitle(localFile), strokeWidth: 13, value: localFile.uploadProgress.percentUploaded }))),
|
|
113
113
|
React.createElement("span", null, `${localFile.name} (${humanizeSize(localFile.size)})`),
|
|
114
114
|
!localFile.uploadability.ableToUpload && (React.createElement("span", { className: "file-error" },
|
|
115
115
|
React.createElement(Trans, null, "can't be selected."))),
|
|
116
|
-
localFile.isPrivate && (React.createElement(Label, { color: "red", className: "pf-u-ml-sm" },
|
|
116
|
+
localFile.isPrivate && (React.createElement(Label, { color: "red", className: "pf-v5-u-ml-sm" },
|
|
117
117
|
React.createElement(Trans, null, "Private")))),
|
|
118
118
|
!shouldHideDescription(localFile, props.isSessionId) &&
|
|
119
119
|
((_a = localFile === null || localFile === void 0 ? void 0 : localFile.description) === null || _a === void 0 ? void 0 : _a.length) > 1 && (React.createElement("span", { className: "character-counter text-muted" }, 255 - ((_b = localFile.description) === null || _b === void 0 ? void 0 : _b.length))),
|
|
@@ -127,7 +127,7 @@ export default function FileLister(props) {
|
|
|
127
127
|
showDeleteBtn(localFile.uploadProgress.uploadStatus, localFile) && (React.createElement(Button, { variant: ButtonVariant.link, isDanger: true, "aria-label": t('Delete file'), title: t('Delete file'), className: "btn btn-link btn-app remove-file", "data-tracking-id": "file-lister-delete", onClick: onRemoveClick(localFile, index), hidden: !localFile.uploadability.ableToUpload },
|
|
128
128
|
React.createElement(Trans, null, "Remove")))))),
|
|
129
129
|
isAnalysingFile(localFile.analysisMetadata.analysisStatus) && (React.createElement(Progress, { measureLocation: ProgressMeasureLocation.top, value: getAnalysisStepCount(localFile), min: 0, max: (analysisSteps === null || analysisSteps === void 0 ? void 0 : analysisSteps.length) + 1, label: getAnalysisProgressTitle(localFile), valueText: getAnalysisProgressTitle(localFile) })),
|
|
130
|
-
React.createElement("input", { id: `file-${index + 1}-description`, "data-tracking-id": `case-${props.isSessionId ? 'create' : 'details'}-file-${index + 1}-description`, className: "file-description form-control pf-u-my-sm", type: "text", value: localFile.description, onChange: onDescriptionChange(localFile, index), maxLength: 255, placeholder: t(`${shouldHideDescription(localFile, props.isSessionId)
|
|
130
|
+
React.createElement("input", { id: `file-${index + 1}-description`, "data-tracking-id": `case-${props.isSessionId ? 'create' : 'details'}-file-${index + 1}-description`, className: "file-description form-control pf-v5-u-my-sm", type: "text", value: localFile.description, onChange: onDescriptionChange(localFile, index), maxLength: 255, placeholder: t(`${shouldHideDescription(localFile, props.isSessionId)
|
|
131
131
|
? ''
|
|
132
132
|
: t('Enter a description')}`), hidden: shouldHideDescription(localFile, props.isSessionId) }),
|
|
133
133
|
isUploadedAndAnalysisSkipped(localFile) &&
|
|
@@ -150,12 +150,12 @@ function WidgetFileUploader(props) {
|
|
|
150
150
|
React.createElement("h3", { className: "card-heading" }, props.isIdea || props.isSecureSupport ? (React.createElement(Trans, null, "File uploader")) : (React.createElement(Trans, null, "Upload file to analyze"))),
|
|
151
151
|
React.createElement("div", { className: "card-body" },
|
|
152
152
|
React.createElement(WidgetFileSelector, { isSessionId: props.isSessionId, isPrivate: props.isPrivate, isIdea: props.isIdea, showFileExceed: fileExceedInfo }),
|
|
153
|
-
!hasSomeSelectedFiles(selectedLocalFiles) ? ((!props.isIdea && props.helperText) || (React.createElement("p", { className: "pf-u-mt-sm" },
|
|
153
|
+
!hasSomeSelectedFiles(selectedLocalFiles) ? ((!props.isIdea && props.helperText) || (React.createElement("p", { className: "pf-v5-u-mt-sm" },
|
|
154
154
|
!props.isIdea ? (React.createElement(Trans, { i18nKey: "i18nUploadSosReport" },
|
|
155
155
|
"Upload a",
|
|
156
156
|
' ',
|
|
157
157
|
React.createElement("a", { href: "/solutions/3592", target: "_blank" }, "sosreport"),
|
|
158
|
-
"to help us provide the best solutions for your system.")) : (React.createElement("span", { className: "pf-u-font-family-redhatVF-heading-sans-serif pf-u-color-300" },
|
|
158
|
+
"to help us provide the best solutions for your system.")) : (React.createElement("span", { className: "pf-v5-u-font-family-redhatVF-heading-sans-serif pf-v5-u-color-300" },
|
|
159
159
|
React.createElement(Trans, null, "Allowed file types: png, gif, jpg, jpeg."))),
|
|
160
160
|
' '))) : (React.createElement(React.Fragment, null,
|
|
161
161
|
unallowedLocalFileExists && (React.createElement(Alert, { variant: "danger", title: "File type is not allowed on this case type. Please remove file to proceed." })),
|
|
@@ -14,5 +14,5 @@ export function FileUploaderInfoIcon() {
|
|
|
14
14
|
React.createElement("b", null, ".txt,.png,.jpg,.jpeg,.gif,.tar,.pdf")),
|
|
15
15
|
React.createElement("p", null,
|
|
16
16
|
React.createElement(Trans, null, "Learn about how analyzing files can save you time by providing targeted solutions for your system"))) },
|
|
17
|
-
React.createElement(InfoCircleIcon, { className: "pf-u-ml-auto" })));
|
|
17
|
+
React.createElement(InfoCircleIcon, { className: "pf-v5-u-ml-auto" })));
|
|
18
18
|
}
|
|
@@ -126,7 +126,7 @@ i.web-icon-check {
|
|
|
126
126
|
.file-diag .file-diag-list.text-error,
|
|
127
127
|
.file-diag-list .remove-file {
|
|
128
128
|
margin-top: 0;
|
|
129
|
-
color: var(--pf-global--danger-color--100);
|
|
129
|
+
color: var(--pf-v5-global--danger-color--100);
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
.file-diag .file-diag-list .remove-file {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileSelectorButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/fileUpload/fileSelectors/FileSelectorButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,UAAU,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC;IACvD,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,iBAAS,kBAAkB,CAAC,EACxB,WAAW,EACX,EAAO,EACP,SAA4B,EAC5B,WAA6B,EAC7B,SAAiB,EACjB,GAAG,QAAQ,EACd,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"FileSelectorButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/fileUpload/fileSelectors/FileSelectorButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,UAAU,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC;IACvD,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,iBAAS,kBAAkB,CAAC,EACxB,WAAW,EACX,EAAO,EACP,SAA4B,EAC5B,WAA6B,EAC7B,SAAiB,EACjB,GAAG,QAAQ,EACd,EAAE,MAAM,eAuBR;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -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-c-button ${className}`, "data-tracking-id": "upload-a-file" }), buttonLabel)));
|
|
28
|
+
React.createElement("button", Object.assign({}, btnProps, { type: "button", className: `pf-v5-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-u-text-align-center pf-u-color-300 pf-u-font-weight-normal" },
|
|
31
|
+
isIdea && (React.createElement("div", { className: "pf-v5-u-text-align-center pf-v5-u-color-300 pf-v5-u-font-weight-normal" },
|
|
32
32
|
React.createElement(Trans, null, "Files must be less than 5 MB.")))),
|
|
33
|
-
isIdea && (React.createElement("p", { className: "pf-u-danger-color-200" },
|
|
33
|
+
isIdea && (React.createElement("p", { className: "pf-v5-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-u-text-align-center pf-u-color-300 pf-u-font-weight-normal" },
|
|
30
|
+
React.createElement("div", { className: "pf-v5-u-text-align-center pf-v5-u-color-300 pf-v5-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-u-danger-color-200" }, rejectedFiles.map((rejectedFile) => {
|
|
33
|
+
React.createElement("p", { className: "pf-v5-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,
|
|
@@ -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-u-display-none-on-sm" },
|
|
11
|
+
React.createElement("header", { className: "pf-v5-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,EAGH,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,eA0CjC;kBA1CQ,WAAW;;;AA4CpB,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 { hideFileUploadSidebarWidgetSections, showSideBarClusterIdRuleWidgetSections, showSideBarEARuleWidgetSections, showSideBarFileRecommendationSections, } from '../../reducers/RouteConstNTypes';
|
|
7
|
+
import { AppRouteSections, 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';
|
|
@@ -35,7 +35,7 @@ function WizardAside(props) {
|
|
|
35
35
|
!(isIdea && activeSection === 'submit-case') && React.createElement(AsideResults, null),
|
|
36
36
|
canShowFileRecommendationSectionsWidget && React.createElement(InsightsResults, { isDisplayOnMain: true }),
|
|
37
37
|
React.createElement(ClusterRecommendations, { showClusterRecommendationsList: canShowClusterIdReportWidget }),
|
|
38
|
-
canUseSessionManagement && !isCreatingCase && React.createElement(SessionRestore, { routeProps: props.routeProps }),
|
|
38
|
+
canUseSessionManagement && !isCreatingCase && activeSection !== AppRouteSections.SUBMIT_CASE && (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":"AASA,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,
|
|
1
|
+
{"version":3,"file":"WizardLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardLayout.tsx"],"names":[],"mappings":"AASA,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,eAgJzC"}
|
|
@@ -85,7 +85,7 @@ export function WizardLayout(props) {
|
|
|
85
85
|
"Try submitting again after a minute. Please ",
|
|
86
86
|
React.createElement(SupportFeedbackForm, { isInline: true }),
|
|
87
87
|
" 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);
|
|
88
|
+
submitCase(caseDispatch, sessionRestoreDispatch, caseState, sessionItem, isCaseCreate, errorMessageCaseSubmit500, loggedInUser.data.ssoUsername, loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data.secureSupport, isReSubmitting || false);
|
|
89
89
|
// reset viewedModals on case submit
|
|
90
90
|
viewedConfirmationModalsList.current = [];
|
|
91
91
|
!isReSubmitting &&
|
|
@@ -116,5 +116,5 @@ export function WizardLayout(props) {
|
|
|
116
116
|
React.createElement(WizardMain, { routeProps: props.routeProps, submitCaseAndNavigate: submitCaseAndNavigate, confirmSupportModal: confirmSupportModal })),
|
|
117
117
|
React.createElement(GridItem, { span: 4, className: "grid-wizard-aside-content" },
|
|
118
118
|
React.createElement(WizardAside, { isAttachmentUploadModalOpen: confirmationModalType === PreCaseConfirmationModalsEnum.NO_ATTACHMENT_MODAL, routeProps: props.routeProps }))),
|
|
119
|
-
React.createElement(AlertToastWrapper, { submitCaseAndNavigate: submitCaseAndNavigate })));
|
|
119
|
+
React.createElement(AlertToastWrapper, { submitCaseAndNavigate: submitCaseAndNavigate, routeProps: props.routeProps })));
|
|
120
120
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Wizard, WizardContextConsumer, WizardFooter } from '@patternfly/react-core';
|
|
1
|
+
import { Wizard, WizardContextConsumer, WizardFooter } from '@patternfly/react-core/deprecated';
|
|
2
2
|
import { LoadingIndicator } from '@rh-support/components';
|
|
3
3
|
import isEqual from 'lodash/isEqual';
|
|
4
4
|
import React, { Suspense, useContext, useState } from 'react';
|
|
@@ -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-u-align-self-center pf-u-ml-md text-red" }, activeSectionError)) : null));
|
|
115
|
+
activeSectionError ? (React.createElement("small", { className: "pf-v5-u-align-self-center pf-v5-u-ml-md text-red" }, activeSectionError)) : null));
|
|
116
116
|
}
|
|
117
117
|
WizardNavigation.defaultProps = defaultProps;
|
|
118
118
|
export default WizardNavigation;
|
package/lib/esm/css/app.css
CHANGED
|
@@ -94,8 +94,8 @@ form textarea {
|
|
|
94
94
|
resize: vertical !important;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
.pf-c-form-control.pf-m-warning {
|
|
98
|
-
border-bottom-color: var(--pf-c-form-control--m-warning--BorderBottomColor);
|
|
97
|
+
.pf-v5-c-form-control.pf-m-warning {
|
|
98
|
+
border-bottom-color: var(--pf-v5-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-c-popover {
|
|
290
|
+
.pf-tippy-theme.tippy-tooltip .pf-v5-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-c-popover .pf-c-popover__body > * {
|
|
296
|
+
.pf-v5-c-popover .pf-v5-c-popover__body > * {
|
|
297
297
|
margin-bottom: 0;
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
-
.pf-c-popover .pf-c-button {
|
|
300
|
+
.pf-v5-c-popover .pf-v5-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-c-popover .pf-c-popover__content {
|
|
320
|
+
.pf-tippy-theme.tippy-tooltip .pf-v5-c-popover .pf-v5-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-c-popover .pf-c-popover__arrow {
|
|
327
|
+
.pf-tippy-theme.tippy-tooltip .pf-v5-c-popover .pf-v5-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-c-button,
|
|
29
|
+
.pf-v5-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-c-button.pf-m-secondary {
|
|
300
|
+
button.pf-v5-c-button.pf-m-secondary {
|
|
301
301
|
background-color: #fff;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
input[aria-invalid='true'].pf-c-form-control {
|
|
304
|
+
input[aria-invalid='true'].pf-v5-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-u-mb-lg", "data-tracking-id": isLoading ? 'wait-recommendations-loading' : 'proceed-address-errors' }));
|
|
47
|
+
return (React.createElement(AlertMessage, { show: isNextBtnClickedToShowValidationError && !isActiveSectionValid, variant: (isLoadingRecommendations && summary) || topContent.isFetching ? AlertType.INFO : AlertType.DANGER, isInline: true, title: title, className: "pf-v5-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 = {
|
|
@@ -155,7 +155,9 @@ export declare enum CaseReducerConstants {
|
|
|
155
155
|
updateEmailList = "updateEmailList",
|
|
156
156
|
getVersionDetails = "getVersionDetails",
|
|
157
157
|
caseCreation500ErrorStatus = "caseCreation500ErrorStatus",
|
|
158
|
-
resetCaseNoOfCreatedCase = "resetCaseNoOfCreatedCase"
|
|
158
|
+
resetCaseNoOfCreatedCase = "resetCaseNoOfCreatedCase",
|
|
159
|
+
setIsPostingRemoteRequestCommentCompleted = "setIsPostingRemoteRequestCommentCompleted",
|
|
160
|
+
setIsPostingRemoteRequestCommentCompletedError = "setIsPostingRemoteRequestCommentCompletedError"
|
|
159
161
|
}
|
|
160
162
|
export declare const initialCaseState: ICaseState;
|
|
161
163
|
export interface ICaseState {
|
|
@@ -202,6 +204,8 @@ export interface ICaseState {
|
|
|
202
204
|
isCaseOwnerUpdating: boolean;
|
|
203
205
|
isFileRecommendationsTriggered?: boolean;
|
|
204
206
|
caseNoOfCreatedCase?: string;
|
|
207
|
+
isPostingRemoteRequestCommentCompleted?: boolean;
|
|
208
|
+
isPostingRemoteRequestCommentCompletedErrorMessage?: string | undefined;
|
|
205
209
|
}
|
|
206
210
|
export interface ICreateCasePayloadType extends ICaseState {
|
|
207
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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VersionDetails"] = "getVersionDetails";
|
|
107
107
|
CaseReducerConstants["caseCreation500ErrorStatus"] = "caseCreation500ErrorStatus";
|
|
108
108
|
CaseReducerConstants["resetCaseNoOfCreatedCase"] = "resetCaseNoOfCreatedCase";
|
|
109
|
+
CaseReducerConstants["setIsPostingRemoteRequestCommentCompleted"] = "setIsPostingRemoteRequestCommentCompleted";
|
|
110
|
+
CaseReducerConstants["setIsPostingRemoteRequestCommentCompletedError"] = "setIsPostingRemoteRequestCommentCompletedError";
|
|
109
111
|
})(CaseReducerConstants || (CaseReducerConstants = {}));
|
|
110
112
|
export const initialCaseState = {
|
|
111
113
|
isCreatingCase: false,
|
|
@@ -196,6 +198,8 @@ export const initialCaseState = {
|
|
|
196
198
|
isCaseOwnerUpdating: false,
|
|
197
199
|
isFileRecommendationsTriggered: false,
|
|
198
200
|
caseNoOfCreatedCase: '',
|
|
201
|
+
isPostingRemoteRequestCommentCompleted: false,
|
|
202
|
+
isPostingRemoteRequestCommentCompletedErrorMessage: '',
|
|
199
203
|
};
|
|
200
204
|
export const ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967811';
|
|
201
205
|
export const NON_ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967831';
|
|
@@ -12,7 +12,7 @@ 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 submitCase: (dispatch: CaseReducerDispatchType, sessionRestoreDispatch: SessionReducerDispatchType, caseDetails: ICaseState, sessionItem: ISessionItem, isCaseCreate: boolean, errorMessage500: string | JSX.Element, loggedInUserSsoUsername: string, isSecureSupport
|
|
15
|
+
export declare const submitCase: (dispatch: CaseReducerDispatchType, sessionRestoreDispatch: SessionReducerDispatchType, caseDetails: ICaseState, sessionItem: ISessionItem, isCaseCreate: boolean, errorMessage500: string | JSX.Element, loggedInUserSsoUsername: string, isSecureSupport: boolean, isResubmit: boolean) => Promise<void>;
|
|
16
16
|
/**
|
|
17
17
|
* Update case details if there is HTTP 500 error while submitting case
|
|
18
18
|
* @param dispatch CaseReducerDispatchType
|