@rh-support/troubleshoot 2.6.13 → 2.6.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/components/AccountInfo/AccountSelector.js +4 -4
- package/lib/esm/components/AccountInfo/ManagedAccountsDropdown.js +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.js +21 -18
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +45 -34
- package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsAside.js +13 -19
- 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 +8 -8
- package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.js +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/DateTime.d.ts.map +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 +10 -9
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.js +20 -19
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.js +5 -5
- package/lib/esm/components/CaseEditView/CaseSolutions/HandpicketItem.js +3 -3
- 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 +33 -23
- package/lib/esm/components/CaseEditView/PDFContainer.js +19 -15
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.js +9 -8
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.js +13 -16
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.js +51 -94
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.js +9 -8
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +36 -31
- 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 +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.js +9 -7
- 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/CaseReferenceNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.js +3 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/SFDCUrl.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/SFDCUrl.js +3 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseChat.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseExternalTrackerUpdate.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.js +2 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +5 -5
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.js +23 -17
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.css +19 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.js +5 -8
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.js +5 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.js +4 -6
- package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummaryErrorMessage.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummaryErrorMessage.js +4 -6
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/RelatedTasks/RelatedTasks.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/RelatedTasks/RelatedTasks.js +2 -3
- package/lib/esm/components/CaseInformation/CaseGroup.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/CaseGroup.js +1 -2
- package/lib/esm/components/CaseInformation/CaseInformation.js +3 -3
- package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.js +1 -1
- package/lib/esm/components/CaseInformation/Description.js +4 -4
- package/lib/esm/components/CaseInformation/Fts.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Fts.js +13 -9
- package/lib/esm/components/CaseInformation/OpenCaseIssue.js +2 -2
- package/lib/esm/components/CaseInformation/Severity.js +1 -1
- package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/SupportLevel.js +16 -10
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.js +14 -11
- package/lib/esm/components/CaseManagement/CaseManagement.js +4 -4
- package/lib/esm/components/CaseManagement/Cep.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/Cep.js +44 -41
- package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.js +50 -42
- package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.js +39 -63
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +62 -36
- package/lib/esm/components/CaseManagement/RHAssociatesSelector.js +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/AddContactToGroupModal.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/AddContactToGroupModal.js +8 -8
- package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.js +10 -10
- package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.js +2 -2
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.js +57 -16
- package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.d.ts.map +1 -1
- package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.js +12 -27
- package/lib/esm/components/ConfirmationModals/PreferredSecureSupportModal.d.ts.map +1 -1
- package/lib/esm/components/ConfirmationModals/PreferredSecureSupportModal.js +1 -1
- package/lib/esm/components/Cve/CveItem.d.ts.map +1 -1
- package/lib/esm/components/Cve/CveItem.js +10 -11
- package/lib/esm/components/Cve/CveModal.d.ts.map +1 -1
- package/lib/esm/components/Cve/CveModal.js +10 -11
- package/lib/esm/components/Cve/CvePanel.d.ts.map +1 -1
- package/lib/esm/components/Cve/CvePanel.js +3 -3
- package/lib/esm/components/Cve/CveSidebar.js +2 -2
- package/lib/esm/components/IdeaInformation/IdeaInformation.js +7 -7
- package/lib/esm/components/ImproveCase/KtQuestions.js +6 -6
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.js +6 -13
- package/lib/esm/components/ProductSelector/AllProductsSelector.js +8 -7
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts +1 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +80 -53
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +14 -10
- package/lib/esm/components/ProductSelector/ProductSelector.js +1 -1
- package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.js +4 -4
- package/lib/esm/components/Recommendations/AsideResults.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/AsideResults.js +5 -3
- package/lib/esm/components/Recommendations/ClusterRecommendationItems.js +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendations.js +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendationsModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendationsModal.js +7 -11
- package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.js +4 -4
- package/lib/esm/components/Recommendations/EARules/EARuleInfoInline.js +7 -7
- package/lib/esm/components/Recommendations/InsightsResults.js +1 -1
- package/lib/esm/components/Recommendations/InsightsRuleInfo.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/InsightsRuleInfo.js +16 -16
- package/lib/esm/components/Recommendations/RecommendationFeedbackModal.js +6 -6
- package/lib/esm/components/Recommendations/RecommendationInfoBox.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/RecommendationInfoBox.js +7 -7
- package/lib/esm/components/Recommendations/Recommendations.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/Recommendations.js +23 -20
- package/lib/esm/components/Recommendations/RecommendationsLoader.js +1 -1
- package/lib/esm/components/Recommendations/RulesModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/RulesModal.js +7 -9
- package/lib/esm/components/Recommendations/WatsonxAiIcon.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/WatsonxAiIcon.js +9 -10
- package/lib/esm/components/RemoteRider/RemoteRiderBanner.js +1 -1
- package/lib/esm/components/Review/Review.js +4 -4
- package/lib/esm/components/SessionRestore/RestoreLastSessionModal.js +5 -5
- package/lib/esm/components/SessionRestore/SessionRestore.js +1 -1
- package/lib/esm/components/SessionRestore/SessionRestoreCard.js +1 -1
- package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
- package/lib/esm/components/SubmitCase/SubmitCase.js +21 -21
- package/lib/esm/components/Suggestions/Suggestions.js +2 -2
- package/lib/esm/components/Suggestions/TopContent.d.ts.map +1 -1
- package/lib/esm/components/Suggestions/TopContent.js +8 -8
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts.map +1 -1
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +13 -14
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts.map +1 -1
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +20 -16
- 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.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +7 -6
- package/lib/esm/components/shared/fileUpload/common/FileUploaderInfoIcon.js +1 -1
- package/lib/esm/components/shared/fileUpload/css/fileSelector.css +1 -0
- package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.js +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.js +4 -4
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelectorImage.js +2 -2
- package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts +15 -6
- package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts.map +1 -1
- package/lib/esm/components/shared/input/ContactSelectorInternal.js +128 -23
- package/lib/esm/components/wizardLayout/MainSection.js +2 -2
- package/lib/esm/components/wizardLayout/NewFeatureModal.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/NewFeatureModal.js +6 -6
- package/lib/esm/components/wizardLayout/WizardAside.js +3 -3
- package/lib/esm/components/wizardLayout/WizardMain.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardMain.js +61 -19
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardNavigation.js +11 -16
- package/lib/esm/css/app.css +13 -13
- package/lib/esm/css/case.css +23 -16
- package/lib/esm/hooks/useWizard.d.ts.map +1 -1
- package/lib/esm/hooks/useWizard.js +1 -3
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.js +2 -2
- package/lib/esm/reducers/RouteConstNTypes.d.ts +1 -2
- package/lib/esm/reducers/RouteConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/RulesReducer.d.ts.map +1 -1
- package/lib/esm/scss/_main.scss +183 -88
- package/lib/esm/scss/_pf-overrides.scss +150 -140
- package/package.json +11 -11
|
@@ -162,7 +162,7 @@ export default function Recommendations(props) {
|
|
|
162
162
|
React.createElement(Trans, null, "Powered by Openshift AI")), bodyContent: React.createElement("div", null,
|
|
163
163
|
React.createElement(Trans, null, "These articles have been selected based on the information provided."),
|
|
164
164
|
React.createElement("br", null)) },
|
|
165
|
-
React.createElement(InfoCircleIcon, { color: "
|
|
165
|
+
React.createElement(InfoCircleIcon, { color: "black" })));
|
|
166
166
|
function getRankPercentage(decimal) {
|
|
167
167
|
return Math.round(decimal * 100);
|
|
168
168
|
}
|
|
@@ -180,29 +180,32 @@ export default function Recommendations(props) {
|
|
|
180
180
|
};
|
|
181
181
|
return (React.createElement(React.Fragment, null,
|
|
182
182
|
isBTestvariation && (React.createElement(LoadingDots, { className: "recommendation-loading-dots", show: recommendationState.isLoadingRecommendations && !isEmpty(summary) })),
|
|
183
|
-
React.createElement("div", { className: "recommendation-list
|
|
183
|
+
React.createElement("div", { className: "recommendation-list", ref: props.resultsRowRef },
|
|
184
184
|
isATestvariation
|
|
185
185
|
? (recommendationState.visibleDocs.length !== 0 ||
|
|
186
186
|
recommendationState.isLoadingRecommendations) && (React.createElement("div", { className: `${recommendationState.isLoadingRecommendations ? 'gradient' : ''} label-container-icon` },
|
|
187
|
-
React.createElement(Label, { id: "DeepPurpleColorAILabel", className: "pf-
|
|
187
|
+
React.createElement(Label, { id: "DeepPurpleColorAILabel", className: "pf-v6-u-mb-md", color: "purple" },
|
|
188
188
|
recommendationState.isLoadingRecommendations ? (React.createElement(React.Fragment, null,
|
|
189
|
-
React.createElement(
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
189
|
+
React.createElement("span", { className: "loading-text" },
|
|
190
|
+
React.createElement(Spinner, { size: "sm", className: "pf-v6-u-mr-xs" }),
|
|
191
|
+
' ',
|
|
192
|
+
React.createElement(Trans, null,
|
|
193
|
+
recommendationState.visibleDocs.length
|
|
194
|
+
? 'Updating recommendations '
|
|
195
|
+
: 'Recommending articles ',
|
|
196
|
+
"using OpenShift AI"),
|
|
197
|
+
' ',
|
|
198
|
+
React.createElement(InfoCircleIcon, { color: "black" })))) : (React.createElement(React.Fragment, null,
|
|
199
|
+
React.createElement("span", { className: "ai-label-text" },
|
|
200
|
+
React.createElement(WatsonxAiIcon, { fillColor: "#FFFFFF", className: "pf-v6-u-mr-xs" }),
|
|
201
|
+
' ',
|
|
202
|
+
React.createElement("span", { className: "ai-label-text1" },
|
|
203
|
+
React.createElement(Trans, null, "Articles recommended by OpenShift AI"),
|
|
204
|
+
" ",
|
|
205
|
+
infoPopover)))),
|
|
203
206
|
' ')))
|
|
204
|
-
: recommendationState.visibleDocs.length !== 0 && (React.createElement(Label, { color: "purple", className: "pf-
|
|
205
|
-
React.createElement(WatsonxAiIcon, { fillColor: "#6753ac", className: "pf-
|
|
207
|
+
: recommendationState.visibleDocs.length !== 0 && (React.createElement(Label, { color: "purple", className: "pf-v6-u-mb-md" },
|
|
208
|
+
React.createElement(WatsonxAiIcon, { fillColor: "#6753ac", className: "pf-v6-u-mr-xs" }),
|
|
206
209
|
React.createElement(Trans, null, "Live search results powered by OpenShift AI"))),
|
|
207
210
|
isATestvariation && recommendationState.isLoadingRecommendations ? (React.createElement(RecommendationsLoader, null)) : (React.createElement("ul", { className: "list-flat" }, map(recommendationState.visibleDocs, (doc, i) => {
|
|
208
211
|
var _a, _b;
|
|
@@ -212,7 +215,7 @@ export default function Recommendations(props) {
|
|
|
212
215
|
React.createElement("div", { className: "header-meta" },
|
|
213
216
|
isATestvariation && doc.rerank_score && computeLabel(doc),
|
|
214
217
|
doc.kcsState === 'verified' && (React.createElement(React.Fragment, null,
|
|
215
|
-
React.createElement("span", { className: "status-verified pf-
|
|
218
|
+
React.createElement("span", { className: "status-verified pf-v6-u-font-weight-bold pf-v6-u-success-color-100" }, "verified"),
|
|
216
219
|
React.createElement("span", { className: "list-separator" }, "\u2013"))),
|
|
217
220
|
React.createElement("span", { className: "meta" }, doc.documentKind),
|
|
218
221
|
React.createElement("span", { className: "list-separator" }, "\u2013"),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Skeleton } from '@patternfly/react-core';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export const RecommendationsLoader = () => {
|
|
4
|
-
return (React.createElement("div", { className: "pf-
|
|
4
|
+
return (React.createElement("div", { className: "pf-v6-u-mt-md" }, [...Array(5)].map((_, i) => (React.createElement(React.Fragment, { key: `recommendation-loading-${i}` },
|
|
5
5
|
React.createElement(Skeleton, { height: "20px", width: "100%" }),
|
|
6
6
|
React.createElement("br", null),
|
|
7
7
|
React.createElement(Skeleton, { height: "45px", width: "100%" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RulesModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/RulesModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RulesModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/RulesModal.tsx"],"names":[],"mappings":"AAcA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAM/D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAI7D,UAAU,MAAM;IACZ,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,qBAiM/C"}
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { pcm } from '@cee-eng/hydrajs';
|
|
11
|
-
import { Accordion, Button, Card, CardBody, CardExpandableContent, CardHeader, CardTitle, Modal, } from '@patternfly/react-core';
|
|
11
|
+
import { Accordion, Button, Card, CardBody, CardExpandableContent, CardHeader, CardTitle, Modal, ModalFooter, } from '@patternfly/react-core';
|
|
12
12
|
import { useFetch } from '@rh-support/components';
|
|
13
13
|
import { getResTypeFromUrl } from '@rh-support/utils';
|
|
14
14
|
import React, { useContext, useEffect, useState } from 'react';
|
|
@@ -88,7 +88,7 @@ export function InsightResultModal(props) {
|
|
|
88
88
|
}, [selectedLocalFiles, props.EARule]);
|
|
89
89
|
if (props.isRenderedMain) {
|
|
90
90
|
setCaseState(caseDispatch, { isFileRecommendationsTriggered: true });
|
|
91
|
-
return (React.createElement(Card, { id: "expandable-card", className: "card-support top-recommendations pf-
|
|
91
|
+
return (React.createElement(Card, { id: "expandable-card", className: "card-support top-recommendations pf-v6-u-mt-md", isExpanded: isExpanded, isCompact: true },
|
|
92
92
|
React.createElement(CardHeader, { onExpand: onExpand, toggleButtonProps: {
|
|
93
93
|
id: 'toggle-button1',
|
|
94
94
|
'aria-label': t('File recommendations'),
|
|
@@ -107,12 +107,10 @@ export function InsightResultModal(props) {
|
|
|
107
107
|
}
|
|
108
108
|
return (React.createElement(React.Fragment, null,
|
|
109
109
|
React.createElement(RecommendationFeedbackModal, { isModalOpen: isModalVisible, handleModalToggle: onModalToggle, modalContent: t(`Great, we're glad that resolved your issue`) }),
|
|
110
|
-
React.createElement(Modal, { className: "critical-solutions-modal", title: t('Critical solutions for your system'),
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
React.createElement(Modal, { className: "critical-solutions-modal", title: t('Critical solutions for your system'), "data-tracking-id": "critical-solutions-modal-body", onClose: props.onModalToggle, isOpen: props.isOpen },
|
|
111
|
+
React.createElement("p", null, t('Solutions have been triggered for you based on file upload or common issues that currently have high visibility.')),
|
|
112
|
+
React.createElement(Accordion, { className: "push-top-narrow rules-modal-items", headingLevel: "h2", asDefinitionList: false, isBordered: true }, props.insightResults.map((doc, index) => (React.createElement(InsightsRuleInfo, { duplicateKeys: duplicateKeys, showNewTag: canShowNewTag, key: doc.id + doc.attachmentId, doc: doc, rank: index + 1 })))),
|
|
113
|
+
React.createElement(ModalFooter, null,
|
|
114
114
|
React.createElement(Button, { isDisabled: isFetching, isLoading: isFetching, onClick: handleSolvedIssue, key: "solved-my-issue", variant: "primary", "data-tracking-id": "solved-my-issue-critical-solutions-modal" }, t('I solved my issue')),
|
|
115
|
-
React.createElement(Button, { onClick: props.onModalToggle, key: "confirm", variant: "secondary", "data-tracking-id": "cancel-critical-solutions-modal" }, t('Cancel'))
|
|
116
|
-
] },
|
|
117
|
-
React.createElement(Accordion, { className: "push-top-narrow rules-modal-items", headingLevel: "h2", asDefinitionList: false, isBordered: true }, props.insightResults.map((doc, index) => (React.createElement(InsightsRuleInfo, { duplicateKeys: duplicateKeys, showNewTag: canShowNewTag, key: doc.id + doc.attachmentId, doc: doc, rank: index + 1 })))))));
|
|
115
|
+
React.createElement(Button, { onClick: props.onModalToggle, key: "confirm", variant: "secondary", "data-tracking-id": "cancel-critical-solutions-modal" }, t('Cancel'))))));
|
|
118
116
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WatsonxAiIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/WatsonxAiIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,SAAS;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,UAAW,SAAS,
|
|
1
|
+
{"version":3,"file":"WatsonxAiIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/WatsonxAiIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,SAAS;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,UAAW,SAAS,sBAsB7C,CAAC"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export const WatsonxAiIcon = (props) => {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
React.createElement("
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
React.createElement("
|
|
12
|
-
React.createElement("rect", { fill: "none", id: "_Transparent_Rectangle_", "data-name": "<Transparent Rectangle>", width: "32", height: "32" }))));
|
|
3
|
+
return (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "17", viewBox: "0 0 16 17", fill: "none" },
|
|
4
|
+
React.createElement("g", { "clip-path": "url(#clip0_2742_18241)" },
|
|
5
|
+
React.createElement("path", { d: "M13 12.5007C12.4477 12.5007 12 12.9484 12 13.5007C12 13.5389 12.0071 13.5751 12.0112 13.6122C10.8708 14.5103 9.47165 15.0007 8 15.0007C5.86915 15.0007 4 13.0146 4 10.7507C4 8.40722 5.9065 6.50072 8.25 6.50072H8.5V5.50072H8.25C5.3552 5.50072 3 7.85592 3 10.7507C3 11.6927 3.2652 12.5955 3.71855 13.379C2.3619 12.1868 1.5 10.4445 1.5 8.50072C1.5 7.44312 1.74585 6.43432 2.23095 5.50292L1.34375 5.04102C0.79175 6.10157 0.5 7.29787 0.5 8.50072C0.5 12.6362 3.8645 16.0007 8 16.0007C9.6872 16.0007 11.2909 15.4411 12.6024 14.4176C12.7244 14.4706 12.8586 14.5007 13 14.5007C13.5523 14.5007 14 14.053 14 13.5007C14 12.9484 13.5523 12.5007 13 12.5007Z", fill: "#1F0066" }),
|
|
6
|
+
React.createElement("path", { d: "M6.5 11.5V10.5H5.5V11.5H6.5Z", fill: "#1F0066" }),
|
|
7
|
+
React.createElement("path", { d: "M10.5 6.5V5.5H9.5V6.5H10.5Z", fill: "#1F0066" }),
|
|
8
|
+
React.createElement("path", { d: "M8 1C6.3128 1 4.7091 1.55965 3.3976 2.5831C3.2756 2.5301 3.14145 2.5 3 2.5C2.4477 2.5 2 2.9477 2 3.5C2 4.0523 2.4477 4.5 3 4.5C3.5523 4.5 4 4.0523 4 3.5C4 3.4618 3.9929 3.4256 3.98875 3.38855C5.12915 2.4904 6.52835 2 8 2C10.1308 2 12 3.9861 12 6.25C12 8.5935 10.0935 10.5 7.75 10.5H7.5V11.5H7.75C10.6448 11.5 13 9.1448 13 6.25C13 5.30735 12.7339 4.40415 12.28 3.62035C13.6375 4.8125 14.5 6.55555 14.5 8.5C14.5 9.5576 14.2541 10.5664 13.769 11.4978L14.6562 11.9597C15.2083 10.8992 15.5 9.70285 15.5 8.5C15.5 4.3645 12.1355 1 8 1Z", fill: "#1F0066" })),
|
|
9
|
+
React.createElement("defs", null,
|
|
10
|
+
React.createElement("clipPath", { id: "clip0_2742_18241" },
|
|
11
|
+
React.createElement("rect", { width: "16", height: "16", fill: "white", transform: "translate(0 0.5)" })))));
|
|
13
12
|
};
|
|
@@ -33,7 +33,7 @@ export function RemoteRiderBanner(props) {
|
|
|
33
33
|
setIsRemoteRiderModalVisible(false);
|
|
34
34
|
};
|
|
35
35
|
return (React.createElement(React.Fragment, null,
|
|
36
|
-
React.createElement(Alert, { isInline: true, className: "pf-
|
|
36
|
+
React.createElement(Alert, { isInline: true, className: "pf-v6-u-mb-md", variant: areTermsAccepted ? AlertVariant.success : AlertVariant.info, title: "Remote support", actionLinks: areTermsAccepted ? (React.createElement("a", { href: "/articles/3566571", target: "_blank", rel: "noopener noreferrer", "data-tracking-id": "remote-rider-kbase" },
|
|
37
37
|
t('Learn how to join a remote session'),
|
|
38
38
|
" ",
|
|
39
39
|
React.createElement(ExternalLinkAltIcon, null))) : (React.createElement(React.Fragment, null,
|
|
@@ -48,16 +48,16 @@ export default function Review(props) {
|
|
|
48
48
|
React.createElement(CaseType, { hideIdea: true }),
|
|
49
49
|
React.createElement(SupportLevel, null),
|
|
50
50
|
React.createElement(Grid, { hasGutter: true },
|
|
51
|
-
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-
|
|
51
|
+
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v6-u-mb-xl" },
|
|
52
52
|
React.createElement(Severity, { showSeverityInfoIcon: true, onSeverityChange: onSeverityChange })),
|
|
53
|
-
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-
|
|
53
|
+
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v6-u-mb-xl" },
|
|
54
54
|
React.createElement(ContactPhoneNumber, null))),
|
|
55
55
|
React.createElement(ContactPhoneNumberAlert, null),
|
|
56
56
|
React.createElement(Fts, { inlineEditable: true, initialIsEditing: isEmpty(contactInfo24x7), hideSaveCancel: true }),
|
|
57
57
|
React.createElement(Grid, { hasGutter: true },
|
|
58
|
-
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-
|
|
58
|
+
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v6-u-mb-xs" },
|
|
59
59
|
React.createElement(CaseLanguageSelector, null)),
|
|
60
|
-
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-
|
|
60
|
+
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v6-u-mb-xs" },
|
|
61
61
|
React.createElement(CaseGroup, null))),
|
|
62
62
|
canSeeEmailNotifications && React.createElement(CaseContactSelector, null),
|
|
63
63
|
React.createElement(RHAssociatesSelector, null),
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { Button, Modal, ModalVariant } from '@patternfly/react-core';
|
|
10
|
+
import { Button, Modal, ModalFooter, ModalVariant } from '@patternfly/react-core';
|
|
11
11
|
import isEqual from 'lodash/isEqual';
|
|
12
12
|
import React, { useContext } from 'react';
|
|
13
13
|
import { Trans, useTranslation } from 'react-i18next';
|
|
@@ -38,11 +38,11 @@ export const RestoreLastSessionModal = ({ onRestore, errorSession }) => {
|
|
|
38
38
|
updateCaseCreationErrorStatus(caseDispatch, false);
|
|
39
39
|
updateSession(sessionDispatch, errorSession.session.id, errorSession.sessionDetails, Object.assign(Object.assign({}, errorSession.session), { caseCreationError: false }));
|
|
40
40
|
};
|
|
41
|
-
return (React.createElement(Modal, { "data-tracking-id": "restore-session-modal", variant: ModalVariant.small, title: t('Restore last session?'), isOpen: !caseCreationError && caseCreation500ErrorStatus, onClose: onOpenNewCase,
|
|
41
|
+
return (React.createElement(Modal, { "data-tracking-id": "restore-session-modal", variant: ModalVariant.small, title: t('Restore last session?'), isOpen: !caseCreationError && caseCreation500ErrorStatus, onClose: onOpenNewCase },
|
|
42
|
+
React.createElement(Trans, null, "It looks like an error prevented your last case from being submitted. Would you like to restore the last session or open a new case?"),
|
|
43
|
+
React.createElement(ModalFooter, null,
|
|
42
44
|
React.createElement(Button, { key: "restore", variant: "primary", onClick: onRestoreClick, "data-tracking-id": "restore-session-button" },
|
|
43
45
|
React.createElement(Trans, null, " Restore")),
|
|
44
46
|
React.createElement(Button, { key: "openANewCase", variant: "secondary", onClick: onOpenNewCase, "data-tracking-id": "restore-session-open-case-button" },
|
|
45
|
-
React.createElement(Trans, null, "Open a new case"))
|
|
46
|
-
] },
|
|
47
|
-
React.createElement(Trans, null, "It looks like an error prevented your last case from being submitted. Would you like to restore the last session or open a new case?")));
|
|
47
|
+
React.createElement(Trans, null, "Open a new case")))));
|
|
48
48
|
};
|
|
@@ -305,7 +305,7 @@ export function SessionRestore(props) {
|
|
|
305
305
|
], 1000);
|
|
306
306
|
if (!sessionRestoreCardSections.includes(activeSection))
|
|
307
307
|
return React.createElement(React.Fragment, null);
|
|
308
|
-
return (React.createElement("div", { className: "pf-
|
|
308
|
+
return (React.createElement("div", { className: "pf-v6-u-mb-md pf-v6-u-mt-0" },
|
|
309
309
|
' ',
|
|
310
310
|
React.createElement(SessionRestoreCard, { onRestore: restoreSession, previousSessions: previousSessions, onCardDismiss: onSessionRestoreCardDismiss }),
|
|
311
311
|
React.createElement(RestoreLastSessionModal, { onRestore: restoreSession, errorSession: sessionRestore.sessionOfCaseCreationError })));
|
|
@@ -14,7 +14,7 @@ export function SessionRestoreCard(props) {
|
|
|
14
14
|
if (dismissed || isEmpty(props.previousSessions))
|
|
15
15
|
return React.createElement(React.Fragment, null);
|
|
16
16
|
return (React.createElement(Alert, { variant: "custom", isInline: true, title: t('Restore a previous session'), actionClose: React.createElement(AlertActionCloseButton, { onClose: onCardDismiss }), component: "p", className: "restore-session-alert" },
|
|
17
|
-
React.createElement("div", { className: "pf-
|
|
17
|
+
React.createElement("div", { className: "pf-v6-c-alert__description" },
|
|
18
18
|
React.createElement("ul", { className: "restore-session-list" }, map(props.previousSessions, (sessionItem) => (React.createElement("li", { key: sessionItem.session.id },
|
|
19
19
|
React.createElement(SessionItem, { onRestore: props.onRestore, sessionItem: sessionItem }))))))));
|
|
20
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAErD,OAAO,EAAQ,mBAAmB,EAAe,MAAM,kBAAkB,CAAC;AAQ1E,OAAO,EAAqB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAUrF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAErD,OAAO,EAAQ,mBAAmB,EAAe,MAAM,kBAAkB,CAAC;AAQ1E,OAAO,EAAqB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAUrF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,qBA+X/C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Env, publicApi } from '@cee-eng/hydrajs';
|
|
2
|
-
import { ActionList, ActionListItem, Button,
|
|
2
|
+
import { ActionList, ActionListItem, Button, Content, ContentVariants, Icon, Tooltip } from '@patternfly/react-core';
|
|
3
3
|
import CheckCircleIcon from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
4
4
|
import { AlertMessage, AlertType, formattedApiErrorMessage, SupportFeedbackForm, useFetch, } from '@rh-support/components';
|
|
5
5
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
@@ -140,30 +140,30 @@ export default function SubmitCase(props) {
|
|
|
140
140
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
141
141
|
}, []);
|
|
142
142
|
return (React.createElement("article", { className: "gird-main" },
|
|
143
|
-
React.createElement(AlertMessage, { className: "pf-
|
|
144
|
-
React.createElement(AlertMessage, { className: "pf-
|
|
143
|
+
React.createElement(AlertMessage, { className: "pf-v6-u-mt-lg", title: t('Failed to add user.'), variant: AlertType.DANGER, show: addNotifiedUserError }),
|
|
144
|
+
React.createElement(AlertMessage, { className: "pf-v6-u-mt-lg", variant: AlertType.DANGER, show: caseCreationError || (!isCreatingCase && !caseCreationError && isEmpty(caseNoOfCreatedCase)), title: t("Sorry, we're experiencing an error"), isInline: true },
|
|
145
145
|
React.createElement(React.Fragment, null, caseCreationErrorMessage)),
|
|
146
146
|
!isCreatingCase && !caseCreationError && !isEmpty(caseNoOfCreatedCase) && (React.createElement(React.Fragment, null,
|
|
147
147
|
React.createElement("div", { className: "submit-case-header-container" },
|
|
148
|
-
React.createElement("p", { className: "kicker kicker-sm pf-
|
|
148
|
+
React.createElement("p", { className: "kicker kicker-sm pf-v6-u-mb-sm" }, !isEmpty(RouteUtils.seBasePath) &&
|
|
149
149
|
!isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles) ? (React.createElement(React.Fragment, null,
|
|
150
|
-
React.createElement("div", { className: "submit-page-title pf-
|
|
151
|
-
React.createElement(Icon, { className: "submit-case-check-icon pf-
|
|
152
|
-
React.createElement(CheckCircleIcon,
|
|
150
|
+
React.createElement("div", { className: "submit-page-title pf-v6-u-mb-lg" },
|
|
151
|
+
React.createElement(Icon, { className: "submit-case-check-icon pf-v6-u-mt-sm", size: "lg" },
|
|
152
|
+
React.createElement(CheckCircleIcon, { style: { color: '#3D7317' } })),
|
|
153
153
|
' ',
|
|
154
|
-
React.createElement(
|
|
154
|
+
React.createElement(Content, { role: "alert", className: "pf-v6-u-mb-0", component: ContentVariants.h1, style: { color: '#3D7317' } },
|
|
155
155
|
React.createElement(Trans, null, "We've added your case to our queue"))),
|
|
156
|
-
React.createElement("div", { className: "pf-
|
|
156
|
+
React.createElement("div", { className: "pf-v6-u-mt-sm" },
|
|
157
157
|
React.createElement(Trans, null, "Case number:"),
|
|
158
158
|
"\u00A0",
|
|
159
159
|
React.createElement(Link, { to: `/case/${caseNoOfCreatedCase}`, "data-tracking-id": "get-support-queued-case-number", className: isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles)
|
|
160
160
|
? 'case-link-disabled'
|
|
161
161
|
: '' }, caseNoOfCreatedCase)))) : (React.createElement(React.Fragment, null,
|
|
162
162
|
React.createElement("div", { className: "submit-page-title" },
|
|
163
|
-
React.createElement(Icon, { size: "lg", className: "submit-case-check-icon" },
|
|
164
|
-
React.createElement(CheckCircleIcon,
|
|
163
|
+
React.createElement(Icon, { size: "lg", className: "submit-case-check-icon", style: { color: '#3D7317' } },
|
|
164
|
+
React.createElement(CheckCircleIcon, { style: { color: '#3D7317' } })),
|
|
165
165
|
' ',
|
|
166
|
-
React.createElement(
|
|
166
|
+
React.createElement(Content, { role: "alert", component: ContentVariants.h1 },
|
|
167
167
|
React.createElement(Trans, null, "We\u2019ve added your case to our queue"))),
|
|
168
168
|
React.createElement(React.Fragment, null,
|
|
169
169
|
React.createElement(Trans, null, "Case number: "),
|
|
@@ -177,10 +177,10 @@ export default function SubmitCase(props) {
|
|
|
177
177
|
React.createElement("a", { className: "inline-link", rel: "noopener noreferrer", href: "/support/offerings/production/sla", target: "_blank", "data-tracking-id": "get-support-sla" },
|
|
178
178
|
React.createElement(Trans, null, "Service Level Agreement"),
|
|
179
179
|
".")),
|
|
180
|
-
React.createElement("div", { className: "submit-page-contact-info pf-
|
|
181
|
-
React.createElement("p", { className: "contact-info-title pf-
|
|
180
|
+
React.createElement("div", { className: "submit-page-contact-info pf-v6-u-mt-lg pf-v6-u-mb-sm" },
|
|
181
|
+
React.createElement("p", { className: "contact-info-title pf-v6-u-mb-sm" },
|
|
182
182
|
React.createElement(Trans, null, "Is this contact information correct?")),
|
|
183
|
-
React.createElement("p", { className: "pf-
|
|
183
|
+
React.createElement("p", { className: "pf-v6-u-font-size-sm" },
|
|
184
184
|
React.createElement("strong", null,
|
|
185
185
|
React.createElement(Trans, null, "Email:")),
|
|
186
186
|
' ',
|
|
@@ -193,24 +193,24 @@ export default function SubmitCase(props) {
|
|
|
193
193
|
" ",
|
|
194
194
|
phoneAreaCodePrefixLineNumber)),
|
|
195
195
|
React.createElement("div", null,
|
|
196
|
-
React.createElement(ActionList,
|
|
196
|
+
React.createElement(ActionList, { className: "submitCase-action-list" },
|
|
197
197
|
React.createElement(ActionListItem, null,
|
|
198
198
|
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" },
|
|
199
199
|
React.createElement(Trans, null, "Update info"))),
|
|
200
200
|
React.createElement(ActionListItem, null, isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles) ? (React.createElement(React.Fragment, null,
|
|
201
201
|
React.createElement(Tooltip, { content: t('File upload in progress.'), position: "bottom" },
|
|
202
|
-
React.createElement(Button, { className: "pf-
|
|
203
|
-
React.createElement(Trans, null, "View case"))))) : (React.createElement(Button, { 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') },
|
|
202
|
+
React.createElement(Button, { className: "pf-v6-u-ml-md view-case-button", component: "a", href: getCaseURL(), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case'), isAriaDisabled: isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles) },
|
|
203
|
+
React.createElement(Trans, null, "View case"))))) : (React.createElement(Button, { 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'), className: "view-case-button" },
|
|
204
204
|
React.createElement(Trans, null, "View case"))))))),
|
|
205
205
|
!isEmpty(attachmentState.caseFiles.selectedLocalFiles) && (React.createElement(FileUploader, { idToUploadTo: caseNoOfCreatedCase, isSessionId: false, isSecureSupport: loggedInUsersAccount.data.secureSupport })),
|
|
206
206
|
React.createElement("div", null,
|
|
207
207
|
(!isEmpty(topContent.data) || !rulesState.EARules.rules || !clusterRecommendations) &&
|
|
208
|
-
!isIdea && (React.createElement(
|
|
208
|
+
!isIdea && (React.createElement(Content, { className: "pf-v6-u-mt-2xl pf-v6-u-font-weight-light", component: ContentVariants.h2 },
|
|
209
209
|
React.createElement(Trans, null, "Troubleshoot this case"))),
|
|
210
210
|
isNotAnIdea && (React.createElement(React.Fragment, null,
|
|
211
|
-
React.createElement("div", { className: isIdea ? 'pf-
|
|
211
|
+
React.createElement("div", { className: isIdea ? 'pf-v6-u-mt-lg' : '' },
|
|
212
212
|
React.createElement(InsightsResults, { isDisplayOnMain: true })),
|
|
213
213
|
React.createElement(ClusterRecommendations, { showClusterRecommendationsModal: false }))),
|
|
214
|
-
React.createElement("div", { className: "pf-
|
|
214
|
+
React.createElement("div", { className: "pf-v6-u-mt-lg" }, isIdea ? (React.createElement(AsideResults, { routeProps: props.routeProps })) : (!isEmpty(topContent.data) &&
|
|
215
215
|
isNotAnIdea && React.createElement(Suggestions, { showTitleDescription: true, showMax: 6 }))))))));
|
|
216
216
|
}
|
|
@@ -45,14 +45,14 @@ export default function Suggestions(props) {
|
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
return (React.createElement("div", { className: "top-content-suggestion-accordion" },
|
|
48
|
-
showTitleDescription && (React.createElement("div", { className: "card card-support" },
|
|
48
|
+
showTitleDescription && (React.createElement("div", { className: "card card-support top-content-card-wrapper" },
|
|
49
49
|
!isTCSearchEnabled && (React.createElement("h3", { className: "card-heading popular-solutions green-card-heading" },
|
|
50
50
|
props.title
|
|
51
51
|
? props.title
|
|
52
52
|
: t('i18nKeyPopularSolutions', 'Red Hat hand picked support articles'),
|
|
53
53
|
React.createElement(Tooltip, { content: React.createElement("div", null,
|
|
54
54
|
React.createElement(Trans, null, "Support articles are matched to the product and version details you selected, not the problem details you entered.")) },
|
|
55
|
-
React.createElement(InfoCircleIcon, { className: "pf-
|
|
55
|
+
React.createElement(InfoCircleIcon, { className: "pf-v6-u-ml-sm", "aria-label": t('More info about how support articles are matched') })))),
|
|
56
56
|
isTCSearchEnabled && (React.createElement("div", { className: "card-body" },
|
|
57
57
|
React.createElement(TopContentSearch, { topContentData: topContent.data, topContentResultsWrapperRef: accordionRef, onSearch: onSearchChange, dataTrackingId: "top-content-filter-troubleshoot", enableEventTracking: true }))))),
|
|
58
58
|
React.createElement("pfe-accordion", { ref: accordionRef }, map(filteredTC.slice(0, maxTC), (sug, index) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Suggestions/TopContent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AAIxF,OAAO,KAAmB,MAAM,OAAO,CAAC;AASxC,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,
|
|
1
|
+
{"version":3,"file":"TopContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Suggestions/TopContent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AAIxF,OAAO,KAAmB,MAAM,OAAO,CAAC;AASxC,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,qBAsI/C"}
|
|
@@ -44,22 +44,22 @@ export default function TopContent(props) {
|
|
|
44
44
|
}));
|
|
45
45
|
};
|
|
46
46
|
return (React.createElement(React.Fragment, null, props.helperText ? (React.createElement(Tooltip, { content: React.createElement("div", null, props.helperText) },
|
|
47
|
-
React.createElement(Accordion, {
|
|
48
|
-
React.createElement(AccordionItem,
|
|
47
|
+
React.createElement(Accordion, { className: "top-content-accordion" },
|
|
48
|
+
React.createElement(AccordionItem, { isExpanded: expanded === `${props.topContentIndex}` },
|
|
49
49
|
React.createElement(AccordionToggle, { onClick: () => {
|
|
50
50
|
onToggle(`${props.topContentIndex}`);
|
|
51
|
-
},
|
|
51
|
+
}, "data-tracking-id": `top-content-accordion-header-${props.topContentIndex}`, id: `${props.topContentIndex}` },
|
|
52
52
|
React.createElement("h3", null, props.name)),
|
|
53
|
-
React.createElement(AccordionContent, { id: `${props.topContentIndex}
|
|
53
|
+
React.createElement(AccordionContent, { id: `${props.topContentIndex}` },
|
|
54
54
|
React.createElement("ul", { className: "list-flushleft", style: { listStyleType: 'disc' } }, map(props.items, (item, i) => (React.createElement("li", { key: i + item.contentTitle },
|
|
55
55
|
React.createElement("p", null,
|
|
56
|
-
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))))))))))) : (React.createElement(Accordion,
|
|
57
|
-
React.createElement(AccordionItem,
|
|
56
|
+
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))))))))))) : (React.createElement(Accordion, null,
|
|
57
|
+
React.createElement(AccordionItem, { isExpanded: expanded === `${props.topContentIndex}` },
|
|
58
58
|
React.createElement(AccordionToggle, { onClick: () => {
|
|
59
59
|
onToggle(`${props.topContentIndex}`);
|
|
60
|
-
},
|
|
60
|
+
}, "data-tracking-id": `top-content-accordion-header-${props.topContentIndex}`, id: `${props.topContentIndex}` },
|
|
61
61
|
React.createElement("h3", null, props.name)),
|
|
62
|
-
React.createElement(AccordionContent, { id: `${props.topContentIndex}
|
|
62
|
+
React.createElement(AccordionContent, { id: `${props.topContentIndex}` },
|
|
63
63
|
React.createElement("ul", { className: "list-flushleft", style: { listStyleType: 'disc' } }, map(props.items, (item, i) => (React.createElement("li", { key: i + item.contentTitle },
|
|
64
64
|
React.createElement("p", null,
|
|
65
65
|
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))))))))))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TroubleshootSection.d.ts","sourceRoot":"","sources":["../../../../src/components/TroubleshootSection/TroubleshootSection.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAU1C,UAAU,MAAM;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AASD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TroubleshootSection.d.ts","sourceRoot":"","sources":["../../../../src/components/TroubleshootSection/TroubleshootSection.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAU1C,UAAU,MAAM;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AASD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,qBAoFzC;kBApFQ,mBAAmB;;;AAuF5B,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Card, CardBody, CardHeader,
|
|
1
|
+
import { Card, CardBody, CardHeader, Tooltip } from '@patternfly/react-core';
|
|
2
2
|
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
3
3
|
import { ErrorBoundary, LoadingDots } from '@rh-support/components';
|
|
4
4
|
import { PreviousCaseTypes } from '@rh-support/utils';
|
|
@@ -37,27 +37,26 @@ function TroubleshootSection(props) {
|
|
|
37
37
|
return (React.createElement(React.Fragment, null,
|
|
38
38
|
React.createElement("section", null,
|
|
39
39
|
React.createElement("header", null,
|
|
40
|
-
React.createElement("p", { className: "pf-
|
|
41
|
-
React.createElement("span", { className: "pf-
|
|
40
|
+
React.createElement("p", { className: "pf-v6-u-pt-md" },
|
|
41
|
+
React.createElement("span", { className: "pf-v6-u-font-family-heading pf-v6-u-pr-xs" }, t('Product')),
|
|
42
42
|
" ",
|
|
43
43
|
product),
|
|
44
44
|
React.createElement("p", null,
|
|
45
|
-
React.createElement("span", { className: "pf-
|
|
45
|
+
React.createElement("span", { className: "pf-v6-u-font-family-heading pf-v6-u-pr-xs" }, t('Version')),
|
|
46
46
|
version)),
|
|
47
47
|
!isCreatingCase && (React.createElement(OpenShiftClusterId, { className: "push-bottom", "data-tracking-id": "troubleshoot-section-openshift-cluster-id" })),
|
|
48
48
|
React.createElement(LoadingDots, { show: topContent.isFetching }),
|
|
49
|
-
topContent.data.length === 0 && (React.createElement(Card, { id: "card", className: "
|
|
50
|
-
React.createElement(CardHeader, {
|
|
51
|
-
React.createElement(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
React.createElement(CardBody, { "aria-label": t('No recommendations for this product'), className: "file-recs-no-recommendation pf-v5-u-mt-md" },
|
|
49
|
+
topContent.data.length === 0 && (React.createElement(Card, { id: "card", className: "pf-v6-u-mb-md" },
|
|
50
|
+
React.createElement(CardHeader, { id: "card-title" },
|
|
51
|
+
React.createElement(Trans, { i18nKey: 'i18nKeyPopularSolutions' }, "Red Hat hand picked support articles"),
|
|
52
|
+
React.createElement(Tooltip, { content: React.createElement("div", null,
|
|
53
|
+
React.createElement(Trans, null, "Support articles are matched to the product and version details you selected, not the problem details you entered.")) },
|
|
54
|
+
React.createElement(InfoCircleIcon, { className: "pf-v6-u-ml-sm", "aria-label": "More info about how support articles are matched" }))),
|
|
55
|
+
React.createElement(CardBody, { "aria-label": t('No recommendations for this product'), className: "file-recs-no-recommendation pf-v6-u-mt-md" },
|
|
57
56
|
React.createElement(Trans, null, "No recommendations for this product")))),
|
|
58
57
|
React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading suggestions') } }, canShowTopContent && !isEmpty(version) && React.createElement(Suggestions, null)),
|
|
59
|
-
!isCreatingCase && React.createElement(ClusterRecommendations, { className: "pf-
|
|
60
|
-
React.createElement("section", { className: "pf-
|
|
58
|
+
!isCreatingCase && React.createElement(ClusterRecommendations, { className: "pf-v6-u-mt-lg" })),
|
|
59
|
+
React.createElement("section", { className: "pf-v6-u-mt-lg" }, isNotAnIdea && (React.createElement(InsightsResults, { isDisplayOnMain: true, "data-tracking-id": "troubleshoot-section-file-recs" })))));
|
|
61
60
|
}
|
|
62
61
|
TroubleshootSection.defaultProps = defaultProps;
|
|
63
62
|
export default TroubleshootSection;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateSeverityModal.d.ts","sourceRoot":"","sources":["../../../../src/components/UpdateSeverityModal/UpdateSeverityModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UpdateSeverityModal.d.ts","sourceRoot":"","sources":["../../../../src/components/UpdateSeverityModal/UpdateSeverityModal.tsx"],"names":[],"mappings":"AAmCA,OAAO,KAAmE,MAAM,OAAO,CAAC;AAgBxF,UAAU,MAAM;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,MAAM,qBAqlBxD"}
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { publicApi } from '@cee-eng/hydrajs';
|
|
11
|
-
import { Button, Dropdown, DropdownItem, DropdownList, Flex, FlexItem, MenuToggle, Modal, Spinner, TextArea, } from '@patternfly/react-core';
|
|
11
|
+
import { Button, Dropdown, DropdownItem, DropdownList, Flex, FlexItem, MenuToggle, Modal, ModalBody, ModalFooter, ModalHeader, Spinner, TextArea, } from '@patternfly/react-core';
|
|
12
12
|
import { ToastNotification, useFetch } from '@rh-support/components';
|
|
13
13
|
import { GlobalMetadataStateContext, useCanEditCase } from '@rh-support/react-context';
|
|
14
14
|
import { autoEnableFtsOnCaseViewEditPage, isFtsEditableOnEditPage, isSev1, PreviousCaseTypes, severitySort, showFtsOnCreateCasePage, } from '@rh-support/utils';
|
|
@@ -298,13 +298,6 @@ export default function UpdateSeverityModal(props) {
|
|
|
298
298
|
};
|
|
299
299
|
// To disable submit button wrt above conditions
|
|
300
300
|
const isSubmitButtonDisabled = checkIsUpdateValid() && isTextAreaValid() ? false : true;
|
|
301
|
-
// Update severity modal buttons
|
|
302
|
-
const modalActions = [
|
|
303
|
-
React.createElement(Button, { key: "submit", variant: "primary", onClick: onSubmit, isLoading: isCaseUpdating || isPostingComment, "data-tracking-id": "update-severity-submit", isDisabled: !isUpdateClickedToShowError && checkIsUpdateValid()
|
|
304
|
-
? false
|
|
305
|
-
: isSubmitButtonDisabled || isCaseUpdating || isPostingComment }, t('Update')),
|
|
306
|
-
React.createElement(Button, { key: "back", variant: "link", onClick: onCancel, "data-tracking-id": "update-severity-cancel", isDisabled: isCaseUpdating || isPostingComment }, t('Cancel')),
|
|
307
|
-
];
|
|
308
301
|
// To handle the severity change
|
|
309
302
|
const onSeverityChange = (event, option) => {
|
|
310
303
|
if (canEditCase.alert())
|
|
@@ -378,7 +371,7 @@ export default function UpdateSeverityModal(props) {
|
|
|
378
371
|
const modalBody = () => {
|
|
379
372
|
return (React.createElement(React.Fragment, null,
|
|
380
373
|
React.createElement("form", { "aria-label": t('form') },
|
|
381
|
-
React.createElement("div", { className: "form-group pf-
|
|
374
|
+
React.createElement("div", { className: "form-group pf-v6-u-mt-xs" },
|
|
382
375
|
React.createElement("div", { className: "get-support-severity-modal" },
|
|
383
376
|
React.createElement(Dropdown, { id: "get-support-severity-modal", "data-tracking-id": "get-support-severity-modal", isOpen: isOpen, onSelect: onSeverityChange, onOpenChange: (isOpen) => setIsOpen(isOpen), toggle: (toggleRef) => (React.createElement(MenuToggle, { className: "get-support-severity-modal-text", ref: toggleRef, isFullWidth: true, onClick: onToggleClick, isExpanded: isOpen, status: allCaseSeverities.isError || isSeverityInValid ? 'danger' : undefined, isDisabled: allCaseSeverities.isError ||
|
|
384
377
|
isDisabled ||
|
|
@@ -393,30 +386,41 @@ export default function UpdateSeverityModal(props) {
|
|
|
393
386
|
? filteredSeverities.map((option) => (React.createElement(DropdownItem, { value: option, key: option.name, description: option.additionalInfo }, option.label)))
|
|
394
387
|
: []))),
|
|
395
388
|
React.createElement("div", null,
|
|
396
|
-
React.createElement("label", { htmlFor: "date-input", className: "pf-
|
|
389
|
+
React.createElement("label", { htmlFor: "date-input", className: "pf-v6-u-mt-md" },
|
|
397
390
|
React.createElement(Trans, null, "Describe update"),
|
|
398
391
|
React.createElement("span", { className: "form-required", "aria-hidden": "true" }, "*")),
|
|
399
392
|
React.createElement(TextArea, { placeholder: t('How has the business impact changed? If you have increased severity, please explain why.'), isDisabled: (caseOverviewState.caseSeverityUpdating && isCaseUpdating) ||
|
|
400
393
|
isPostingComment ||
|
|
401
394
|
!checkIsUpdateValid(), value: descriptionValue, onChange: (_event, value) => handleTextAreaChange(value), resizeOrientation: "vertical", "aria-label": "severity-update-descritpion", validated: isEmpty(descriptionValue) && isUpdateClickedToShowError ? 'error' : 'default', isRequired: true }),
|
|
402
|
-
React.createElement("div", { className: "pf-
|
|
395
|
+
React.createElement("div", { className: "pf-v6-u-mt-xs" },
|
|
403
396
|
React.createElement(Trans, null, "To view your comment, go to the Discussion tab."))),
|
|
404
|
-
!isIdea && isFtsEditable && (React.createElement("div", { className: "pf-
|
|
397
|
+
!isIdea && isFtsEditable && (React.createElement("div", { className: "pf-v6-u-mt-md pf-v6-u-mb-sm" },
|
|
405
398
|
React.createElement("div", null,
|
|
406
399
|
React.createElement("input", { type: "checkbox", id: "update-severity-fts", "data-tracking-id": "update-severity-fts", name: "update-severity-fts", checked: localFts, onChange: onFtsChange }),
|
|
407
400
|
React.createElement("label", { htmlFor: "update-severity-fts" },
|
|
408
401
|
React.createElement(Trans, null, "24x7 Support"))),
|
|
409
402
|
localFts && (React.createElement("div", null,
|
|
410
|
-
React.createElement("label", { htmlFor: "update-severity-24-7-contact", className: "pf-
|
|
403
|
+
React.createElement("label", { htmlFor: "update-severity-24-7-contact", className: "pf-v6-u-mt-xs" },
|
|
411
404
|
React.createElement(Trans, null, "Contact for 24x7 support")),
|
|
412
405
|
React.createElement("div", null,
|
|
413
406
|
React.createElement("input", { type: "checkbox", id: "update-severity-same-as-case-owner-phone", name: "update-severity-same-as-case-owner-phone", "data-tracking-id": "update-severity-same-as-case-owner-phone", checked: ftsContactSameAsOwner, onChange: onSetContactSameAsOwner }),
|
|
414
|
-
React.createElement("label", { htmlFor: "update-severity-same-as-case-owner-phone", className: "pf-
|
|
407
|
+
React.createElement("label", { htmlFor: "update-severity-same-as-case-owner-phone", className: "pf-v6-u-font-weight-normal pf-v6-u-font-size-md" },
|
|
415
408
|
React.createElement(Trans, null, "Same as case owner's phone number"))),
|
|
416
409
|
React.createElement(TextArea, { isDisabled: !localFts || ftsContactSameAsOwner, value: localFtsContact, onChange: onFtsContactChange, resizeOrientation: "vertical", "aria-label": "update-severity-24-7-contact", id: "update-severity-24-7-contact", "data-tracking-id": "update-severity-24-7-contact", rows: 2, placeholder: t('Enter 24x7 contact details') }),
|
|
417
|
-
React.createElement("p", { className: "pf-
|
|
410
|
+
React.createElement("p", { className: "pf-v6-u-mt-xs" },
|
|
418
411
|
React.createElement(Trans, null, "Please provide contact information where we can reach you at any time"))))))))));
|
|
419
412
|
};
|
|
420
413
|
// Main modal and its headings
|
|
421
|
-
return (React.createElement(Modal, {
|
|
414
|
+
return (React.createElement(Modal, { isOpen: show, onClose: onCancel, style: { overflow: 'visible' }, tabIndex: 0 },
|
|
415
|
+
React.createElement(ModalHeader, null,
|
|
416
|
+
React.createElement("h2", null,
|
|
417
|
+
React.createElement(Trans, null, "Update severity"))),
|
|
418
|
+
React.createElement(ModalBody, { className: "pf-v6-u-mt-0" },
|
|
419
|
+
React.createElement("p", { className: "pf-v6-u-text-color-subtle pf-v6-u-font-size-sm pf-v6-u-mb-md" }, t('Describing your update helps us better assist you.')),
|
|
420
|
+
modalBody()),
|
|
421
|
+
React.createElement(ModalFooter, null,
|
|
422
|
+
React.createElement(Button, { key: "submit", variant: "primary", onClick: onSubmit, isLoading: isCaseUpdating || isPostingComment, "data-tracking-id": "update-severity-submit", isDisabled: !isUpdateClickedToShowError && checkIsUpdateValid()
|
|
423
|
+
? false
|
|
424
|
+
: isSubmitButtonDisabled || isCaseUpdating || isPostingComment }, t('Update')),
|
|
425
|
+
React.createElement(Button, { key: "back", variant: "link", onClick: onCancel, "data-tracking-id": "update-severity-cancel", isDisabled: isCaseUpdating || isPostingComment }, t('Cancel')))));
|
|
422
426
|
}
|