@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
|
@@ -109,17 +109,17 @@ function AccountSelector(props) {
|
|
|
109
109
|
if (isEmpty(loggedInUserRights.data))
|
|
110
110
|
return React.createElement(React.Fragment, null);
|
|
111
111
|
return (React.createElement("div", { id: props.id, className: `form-group ${props.className}` },
|
|
112
|
-
React.createElement(AlertMessage, { show: showNotEntitledMessage, variant: AlertType.DANGER, isInline: true, title: t("The selected account doesn't have entitlement"), className: "pf-
|
|
113
|
-
React.createElement("div", { className: "account-selector-label-wrapper pf-
|
|
112
|
+
React.createElement(AlertMessage, { show: showNotEntitledMessage, variant: AlertType.DANGER, isInline: true, title: t("The selected account doesn't have entitlement"), className: "pf-v6-u-mb-lg" }),
|
|
113
|
+
React.createElement("div", { className: "account-selector-label-wrapper pf-v6-u-display-flex" },
|
|
114
114
|
React.createElement("label", { htmlFor: "account-selector" },
|
|
115
115
|
React.createElement(Trans, null, "Account"),
|
|
116
116
|
' ',
|
|
117
117
|
React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
|
|
118
|
-
canUseFindMyAccount && (React.createElement("button", { role: "link", className: "btn btn-link btn-app find-my-account pf-
|
|
118
|
+
canUseFindMyAccount && (React.createElement("button", { role: "link", className: "btn btn-link btn-app find-my-account pf-v6-u-ml-auto", onClick: onFindMyAccountClick, disabled: selectedAccountDetails.isFetching, "data-tracking-id": "get-support-find-my-account", type: "button" },
|
|
119
119
|
React.createElement(Trans, null, "Find my account")))),
|
|
120
120
|
React.createElement("div", { className: "account-selector-wrapper" },
|
|
121
121
|
React.createElement(AccountSelectorInternal, { selectedAccounts: [selectedAccount], canBookmarkAccount: canBookmarkAccounts, bookmarkedAccounts: bookmarkedGroupAccounts.data, id: "account-or-bookmark-selector", className: "account-selector", name: "account-or-bookmark-selector", placeholder: t(`Search for an account ${loggedInUserRights.data.isExternal() ? 'or select a bookmark' : ''} `), onSelect: onInternalAccountSelect, disabled: loggedInUserRights.data.isExternal() || selectedAccountDetails.isFetching, isInValid: isSelectedAccountSubscriptionAbused, restrictedOnSubscriptionAbuse: true })),
|
|
122
|
-
canAccessManagedAccounts && !isEmpty(managedAccounts.data) && (React.createElement(ManagedAccountsDropdown, { className: "managed-account-selector pf-
|
|
122
|
+
canAccessManagedAccounts && !isEmpty(managedAccounts.data) && (React.createElement(ManagedAccountsDropdown, { className: "managed-account-selector pf-v6-u-mt-xl", onManagedAccountChange: onManagedAccountChange, managedAccounts: managedAccounts, selectedAccountNumber: accountNumber, disabled: selectedAccountDetails.isFetching })),
|
|
123
123
|
isSelectedAccountSubscriptionAbused && (React.createElement("p", { className: "form-instructions form-invalid" },
|
|
124
124
|
React.createElement(InfoCircleIcon, null),
|
|
125
125
|
' ',
|
|
@@ -35,7 +35,7 @@ function ManagedAccountsDropdown(props) {
|
|
|
35
35
|
}, [props.managedAccounts.data, props.selectedAccountNumber]);
|
|
36
36
|
// Only accounts that have granted access permission to partner should be listed
|
|
37
37
|
const managedAccountsWithPermission = () => props.managedAccounts.data.filter((account) => account.partnerCaseAccess === 'All') || [];
|
|
38
|
-
const managedAccountsOptions = managedAccountsWithPermission().map((account) => (Object.assign({ actionItem: (React.createElement(React.Fragment, null, account.subscriptionAbuse && (React.createElement("span", { className: "form-instructions form-invalid pf-
|
|
38
|
+
const managedAccountsOptions = managedAccountsWithPermission().map((account) => (Object.assign({ actionItem: (React.createElement(React.Fragment, null, account.subscriptionAbuse && (React.createElement("span", { className: "form-instructions form-invalid pf-v6-u-text-nowrap pf-v6-u-pr-sm" },
|
|
39
39
|
React.createElement(InfoCircleIcon, null),
|
|
40
40
|
" ",
|
|
41
41
|
React.createElement(Trans, null, "Subscription abuse"))))), children: (React.createElement(React.Fragment, null, account.subscriptionAbuse ? (React.createElement("span", { className: "form-instructions form-invalid" }, getLabelForAccountOption(account))) : (getLabelForAccountOption(account)))) }, account))) || [];
|
package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActiveCustomerEscalation.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAM/D,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,wBAAwB,+
|
|
1
|
+
{"version":3,"file":"ActiveCustomerEscalation.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAM/D,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,wBAAwB,+EAqLnC,CAAC"}
|
package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button, ButtonVariant, List, ListItem, Popover } from '@patternfly/react-core';
|
|
1
|
+
import { Button, ButtonVariant, Card, CardBody, CardHeader, List, ListItem, Popover } from '@patternfly/react-core';
|
|
2
2
|
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
3
3
|
import LockIcon from '@patternfly/react-icons/dist/js/icons/lock-icon';
|
|
4
4
|
import { useCanEditCase, useGlobalStateContext } from '@rh-support/react-context';
|
|
@@ -18,12 +18,14 @@ export const ActiveCustomerEscalation = forwardRef((props, ref) => {
|
|
|
18
18
|
const commonElements = (React.createElement(React.Fragment, null,
|
|
19
19
|
React.createElement("p", null,
|
|
20
20
|
React.createElement(Trans, null, "After submitting, your case will be reviewed by a support manager."))));
|
|
21
|
-
const isInternalElements = (React.createElement(
|
|
22
|
-
React.createElement(
|
|
23
|
-
React.createElement(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
const isInternalElements = (React.createElement(Card, { className: "card-support escalations", ref: ref },
|
|
22
|
+
React.createElement(CardHeader, null,
|
|
23
|
+
React.createElement("div", { className: "escalation-header" },
|
|
24
|
+
React.createElement("h3", { className: "card-heading case-detail-panel-card-heading" },
|
|
25
|
+
React.createElement(Trans, null, "Active Customer Escalation (ACE)")),
|
|
26
|
+
React.createElement("a", { href: "/support/escalation", target: "_blank", rel: "noopener noreferrer", "aria-label": t('Learn more about Red Hat support case escalation') },
|
|
27
|
+
React.createElement(InfoCircleIcon, null)))),
|
|
28
|
+
React.createElement(CardBody, null,
|
|
27
29
|
isInternal && (React.createElement(React.Fragment, null,
|
|
28
30
|
React.createElement("p", null,
|
|
29
31
|
React.createElement(LockIcon, null),
|
|
@@ -39,26 +41,27 @@ export const ActiveCustomerEscalation = forwardRef((props, ref) => {
|
|
|
39
41
|
React.createElement("p", null,
|
|
40
42
|
React.createElement("strong", null, t('Red Hat associates can open an ACE escalation when')),
|
|
41
43
|
":"),
|
|
42
|
-
React.createElement(List, { className: "pf-
|
|
44
|
+
React.createElement(List, { className: "pf-v6-u-pl-lg" },
|
|
43
45
|
React.createElement(ListItem, null, t('The customer wants an update')),
|
|
44
46
|
React.createElement(ListItem, null, t('The customer thinks the case is not moving appropriately')),
|
|
45
47
|
React.createElement(ListItem, null, t('The customer wants a new resource')),
|
|
46
48
|
React.createElement(ListItem, null, t('The issue is more severe than originally thought'))),
|
|
47
|
-
React.createElement("a", { href: `/watchlist/internal/aces/new?caseNumber=${props.caseNumber}`, target: "_blank", rel: "noopener noreferrer", className: "pf-
|
|
49
|
+
React.createElement("a", { href: `/watchlist/internal/aces/new?caseNumber=${props.caseNumber}`, target: "_blank", rel: "noopener noreferrer", className: "pf-v6-c-button pf-m-tertiary", "data-tracking-id": "request-ace-trigger", "aria-label": t('Request an escalation') }, t('Request an escalation')))))));
|
|
48
50
|
const [openRequestEscalationModal, setOpenRequestEscalationModal] = useState(false);
|
|
49
51
|
const toggleModal = () => {
|
|
50
52
|
if (canEditCase.alert())
|
|
51
53
|
return;
|
|
52
54
|
setOpenRequestEscalationModal((openRequestEscalationModal) => !openRequestEscalationModal);
|
|
53
55
|
};
|
|
54
|
-
const isNotInternalElements = (React.createElement(
|
|
55
|
-
React.createElement(
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
React.createElement(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
const isNotInternalElements = (React.createElement(Card, { className: "card-support escalations", ref: ref },
|
|
57
|
+
React.createElement(CardHeader, null,
|
|
58
|
+
React.createElement("div", { className: "escalation-header" },
|
|
59
|
+
React.createElement("h3", { className: "card-heading case-detail-panel-card-heading" }, t('Request an escalation')),
|
|
60
|
+
React.createElement("div", { style: { marginLeft: 'auto' } },
|
|
61
|
+
React.createElement(Popover, { showClose: false, position: 'left', hasAutoWidth: true, bodyContent: (hide) => (React.createElement("a", { href: "/support/escalation", target: "_blank", "aria-label": t('Learn more about escalation cases.') },
|
|
62
|
+
React.createElement(Trans, null, "Learn more about escalation cases."))) },
|
|
63
|
+
React.createElement(InfoCircleIcon, { title: t('Learn more about escalation cases popover') }))))),
|
|
64
|
+
React.createElement(CardBody, null,
|
|
62
65
|
isInternal && (React.createElement(React.Fragment, null,
|
|
63
66
|
React.createElement("p", null,
|
|
64
67
|
React.createElement(LockIcon, null),
|
|
@@ -74,7 +77,7 @@ export const ActiveCustomerEscalation = forwardRef((props, ref) => {
|
|
|
74
77
|
React.createElement("p", null,
|
|
75
78
|
React.createElement("strong", null, t('Request a management escalation if your issue')),
|
|
76
79
|
":"),
|
|
77
|
-
React.createElement(List, { className: "pf-
|
|
80
|
+
React.createElement(List, { className: "pf-v6-u-pl-lg" },
|
|
78
81
|
React.createElement(ListItem, null, t(`Isn't being resolved appropriately.`)),
|
|
79
82
|
React.createElement(ListItem, null, t('Needs a senior resource.')),
|
|
80
83
|
React.createElement(ListItem, null, t('Is more severe or should be a higher priority.'))),
|
package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestEscalationModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestEscalationModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.tsx"],"names":[],"mappings":"AAgCA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAkBnD,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAID,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,qBA2WnD"}
|
|
@@ -8,10 +8,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { escalations, publicApi } from '@cee-eng/hydrajs';
|
|
11
|
-
import { Button, Form, FormGroup, FormHelperText, Grid, GridItem, HelperText, HelperTextItem, Modal, Popover, TextArea, TextInput, Title, ValidatedOptions, } from '@patternfly/react-core';
|
|
12
|
-
import { Select, SelectOption } from '@patternfly/react-core/deprecated';
|
|
11
|
+
import { Button, Form, FormGroup, FormHelperText, Grid, GridItem, HelperText, HelperTextItem, Modal, ModalFooter, ModalHeader, Popover, TextArea, TextInput, Title, ValidatedOptions, } from '@patternfly/react-core';
|
|
13
12
|
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
14
|
-
import { AlertMessage, AlertType, LoadingIndicator, ToastNotification, useFetch } from '@rh-support/components';
|
|
13
|
+
import { AlertMessage, AlertType, LoadingIndicator, SingleSelectDropdown, ToastNotification, useFetch, } from '@rh-support/components';
|
|
15
14
|
import { useGlobalStateContext } from '@rh-support/react-context';
|
|
16
15
|
import isEmpty from 'lodash/isEmpty';
|
|
17
16
|
import React, { useEffect, useState } from 'react';
|
|
@@ -28,10 +27,6 @@ const customerGEOKeys = Object.keys(CustomerGEOs);
|
|
|
28
27
|
export function RequestEscalationModal(props) {
|
|
29
28
|
const { globalMetadataState: { loggedInUser, loggedInUserRights }, } = useGlobalStateContext();
|
|
30
29
|
const { t } = useTranslation();
|
|
31
|
-
const [showGeoDropdown, setGeoShowDropdown] = useState(false);
|
|
32
|
-
const onGeoDropdownToggle = (toggle) => setGeoShowDropdown(toggle);
|
|
33
|
-
const [showCategoryDropdown, setCategoryShowDropdown] = useState(false);
|
|
34
|
-
const onCategoryDropdownToggle = (toggle) => setCategoryShowDropdown(toggle);
|
|
35
30
|
const [categories, setCategories] = useState([]);
|
|
36
31
|
const initialState = {
|
|
37
32
|
subject: '',
|
|
@@ -60,13 +55,11 @@ export function RequestEscalationModal(props) {
|
|
|
60
55
|
const caseDispatch = useCaseDispatch();
|
|
61
56
|
const [creationError, setCreationError] = useState(false);
|
|
62
57
|
const onErrorClose = () => setCreationError(false);
|
|
63
|
-
const setGeoState = (
|
|
64
|
-
setFormState(Object.assign(Object.assign({}, formState), { geo: selection }));
|
|
65
|
-
onGeoDropdownToggle(false);
|
|
58
|
+
const setGeoState = (selection) => {
|
|
59
|
+
setFormState(Object.assign(Object.assign({}, formState), { geo: selection.value }));
|
|
66
60
|
};
|
|
67
|
-
const setCategoryState = (
|
|
68
|
-
setFormState(Object.assign(Object.assign({}, formState), { rmeCategory: selection }));
|
|
69
|
-
onCategoryDropdownToggle(false);
|
|
61
|
+
const setCategoryState = (selection) => {
|
|
62
|
+
setFormState(Object.assign(Object.assign({}, formState), { rmeCategory: selection.value }));
|
|
70
63
|
};
|
|
71
64
|
const submitEscalationComment = (escalationNum, comment) => __awaiter(this, void 0, void 0, function* () {
|
|
72
65
|
escalationNum &&
|
|
@@ -119,19 +112,11 @@ export function RequestEscalationModal(props) {
|
|
|
119
112
|
setCreationError(true);
|
|
120
113
|
}
|
|
121
114
|
});
|
|
122
|
-
const
|
|
123
|
-
React.createElement(Button, { key: "submit", variant: "primary", onClick: onSubmit, "data-tracking-id": "request-rme-submit", isDisabled: submitButtonIsClicked &&
|
|
124
|
-
(isPostingComment || isUpdatingCase || createEscalationFetch.isFetching || !hasRequiredInfo()), "aria-label": t('Submit') },
|
|
125
|
-
(isPostingComment || isUpdatingCase || createEscalationFetch.isFetching) && (React.createElement(LoadingIndicator, { key: "loading", isInline: true })),
|
|
126
|
-
' ',
|
|
127
|
-
t('Submit')),
|
|
128
|
-
React.createElement(Button, { key: "cancel", variant: "link", onClick: onCancel, "data-tracking-id": "request-rme-cancel", isDisabled: createEscalationFetch.isFetching || isPostingComment || isUpdatingCase, "aria-label": t('Cancel') }, t('Cancel')),
|
|
129
|
-
];
|
|
130
|
-
const header = (React.createElement(Title, { className: "pf-v5-u-mb-0", id: "custom-header-label", headingLevel: "h1" },
|
|
115
|
+
const header = (React.createElement(Title, { className: "pf-v6-u-mb-0", id: "custom-header-label", headingLevel: "h1" },
|
|
131
116
|
React.createElement(Trans, null, "Request an escalation"),
|
|
132
117
|
React.createElement(Popover, { showClose: false, position: 'top', hasAutoWidth: true, bodyContent: () => (React.createElement("a", { href: "/support/escalation", target: "_blank", "aria-label": t('Learn more about escalation cases.') },
|
|
133
118
|
React.createElement(Trans, null, "Learn more about escalation cases."))) },
|
|
134
|
-
React.createElement(InfoCircleIcon, { className: "pf-
|
|
119
|
+
React.createElement(InfoCircleIcon, { className: "pf-v6-u-ml-sm" }))));
|
|
135
120
|
// load rme categories as soon as user opens the modal
|
|
136
121
|
useEffect(() => {
|
|
137
122
|
if (!props.show || categories.length !== 0)
|
|
@@ -148,26 +133,45 @@ export function RequestEscalationModal(props) {
|
|
|
148
133
|
fetchCategories();
|
|
149
134
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
150
135
|
}, [props.show]);
|
|
151
|
-
|
|
152
|
-
|
|
136
|
+
const categoryOptions = categories.map((value) => ({
|
|
137
|
+
value: value,
|
|
138
|
+
label: value,
|
|
139
|
+
}));
|
|
140
|
+
// Create selected option object based on current selection
|
|
141
|
+
const selectedCategory = {
|
|
142
|
+
value: formState.rmeCategory,
|
|
143
|
+
label: formState.rmeCategory || t('Select an option that best fits'),
|
|
144
|
+
};
|
|
145
|
+
const geoOptions = customerGEOKeys.map((key) => ({
|
|
146
|
+
value: CustomerGEOs[key].value,
|
|
147
|
+
label: t(CustomerGEOs[key].label),
|
|
148
|
+
}));
|
|
149
|
+
// Create selected option object based on current selection
|
|
150
|
+
const findSelectedGeoLabel = () => {
|
|
151
|
+
const selectedKey = customerGEOKeys.find((key) => CustomerGEOs[key].value === formState.geo);
|
|
152
|
+
return selectedKey ? t(CustomerGEOs[selectedKey].label) : '';
|
|
153
|
+
};
|
|
154
|
+
const selectedGeo = {
|
|
155
|
+
value: formState.geo,
|
|
156
|
+
label: findSelectedGeoLabel() || t('Select a location'),
|
|
157
|
+
};
|
|
158
|
+
return (React.createElement(Modal, { id: "request-mgmt-escalation-modal", className: "request-escalation-modal", isOpen: props.show, onClose: onCancel, "aria-label": t('Request an escalation') },
|
|
159
|
+
React.createElement(ModalHeader, null, header),
|
|
160
|
+
React.createElement("p", { className: "pf-v6-u-mb-md" },
|
|
153
161
|
React.createElement(Trans, { i18nKey: "i18RequestEscalationDescription" }, "Submit an escalation if an issue has become more severe or you feel the case needs a higher priority. A support manager will review your escalation request.")),
|
|
154
|
-
React.createElement(AlertMessage, { variant: AlertType.DANGER, title: t('Could not create case escalation'), show: creationError, onClose: onErrorClose, isInline: true, className: "pf-
|
|
162
|
+
React.createElement(AlertMessage, { variant: AlertType.DANGER, title: t('Could not create case escalation'), show: creationError, onClose: onErrorClose, isInline: true, className: "pf-v6-u-mb-md", "aria-label": t('Could not create case escalation') }),
|
|
155
163
|
React.createElement(Form, { "aria-label": t('form'), className: "request-escalation-form" },
|
|
156
164
|
React.createElement(Grid, { hasGutter: true, md: 12 },
|
|
157
165
|
React.createElement(GridItem, { span: 6 },
|
|
158
166
|
React.createElement(FormGroup, { isRequired: true, label: t('Category'), fieldId: "escalation-category" },
|
|
159
|
-
React.createElement(
|
|
160
|
-
? ValidatedOptions.error
|
|
161
|
-
: ValidatedOptions.default, "aria-invalid": submitButtonIsClicked && isEmpty(formState.rmeCategory), onSelect: setCategoryState, isOpen: showCategoryDropdown, placeholderText: t('Select an option that best fits'), onToggle: (_event, toggle) => onCategoryDropdownToggle(toggle) }, (isCategoriesFetching && { loadingVariant: 'spinner' })), categories.map((value, index) => (React.createElement(SelectOption, { key: index, value: value }, value)))))),
|
|
167
|
+
React.createElement(SingleSelectDropdown, { id: "customer-category-select", ariaLabel: t('Category'), selected: selectedCategory, options: categoryOptions, isDisabled: false, isLoading: isCategoriesFetching, isInvalid: submitButtonIsClicked && isEmpty(formState.rmeCategory), placeholder: t('Select an option that best fits'), onSelect: (option) => setCategoryState(option), isScrollable: true }))),
|
|
162
168
|
React.createElement(GridItem, { span: 6 },
|
|
163
169
|
React.createElement(FormGroup, { isRequired: true, label: t('My region'), fieldId: "escalation-region" },
|
|
164
|
-
React.createElement(
|
|
165
|
-
? ValidatedOptions.error
|
|
166
|
-
: ValidatedOptions.default, placeholderText: t('Select a location'), onToggle: (_event, toggle) => onGeoDropdownToggle(toggle), "aria-invalid": submitButtonIsClicked && isEmpty(formState.geo) }, customerGEOKeys.map((key, index) => (React.createElement(SelectOption, { key: index, value: CustomerGEOs[key].value }, t(CustomerGEOs[key].label))))))),
|
|
170
|
+
React.createElement(SingleSelectDropdown, { ariaLabel: t('My region'), id: "customer-geo-select", selected: selectedGeo, options: geoOptions, isInvalid: submitButtonIsClicked && isEmpty(formState.geo), placeholder: t('Select a location'), onSelect: (option) => setGeoState(option) }))),
|
|
167
171
|
React.createElement(FormGroup, { isRequired: true, label: t('Subject'), fieldId: "escalation-subject" },
|
|
168
172
|
submitButtonIsClicked && hasLargeSubject && (React.createElement(FormHelperText, null,
|
|
169
173
|
React.createElement(HelperText, null,
|
|
170
|
-
React.createElement(HelperTextItem, { variant: ValidatedOptions.error
|
|
174
|
+
React.createElement(HelperTextItem, { variant: ValidatedOptions.error }, t('Subject cannot be more than {{limit}} characters', {
|
|
171
175
|
limit: ESCALATION_SUBJECT_LENGTH_LIMIT,
|
|
172
176
|
}))))),
|
|
173
177
|
React.createElement(TextInput, { isRequired: true, validated: (submitButtonIsClicked && isEmpty(formState.subject)) || hasLargeSubject
|
|
@@ -184,5 +188,12 @@ export function RequestEscalationModal(props) {
|
|
|
184
188
|
React.createElement(FormGroup, { isRequired: true, label: t('Business impact'), fieldId: "escalation-business-impact" },
|
|
185
189
|
React.createElement(TextArea, { onChange: (e, value) => setFormStateValue('businessImpactDescription', value), isRequired: true, validated: submitButtonIsClicked && isEmpty(formState.businessImpactDescription)
|
|
186
190
|
? ValidatedOptions.error
|
|
187
|
-
: ValidatedOptions.default, placeholder: t('Does your business impact change with this escalation? Please describe how it changed.'), id: "business-impact-input", value: formState.businessImpactDescription, "aria-label": t('Business impact'), resizeOrientation: "vertical" }))))
|
|
191
|
+
: ValidatedOptions.default, placeholder: t('Does your business impact change with this escalation? Please describe how it changed.'), id: "business-impact-input", value: formState.businessImpactDescription, "aria-label": t('Business impact'), resizeOrientation: "vertical" })))),
|
|
192
|
+
React.createElement(ModalFooter, null,
|
|
193
|
+
React.createElement(Button, { key: "submit", variant: "primary", onClick: onSubmit, "data-tracking-id": "request-rme-submit", isDisabled: submitButtonIsClicked &&
|
|
194
|
+
(isPostingComment || isUpdatingCase || createEscalationFetch.isFetching || !hasRequiredInfo()), "aria-label": t('Submit') },
|
|
195
|
+
(isPostingComment || isUpdatingCase || createEscalationFetch.isFetching) && (React.createElement(LoadingIndicator, { key: "loading", isInline: true })),
|
|
196
|
+
' ',
|
|
197
|
+
t('Submit')),
|
|
198
|
+
React.createElement(Button, { key: "cancel", variant: "link", onClick: onCancel, "data-tracking-id": "request-rme-cancel", isDisabled: createEscalationFetch.isFetching || isPostingComment || isUpdatingCase, "aria-label": t('Cancel') }, t('Cancel')))));
|
|
188
199
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseDetailsAside.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsAside.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CaseDetailsAside.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsAside.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAYhF,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;CACtB;AAMD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,qBA8Y7C"}
|
|
@@ -9,11 +9,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { publicApi } from '@cee-eng/hydrajs';
|
|
11
11
|
import { Button, Checkbox, Icon, Popover, PopoverPosition, Switch, Tooltip } from '@patternfly/react-core';
|
|
12
|
-
import AngleDoubleLeftIcon from '@patternfly/react-icons/dist/js/icons/angle-double-left-icon';
|
|
13
|
-
import AngleDoubleRightIcon from '@patternfly/react-icons/dist/js/icons/angle-double-right-icon';
|
|
14
12
|
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
15
13
|
import ListIcon from '@patternfly/react-icons/dist/js/icons/list-icon';
|
|
16
14
|
import LockIcon from '@patternfly/react-icons/dist/js/icons/lock-icon';
|
|
15
|
+
import OpenDrawerRightIcon from '@patternfly/react-icons/dist/js/icons/open-drawer-right-icon';
|
|
17
16
|
import TrendUpIcon from '@patternfly/react-icons/dist/js/icons/trend-up-icon';
|
|
18
17
|
import { ErrorBoundary, ToastNotification, useBreakpoint, useFetch, useForceUpdate } from '@rh-support/components';
|
|
19
18
|
import { GlobalMetadataDispatchContext, toggleViewAsCustomerFlag, useGlobalStateContext, useUserPreferences, } from '@rh-support/react-context';
|
|
@@ -196,38 +195,33 @@ export function CaseDetailsAside(props) {
|
|
|
196
195
|
React.createElement("div", { className: "case-detail-collapse-panel" },
|
|
197
196
|
React.createElement("p", { className: "case-detail-collapse-label" },
|
|
198
197
|
React.createElement(Trans, null, "Collapse")),
|
|
199
|
-
React.createElement(
|
|
200
|
-
React.createElement(AngleDoubleRightIcon, null))))) : (React.createElement("div", { className: "pf-v5-u-display-flex pf-v5-u-flex-direction-column sidebar-section-collapsed" },
|
|
198
|
+
React.createElement(OpenDrawerRightIcon, { className: "pf-v6-u-ml-auto" })))) : (React.createElement("div", { className: "pf-v6-u-display-flex pf-v6-u-flex-direction-column sidebar-section-collapsed" },
|
|
201
199
|
React.createElement(Tooltip, { content: t('Expand sidebar'), position: "left" },
|
|
202
|
-
React.createElement("div", { className: "case-detail-collapse-panel" },
|
|
203
|
-
React.createElement(
|
|
204
|
-
React.createElement(AngleDoubleLeftIcon, null)))),
|
|
200
|
+
React.createElement("div", { className: "case-detail-collapse-panel pf-v6-u-mb-xs" },
|
|
201
|
+
React.createElement(OpenDrawerRightIcon, { className: "mirrored" }))),
|
|
205
202
|
canSeeToggleCustomerView && (React.createElement(Tooltip, { content: viewAsCustomer ? t('External view') : t('Internal view'), position: "left" },
|
|
206
|
-
React.createElement(Button, {
|
|
207
|
-
|
|
208
|
-
React.createElement(LockIcon, null))))),
|
|
203
|
+
React.createElement(Button, { icon: React.createElement(Icon, { size: "md", className: viewAsCustomer ? 'blueLock' : 'greyLock' },
|
|
204
|
+
React.createElement(LockIcon, null)), variant: "link", onClick: () => setSectionToScollRef(toggleCustomerViewRef), className: "sidebar-section-toggle-btn", "aria-label": viewAsCustomer ? t('External view') : t('Internal view') }))),
|
|
209
205
|
!isLoadingRecommendations && allDocs.length > 0 && (React.createElement(Tooltip, { content: t('Top recommendations'), position: "left" },
|
|
210
|
-
React.createElement(Button, {
|
|
211
|
-
|
|
212
|
-
React.createElement(ListIcon, null))))),
|
|
206
|
+
React.createElement(Button, { icon: React.createElement(Icon, { size: "md" },
|
|
207
|
+
React.createElement(ListIcon, null)), variant: "link", onClick: () => setSectionToScollRef(topSolutionsRef), className: "sidebar-section-toggle-btn", "aria-label": t('Top recommendations') }))),
|
|
213
208
|
!caseEscalations.isFetching && (canCreateICE || (canCreateRME && isCreateRMEVisible)) && (React.createElement(Tooltip, { content: t('Request an escalation'), position: "left" },
|
|
214
|
-
React.createElement(Button, {
|
|
215
|
-
|
|
216
|
-
React.createElement(TrendUpIcon, null)))))))),
|
|
209
|
+
React.createElement(Button, { icon: React.createElement(Icon, { size: "md" },
|
|
210
|
+
React.createElement(TrendUpIcon, null)), variant: "link", className: "sidebar-section-toggle-btn", onClick: () => setSectionToScollRef(createEscalationRef), "aria-label": t('Request an escalation') })))))),
|
|
217
211
|
React.createElement("pfe-collapse-panel", { className: "sidebar-content", "pfe-animation": "false", id: "case-details-aside-content", ref: caseDetailsAsidePanelRef },
|
|
218
212
|
React.createElement("div", { className: "grid-aside-content" },
|
|
219
213
|
React.createElement("div", null,
|
|
220
|
-
canSeeToggleCustomerView && (React.createElement("div", { className: "pf-
|
|
214
|
+
canSeeToggleCustomerView && (React.createElement("div", { className: "pf-v6-u-display-flex customer-view-toggle", ref: toggleCustomerViewRef },
|
|
221
215
|
React.createElement("span", { className: "customer-view-switch-label" },
|
|
222
216
|
preferredOrDefaultCaseView() ? t('Customer view') : t('Internal view'),
|
|
223
217
|
React.createElement(Popover, { "aria-label": "Preferred-default-case-view-popover", position: PopoverPosition.top, bodyContent: React.createElement("p", { className: 'pref-case-popover-text' },
|
|
224
218
|
React.createElement(Trans, null, renderCasePrefPopoverText())), showClose: false },
|
|
225
|
-
React.createElement(InfoCircleIcon, { "aria-label": "Preferred-case-view-info-icon", className: "pf-
|
|
219
|
+
React.createElement(InfoCircleIcon, { "aria-label": "Preferred-case-view-info-icon", className: "pf-v6-u-ml-sm pf-v6-u-text-color-status-custom cursor-pointer" }))),
|
|
226
220
|
React.createElement(Switch, { title: preferredOrDefaultCaseView() ? t('Customer view') : t('Internal view'), "data-tracking-id": preferredOrDefaultCaseView()
|
|
227
221
|
? 'disable-view-as-customer'
|
|
228
222
|
: 'enable-view-as-customer', "aria-label": preferredOrDefaultCaseView()
|
|
229
223
|
? 'disable view as customer'
|
|
230
|
-
: 'enable view as customer', id: "customer-view-switch", className: "pf-
|
|
224
|
+
: 'enable view as customer', id: "customer-view-switch", className: "pf-v6-u-ml-auto", isChecked: preferredOrDefaultCaseView(), onChange: onCaseSwitchChange }))),
|
|
231
225
|
canSeeToggleCustomerView && (React.createElement("div", null,
|
|
232
226
|
React.createElement(Checkbox, { label: t('Set to default'), isChecked: isDefaultBoxChecked, onChange: onDefaultCheckboxChange, id: "set-default-view-checkbox", name: "default-view-checkbox", isDisabled: isDefaultBoxChecked, className: 'defaultViewCheckbox' })))),
|
|
233
227
|
React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading top solutions') } },
|
|
@@ -46,7 +46,7 @@ export function CaseDetailsErrorMessage(props) {
|
|
|
46
46
|
'404': { message: errorMessage404 },
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
|
-
return (React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "pf-
|
|
49
|
+
return (React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "pf-v6-u-mb-lg", show: true,
|
|
50
50
|
// Here customizing title of alert based on case group error.
|
|
51
51
|
title: errorMessageTitle(errorDetails, Object.assign({}, (isCaseGroupError && {
|
|
52
52
|
'403': { title: invalidCaseGroupErrorTitle },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseDetailsTabs.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsTabs.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CaseDetailsTabs.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsTabs.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAa,MAAM,kBAAkB,CAAC;AA0BlE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,mBAAmB,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AACD,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,qBAqS5C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Label, Popover, Tab, TabContent, Tabs, TabsComponent, TabTitleText,
|
|
1
|
+
import { Content, ContentVariants, Label, Popover, Tab, TabContent, Tabs, TabsComponent, TabTitleText, } from '@patternfly/react-core';
|
|
2
2
|
import ExternalLinkAltIcon from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
|
|
3
3
|
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
4
4
|
import { ErrorBoundary, LoadingIndicator } from '@rh-support/components';
|
|
@@ -135,6 +135,7 @@ export function CaseDetailsTabs(props) {
|
|
|
135
135
|
component: React.createElement(CaseSummary, { caseNumber: caseNumber }),
|
|
136
136
|
});
|
|
137
137
|
const getActiveTabKey = () => {
|
|
138
|
+
console.warn(activeTab, activeTabKey);
|
|
138
139
|
if (!activeTab)
|
|
139
140
|
return activeTabKey;
|
|
140
141
|
const tabIndex = tabsToRender.findIndex((item) => item.routePath === activeTab);
|
|
@@ -150,8 +151,7 @@ export function CaseDetailsTabs(props) {
|
|
|
150
151
|
? 'tab-title-with-badge'
|
|
151
152
|
: undefined },
|
|
152
153
|
React.createElement(Trans, null, tab.title),
|
|
153
|
-
tab.title === CaseDetailsTabsEnum.GENERATE_AI_CASE_SUMMARY && (React.createElement("
|
|
154
|
-
React.createElement(Label, { className: "preview-label" }, "Preview"))),
|
|
154
|
+
tab.title === CaseDetailsTabsEnum.GENERATE_AI_CASE_SUMMARY && (React.createElement(Label, { isCompact: true, variant: "outline", className: "preview-label" }, "Preview")),
|
|
155
155
|
tab.title === CaseDetailsTabsEnum.HISTORY && (React.createElement(Popover, { "aria-label": "Track support case evolution with case history", triggerAction: "hover", bodyContent: React.createElement(React.Fragment, null,
|
|
156
156
|
React.createElement("p", null, "Track support case evolution with case history"),
|
|
157
157
|
React.createElement("a", { href: "https://access.redhat.com/articles/7120652", target: "_blank", rel: "noreferrer" },
|
|
@@ -160,14 +160,14 @@ export function CaseDetailsTabs(props) {
|
|
|
160
160
|
React.createElement("span", { style: { marginLeft: '0.25rem' } },
|
|
161
161
|
React.createElement(ExternalLinkAltIcon, null)))) },
|
|
162
162
|
React.createElement(InfoCircleIcon, { color: "gray" })))) })))),
|
|
163
|
-
React.createElement("div", { className: "case-details-tabs-content pf-
|
|
163
|
+
React.createElement("div", { className: "case-details-tabs-content pf-v6-u-pt-xl" }, tabsToRender.map((tab, index) => {
|
|
164
164
|
return index === getActiveTabKey() && !isExportingPDF ? (React.createElement(TabContent, { eventKey: index, key: tab.key, id: `pf-tab-${index}-${tab.title.split(' ')[0]}-tabpanel`, ref: tab.ref, "aria-label": tab.title, hidden: isExportingPDF ? !isTabVisibleInPdfExport(tab) : index !== getActiveTabKey() },
|
|
165
165
|
React.createElement(ErrorBoundary, { errorMsgInfo: {
|
|
166
166
|
message: t(`There was an error loading case ${tab.key}`),
|
|
167
167
|
} },
|
|
168
168
|
React.createElement(Suspense, { fallback: React.createElement(LoadingIndicator, { size: "sm" }) },
|
|
169
|
-
React.createElement(
|
|
170
|
-
React.createElement(
|
|
169
|
+
React.createElement(Content, { className: "show-in-pdf pf-v6-u-mt-md" },
|
|
170
|
+
React.createElement(Content, { component: ContentVariants.h2 },
|
|
171
171
|
React.createElement(Trans, null, tab.title))),
|
|
172
172
|
tab.component)))) : isExportingPDF && isTabVisibleInPdfExport(tab) ? (React.createElement(React.Fragment, null,
|
|
173
173
|
React.createElement("div", { className: "page-break" }),
|
|
@@ -176,8 +176,8 @@ export function CaseDetailsTabs(props) {
|
|
|
176
176
|
message: t(`There was an error loading case ${tab.key}`),
|
|
177
177
|
} },
|
|
178
178
|
React.createElement(Suspense, { fallback: React.createElement(LoadingIndicator, { size: "sm" }) },
|
|
179
|
-
React.createElement(
|
|
180
|
-
React.createElement(
|
|
179
|
+
React.createElement(Content, { className: "show-in-pdf pf-v6-u-mt-md" },
|
|
180
|
+
React.createElement(Content, { component: ContentVariants.h2 },
|
|
181
181
|
React.createElement(Trans, null, tab.title))),
|
|
182
182
|
tab.component))))) : (React.createElement(React.Fragment, null));
|
|
183
183
|
}))));
|
|
@@ -46,5 +46,5 @@ export default function CaseOwnerInfo(props) {
|
|
|
46
46
|
React.createElement(Trans, null, "Office location")),
|
|
47
47
|
": ",
|
|
48
48
|
props.caseDetailsHydra.data.caseOwner.officeLocation)) },
|
|
49
|
-
React.createElement(QuestionCircleIcon, { className: "pf-
|
|
49
|
+
React.createElement(QuestionCircleIcon, { className: "pf-v6-u-ml-xs icon-size", "aria-label": "Support Level Info" })))))));
|
|
50
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTime.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/DateTime.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,UAAU,MAAM;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;IAC/C,cAAc,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAiBD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC7B,WAAkB,EAClB,iBAA4C,EAC5C,cAAsC,EACtC,cAAmB,EACnB,MAAgB,GACnB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"DateTime.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/DateTime.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,UAAU,MAAM;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;IAC/C,cAAc,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAiBD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC7B,WAAkB,EAClB,iBAA4C,EAC5C,cAAsC,EACtC,cAAmB,EACnB,MAAgB,GACnB,EAAE,MAAM,qBAyBR"}
|
|
@@ -19,5 +19,5 @@ export default function DateTime({ showToolTip = true, toolTipTimeFormat = defau
|
|
|
19
19
|
return (React.createElement(React.Fragment, null,
|
|
20
20
|
React.createElement("time", { dateTime: dateTimeString }, formatDateTime(dateTimeString, locale, dateTimeFormat)),
|
|
21
21
|
showToolTip && (React.createElement(Tooltip, { content: React.createElement("time", { dateTime: dateTimeString }, formatDateTime(dateTimeString, locale, toolTipTimeFormat)) },
|
|
22
|
-
React.createElement(InfoIcon, { className: `pf-
|
|
22
|
+
React.createElement(InfoIcon, { className: `pf-v6-u-ml-sm pf-v6-u-text-color-status-custom cursor-pointer ${isExportingPDF ? 'hide-in-pdf' : ''}` })))));
|
|
23
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/index.tsx"],"names":[],"mappings":"AA8BA,OAAO,KAAkD,MAAM,OAAO,CAAC;AA4BvE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/index.tsx"],"names":[],"mappings":"AA8BA,OAAO,KAAkD,MAAM,OAAO,CAAC;AA4BvE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,MAAM,qBA6fjD"}
|
|
@@ -226,15 +226,15 @@ export default function CaseOverview(props) {
|
|
|
226
226
|
React.createElement("div", { className: "case-overview-header" },
|
|
227
227
|
canSeeInactivityWarning && isCaseInOpenState && (React.createElement(React.Fragment, null,
|
|
228
228
|
' ',
|
|
229
|
-
firstCaseInactivityWarningSentAt && !secondCaseInactivityWarningSentAt && (React.createElement(Alert, { className: "pf-
|
|
230
|
-
React.createElement("h3", { className: "pf-
|
|
229
|
+
firstCaseInactivityWarningSentAt && !secondCaseInactivityWarningSentAt && (React.createElement(Alert, { className: "pf-v6-u-mb-md", isInline: true, title: React.createElement(React.Fragment, null,
|
|
230
|
+
React.createElement("h3", { className: "pf-v6-u-mb-sm pf-v6-c-alert__title" },
|
|
231
231
|
React.createElement(Trans, null, "Case inactivity notification")),
|
|
232
|
-
React.createElement("p", { className: "pf-
|
|
232
|
+
React.createElement("p", { className: "pf-v6-u-mb-sm" },
|
|
233
233
|
React.createElement(Trans, null, "The customer has received one warning regarding inactivity."))) })),
|
|
234
|
-
firstCaseInactivityWarningSentAt && secondCaseInactivityWarningSentAt && (React.createElement(Alert, { className: "pf-
|
|
235
|
-
React.createElement("h3", { className: "pf-
|
|
234
|
+
firstCaseInactivityWarningSentAt && secondCaseInactivityWarningSentAt && (React.createElement(Alert, { className: "pf-v6-u-mb-md", isInline: true, variant: AlertVariant.warning, title: React.createElement(React.Fragment, null,
|
|
235
|
+
React.createElement("h3", { className: "pf-v6-u-mb-sm pf-v6-c-alert__title" },
|
|
236
236
|
React.createElement(Trans, null, "Case inactivity warning")),
|
|
237
|
-
React.createElement("p", { className: "pf-
|
|
237
|
+
React.createElement("p", { className: "pf-v6-u-mb-sm" },
|
|
238
238
|
React.createElement(Trans, null, "The customer has received two warnings regarding inactivity. This case will be closed soon if we don't receive any input."))) })))),
|
|
239
239
|
React.createElement(CaseContactPhoneNumberAlert, { isReview: true, tabRef: props.tabsRef }),
|
|
240
240
|
React.createElement("header", null,
|
|
@@ -244,7 +244,7 @@ export default function CaseOverview(props) {
|
|
|
244
244
|
props.caseNumber),
|
|
245
245
|
React.createElement("div", null,
|
|
246
246
|
exportPDFButton(props.caseNumber),
|
|
247
|
-
React.createElement(Button, Object.assign({ className: `pf-
|
|
247
|
+
React.createElement(Button, Object.assign({ className: `pf-v6-u-ml-md ${isExportingPDF ? 'hide-in-pdf' : ''}`, isDisabled: !canManageCase }, ((showCloseCaseModal || showReOpenCaseModal) &&
|
|
248
248
|
isCaseUpdating && {
|
|
249
249
|
isLoading: true,
|
|
250
250
|
}), { onClick: () => (isCaseInOpenState ? onCaseClose() : onCaseReopen()), variant: isCaseInOpenState ? ButtonVariant.secondary : ButtonVariant.tertiary, "data-tracking-id": isCaseInOpenState
|
|
@@ -288,7 +288,7 @@ export default function CaseOverview(props) {
|
|
|
288
288
|
React.createElement("div", null, createdDate ? React.createElement(DateTime, { dateTimeString: createdDate }) : null)),
|
|
289
289
|
canSeeCaseOwnerInfo && (React.createElement(CaseOwnerInfo, { owner: ownerId, caseDetailsHydra: caseOverviewState.caseDetailsHydra }))),
|
|
290
290
|
React.createElement("div", { className: "case-overview-secondary card card-md card-light push-bottom" },
|
|
291
|
-
React.createElement("div", { className: "pf-
|
|
291
|
+
React.createElement("div", { className: "pf-v6-l-grid pf-m-gutter pf-m-all-4-col-on-lg" },
|
|
292
292
|
React.createElement("div", { className: "form-wrapper" },
|
|
293
293
|
React.createElement(CaseStatus, { selectedStatus: status, onStatusChange: onStatusChange, isDisabled: !canManageCase || caseOverviewState.allCaseStatuses.isFetching, allStatuses: caseOverviewState.allCaseStatuses.data, isFetching: caseOverviewState.caseStatusUpdating && isCaseUpdating, hasError: caseOverviewState.allCaseStatuses.isError })),
|
|
294
294
|
React.createElement("div", { className: "form-wrapper" },
|
|
@@ -307,7 +307,8 @@ export default function CaseOverview(props) {
|
|
|
307
307
|
}, caseNumber: caseNumber })),
|
|
308
308
|
showReOpenCaseModal && (React.createElement(ReopenCaseModal, { isInternal: loggedInUserRights.data.isInternal(), onConfirm: (commentBody, newStatus, reopenedAt, reopenedBySSOName, reopenedReason, reopenedReasonOther) => __awaiter(this, void 0, void 0, function* () {
|
|
309
309
|
yield updateStatusState(newStatus, reopenedAt || null, reopenedBySSOName || null, reopenedReason || null, reopenedReasonOther || null, () => __awaiter(this, void 0, void 0, function* () {
|
|
310
|
-
postCommentAfterStatusUpdate(commentBody);
|
|
310
|
+
yield postCommentAfterStatusUpdate(commentBody);
|
|
311
|
+
dtmTrackEventCaseStepEncountered('reopen', caseNumber, product, version);
|
|
311
312
|
}));
|
|
312
313
|
setShowReopenCaseModal(false);
|
|
313
314
|
}), onClose: () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseSolutions.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseSolutions/CaseSolutions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CaseSolutions.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseSolutions/CaseSolutions.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAsD,MAAM,OAAO,CAAC;AAwE3E,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB,EAAE,OAAO,CAAC;CACnC;AAUD,eAAO,MAAM,aAAa,+EA8gBxB,CAAC"}
|