@rh-support/troubleshoot 2.0.5 → 2.0.6
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/Recommendations/AlertToastWrapper.js +4 -5
- package/lib/esm/components/Recommendations/CriticalSolutionsToast.d.ts.map +1 -1
- package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
- package/lib/esm/components/SubmitCase/SubmitCase.js +7 -4
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts.map +1 -1
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +2 -1
- package/lib/esm/scss/_main.scss +5 -4
- package/package.json +2 -2
|
@@ -19,12 +19,11 @@ const AlertToastWrapper = ({ submitCaseAndNavigate }) => {
|
|
|
19
19
|
const { caseType } = useCaseSelector((state) => ({
|
|
20
20
|
caseType: state.caseDetails.caseType,
|
|
21
21
|
}), isEqual);
|
|
22
|
+
const isNotAnIdea = caseType !== PreviousCaseTypes.FEATURE_ENHANCEMENT;
|
|
22
23
|
const { attachmentState } = useContext(AttachmentStateContext);
|
|
23
24
|
useEffect(() => {
|
|
24
25
|
const isEveryFileFinished = attachmentState.caseFiles.selectedLocalFiles.every((file) => isUploadedAndAnalyzed(file));
|
|
25
|
-
isEveryFileFinished &&
|
|
26
|
-
caseType !== PreviousCaseTypes.FEATURE_ENHANCEMENT &&
|
|
27
|
-
setIsCriticalSolutionsVisible(true);
|
|
26
|
+
isEveryFileFinished && isNotAnIdea && setIsCriticalSolutionsVisible(true);
|
|
28
27
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
29
28
|
}, [attachmentState.caseFiles.selectedLocalFiles]);
|
|
30
29
|
const hideClusterIdReportModal = hideSideBarClusterIdRuleToast.includes(activeSection);
|
|
@@ -32,8 +31,8 @@ const AlertToastWrapper = ({ submitCaseAndNavigate }) => {
|
|
|
32
31
|
setIsCriticalSolutionsVisible(false);
|
|
33
32
|
};
|
|
34
33
|
return (React.createElement(AlertGroup, { isToast: true },
|
|
35
|
-
isCriticalSolutionsVisible && React.createElement(CriticalSolutionsToast, { userClosed: userClosed }),
|
|
36
|
-
!hideClusterIdReportModal && React.createElement(ClusterRecommendationToast, null),
|
|
34
|
+
isCriticalSolutionsVisible && isNotAnIdea && React.createElement(CriticalSolutionsToast, { userClosed: userClosed }),
|
|
35
|
+
!hideClusterIdReportModal && isNotAnIdea && React.createElement(ClusterRecommendationToast, null),
|
|
37
36
|
React.createElement(ResubmitToast, { submitCaseAndNavigate: submitCaseAndNavigate })));
|
|
38
37
|
};
|
|
39
38
|
export default AlertToastWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CriticalSolutionsToast.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/CriticalSolutionsToast.tsx"],"names":[],"mappings":"AAGA,OAAc,EAAE,EAAE,EAAmC,MAAM,OAAO,CAAC;AAMnE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,QAAA,MAAM,sBAAsB,EAAE,EAAE,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"CriticalSolutionsToast.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/CriticalSolutionsToast.tsx"],"names":[],"mappings":"AAGA,OAAc,EAAE,EAAE,EAAmC,MAAM,OAAO,CAAC;AAMnE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,QAAA,MAAM,sBAAsB,EAAE,EAAE,CAAC,MAAM,CA0DtC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AA4BA,MAAM,CAAC,OAAO,UAAU,UAAU,
|
|
1
|
+
{"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AA4BA,MAAM,CAAC,OAAO,UAAU,UAAU,gBA4RjC"}
|
|
@@ -81,6 +81,7 @@ export default function SubmitCase() {
|
|
|
81
81
|
const viewDisabled = isEmpty(attachmentState.caseFiles.selectedLocalFiles)
|
|
82
82
|
? false
|
|
83
83
|
: attachmentState.caseFiles.selectedLocalFiles.every((localFile) => !isUploadedAndAnalyzed(localFile));
|
|
84
|
+
const isNotAnIdea = caseType !== PreviousCaseTypes.FEATURE_ENHANCEMENT;
|
|
84
85
|
return (React.createElement(React.Fragment, null,
|
|
85
86
|
React.createElement(AlertMessage, { className: "push-top", title: t('Failed to add user.'), variant: AlertType.DANGER, show: addNotifiedUserError }),
|
|
86
87
|
React.createElement(AlertMessage, { className: "push-top", variant: AlertType.DANGER, show: caseCreationError, title: t("Sorry, we're experiencing an error"), isInline: true },
|
|
@@ -139,8 +140,10 @@ export default function SubmitCase() {
|
|
|
139
140
|
(!isEmpty(topContent.data) || !rulesState.EARules.rules || !clusterRecommendations) &&
|
|
140
141
|
!isIdea && (React.createElement(Text, { className: "pf-u-mt-2xl pf-u-font-weight-light", component: TextVariants.h2 },
|
|
141
142
|
React.createElement(Trans, null, "Troubleshoot this case"))),
|
|
142
|
-
React.createElement(
|
|
143
|
-
React.createElement(
|
|
144
|
-
|
|
145
|
-
|
|
143
|
+
isNotAnIdea && (React.createElement(React.Fragment, null,
|
|
144
|
+
React.createElement("div", { className: isIdea ? 'pf-u-mt-lg' : '' },
|
|
145
|
+
React.createElement(InsightsResults, { isDisplayOnMain: true })),
|
|
146
|
+
React.createElement(ClusterRecommendations, { showClusterRecommendationsModal: false }))),
|
|
147
|
+
React.createElement("div", { className: "pf-u-mt-lg" }, isIdea ? (React.createElement(AsideResults, null)) : (!isEmpty(topContent.data) &&
|
|
148
|
+
isNotAnIdea && (React.createElement(Suggestions, { title: isIdea ? t('Search recommendations') : t('Product recommendations'), showTitleDescription: true, showMax: 6 })))))))));
|
|
146
149
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TroubleshootSection.d.ts","sourceRoot":"","sources":["../../../../src/components/TroubleshootSection/TroubleshootSection.tsx"],"names":[],"mappings":"AAiBA,UAAU,MAAM;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AASD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TroubleshootSection.d.ts","sourceRoot":"","sources":["../../../../src/components/TroubleshootSection/TroubleshootSection.tsx"],"names":[],"mappings":"AAiBA,UAAU,MAAM;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AASD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,eAyFzC;kBAzFQ,mBAAmB;;;AA4F5B,eAAe,mBAAmB,CAAC"}
|
|
@@ -35,6 +35,7 @@ function TroubleshootSection(props) {
|
|
|
35
35
|
const canShowTopProducts = isEmpty(product);
|
|
36
36
|
const canShowTopContent = !canShowTopProducts && ((_a = topContent === null || topContent === void 0 ? void 0 : topContent.data) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
37
37
|
const canAddAttachments = ability.can(resourceActions.PATCH, resources.CASE_CREATE, CaseListFields.ATTACHMENTS);
|
|
38
|
+
const isNotAnIdea = caseType !== PreviousCaseTypes.FEATURE_ENHANCEMENT;
|
|
38
39
|
return (React.createElement(React.Fragment, null,
|
|
39
40
|
!isCreatingCase && (React.createElement("section", { className: "push-bottom" },
|
|
40
41
|
React.createElement(OpenShiftClusterId, null))),
|
|
@@ -54,7 +55,7 @@ function TroubleshootSection(props) {
|
|
|
54
55
|
React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading suggestions') } }, canShowTopContent && !isEmpty(version) && React.createElement(Suggestions, null)),
|
|
55
56
|
!isCreatingCase && React.createElement(ClusterRecommendations, { className: "push-top" }))),
|
|
56
57
|
React.createElement("section", { className: "pf-u-mt-lg" },
|
|
57
|
-
React.createElement(InsightsResults, { isDisplayOnMain: true }),
|
|
58
|
+
isNotAnIdea && React.createElement(InsightsResults, { isDisplayOnMain: true }),
|
|
58
59
|
React.createElement("div", { className: "push-top" }, canAddAttachments ? (React.createElement(FileDiag, null)) : (React.createElement("div", { className: "card card-white card-support file-diag" },
|
|
59
60
|
React.createElement("h3", { className: "card-heading" }, isIdea || loggedInUsersAccount.data.secureSupport ? (React.createElement(Trans, null, "File uploader")) : (React.createElement(Trans, null, "Upload file to analyze"))),
|
|
60
61
|
React.createElement("div", { className: "card-body" },
|
package/lib/esm/scss/_main.scss
CHANGED
|
@@ -1781,12 +1781,13 @@ div.case-details-ref-number {
|
|
|
1781
1781
|
}
|
|
1782
1782
|
margin-bottom: 0 !important;
|
|
1783
1783
|
}
|
|
1784
|
-
|
|
1785
|
-
.case-link-disabled {
|
|
1784
|
+
div.submit-case-header-container > p.kicker.kicker-sm.pf-u-mb-sm > a.case-link-disabled {
|
|
1786
1785
|
pointer-events: none;
|
|
1787
|
-
a:link
|
|
1786
|
+
a:link {
|
|
1787
|
+
color: #151515 !important;
|
|
1788
|
+
}
|
|
1788
1789
|
a:visited {
|
|
1789
|
-
color:
|
|
1790
|
+
color: #151515 !important;
|
|
1790
1791
|
}
|
|
1791
1792
|
}
|
|
1792
1793
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -145,5 +145,5 @@
|
|
|
145
145
|
"not ie <= 11",
|
|
146
146
|
"not op_mini all"
|
|
147
147
|
],
|
|
148
|
-
"gitHead": "
|
|
148
|
+
"gitHead": "dd2c04fd2f86fb8034a17ce8a9d0503a0ead36f3"
|
|
149
149
|
}
|