@rh-support/troubleshoot 2.7.0 → 2.32.2-prodBackup
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 +38 -33
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +70 -58
- package/lib/esm/components/CaseEditView/Case.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Case.js +50 -14
- package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsAside.js +45 -30
- 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 +7 -16
- 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 +28 -23
- 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 +51 -35
- 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 +33 -16
- 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 +50 -42
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.js +33 -16
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +53 -48
- 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 +7 -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.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.js +5 -8
- 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/CaseDetails/useCustomEmails.d.ts +1 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/useCustomEmails.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/useCustomEmails.js +2 -3
- 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.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +19 -2
- 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.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +6 -6
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.js +26 -18
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.css +27 -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 +8 -8
- 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 +0 -3
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +80 -46
- package/lib/esm/components/CaseManagement/RHAssociatesSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/RHAssociatesSelector.js +8 -6
- 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 +19 -21
- package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.js +11 -8
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.js +55 -21
- 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 +11 -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.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/AllProductsSelector.js +12 -8
- 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 +83 -47
- 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 +6 -4
- 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 +10 -11
- package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.js +6 -4
- package/lib/esm/components/Recommendations/EARules/EARuleInfoInline.js +7 -7
- package/lib/esm/components/Recommendations/InsightsResults.js +2 -2
- package/lib/esm/components/Recommendations/InsightsRuleInfo.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/InsightsRuleInfo.js +23 -16
- package/lib/esm/components/Recommendations/RecommendationFeedbackModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/RecommendationFeedbackModal.js +7 -7
- 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 +10 -12
- 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.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/RestoreLastSessionModal.js +7 -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.d.ts.map +1 -1
- package/lib/esm/components/Suggestions/Suggestions.js +19 -14
- package/lib/esm/components/Suggestions/TopContent.d.ts.map +1 -1
- package/lib/esm/components/Suggestions/TopContent.js +16 -16
- 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 +2 -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 +16 -6
- package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts.map +1 -1
- package/lib/esm/components/shared/input/ContactSelectorInternal.js +133 -23
- package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
- package/lib/esm/components/shared/useIsSectionValid.js +60 -4
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.js +8 -2
- 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 +62 -19
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts +2 -2
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardNavigation.js +21 -22
- package/lib/esm/css/app.css +18 -17
- package/lib/esm/css/case.css +62 -22
- package/lib/esm/css/results.css +2 -2
- 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/RouteConstNTypes.js +2 -0
- package/lib/esm/reducers/RulesReducer.d.ts.map +1 -1
- package/lib/esm/scss/_main.scss +251 -94
- package/lib/esm/scss/_pf-overrides.scss +186 -149
- package/package.json +11 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Modal, ModalVariant } from '@patternfly/react-core';
|
|
1
|
+
import { Modal, ModalBody, ModalFooter, ModalHeader, ModalVariant } from '@patternfly/react-core';
|
|
2
2
|
import { AlertMessage, AlertType } from '@rh-support/components';
|
|
3
3
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
4
4
|
import filter from 'lodash/filter';
|
|
@@ -105,7 +105,7 @@ const AllProductsSelector = forwardRef((props, ref) => {
|
|
|
105
105
|
React.createElement(ProductVersionDropdownSelector, { isLoading: allProducts.isFetching, products: props.checkEntitledProduct ? entitledProducts : allProducts.data.productsResult, onProductChange: onProductChange, onVersionChange: onVersionChange, ref: ref, isOnSummaryPage: props.isOnSummaryPage, loadTCOnChange: props.loadTCOnChange, isFetching: topContent.isFetching })))),
|
|
106
106
|
renderOpenCaseIssue && (React.createElement("div", { className: "case-details-summary" },
|
|
107
107
|
React.createElement(OpenCaseIssue, { inlineEditable: false, required: true, isOnSummaryPage: props.isOnSummaryPage }))),
|
|
108
|
-
React.createElement(AlertMessage, { isInline: true, variant: AlertType.DANGER, className: "pf-
|
|
108
|
+
React.createElement(AlertMessage, { isInline: true, variant: AlertType.DANGER, className: "pf-v6-u-mt-lg", title: t(`${loggedInUserRights.data.isSSOUsernameSameAsLoggedInUser(contactSSOName)
|
|
109
109
|
? 'You are'
|
|
110
110
|
: 'Selected owner is'} not allowed to create case on this product.`), show: !allProducts.isFetching && props.checkEntitledProduct && !isEntitledProduct && !isEmpty(product) }),
|
|
111
111
|
showModalButton &&
|
|
@@ -114,13 +114,17 @@ const AllProductsSelector = forwardRef((props, ref) => {
|
|
|
114
114
|
!topContent.isFetching &&
|
|
115
115
|
topContent.data.length !== 0 && (React.createElement("button", { className: "btn btn-bordered-blue btn-slim pull-top-narrow push-bottom-narrow", "data-tracking-id": "suggested-fixes-trigger", onClick: toggleTCModal, type: "button" },
|
|
116
116
|
React.createElement(Trans, null, "Suggested fixes"))),
|
|
117
|
-
props.loadTCOnChange && !topContent.isFetching && topContent.data.length !== 0 && (React.createElement(Modal, { className: "feedback-modal",
|
|
117
|
+
props.loadTCOnChange && !topContent.isFetching && topContent.data.length !== 0 && (React.createElement(Modal, { className: "feedback-modal", "aria-describedby": "Feedback Form", isOpen: isModalOpen, variant: ModalVariant.large },
|
|
118
|
+
React.createElement(ModalHeader, null,
|
|
119
|
+
React.createElement("h2", null, t('Suggested fixes'))),
|
|
120
|
+
React.createElement(ModalBody, null,
|
|
121
|
+
React.createElement("p", null, t('There are new updates to suggested fixes after changing your product.')),
|
|
122
|
+
React.createElement("span", null,
|
|
123
|
+
React.createElement(Trans, null, "Here are some common suggestions:")),
|
|
124
|
+
React.createElement(Suggestions, { showTitleDescription: false, showMax: 6 })),
|
|
125
|
+
React.createElement(ModalFooter, null,
|
|
118
126
|
React.createElement("button", { key: "cancel", onClick: toggleTCModal, className: "btn btn-app btn-primary", type: "button" },
|
|
119
|
-
React.createElement(Trans, null, "Cancel"))
|
|
120
|
-
] },
|
|
121
|
-
React.createElement("span", null,
|
|
122
|
-
React.createElement(Trans, null, "Here are some common suggestions:")),
|
|
123
|
-
React.createElement(Suggestions, { showTitleDescription: false, showMax: 6 })))));
|
|
127
|
+
React.createElement(Trans, null, "Cancel")))))));
|
|
124
128
|
});
|
|
125
129
|
AllProductsSelector.defaultProps = defaultProps;
|
|
126
130
|
export { AllProductsSelector };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewProductDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"NewProductDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAoBpE,OAAO,KAAkD,MAAM,OAAO,CAAC;AAUvE,UAAU,MAAM;IACZ,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IAChC,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,CAAC;IAC1C,qCAAqC,EAAE,OAAO,CAAC;IAC/C,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,0BAA0B,UAAW,MAAM,sBA8MvD,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Divider } from '@patternfly/react-core';
|
|
2
|
-
import
|
|
1
|
+
import { Button, Divider, MenuToggle, Select, SelectGroup, SelectList, SelectOption, Spinner, TextInputGroup, TextInputGroupMain, TextInputGroupUtilities, } from '@patternfly/react-core';
|
|
2
|
+
import TimesIcon from '@patternfly/react-icons/dist/js/icons/times-icon';
|
|
3
|
+
import { useSelectKeyboardNavigator } from '@rh-support/components';
|
|
3
4
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
4
5
|
import isEmpty from 'lodash/isEmpty';
|
|
5
6
|
import isEqual from 'lodash/isEqual';
|
|
6
|
-
import React, { useContext, useEffect, useState } from 'react';
|
|
7
|
+
import React, { useContext, useEffect, useRef, useState } from 'react';
|
|
7
8
|
import { Trans, useTranslation } from 'react-i18next';
|
|
8
9
|
import { useCaseSelector } from '../../context/CaseContext';
|
|
9
10
|
const isProductSupportedForCustomer = (productName, productResults) => {
|
|
@@ -15,67 +16,102 @@ export const NewProductDropdownSelector = (props) => {
|
|
|
15
16
|
const [isOpen, setIsOpen] = useState(false);
|
|
16
17
|
const [showValidationLocal, setShowValidationLocal] = useState(props.isNextBtnClickedToShowValidationError);
|
|
17
18
|
const [isSelectedProductSupportedForCustomer, setIsSelectedProductSupportedForCustomer] = useState(true);
|
|
19
|
+
const [filteredProducts, setFilteredProducts] = useState(props.products);
|
|
20
|
+
const [shouldFilter, setShouldFilter] = useState(false);
|
|
21
|
+
const textInputRef = useRef();
|
|
18
22
|
const { product } = useCaseSelector((state) => ({
|
|
19
23
|
product: state.caseDetails.product,
|
|
20
24
|
}), isEqual);
|
|
25
|
+
const [inputValue, setInputValue] = useState('');
|
|
21
26
|
const { globalMetadataState: { allProducts }, } = useContext(GlobalMetadataStateContext);
|
|
22
27
|
useEffect(() => {
|
|
23
28
|
setShowValidationLocal(props.isNextBtnClickedToShowValidationError);
|
|
24
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
25
29
|
}, [props.isNextBtnClickedToShowValidationError]);
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const onToggle = (isOpen) => {
|
|
30
|
-
setIsOpen(isOpen);
|
|
31
|
-
};
|
|
32
|
-
const getOptions = () => {
|
|
33
|
-
const topProductOptions = allProducts.data.topProducts
|
|
34
|
-
.filter((p) => p.isEntitledProduct)
|
|
35
|
-
.map((p, id) => createOption(p, id, 'topProduct'))
|
|
36
|
-
.slice(0, 3);
|
|
37
|
-
const productOptions = props.products.map((p, id) => createOption(p, id, 'product'));
|
|
38
|
-
const allProductsTroubleshootOptions = allProducts.data.productsResult.map((p, id) => createOption(p, id, 'product'));
|
|
39
|
-
return [
|
|
40
|
-
React.createElement(SelectGroup, { label: t('Top products'), key: "topProducts", value: '', className: "product-selector-group" }),
|
|
41
|
-
...topProductOptions,
|
|
42
|
-
React.createElement(Divider, { key: "all-product-divider" }),
|
|
43
|
-
React.createElement(SelectGroup, { label: t('All products'), key: "AllProducts", value: '', className: "product-selector-group" }),
|
|
44
|
-
...(props.isCaseCreate ? productOptions : allProductsTroubleshootOptions),
|
|
45
|
-
];
|
|
46
|
-
};
|
|
47
|
-
const onFilter = (e, textInput) => {
|
|
48
|
-
if (textInput === '') {
|
|
49
|
-
return getOptions();
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
if (product && product !== inputValue) {
|
|
32
|
+
setInputValue(product);
|
|
50
33
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
});
|
|
58
|
-
|
|
34
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
35
|
+
}, [product]);
|
|
36
|
+
// Update filtered products whenever input changes
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
const productsToFilter = props.isCaseCreate ? props.products : allProducts.data.productsResult;
|
|
39
|
+
if (!isEmpty(inputValue === null || inputValue === void 0 ? void 0 : inputValue.trim())) {
|
|
40
|
+
const filtered = productsToFilter.filter((p) => { var _a; return (_a = p.name) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(inputValue.toLowerCase()); });
|
|
41
|
+
setFilteredProducts(filtered);
|
|
59
42
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
if (isEqual(selection, product)) {
|
|
63
|
-
props.onProductChange(''); // To unselect a product when user clicks on the same selected product
|
|
64
|
-
setIsOpen(false);
|
|
65
|
-
return;
|
|
43
|
+
else {
|
|
44
|
+
setFilteredProducts(productsToFilter);
|
|
66
45
|
}
|
|
67
|
-
|
|
68
|
-
setIsOpen(false);
|
|
69
|
-
};
|
|
46
|
+
}, [inputValue, props.products, props.isCaseCreate, allProducts.data.productsResult]);
|
|
70
47
|
useEffect(() => {
|
|
71
48
|
product &&
|
|
72
49
|
props.isOnSummaryPage &&
|
|
73
50
|
setIsSelectedProductSupportedForCustomer(isProductSupportedForCustomer(product, allProducts.data.productsResult));
|
|
74
51
|
}, [allProducts.data.productsResult, product, props.isOnSummaryPage]);
|
|
52
|
+
const onToggleClick = () => {
|
|
53
|
+
var _a;
|
|
54
|
+
setIsOpen(!isOpen);
|
|
55
|
+
(_a = textInputRef === null || textInputRef === void 0 ? void 0 : textInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
56
|
+
};
|
|
57
|
+
const onSelect = (selection) => {
|
|
58
|
+
if (isEqual(selection.name, inputValue)) {
|
|
59
|
+
props.onProductChange('');
|
|
60
|
+
setInputValue('');
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
props.onProductChange(selection.name);
|
|
64
|
+
setInputValue(selection.name);
|
|
65
|
+
}
|
|
66
|
+
setIsOpen(false);
|
|
67
|
+
};
|
|
68
|
+
const onTextInputChange = (_event, value) => {
|
|
69
|
+
setInputValue(value);
|
|
70
|
+
setShouldFilter(value.trim().length > 0);
|
|
71
|
+
if (value === '') {
|
|
72
|
+
props.onProductChange('');
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
const onClear = () => {
|
|
76
|
+
setInputValue('');
|
|
77
|
+
props.onProductChange('');
|
|
78
|
+
setShouldFilter(false);
|
|
79
|
+
};
|
|
80
|
+
const { onInputKeyDown, focusedItemIndex } = useSelectKeyboardNavigator({
|
|
81
|
+
list: filteredProducts,
|
|
82
|
+
isOpen,
|
|
83
|
+
setIsOpen,
|
|
84
|
+
onSelect: (item) => {
|
|
85
|
+
props.onProductChange(item.name);
|
|
86
|
+
setInputValue(item.name);
|
|
87
|
+
setIsOpen(false);
|
|
88
|
+
},
|
|
89
|
+
});
|
|
90
|
+
const createProductGroup = (products, label, type, shouldFilter = false) => {
|
|
91
|
+
const productsToShow = shouldFilter ? filteredProducts : products;
|
|
92
|
+
return productsToShow.length > 0 ? (React.createElement(React.Fragment, null,
|
|
93
|
+
!shouldFilter && (React.createElement(SelectGroup, { label: label, key: type, value: '', className: "product-selector-group", children: '' })),
|
|
94
|
+
productsToShow.map((prod, index) => {
|
|
95
|
+
var _a;
|
|
96
|
+
return (React.createElement(SelectOption, { key: `${type}-${index}`, value: prod, isFocused: focusedItemIndex === index, className: "pf-v6-c-select__menu-wrapper", "data-tracking-id": `${(_a = prod.name) === null || _a === void 0 ? void 0 : _a.replace(/\s+/g, '')}-${type}-dropdown`, isSelected: prod.name === product }, prod.name));
|
|
97
|
+
}))) : (React.createElement(SelectOption, { key: '', value: '', className: "pf-v6-c-select__menu-wrapper", isDisabled: true }, "No Results Found"));
|
|
98
|
+
};
|
|
99
|
+
const toggle = (toggleRef) => (React.createElement(MenuToggle, { ref: toggleRef, variant: "typeahead", onClick: onToggleClick, isExpanded: isOpen, isFullWidth: true, isDisabled: props.isLoading, status: isEmpty(inputValue) && showValidationLocal ? 'danger' : undefined },
|
|
100
|
+
React.createElement(TextInputGroup, { isPlain: true },
|
|
101
|
+
React.createElement(TextInputGroupMain, { value: inputValue, onClick: onToggleClick, onChange: onTextInputChange, onKeyDown: onInputKeyDown, autoComplete: "off", innerRef: textInputRef, placeholder: t('Search for or select a product'), role: "combobox", isExpanded: isOpen, "aria-controls": "product-selector-listbox" }),
|
|
102
|
+
props.isLoading ? (React.createElement(TextInputGroupUtilities, null,
|
|
103
|
+
React.createElement(Spinner, { size: "md" }))) : (React.createElement(TextInputGroupUtilities, Object.assign({}, (!inputValue ? { style: { display: 'none' } } : {})),
|
|
104
|
+
React.createElement(Button, { icon: React.createElement(TimesIcon, { "aria-hidden": true }), variant: "plain", onClick: onClear, "aria-label": "Clear input value" }))))));
|
|
105
|
+
const topProducts = allProducts.data.topProducts.filter((p) => p.isEntitledProduct).slice(0, 3);
|
|
75
106
|
return (React.createElement("div", null,
|
|
76
|
-
React.createElement(Select, {
|
|
77
|
-
|
|
107
|
+
React.createElement(Select, { id: "product-selector", isOpen: isOpen, onSelect: (e, selection) => onSelect(selection), onOpenChange: (isOpen) => setIsOpen(isOpen), toggle: toggle, selected: product, shouldFocusFirstItemOnOpen: false, isScrollable: true, "data-tracking-id": "get-support-product-dropdown-selector" },
|
|
108
|
+
React.createElement(SelectList, { id: "product-selector-listbox" },
|
|
109
|
+
!shouldFilter && createProductGroup(topProducts, t('Top products'), 'topProduct'),
|
|
110
|
+
!shouldFilter && React.createElement(Divider, null),
|
|
111
|
+
createProductGroup(props.isCaseCreate ? props.products : allProducts.data.productsResult, t('All products'), 'product', shouldFilter))),
|
|
112
|
+
!props.isLoading && !isSelectedProductSupportedForCustomer && (React.createElement("div", { className: "pf-v6-u-ml-xs pf-v6-u-mt-sm form-instructions" },
|
|
78
113
|
React.createElement(Trans, null, "Red Hat must confirm your subscription status before providing support."),
|
|
79
114
|
React.createElement("br", null),
|
|
80
115
|
React.createElement(Trans, null, "We'll contact you if we have any questions.")))));
|
|
81
116
|
};
|
|
117
|
+
export default NewProductDropdownSelector;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewProductVersionSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductVersionSelector.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAM/D,UAAU,MAAM;IACZ,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,qCAAqC,EAAE,OAAO,CAAC;CAClD;AAED,eAAO,MAAM,yBAAyB,UAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"NewProductVersionSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductVersionSelector.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAM/D,UAAU,MAAM;IACZ,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,qCAAqC,EAAE,OAAO,CAAC;CAClD;AAED,eAAO,MAAM,yBAAyB,UAAW,MAAM,sBAmItD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SingleSelectDropdown } from '@rh-support/components';
|
|
2
2
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
3
3
|
import { getUniqueSortedVersions } from '@rh-support/utils';
|
|
4
4
|
import isEmpty from 'lodash/isEmpty';
|
|
@@ -10,7 +10,6 @@ import { getVersionsDetails } from '../../reducers/CaseReducer';
|
|
|
10
10
|
import { getProductObj } from '../shared/utils';
|
|
11
11
|
export const NewProductVersionSelector = (props) => {
|
|
12
12
|
const { t } = useTranslation();
|
|
13
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
14
13
|
const [selectVersionOptions, setSelectVersionOptions] = useState([]);
|
|
15
14
|
const [showValidationLocal, setShowValidationLocal] = useState(props.isNextBtnClickedToShowValidationError);
|
|
16
15
|
const [isSEProductApiIsDown, setIsSEProductApiIsDown] = useState(false);
|
|
@@ -78,18 +77,23 @@ export const NewProductVersionSelector = (props) => {
|
|
|
78
77
|
setSelectVersionOptions(productVersions);
|
|
79
78
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
80
79
|
}, [versionsDetails.data, isSEProductApiIsDown]);
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
};
|
|
84
|
-
const onSelect = (event, selection) => {
|
|
80
|
+
const onSelect = (selectedOption) => {
|
|
81
|
+
const selection = selectedOption.value;
|
|
85
82
|
if (isEqual(selection, version)) {
|
|
86
83
|
props.onVersionChange(''); // To unselect a version when user clicks on the same selected product version
|
|
87
|
-
setIsOpen(false);
|
|
88
84
|
return;
|
|
89
85
|
}
|
|
90
86
|
props.onVersionChange(selection);
|
|
91
|
-
setIsOpen(false);
|
|
92
87
|
};
|
|
93
|
-
|
|
94
|
-
|
|
88
|
+
// Create selected option for SingleSelectDropdown
|
|
89
|
+
const getSelectedOption = () => ({
|
|
90
|
+
label: version || '',
|
|
91
|
+
value: version || '',
|
|
92
|
+
});
|
|
93
|
+
// Create options array for SingleSelectDropdown
|
|
94
|
+
const getDropdownOptions = () => selectVersionOptions.map((versionOption) => ({
|
|
95
|
+
label: versionOption,
|
|
96
|
+
value: versionOption,
|
|
97
|
+
}));
|
|
98
|
+
return (React.createElement(SingleSelectDropdown, { onSelect: onSelect, selected: getSelectedOption(), options: getDropdownOptions(), placeholder: t('Select a version'), ariaLabel: t('Select a version'), isInvalid: isEmpty(version) && showValidationLocal, isDisabled: isEmpty(product) || allProducts.isFetching, dataTrackingId: "get-support-version-dropdown-selector", isLoading: isSEProductApiIsDown && versionsDetails.isFetching }));
|
|
95
99
|
};
|
|
@@ -57,7 +57,7 @@ export default function ProductSelector(props) {
|
|
|
57
57
|
React.createElement(AllProductsSelector, { routeProps: props.routeProps, checkEntitledProduct: isCaseCreate ? true : false, ref: productSelectorRef, isOnSummaryPage: true, isOnGetSupportPage: props === null || props === void 0 ? void 0 : props.isOnGetSupportPage, caseCreateExperience: props.caseCreateExperience })));
|
|
58
58
|
return (React.createElement(React.Fragment, null,
|
|
59
59
|
isBTestvariation && allProducts.isFetching && React.createElement(ProductSelectorLoader, null),
|
|
60
|
-
React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "pf-
|
|
60
|
+
React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "pf-v6-u-mt-lg", title: t('There was an error loading products.'), show: allProducts.isError }),
|
|
61
61
|
isBTestvariation
|
|
62
62
|
? !allProducts.isFetching && !allProducts.isError && rederProductSelect
|
|
63
63
|
: isATestvariation && rederProductSelect,
|
|
@@ -16,11 +16,11 @@ const ProductVersionDropdownSelector = forwardRef((props, ref) => {
|
|
|
16
16
|
React.createElement(Trans, null, "Product"),
|
|
17
17
|
' ',
|
|
18
18
|
React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
|
|
19
|
-
React.createElement("div", { className: "pf-
|
|
20
|
-
React.createElement("div", { className: "pf-
|
|
19
|
+
React.createElement("div", { className: "pf-v6-u-display-flex pf-v6-u-align-items-center" },
|
|
20
|
+
React.createElement("div", { className: "pf-v6-u-flex-1" },
|
|
21
21
|
React.createElement(NewProductDropdownSelector, { products: props.products, onProductChange: props.onProductChange, isNextBtnClickedToShowValidationError: isNextBtnClickedToShowValidationError, isCaseCreate: isCaseCreate, isOnSummaryPage: props.isOnSummaryPage, isLoading: props.isLoading })),
|
|
22
|
-
props.isLoading && (React.createElement("div", { className: "pf-
|
|
23
|
-
React.createElement(LoadingIndicator, { className: "pf-
|
|
22
|
+
props.isLoading && (React.createElement("div", { className: "pf-v6-u-flex-basis-auto" },
|
|
23
|
+
React.createElement(LoadingIndicator, { className: "pf-v6-u-ml-sm", isInline: true, show: props.isLoading, size: "sm" })))),
|
|
24
24
|
React.createElement(React.Fragment, null)),
|
|
25
25
|
React.createElement("div", { className: "version-selector-wrapper" },
|
|
26
26
|
React.createElement("label", { htmlFor: "version-selector-dropdown-toggle" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AsideResults.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/AsideResults.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AsideResults.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/AsideResults.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AASvD,OAAO,EAAE,eAAe,EAAsC,MAAM,iCAAiC,CAAC;AAUtG,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,qBA4MzC"}
|
|
@@ -8,6 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { pcm, search } from '@cee-eng/hydrajs';
|
|
11
|
+
import { Card, CardBody, CardHeader } from '@patternfly/react-core';
|
|
11
12
|
import { useDebounce } from '@rh-support/components';
|
|
12
13
|
import { computeRecommendationAbstract, computeRecommendationTitle, convertObjToEncodedQueryParams, dtmTrackEventContentListingItemClicked, getRecommendationTitle, getSolrParams, getTrimmedCharacters, PreviousCaseTypes, replaceHighlightingData, } from '@rh-support/utils';
|
|
13
14
|
import isEmpty from 'lodash/isEmpty';
|
|
@@ -130,12 +131,13 @@ export function AsideResults(props) {
|
|
|
130
131
|
const isIdea = caseType === PreviousCaseTypes.FEATURE_ENHANCEMENT;
|
|
131
132
|
if (!canShowSideRecommendations())
|
|
132
133
|
return React.createElement(React.Fragment, null);
|
|
133
|
-
return (React.createElement(
|
|
134
|
-
React.createElement(
|
|
135
|
-
|
|
134
|
+
return (React.createElement(Card, { className: "pf-v6-u-mt-lg pf-v6-u-mb-0" },
|
|
135
|
+
React.createElement(CardHeader, null,
|
|
136
|
+
React.createElement("h3", null, isIdea ? (React.createElement(Trans, null, "Search recommendations")) : (React.createElement(Trans, null, "Articles recommended by OpenShift AI")))),
|
|
137
|
+
React.createElement(CardBody, null,
|
|
136
138
|
React.createElement("ul", { className: "list-flat" }, recommendationState.sideRecommendation.map((doc, index) => {
|
|
137
139
|
var _a, _b;
|
|
138
|
-
return (React.createElement("li", { className:
|
|
140
|
+
return (React.createElement("li", { className: `result${index !== 0 && 'pf-v6-u-mt-sm'}`, key: doc.id },
|
|
139
141
|
React.createElement("header", { className: "result-header" },
|
|
140
142
|
React.createElement("a", { href: `${doc.view_uri}?${RouteUtils.getSEResourceQueryParams(activeSessionId, (_b = (_a = sessionResourceTracking[SessionResourceSource.RECOMMENDATIONS_ASIDE]) === null || _a === void 0 ? void 0 : _a.resourceOriginId) !== null && _b !== void 0 ? _b : '', SessionResourceSource.RECOMMENDATIONS_ASIDE)}`, className: "se-recommended ts-result-aside", "data-tracking-id": `se-recommended-sidebar-recommendations-${index}`, rel: "noopener noreferrer", target: "_blank", onClick: onResourceClick(doc, index), dangerouslySetInnerHTML: computeRecommendationTitle(doc) })),
|
|
141
143
|
React.createElement("p", { className: "result-body", dangerouslySetInnerHTML: computeRecommendationAbstract(doc, 150) })));
|
|
@@ -35,7 +35,7 @@ export function ClusterRecommendationItems(props) {
|
|
|
35
35
|
React.createElement(Label, { icon: riskLabels[rule.total_risk].icon, className: riskLabels[rule.total_risk].className },
|
|
36
36
|
React.createElement(Trans, null, riskLabels[rule.total_risk].label))),
|
|
37
37
|
React.createElement("p", null, rule.details || ''),
|
|
38
|
-
React.createElement("a", { onClick: (e) => onResourceClick(e, rule, i), className: "pf-
|
|
38
|
+
React.createElement("a", { onClick: (e) => onResourceClick(e, rule, i), className: "pf-v6-u-font-weight-bold", "data-tracking-id": "cluster-recommendations", href: detailsUrl, target: "_blank", rel: "noopener noreferrer" },
|
|
39
39
|
React.createElement(Trans, null,
|
|
40
40
|
"View details and remediation steps ",
|
|
41
41
|
React.createElement(ArrowRightIcon, { "aria-hidden": "true" })))))))));
|
|
@@ -36,7 +36,7 @@ export default function ClusterRecommendations(props) {
|
|
|
36
36
|
React.createElement(Trans, null, "Cluster recommendations")),
|
|
37
37
|
React.createElement("div", null,
|
|
38
38
|
React.createElement(ClusterRecommendationItems, { clusterRecommendations: clusterRecommendations.data.slice(0, NUMBER_OF_RULES_TO_DISPLAY) }),
|
|
39
|
-
clusterRecommendations.data.length > NUMBER_OF_RULES_TO_DISPLAY && (React.createElement(Button, { className: "pf-
|
|
39
|
+
clusterRecommendations.data.length > NUMBER_OF_RULES_TO_DISPLAY && (React.createElement(Button, { className: "pf-v6-u-p-md", variant: "link", isBlock: true, onClick: onViewMoreRecommendation, "data-tracking-id": "cluster-recs-view-more" },
|
|
40
40
|
React.createElement(Trans, null, "View more recommendations")))))),
|
|
41
41
|
showClusterRecommendationsModal && React.createElement(ClusterRecommendationsModal, null)));
|
|
42
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterRecommendationsModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/ClusterRecommendationsModal.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAYpD,UAAU,MAAM;CAAG;AAEnB,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ClusterRecommendationsModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/ClusterRecommendationsModal.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAYpD,UAAU,MAAM;CAAG;AAEnB,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,qBAyFxD"}
|
|
@@ -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 { Button, Modal } from '@patternfly/react-core';
|
|
11
|
+
import { Button, Modal, ModalBody, ModalFooter, ModalHeader } from '@patternfly/react-core';
|
|
12
12
|
import { useFetch } from '@rh-support/components';
|
|
13
13
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
14
14
|
import { getResTypeFromUrl } from '@rh-support/utils';
|
|
@@ -53,14 +53,13 @@ export function ClusterRecommendationsModal(props) {
|
|
|
53
53
|
};
|
|
54
54
|
return (React.createElement(React.Fragment, null,
|
|
55
55
|
React.createElement(RecommendationFeedbackModal, { isModalOpen: isModalVisible, handleModalToggle: onModalToggle, modalContent: t(`Great, we're glad that resolved your issue`) }),
|
|
56
|
-
React.createElement(Modal, { className: "critical-solutions-modal",
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
React.createElement(Button, { onClick:
|
|
64
|
-
|
|
65
|
-
React.createElement(ClusterRecommendationItems, { clusterRecommendations: clusterRecommendations.data }))));
|
|
56
|
+
React.createElement(Modal, { className: "critical-solutions-modal", "data-tracking-id": "cluster-recommendations-modal-body", onClose: onModalClose, isOpen: isClusterRecommendationsModalOpen },
|
|
57
|
+
React.createElement(ModalHeader, null,
|
|
58
|
+
React.createElement("h2", null, t('Cluster recommendations'))),
|
|
59
|
+
React.createElement(ModalBody, null,
|
|
60
|
+
React.createElement("p", null, t('Recommendations have been triggered for your cluster.')),
|
|
61
|
+
React.createElement(ClusterRecommendationItems, { clusterRecommendations: clusterRecommendations.data })),
|
|
62
|
+
React.createElement(ModalFooter, null,
|
|
63
|
+
!isSecureSupportAccount && (React.createElement(Button, { isDisabled: isFetching, isLoading: isFetching, onClick: handleSolvedIssue, key: "solved-my-issue", variant: "primary", "data-tracking-id": "cluster-recommendations-solutions-modal" }, t('I solved my issue'))),
|
|
64
|
+
React.createElement(Button, { onClick: onModalClose, key: "confirm", variant: "secondary", "data-tracking-id": "cancel-cluster-recommendations-modal" }, t('Cancel'))))));
|
|
66
65
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EARuleInfoAccordion.d.ts","sourceRoot":"","sources":["../../../../../src/components/Recommendations/EARules/EARuleInfoAccordion.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EARuleInfoAccordion.d.ts","sourceRoot":"","sources":["../../../../../src/components/Recommendations/EARules/EARuleInfoAccordion.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAIpD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAI/D,UAAU,MAAM;IACZ,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CAChB;AAID,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,MAAM,qBAiDrE"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { pcm } from '@cee-eng/hydrajs';
|
|
2
2
|
import { AccordionContent, AccordionItem, AccordionToggle, Label } from '@patternfly/react-core';
|
|
3
|
+
import { haltEvent } from '@rh-support/utils';
|
|
3
4
|
import React, { useContext, useState } from 'react';
|
|
4
5
|
import { Trans } from 'react-i18next';
|
|
5
6
|
import { SessionRestoreDispatchContext, SessionRestoreStateContext } from '../../../context/SessionRestoreContext';
|
|
@@ -12,19 +13,20 @@ export function EARuleInfoAccordion({ rule, showNewTag, rank }) {
|
|
|
12
13
|
const sessionRestoreDispatch = useContext(SessionRestoreDispatchContext);
|
|
13
14
|
const { sessionRestore: { activeSessionId, sessionResourceTracking }, } = useContext(SessionRestoreStateContext);
|
|
14
15
|
return (React.createElement(EARule, { rule: rule, ruleRank: rank },
|
|
15
|
-
React.createElement(AccordionItem,
|
|
16
|
-
React.createElement(AccordionToggle, {
|
|
16
|
+
React.createElement(AccordionItem, { isExpanded: isExpanded },
|
|
17
|
+
React.createElement(AccordionToggle, { id: "ea-rule-accordion-toggle", onClick: (e) => {
|
|
17
18
|
!isExpanded &&
|
|
18
19
|
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.INSIGHTS, [
|
|
19
20
|
getSessResFromRules(rule.cta, SessionResourceVisibility.PRESENTED_TAB, rank, rule.rule_id),
|
|
20
21
|
]);
|
|
21
22
|
setIsExpanded(!isExpanded);
|
|
23
|
+
haltEvent(e);
|
|
22
24
|
} },
|
|
23
|
-
showNewTag && ((_a = rule === null || rule === void 0 ? void 0 : rule.isNew) !== null && _a !== void 0 ? _a : false) && (React.createElement(Label, { color: "green", className: "pf-
|
|
25
|
+
showNewTag && ((_a = rule === null || rule === void 0 ? void 0 : rule.isNew) !== null && _a !== void 0 ? _a : false) && (React.createElement(Label, { color: "green", className: "pf-v6-u-mr-md" },
|
|
24
26
|
React.createElement(Trans, null, "NEW"))),
|
|
25
27
|
React.createElement("span", null,
|
|
26
28
|
React.createElement(EARuleTitle, null))),
|
|
27
|
-
React.createElement(AccordionContent,
|
|
29
|
+
React.createElement(AccordionContent, null,
|
|
28
30
|
React.createElement(EARuleDescription, null),
|
|
29
31
|
React.createElement(EARuleArticle, { className: "cta-link" })))));
|
|
30
32
|
}
|
|
@@ -94,18 +94,18 @@ export function EARuleInfoInline({ eaRules = [] }) {
|
|
|
94
94
|
return (React.createElement(React.Fragment, null,
|
|
95
95
|
React.createElement(RecommendationFeedbackModal, { isModalOpen: isModalVisible, handleModalToggle: onModalToggle, modalContent: t(`Great, we're glad that resolved your issue`) }),
|
|
96
96
|
React.createElement(EARule, { rule: visibleRule, ruleRank: currentPage },
|
|
97
|
-
React.createElement("div", { className: "pf-
|
|
98
|
-
React.createElement("div", { className: "pf-
|
|
97
|
+
React.createElement("div", { className: "pf-v6-c-alert pf-m-custom pf-m-inline pf-v6-u-mb-md", "aria-label": "Success alert" },
|
|
98
|
+
React.createElement("div", { className: "pf-v6-c-alert__icon" },
|
|
99
99
|
React.createElement(InfoCircleIcon, null)),
|
|
100
|
-
React.createElement("p", { className: "pf-
|
|
100
|
+
React.createElement("p", { className: "pf-v6-c-alert__title" },
|
|
101
101
|
React.createElement("strong", null,
|
|
102
102
|
React.createElement(EARuleTitle, null))),
|
|
103
|
-
React.createElement("div", { className: "pf-
|
|
103
|
+
React.createElement("div", { className: "pf-v6-c-alert__action" },
|
|
104
104
|
React.createElement(Button, { style: { fontSize: 15 }, variant: ButtonVariant.link, "data-tracking-id": "se-recommended-asa-ignore", type: "button", onClick: onIgnoreBtnClick }, validEARulesLength > 1 ? React.createElement(Trans, null, "Skip") : React.createElement(CloseIcon, null))),
|
|
105
|
-
React.createElement("div", { className: "pf-
|
|
105
|
+
React.createElement("div", { className: "pf-v6-c-alert__description" },
|
|
106
106
|
React.createElement(EARuleDescription, null)),
|
|
107
|
-
React.createElement("div", { className: "pf-
|
|
108
|
-
React.createElement(EARuleArticle, { className: "pf-
|
|
107
|
+
React.createElement("div", { className: "pf-v6-c-alert__action-group pf-v6-u-display-flex" },
|
|
108
|
+
React.createElement(EARuleArticle, { className: "pf-v6-u-align-self-center pf-v6-u-mr-sm", linkTitle: "View details" }),
|
|
109
109
|
!isSecureSupportAccount && resolvedMyIssue(),
|
|
110
110
|
validEARulesLength > 1 && (React.createElement(PaginationCompact, { maxPage: validEARulesLength, onPageChange: onPaginationChange, dataTrackingId: 'se-recommended-asa-widget' })))))));
|
|
111
111
|
}
|
|
@@ -136,7 +136,7 @@ function InsightsResults(props) {
|
|
|
136
136
|
return __awaiter(this, void 0, void 0, function* () {
|
|
137
137
|
var _a, _b;
|
|
138
138
|
try {
|
|
139
|
-
const _c = getSolrParams(200, 256, { id: kcsIds }), { start, rows, q } = _c, expression = __rest(_c, ["start", "rows", "q"]);
|
|
139
|
+
const _c = getSolrParams(200, 256, { id: kcsIds }, false, true), { start, rows, q } = _c, expression = __rest(_c, ["start", "rows", "q"]);
|
|
140
140
|
const res = yield search.solrSearchV2({ start, rows, q }, 'kcs', expression);
|
|
141
141
|
const docs = (_b = (_a = res === null || res === void 0 ? void 0 : res.response) === null || _a === void 0 ? void 0 : _a.docs) !== null && _b !== void 0 ? _b : [];
|
|
142
142
|
const attachmentId = localFile.attachmentId;
|
|
@@ -253,7 +253,7 @@ function InsightsResults(props) {
|
|
|
253
253
|
}
|
|
254
254
|
return (React.createElement(React.Fragment, null,
|
|
255
255
|
!rulesState.triggerRuleNotification && caseType !== PreviousCaseTypes.FEATURE_ENHANCEMENT && (React.createElement(Alert, { isInline: true, variant: "custom", title: t('File recommendations are ready to view'), "data-tracking-id": "inline-view-critical-solution-alert", children: React.createElement("p", null,
|
|
256
|
-
React.createElement(Trans, null, "Troubleshooting specific for your uploaded files.")), className: "pf-
|
|
256
|
+
React.createElement(Trans, null, "Troubleshooting specific for your uploaded files.")), className: "pf-v6-u-mb-lg" })),
|
|
257
257
|
React.createElement(InsightResultModal, { EARule: validEARules, onModalToggle: insightsModalToggle, isOpen: isRuleModalVisible, insightResults: allResults })));
|
|
258
258
|
}
|
|
259
259
|
InsightsResults.defaultProps = defaultProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightsRuleInfo.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/InsightsRuleInfo.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InsightsRuleInfo.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/InsightsRuleInfo.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAYvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAI7D,UAAU,MAAM;IACZ,GAAG,EAAE,wBAAwB,CAAC;IAC9B,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;CAChB;AAOD,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,GAAG,CAAC;QACV,UAAU,iBAAiB;YACvB,SAAS,EAAE,GAAG,CAAC;SAClB;KACJ;CACJ;AAED,wBAAgB,gBAAgB,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,aAAa,EAAE,IAAI,EAAE,EAAE,MAAM,qBAgLhF"}
|
|
@@ -2,6 +2,7 @@ import { pcm } from '@cee-eng/hydrajs';
|
|
|
2
2
|
import { Accordion, AccordionContent, AccordionItem, AccordionToggle, Label, LabelGroup } from '@patternfly/react-core';
|
|
3
3
|
import BullseyeIcon from '@patternfly/react-icons/dist/js/icons/bullseye-icon';
|
|
4
4
|
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
5
|
+
import { haltEvent } from '@rh-support/utils';
|
|
5
6
|
import DOMPurify from 'dompurify';
|
|
6
7
|
import isEmpty from 'lodash/isEmpty';
|
|
7
8
|
import React, { useContext, useEffect, useRef, useState } from 'react';
|
|
@@ -51,39 +52,45 @@ export function InsightsRuleInfo({ doc, showNewTag, duplicateKeys, rank }) {
|
|
|
51
52
|
onCtaClick(target.href.split('?')[0])(ev);
|
|
52
53
|
}
|
|
53
54
|
};
|
|
54
|
-
return (React.createElement(React.Fragment, null, ruleData && (React.createElement(AccordionItem,
|
|
55
|
-
React.createElement(AccordionToggle, {
|
|
55
|
+
return (React.createElement(React.Fragment, null, ruleData && (React.createElement(AccordionItem, { isExpanded: isParentExpanded },
|
|
56
|
+
React.createElement(AccordionToggle, { id: doc.id + doc.attachmentId, onClick: () => {
|
|
56
57
|
!isParentExpanded &&
|
|
57
58
|
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.INSIGHTS, [getSessResFromRec(doc, SessionResourceVisibility.PRESENTED_TAB, rank)]);
|
|
58
59
|
setIsParentExpanded(!isParentExpanded);
|
|
59
60
|
} },
|
|
60
61
|
React.createElement("div", null,
|
|
61
62
|
React.createElement("div", null,
|
|
62
|
-
showNewTag && ((_b = (_a = insightsReport === null || insightsReport === void 0 ? void 0 : insightsReport.current) === null || _a === void 0 ? void 0 : _a.isNew) !== null && _b !== void 0 ? _b : false) && (React.createElement(Label, { color: "green", className: "pf-
|
|
63
|
+
showNewTag && ((_b = (_a = insightsReport === null || insightsReport === void 0 ? void 0 : insightsReport.current) === null || _a === void 0 ? void 0 : _a.isNew) !== null && _b !== void 0 ? _b : false) && (React.createElement(Label, { color: "green", className: "pf-v6-u-mr-sm" },
|
|
63
64
|
React.createElement(Trans, null, "NEW"))), ruleData === null || ruleData === void 0 ? void 0 :
|
|
64
65
|
ruleData.summary),
|
|
65
|
-
React.createElement("div", { className: "pf-
|
|
66
|
+
React.createElement("div", { className: "pf-v6-u-mb-sm pf-v6-u-text-align-left" }, ((_d = (_c = insightsReport === null || insightsReport === void 0 ? void 0 : insightsReport.current) === null || _c === void 0 ? void 0 : _c.name) !== null && _d !== void 0 ? _d : false) && (React.createElement(Label, null,
|
|
66
67
|
React.createElement(Trans, null, insightsReport.current.name)))),
|
|
67
|
-
React.createElement("div", { className: "pf-
|
|
68
|
-
React.createElement(LabelGroup, { numLabels: 5 }, ((doc === null || doc === void 0 ? void 0 : doc.tag) || []).map((tag) => (React.createElement(Label, { color: "
|
|
69
|
-
React.createElement(AccordionContent,
|
|
68
|
+
React.createElement("div", { className: "pf-v6-u-text-align-left" },
|
|
69
|
+
React.createElement(LabelGroup, { numLabels: 5 }, ((doc === null || doc === void 0 ? void 0 : doc.tag) || []).map((tag) => (React.createElement(Label, { color: "yellow", className: "pf-v6-u-mr-sm" }, tag))))))),
|
|
70
|
+
React.createElement(AccordionContent, null,
|
|
70
71
|
React.createElement(Accordion, { asDefinitionList: false, className: "push-bottom-narrow" },
|
|
71
|
-
React.createElement(AccordionItem,
|
|
72
|
-
React.createElement(AccordionToggle, {
|
|
73
|
-
|
|
72
|
+
React.createElement(AccordionItem, { isExpanded: isIssueExpanded },
|
|
73
|
+
React.createElement(AccordionToggle, { onClick: (e) => {
|
|
74
|
+
haltEvent(e);
|
|
75
|
+
setIsIssueExpanded(!isIssueExpanded);
|
|
76
|
+
}, id: `${doc.id}-detected-issue` },
|
|
77
|
+
React.createElement(BullseyeIcon, { className: "pf-v6-u-mr-sm" }),
|
|
74
78
|
React.createElement(Trans, null, "Detected issues")),
|
|
75
|
-
React.createElement(AccordionContent,
|
|
79
|
+
React.createElement(AccordionContent, null,
|
|
76
80
|
React.createElement("p", { dangerouslySetInnerHTML: {
|
|
77
81
|
__html: DOMPurify.sanitize(getRuleReasonHtml(ruleData === null || ruleData === void 0 ? void 0 : ruleData.reason, (_e = insightsReport === null || insightsReport === void 0 ? void 0 : insightsReport.current) === null || _e === void 0 ? void 0 : _e.details) ||
|
|
78
82
|
'N/A'),
|
|
79
83
|
} }))),
|
|
80
|
-
((_f = ruleData === null || ruleData === void 0 ? void 0 : ruleData.more_info) !== null && _f !== void 0 ? _f : false) && (React.createElement(AccordionItem,
|
|
81
|
-
React.createElement(AccordionToggle, {
|
|
82
|
-
|
|
84
|
+
((_f = ruleData === null || ruleData === void 0 ? void 0 : ruleData.more_info) !== null && _f !== void 0 ? _f : false) && (React.createElement(AccordionItem, { isExpanded: isAdditionalExpanded },
|
|
85
|
+
React.createElement(AccordionToggle, { onClick: (e) => {
|
|
86
|
+
haltEvent(e);
|
|
87
|
+
setIsAdditionalExpanded(!isAdditionalExpanded);
|
|
88
|
+
}, id: `${doc.id}-additional-info` },
|
|
89
|
+
React.createElement(InfoCircleIcon, { className: "pf-v6-u-mr-sm" }),
|
|
83
90
|
React.createElement(Trans, null, "Additional info")),
|
|
84
|
-
React.createElement(AccordionContent,
|
|
91
|
+
React.createElement(AccordionContent, null,
|
|
85
92
|
React.createElement("p", { onClick: onAdditionalInfoElemClick, dangerouslySetInnerHTML: parseMoreInfo(ruleData === null || ruleData === void 0 ? void 0 : ruleData.more_info, (_g = insightsReport === null || insightsReport === void 0 ? void 0 : insightsReport.current) === null || _g === void 0 ? void 0 : _g.details) }))))),
|
|
86
93
|
React.createElement("pfe-cta", null,
|
|
87
|
-
React.createElement("a", { className: "se-recommended ts-result-insights pf-
|
|
94
|
+
React.createElement("a", { className: "se-recommended ts-result-insights pf-v6-u-font-size-sm", rel: "noopener noreferrer", target: "_blank", onClick: onCtaClick(doc.view_uri), "data-tracking-id": "get-support-recommended-insights-rule", "aria-label": "Related article", role: "button", href: getTrackingULRWithQueryParams(doc.view_uri, SessionResourceSource.INSIGHTS) },
|
|
88
95
|
React.createElement(Trans, null, "Related article"))))))));
|
|
89
96
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecommendationFeedbackModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/RecommendationFeedbackModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"RecommendationFeedbackModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/RecommendationFeedbackModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;CACxB;AACD,wBAAgB,2BAA2B,CAAC,EAAE,WAAW,EAAE,iBAAiB,EAAE,YAAY,EAAE,EAAE,MAAM,qBA4BnG"}
|