@rh-support/troubleshoot 2.6.14 → 2.6.16
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.js +8 -8
- 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 +7 -13
- 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/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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Badge, Button, Flex, FlexItem, Modal, ModalVariant } from '@patternfly/react-core';
|
|
1
|
+
import { Badge, Button, Flex, FlexItem, Modal, ModalFooter, ModalHeader, ModalVariant } from '@patternfly/react-core';
|
|
2
2
|
import ExternalLinkAltIcon from '@patternfly/react-icons/dist/esm/icons/external-link-alt-icon';
|
|
3
3
|
import { getAccessHostname } from '@rh-support/utils';
|
|
4
4
|
import isEqual from 'lodash/isEqual';
|
|
@@ -32,14 +32,13 @@ export const CveModal = () => {
|
|
|
32
32
|
const cveTitles = join(map(cveWorkflowRecommendation, 'title'), ',');
|
|
33
33
|
return `https://${getAccessHostname()}/labs/cvechecker/?source=pcm&session=${activeSessionId}&id=${cveTitles}`;
|
|
34
34
|
};
|
|
35
|
-
return (React.createElement(Modal, { variant: ModalVariant.medium,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
React.createElement(CvePanel, null)));
|
|
35
|
+
return (React.createElement(Modal, { variant: ModalVariant.medium, isOpen: isCveModalOpened &&
|
|
36
|
+
activeSection === (isCaseCreate ? AppRouteSections.SUMMARIZE : AppRouteSections.TROUBLESHOOT), onClose: handleModalToggle, disableFocusTrap: true, className: "cve-modal-fade-in-effect", onEscapePress: handleEscapePress },
|
|
37
|
+
React.createElement(ModalHeader, { title: React.createElement(Flex, { alignItems: { default: 'alignItemsCenter' } },
|
|
38
|
+
React.createElement(FlexItem, { spacer: { default: 'spacerSm' } }, cveWorkflowRecommendation.length > 1 ? (React.createElement(Trans, null, "Handpicked for these CVEs")) : (React.createElement(Trans, null, "Handpicked for this CVE"))),
|
|
39
|
+
React.createElement(Badge, { isRead: true }, size(cveWorkflowRecommendation))) }),
|
|
40
|
+
React.createElement(CvePanel, null),
|
|
41
|
+
React.createElement(ModalFooter, null,
|
|
42
|
+
React.createElement(Button, { icon: React.createElement(ExternalLinkAltIcon, { className: "pf-v6-u-ml-sm" }), key: "cve-checker-link", "data-tracking-id": "cve-checker-link", target: "_blank", variant: "secondary", isInline: true, component: "a", href: generateCveCheckerUrl() },
|
|
43
|
+
React.createElement(Trans, null, "Red Hat CVE Checker")))));
|
|
45
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CvePanel.d.ts","sourceRoot":"","sources":["../../../../src/components/Cve/CvePanel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAMxC,UAAU,MAAM;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,QAAQ,UAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"CvePanel.d.ts","sourceRoot":"","sources":["../../../../src/components/Cve/CvePanel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAMxC,UAAU,MAAM;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,QAAQ,UAAW,MAAM,sBAwCrC,CAAC"}
|
|
@@ -14,9 +14,9 @@ export const CvePanel = (props) => {
|
|
|
14
14
|
const handleToggle = (id) => setExpanded(id === expanded ? '' : id);
|
|
15
15
|
const renderAccordionItem = (cve, index) => {
|
|
16
16
|
const isExpanded = expanded === (cve === null || cve === void 0 ? void 0 : cve.title);
|
|
17
|
-
return (React.createElement(AccordionItem, { key: `cve-item-${index}` },
|
|
18
|
-
React.createElement(AccordionToggle, { onClick: () => handleToggle(cve.title),
|
|
19
|
-
React.createElement(AccordionContent, { id: `cve-content-${index}
|
|
17
|
+
return (React.createElement(AccordionItem, { isExpanded: isExpanded, key: `cve-item-${index}` },
|
|
18
|
+
React.createElement(AccordionToggle, { onClick: () => handleToggle(cve.title), id: `cve-toggle-${index}`, "data-tracking-id": "cve-accordion-toggle" }, cve.title),
|
|
19
|
+
React.createElement(AccordionContent, { id: `cve-content-${index}` },
|
|
20
20
|
React.createElement(CveItem, { cve: cve, isExpanded: isExpanded, index: index }))));
|
|
21
21
|
};
|
|
22
22
|
return (React.createElement(Accordion, { isBordered: true, displaySize: 'default', asDefinitionList: false, className: `${props.className ? props.className : ''}` }, map(slice(cveWorkflowRecommendation, 0, 4), renderAccordionItem)));
|
|
@@ -14,9 +14,9 @@ export const CveSidebar = () => {
|
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
16
16
|
return (React.createElement(React.Fragment, null,
|
|
17
|
-
React.createElement("div", { className: "card card-white card-support file-diag pf-
|
|
17
|
+
React.createElement("div", { className: "card card-white card-support file-diag pf-v6-u-mb-md" },
|
|
18
18
|
React.createElement("h3", { className: "card-heading popular-solutions green-card-heading card-header-bg" },
|
|
19
|
-
React.createElement("span", { className: "pf-
|
|
19
|
+
React.createElement("span", { className: "pf-v6-u-mr-sm" }, cveWorkflowRecommendation.length > 1 ? (React.createElement(Trans, null, "Handpicked for these CVEs")) : (React.createElement(Trans, null, "Handpicked for this CVE"))),
|
|
20
20
|
React.createElement(Badge, { isRead: true }, size(cveWorkflowRecommendation))),
|
|
21
21
|
React.createElement("div", { className: "card-body" },
|
|
22
22
|
React.createElement(CvePanel, null)))));
|
|
@@ -72,14 +72,14 @@ export default function IdeaInformation() {
|
|
|
72
72
|
};
|
|
73
73
|
return (React.createElement(React.Fragment, null,
|
|
74
74
|
React.createElement(LoadingIndicator, { show: isMetadataLoading(), size: "lg" }),
|
|
75
|
-
React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "pf-
|
|
76
|
-
React.createElement(AlertMessage, { show: !canManageCase(loggedInUserJwtToken), variant: AlertType.DANGER, className: "pf-
|
|
75
|
+
React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "pf-v6-u-mb-md", title: t("Sorry, we're having a problem gathering your information."), show: isMetadataLoadingError(), isInline: true }),
|
|
76
|
+
React.createElement(AlertMessage, { show: !canManageCase(loggedInUserJwtToken), variant: AlertType.DANGER, className: "pf-v6-u-mb-md", isInline: true },
|
|
77
77
|
React.createElement(Trans, { i18nKey: "i18ManageCaseContactCustomerService" },
|
|
78
78
|
"You need additional access to manage cases.\u00A0 Please contact",
|
|
79
79
|
' ',
|
|
80
80
|
React.createElement("a", { href: "/support/contact/customerService" }, "Customer Service"),
|
|
81
81
|
" for assistance.")),
|
|
82
|
-
React.createElement(AlertMessage, { show: hasInvalidEntitlements, variant: AlertType.DANGER, className: "pf-
|
|
82
|
+
React.createElement(AlertMessage, { show: hasInvalidEntitlements, variant: AlertType.DANGER, className: "pf-v6-u-mb-md", isInline: true },
|
|
83
83
|
React.createElement(Trans, { i18nKey: "i18ValidEntitlementContactCustomerService" },
|
|
84
84
|
"You need a valid entitlement to create a case.\u00A0 Please contact",
|
|
85
85
|
' ',
|
|
@@ -93,15 +93,15 @@ export default function IdeaInformation() {
|
|
|
93
93
|
React.createElement(KtQuestions, { onlyShowKT4: true }),
|
|
94
94
|
React.createElement(SupportLevel, null),
|
|
95
95
|
React.createElement(Grid, { hasGutter: true },
|
|
96
|
-
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-
|
|
96
|
+
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v6-u-mb-xl" },
|
|
97
97
|
React.createElement(Severity, { showSeverityInfoIcon: true, onSeverityChange: onSeverityChange })),
|
|
98
|
-
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-
|
|
98
|
+
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v6-u-mb-xl" },
|
|
99
99
|
React.createElement(ContactPhoneNumber, null))),
|
|
100
100
|
React.createElement(ContactPhoneNumberAlert, null),
|
|
101
101
|
React.createElement(Grid, { hasGutter: true },
|
|
102
|
-
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-
|
|
102
|
+
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v6-u-mb-xs" },
|
|
103
103
|
React.createElement(CaseLanguageSelector, { isManageStep: true })),
|
|
104
|
-
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-
|
|
104
|
+
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v6-u-mb-xs" },
|
|
105
105
|
React.createElement(CaseGroup, { init: true }))),
|
|
106
106
|
React.createElement(CaseContactSelector, null),
|
|
107
107
|
React.createElement(RHAssociatesSelector, null),
|
|
@@ -97,8 +97,8 @@ function KtQuestions(props) {
|
|
|
97
97
|
(timeFramesAndUrgency && (timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length) > KT4_QUESTION_MAX_LIMIT)
|
|
98
98
|
? 'error'
|
|
99
99
|
: 'default', "aria-invalid": timeFramesAndUrgency && (timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length) > KT4_QUESTION_MAX_LIMIT ? 'true' : 'false', id: "ktQ4-timeFramesAndUrgency", value: timeFramesAndUrgency, onChange: (e, value) => onKtQ4Change(value, e), "aria-required": isKT4Required, "data-tracking-id": "get-support-ktQ4-timeFramesAndUrgency", placeholder: t('Describe the user or financial impact. Tell us about any legal, national, or medical urgency.'), isRequired: isKT4Required, resizeOrientation: "vertical", rows: 5 }),
|
|
100
|
-
React.createElement("p", { className: "form-instructions pf-
|
|
101
|
-
React.createElement(Progress, { value: timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length, min: 0, max: KT4_QUESTION_MAX_LIMIT, size: ProgressSize.sm, label: `${timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length} / ${KT4_QUESTION_MAX_LIMIT}`, valueText: `${timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length} / ${KT4_QUESTION_MAX_LIMIT}`, measureLocation: ProgressMeasureLocation.top, "aria-label": `Progress - ${timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length} / ${KT4_QUESTION_MAX_LIMIT}`, variant: getVariantQ4(), title: ' ', className: `pf-
|
|
100
|
+
React.createElement("p", { className: "form-instructions pf-v6-u-danger-color-100", "data-tracking-id": "large-4k-warning-ktQ4-environment" }, `${(timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length) > KT4_QUESTION_MAX_LIMIT ? KT4_QUESTION_ERROR_MESSAGE : ''}`),
|
|
101
|
+
React.createElement(Progress, { value: timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length, min: 0, max: KT4_QUESTION_MAX_LIMIT, size: ProgressSize.sm, label: `${timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length} / ${KT4_QUESTION_MAX_LIMIT}`, valueText: `${timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length} / ${KT4_QUESTION_MAX_LIMIT}`, measureLocation: ProgressMeasureLocation.top, "aria-label": `Progress - ${timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length} / ${KT4_QUESTION_MAX_LIMIT}`, variant: getVariantQ4(), title: ' ', className: `pf-v6-u-mt-md kt-progress-bar`, id: "summary-progress-bar" })),
|
|
102
102
|
!props.onlyShowKT4 && (React.createElement(React.Fragment, null,
|
|
103
103
|
React.createElement(InlineEdit, { labelProps: { htmlFor: 'ktQ2-environment' }, labelContent: React.createElement(React.Fragment, null,
|
|
104
104
|
t(KtQuestionConstant.environment),
|
|
@@ -107,8 +107,8 @@ function KtQuestions(props) {
|
|
|
107
107
|
React.createElement(TextArea, { id: "ktQ2-environment", validated: environment && (environment === null || environment === void 0 ? void 0 : environment.length) > CASE_DEATILS_ENVIRONMENT_LIMIT
|
|
108
108
|
? 'error'
|
|
109
109
|
: 'default', value: environment, onChange: (e, value) => onKtQ2Change(value, e), "aria-required": isKT2Required, isRequired: isKT2Required, "data-tracking-id": "get-support-ktQ2-environment", "aria-invalid": environment && (environment === null || environment === void 0 ? void 0 : environment.length) > CASE_DEATILS_ENVIRONMENT_LIMIT ? 'true' : 'false', resizeOrientation: "vertical", placeholder: t('Please provide details about the location, device, software version, etc. where you encounter this issue'), rows: 5 }),
|
|
110
|
-
React.createElement("p", { className: "form-instructions pf-
|
|
111
|
-
React.createElement(Progress, { value: environment === null || environment === void 0 ? void 0 : environment.length, min: 0, max: CASE_DEATILS_ENVIRONMENT_LIMIT, size: ProgressSize.sm, label: `${environment === null || environment === void 0 ? void 0 : environment.length} / ${CASE_DEATILS_ENVIRONMENT_LIMIT}`, valueText: `${environment === null || environment === void 0 ? void 0 : environment.length} / ${CASE_DEATILS_ENVIRONMENT_LIMIT}`, measureLocation: ProgressMeasureLocation.top, "aria-label": `Progress - ${environment === null || environment === void 0 ? void 0 : environment.length} / ${CASE_DEATILS_ENVIRONMENT_LIMIT}`, variant: getVariantQ2(), title: ' ', className: `pf-
|
|
110
|
+
React.createElement("p", { className: "form-instructions pf-v6-u-danger-color-100", "data-tracking-id": "large-4k-warning-ktQ2-environment" }, `${(environment === null || environment === void 0 ? void 0 : environment.length) > CASE_DEATILS_ENVIRONMENT_LIMIT ? KTQ2LengthError : ''}`),
|
|
111
|
+
React.createElement(Progress, { value: environment === null || environment === void 0 ? void 0 : environment.length, min: 0, max: CASE_DEATILS_ENVIRONMENT_LIMIT, size: ProgressSize.sm, label: `${environment === null || environment === void 0 ? void 0 : environment.length} / ${CASE_DEATILS_ENVIRONMENT_LIMIT}`, valueText: `${environment === null || environment === void 0 ? void 0 : environment.length} / ${CASE_DEATILS_ENVIRONMENT_LIMIT}`, measureLocation: ProgressMeasureLocation.top, "aria-label": `Progress - ${environment === null || environment === void 0 ? void 0 : environment.length} / ${CASE_DEATILS_ENVIRONMENT_LIMIT}`, variant: getVariantQ2(), title: ' ', className: `pf-v6-u-mt-md kt-progress-bar`, id: "summary-progress-bar" })),
|
|
112
112
|
React.createElement(InlineEdit, { labelProps: { htmlFor: 'ktQ3-periodicityOfIssue' }, labelContent: React.createElement(React.Fragment, null,
|
|
113
113
|
t(KtQuestionConstant.periodicityOfIssue),
|
|
114
114
|
' ',
|
|
@@ -118,8 +118,8 @@ function KtQuestions(props) {
|
|
|
118
118
|
: 'default', value: periodicityOfIssue, onChange: (e, value) => onKtQ3Change(value, e), "aria-required": isKT3Required, isRequired: isKT3Required, "data-tracking-id": "get-support-ktQ3-periodicityOfIssue", "aria-invalid": periodicityOfIssue && (periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length) > CASE_DEATILS_PERIODICITYOFISSUE_LIMIT
|
|
119
119
|
? 'true'
|
|
120
120
|
: 'false', resizeOrientation: "vertical", placeholder: t('Describe when and how often the problem occurs, e.g., daily, after specific actions, at particular times of day, etc.'), rows: 5 }),
|
|
121
|
-
React.createElement("p", { className: "form-instructions pf-
|
|
122
|
-
React.createElement(Progress, { value: periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length, min: 0, max: KTQUESTION_MAX_LIMIT, size: ProgressSize.sm, label: `${periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length} / ${KTQUESTION_MAX_LIMIT}`, valueText: `${periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length} / ${KTQUESTION_MAX_LIMIT}`, measureLocation: ProgressMeasureLocation.top, "aria-label": `Progress - ${periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length} / ${KTQUESTION_MAX_LIMIT}`, variant: getVariantQ3(), title: ' ', className: `pf-
|
|
121
|
+
React.createElement("p", { className: "form-instructions pf-v6-u-danger-color-100", "data-tracking-id": "large-4k-warning-ktQ3-environment" }, `${(periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length) > CASE_DEATILS_PERIODICITYOFISSUE_LIMIT ? KTQ3LengthError : ''}`),
|
|
122
|
+
React.createElement(Progress, { value: periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length, min: 0, max: KTQUESTION_MAX_LIMIT, size: ProgressSize.sm, label: `${periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length} / ${KTQUESTION_MAX_LIMIT}`, valueText: `${periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length} / ${KTQUESTION_MAX_LIMIT}`, measureLocation: ProgressMeasureLocation.top, "aria-label": `Progress - ${periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length} / ${KTQUESTION_MAX_LIMIT}`, variant: getVariantQ3(), title: ' ', className: `pf-v6-u-mt-md kt-progress-bar`, id: "summary-progress-bar" }))))));
|
|
123
123
|
}
|
|
124
124
|
KtQuestions.defaultProps = defaultProps;
|
|
125
125
|
export default KtQuestions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SupportTypeSelectorPage.d.ts","sourceRoot":"","sources":["../../../../src/components/OpenCase/SupportTypeSelectorPage.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAiB/D,MAAM,CAAC,OAAO,UAAU,uBAAuB,
|
|
1
|
+
{"version":3,"file":"SupportTypeSelectorPage.d.ts","sourceRoot":"","sources":["../../../../src/components/OpenCase/SupportTypeSelectorPage.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAiB/D,MAAM,CAAC,OAAO,UAAU,uBAAuB,sBAiM9C"}
|
|
@@ -4,14 +4,13 @@ import { fetchCaseTypes, useGlobalDispatchContext, useGlobalStateContext } from
|
|
|
4
4
|
import { haventLoadedMetadata, NewCaseTypes, PreviousCaseTypes } from '@rh-support/utils';
|
|
5
5
|
import isEqual from 'lodash/isEqual';
|
|
6
6
|
import React, { useContext, useEffect, useState } from 'react';
|
|
7
|
-
import { Trans
|
|
7
|
+
import { Trans } from 'react-i18next';
|
|
8
8
|
import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
|
|
9
9
|
import { RouteContext } from '../../context/RouteContext';
|
|
10
10
|
import { getUpdatedDescription } from '../../reducers/CaseHelpers';
|
|
11
11
|
import { setCaseDetails } from '../../reducers/CaseReducer';
|
|
12
12
|
import { BugIcon, CertificationIcon, CustomerServiceIcon, DocumentationIcon, GearIcon, IdeaIcon, RcaIcon, } from './SupportTypeIcons';
|
|
13
13
|
export default function SupportTypeSelectorPage() {
|
|
14
|
-
const { t } = useTranslation();
|
|
15
14
|
const { globalMetadataState: { allCaseTypes, loggedInUsersAccount }, } = useGlobalStateContext();
|
|
16
15
|
const globalDispatch = useGlobalDispatchContext();
|
|
17
16
|
const [selectedSupportType, setSelectedSupportType] = useState('');
|
|
@@ -32,12 +31,6 @@ export default function SupportTypeSelectorPage() {
|
|
|
32
31
|
}
|
|
33
32
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
34
33
|
}, []);
|
|
35
|
-
// To handle support type selection change
|
|
36
|
-
const onChange = (labelledById, _event) => {
|
|
37
|
-
const newSelected = labelledById === selectedSupportType ? null : labelledById;
|
|
38
|
-
setSelectedSupportType(newSelected);
|
|
39
|
-
setCaseDetails(caseDispatch, { caseType: newSelected });
|
|
40
|
-
};
|
|
41
34
|
// To handle enter and key down events for the support type card
|
|
42
35
|
const onKeyDown = (event) => {
|
|
43
36
|
if (event.target !== event.currentTarget) {
|
|
@@ -138,15 +131,15 @@ export default function SupportTypeSelectorPage() {
|
|
|
138
131
|
React.createElement(Trans, null, "What can we help you with?"),
|
|
139
132
|
React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
|
|
140
133
|
(allCaseTypes.isFetching || (isFetchingSelectedAccountDetails && haventLoadedMetadata(allCaseTypes))) && (React.createElement(LoadingIndicator, { size: "lg", show: true })),
|
|
141
|
-
React.createElement(Gallery, { hasGutter: true, className: "pf-
|
|
142
|
-
React.createElement(Card, { id: supportTypesArrayValues.oldSupportType, key: supportTypesArrayValues.oldSupportType, className: `support-types-card${isNextBtnClickedToShowValidationError && !caseType ? ' support-types-invalid' : ''}`, isSelectable: true,
|
|
134
|
+
React.createElement(Gallery, { hasGutter: true, className: "pf-v6-u-mt-sm" }, SupportTypesArray.map((supportTypesArrayValues) => (React.createElement(GalleryItem, { key: supportTypesArrayValues.id },
|
|
135
|
+
React.createElement(Card, { id: supportTypesArrayValues.oldSupportType, key: supportTypesArrayValues.oldSupportType, className: `support-types-card${isNextBtnClickedToShowValidationError && !caseType ? ' support-types-invalid' : ''}`, isSelectable: true, onKeyDown: onKeyDown, onClick: onSupportTypeClick, isSelected: !!caseType && supportTypesArrayValues.oldSupportType === caseType, isFullHeight: true, "data-tracking-id": supportTypesArrayValues.dataTrackingID, tabIndex: 0 },
|
|
143
136
|
React.createElement(CardBody, null, supportTypesArrayValues.icon ? (React.createElement(Split, null,
|
|
144
|
-
React.createElement(SplitItem, { className: "pf-
|
|
137
|
+
React.createElement(SplitItem, { className: "pf-v6-u-pr-lg" },
|
|
145
138
|
React.createElement(Bullseye, null, supportTypesArrayValues.icon && supportTypesArrayValues.icon)),
|
|
146
139
|
React.createElement(SplitItem, { isFilled: true },
|
|
147
|
-
React.createElement("header", { className: "pf-
|
|
140
|
+
React.createElement("header", { className: "pf-v6-u-font-family-redhatVF-heading-sans-serif" },
|
|
148
141
|
React.createElement(Trans, null, supportTypesArrayValues.supportTypeHeading)),
|
|
149
142
|
React.createElement(Trans, null, supportTypesArrayValues.supportTypeDescription)))) : (React.createElement(Bullseye, null,
|
|
150
|
-
React.createElement("header", { className: "pf-
|
|
143
|
+
React.createElement("header", { className: "pf-v6-u-font-family-redhatVF-heading-sans-serif" },
|
|
151
144
|
React.createElement(Trans, null, supportTypesArrayValues.supportTypeHeading))))))))))));
|
|
152
145
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Modal, ModalVariant } from '@patternfly/react-core';
|
|
1
|
+
import { Modal, ModalFooter, 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,14 @@ 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", title: t('Suggested fixes'),
|
|
118
|
-
|
|
119
|
-
React.createElement(Trans, null, "Cancel")),
|
|
120
|
-
] },
|
|
117
|
+
props.loadTCOnChange && !topContent.isFetching && topContent.data.length !== 0 && (React.createElement(Modal, { className: "feedback-modal", title: t('Suggested fixes'), "aria-describedby": "Feedback Form", isOpen: isModalOpen, variant: ModalVariant.large, onClose: toggleTCModal },
|
|
118
|
+
React.createElement("p", null, t('There are new updates to suggested fixes after changing your product.')),
|
|
121
119
|
React.createElement("span", null,
|
|
122
120
|
React.createElement(Trans, null, "Here are some common suggestions:")),
|
|
123
|
-
React.createElement(Suggestions, { showTitleDescription: false, showMax: 6 })
|
|
121
|
+
React.createElement(Suggestions, { showTitleDescription: false, showMax: 6 }),
|
|
122
|
+
React.createElement(ModalFooter, null,
|
|
123
|
+
React.createElement("button", { key: "cancel", onClick: toggleTCModal, className: "btn btn-app btn-primary", type: "button" },
|
|
124
|
+
React.createElement(Trans, null, "Cancel")))))));
|
|
124
125
|
});
|
|
125
126
|
AllProductsSelector.defaultProps = defaultProps;
|
|
126
127
|
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;AAKvE,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,sBAsMvD,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -1,81 +1,108 @@
|
|
|
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
|
-
const isProductSupportedForCustomer = (productName, productResults) => {
|
|
10
|
-
const foundItem = productResults.filter((item) => item.name === productName)[0];
|
|
11
|
-
return foundItem ? foundItem.supportedForCustomer : false;
|
|
12
|
-
};
|
|
13
10
|
export const NewProductDropdownSelector = (props) => {
|
|
14
11
|
const { t } = useTranslation();
|
|
15
12
|
const [isOpen, setIsOpen] = useState(false);
|
|
16
13
|
const [showValidationLocal, setShowValidationLocal] = useState(props.isNextBtnClickedToShowValidationError);
|
|
17
|
-
const [isSelectedProductSupportedForCustomer
|
|
14
|
+
const [isSelectedProductSupportedForCustomer] = useState(true);
|
|
15
|
+
const [filteredProducts, setFilteredProducts] = useState(props.products);
|
|
16
|
+
const [shouldFilter, setShouldFilter] = useState(false);
|
|
17
|
+
const textInputRef = useRef();
|
|
18
18
|
const { product } = useCaseSelector((state) => ({
|
|
19
19
|
product: state.caseDetails.product,
|
|
20
20
|
}), isEqual);
|
|
21
|
+
const [inputValue, setInputValue] = useState('');
|
|
21
22
|
const { globalMetadataState: { allProducts }, } = useContext(GlobalMetadataStateContext);
|
|
22
23
|
useEffect(() => {
|
|
23
24
|
setShowValidationLocal(props.isNextBtnClickedToShowValidationError);
|
|
24
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
25
25
|
}, [props.isNextBtnClickedToShowValidationError]);
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
.
|
|
37
|
-
|
|
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();
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
if (product && product !== inputValue) {
|
|
28
|
+
setInputValue(product);
|
|
29
|
+
}
|
|
30
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
31
|
+
}, [product]);
|
|
32
|
+
// Update filtered products whenever input changes
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
const productsToFilter = props.isCaseCreate ? props.products : allProducts.data.productsResult;
|
|
35
|
+
if (!isEmpty(inputValue === null || inputValue === void 0 ? void 0 : inputValue.trim())) {
|
|
36
|
+
const filtered = productsToFilter.filter((p) => { var _a; return (_a = p.name) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(inputValue.toLowerCase()); });
|
|
37
|
+
setFilteredProducts(filtered);
|
|
50
38
|
}
|
|
51
39
|
else {
|
|
52
|
-
|
|
53
|
-
let filteredProducts = props.products.filter((product) => { var _a; return (_a = product.name) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(textInput.toLowerCase()); });
|
|
54
|
-
filteredProducts.forEach((product, index) => {
|
|
55
|
-
let selectProductItem = createOption(product, index, 'product');
|
|
56
|
-
finalFilteredProducts.push(selectProductItem);
|
|
57
|
-
});
|
|
58
|
-
return finalFilteredProducts;
|
|
40
|
+
setFilteredProducts(productsToFilter);
|
|
59
41
|
}
|
|
42
|
+
}, [inputValue, props.products, props.isCaseCreate, allProducts.data.productsResult]);
|
|
43
|
+
const onToggleClick = () => {
|
|
44
|
+
var _a;
|
|
45
|
+
setIsOpen(!isOpen);
|
|
46
|
+
(_a = textInputRef === null || textInputRef === void 0 ? void 0 : textInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
60
47
|
};
|
|
61
|
-
const onSelect = (
|
|
62
|
-
if (isEqual(selection,
|
|
63
|
-
props.onProductChange('');
|
|
64
|
-
|
|
65
|
-
|
|
48
|
+
const onSelect = (selection) => {
|
|
49
|
+
if (isEqual(selection.name, inputValue)) {
|
|
50
|
+
props.onProductChange('');
|
|
51
|
+
setInputValue('');
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
props.onProductChange(selection.name);
|
|
55
|
+
setInputValue(selection.name);
|
|
66
56
|
}
|
|
67
|
-
props.onProductChange(selection);
|
|
68
57
|
setIsOpen(false);
|
|
69
58
|
};
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
59
|
+
const onTextInputChange = (_event, value) => {
|
|
60
|
+
setInputValue(value);
|
|
61
|
+
setShouldFilter(value.trim().length > 0);
|
|
62
|
+
if (value === '') {
|
|
63
|
+
props.onProductChange('');
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
const onClear = () => {
|
|
67
|
+
setInputValue('');
|
|
68
|
+
props.onProductChange('');
|
|
69
|
+
setShouldFilter(false);
|
|
70
|
+
};
|
|
71
|
+
const { onInputKeyDown, focusedItemIndex } = useSelectKeyboardNavigator({
|
|
72
|
+
list: filteredProducts,
|
|
73
|
+
isOpen,
|
|
74
|
+
setIsOpen,
|
|
75
|
+
onSelect: (item) => {
|
|
76
|
+
props.onProductChange(item.name);
|
|
77
|
+
setInputValue(item.name);
|
|
78
|
+
setIsOpen(false);
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
const createProductGroup = (products, label, type, shouldFilter = false) => {
|
|
82
|
+
const productsToShow = shouldFilter ? filteredProducts : products;
|
|
83
|
+
return productsToShow.length > 0 ? (React.createElement(React.Fragment, null,
|
|
84
|
+
!shouldFilter && (React.createElement(SelectGroup, { label: label, key: type, value: '', className: "product-selector-group", children: '' })),
|
|
85
|
+
productsToShow.map((prod, index) => {
|
|
86
|
+
var _a;
|
|
87
|
+
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));
|
|
88
|
+
}))) : (React.createElement(SelectOption, { key: '', value: '', className: "pf-v6-c-select__menu-wrapper", isDisabled: true }, "No Results Found"));
|
|
89
|
+
};
|
|
90
|
+
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 },
|
|
91
|
+
React.createElement(TextInputGroup, { isPlain: true },
|
|
92
|
+
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" }),
|
|
93
|
+
props.isLoading ? (React.createElement(TextInputGroupUtilities, null,
|
|
94
|
+
React.createElement(Spinner, { size: "md" }))) : (React.createElement(TextInputGroupUtilities, Object.assign({}, (!inputValue ? { style: { display: 'none' } } : {})),
|
|
95
|
+
React.createElement(Button, { icon: React.createElement(TimesIcon, { "aria-hidden": true }), variant: "plain", onClick: onClear, "aria-label": "Clear input value" }))))));
|
|
96
|
+
const topProducts = allProducts.data.topProducts.filter((p) => p.isEntitledProduct).slice(0, 3);
|
|
75
97
|
return (React.createElement("div", null,
|
|
76
|
-
React.createElement(Select, {
|
|
77
|
-
|
|
98
|
+
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" },
|
|
99
|
+
React.createElement(SelectList, { id: "product-selector-listbox" },
|
|
100
|
+
!shouldFilter && createProductGroup(topProducts, t('Top products'), 'topProduct'),
|
|
101
|
+
!shouldFilter && React.createElement(Divider, null),
|
|
102
|
+
createProductGroup(props.isCaseCreate ? props.products : allProducts.data.productsResult, t('All products'), 'product', shouldFilter))),
|
|
103
|
+
!props.isLoading && !isSelectedProductSupportedForCustomer && (React.createElement("div", { className: "pf-v6-u-ml-xs pf-v6-u-mt-sm form-instructions" },
|
|
78
104
|
React.createElement(Trans, null, "Red Hat must confirm your subscription status before providing support."),
|
|
79
105
|
React.createElement("br", null),
|
|
80
106
|
React.createElement(Trans, null, "We'll contact you if we have any questions.")))));
|
|
81
107
|
};
|
|
108
|
+
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,qBA6MzC"}
|
|
@@ -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,9 +131,10 @@ 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-m-sm" },
|
|
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
140
|
return (React.createElement("li", { className: "result", key: doc.id },
|
|
@@ -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,qBAqFxD"}
|