@rh-support/troubleshoot 2.2.90-beta.6 → 2.2.90-beta.8
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/CaseEditView/Tabs/CaseDetails/Summary.js +3 -3
- package/lib/esm/components/CaseInformation/OpenCaseIssue.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/OpenCaseIssue.js +5 -3
- package/lib/esm/components/Recommendations/RecommendationInfoBox.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/RecommendationInfoBox.js +5 -4
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +1 -1
- package/lib/esm/css/app.css +0 -5
- package/package.json +6 -6
|
@@ -57,11 +57,11 @@ function Summary(props) {
|
|
|
57
57
|
try {
|
|
58
58
|
yield updateCaseDetails(caseDispatch, caseNumber, caseDetails);
|
|
59
59
|
setIsSummaryUpdating(false);
|
|
60
|
-
ToastNotification.addSuccessMessage(t(`
|
|
60
|
+
ToastNotification.addSuccessMessage(t(`Problem statement has been successfully updated`));
|
|
61
61
|
}
|
|
62
62
|
catch (e) {
|
|
63
63
|
setIsSummaryUpdating(false);
|
|
64
|
-
caseUpdateError.showError(e, t(`
|
|
64
|
+
caseUpdateError.showError(e, t(`Problem statement failed to updated`));
|
|
65
65
|
throw e;
|
|
66
66
|
}
|
|
67
67
|
});
|
|
@@ -124,7 +124,7 @@ function Summary(props) {
|
|
|
124
124
|
});
|
|
125
125
|
return (React.createElement(React.Fragment, null,
|
|
126
126
|
React.createElement(NewInlineEdit, { labelProps: { htmlFor: 'case-details-summary' }, labelContent: React.createElement(React.Fragment, null,
|
|
127
|
-
React.createElement(Trans, null, "
|
|
127
|
+
React.createElement(Trans, null, "Problem statement"),
|
|
128
128
|
React.createElement(ValueChangedIcon, { afterLocalChange: afterLocalChange, isLocalChange: localSummaryChange, value: summary, getTooltipContent: getSummaryChangedTT }),
|
|
129
129
|
React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")), allowInlineEdit: props.inlineEditable, content: summary ? summary : t('No summary to display.'), saveDisabled: saveDisabled, hideLabel: props.hideLabel, hideSaveCancel: props.hideSaveCancel, charCount: (summaryState === null || summaryState === void 0 ? void 0 : summaryState.length) || 0, charTotal: SUMMARY_LENGTH_LIMIT, cancelToggleState: isCancelClicked, saveToggleState: isSaveClicked, isExportingPDF: isExportingPDF },
|
|
130
130
|
React.createElement(TextInputGroup, null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenCaseIssue.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/OpenCaseIssue.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAQ/D,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;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AASD,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"OpenCaseIssue.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/OpenCaseIssue.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAQ/D,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;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AASD,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,qBAuHnC;kBAvHQ,aAAa;;;AA0HtB,eAAe,aAAa,CAAC"}
|
|
@@ -61,15 +61,17 @@ function OpenCaseIssue(props) {
|
|
|
61
61
|
React.createElement(InlineEdit, { labelProps: {
|
|
62
62
|
htmlFor: isIdea() ? 'get-support-title' : 'get-support-summary',
|
|
63
63
|
}, labelContent: React.createElement(React.Fragment, null,
|
|
64
|
-
React.createElement(Trans, null, isIdea() ? 'Title' : '
|
|
64
|
+
React.createElement(Trans, null, isIdea() ? 'Title' : 'Problem statement'),
|
|
65
65
|
' ',
|
|
66
66
|
!!props.required && (React.createElement("span", { className: "form-required", "aria-hidden": true }, "*"))), allowInlineEdit: props.inlineEditable, hideSaveCancel: !!props.hideSaveCancel, initialIsEditing: !!props.initialIsEditing, saveOnBlur: true, collapseOnBlur: !!props.collapseOnBlur && !isSummaryEmpty, content: summary },
|
|
67
67
|
React.createElement("textarea", { id: isIdea() ? 'get-support-title' : 'get-support-summary', className: `form-control${getIsSummaryInvalid() ? ' form-invalid' : ''}`, "aria-invalid": getIsSummaryInvalid(), "aria-required": !!props.required, required: !!props.required, name: isIdea() ? 'get-support-title' : 'get-support-summary', placeholder: isIdea()
|
|
68
68
|
? t('i18nkeySummarizeIdea', "Summarize what you're experiencing today")
|
|
69
|
-
: t('i18nkeySummarizeExperience', `Describe your problem in detail. Include specific steps already taken and error messages. (Limit: ${SUMMARY_LENGTH_LIMIT} characters)`), value: summary, onChange: onSummaryChange, onBlur: onSummaryBlur, autoFocus: !!props.autoFocus, "data-tracking-id": isIdea() ? 'get-support-title' : 'get-support-summary' }),
|
|
69
|
+
: t('i18nkeySummarizeExperience', `Describe your problem in detail. Include specific steps already taken and error messages. (Limit: ${SUMMARY_LENGTH_LIMIT} characters)`), value: summary, onChange: onSummaryChange, onBlur: onSummaryBlur, autoFocus: !!props.autoFocus, "data-tracking-id": isIdea() ? 'get-support-title' : 'get-support-summary', rows: 3 }),
|
|
70
70
|
React.createElement(Progress, { value: summary === null || summary === void 0 ? void 0 : summary.length, min: 0, max: SUMMARY_LENGTH_LIMIT, size: ProgressSize.sm, label: `${summary === null || summary === void 0 ? void 0 : summary.length} / ${SUMMARY_LENGTH_LIMIT}`, valueText: `${summary === null || summary === void 0 ? void 0 : summary.length} / ${SUMMARY_LENGTH_LIMIT}`, measureLocation: ProgressMeasureLocation.top, "aria-label": `Progress - ${summary === null || summary === void 0 ? void 0 : summary.length} / ${SUMMARY_LENGTH_LIMIT}`, variant: getVariant(), title: ' ', className: `pf-v5-u-mt-md ${!isNextBtnClickedToShowValidationError && isEmpty(summary) ? 'gray' : ''}`, id: "summary-progress-bar" })),
|
|
71
71
|
hasLargeSummary && (React.createElement("div", { className: "pull-top" },
|
|
72
|
-
React.createElement("p", { className: "form-instructions form-invalid" },
|
|
72
|
+
React.createElement("p", { className: "form-instructions form-invalid" }, isIdea()
|
|
73
|
+
? t(`The title cannot be more than ${SUMMARY_LENGTH_LIMIT} characters.`)
|
|
74
|
+
: t(`The problem statement cannot be more than ${SUMMARY_LENGTH_LIMIT} characters.`))))));
|
|
73
75
|
}
|
|
74
76
|
OpenCaseIssue.defaultProps = defaultProps;
|
|
75
77
|
export default OpenCaseIssue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecommendationInfoBox.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/RecommendationInfoBox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"RecommendationInfoBox.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/RecommendationInfoBox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,eAAO,MAAM,qBAAqB,yBAqDjC,CAAC"}
|
|
@@ -21,8 +21,9 @@ export const RecommendationInfoBox = () => {
|
|
|
21
21
|
React.createElement(Trans, null, "Specific problems"))),
|
|
22
22
|
React.createElement("span", { className: "pf-v5-u-color-100" },
|
|
23
23
|
React.createElement(Trans, null, "Examples:")),
|
|
24
|
-
React.createElement("
|
|
25
|
-
React.createElement(
|
|
26
|
-
|
|
27
|
-
React.createElement(
|
|
24
|
+
React.createElement(List, { className: "pf-v5-u-ml-lg", style: { listStyleType: 'disc' } },
|
|
25
|
+
React.createElement(ListItem, null,
|
|
26
|
+
React.createElement(Trans, null, "I'm unable to start the SSHD service and am receiving this error message, \u201CBad yes/no argument for ShowPatchLevel parameter.\u201D (125/255 characters)")),
|
|
27
|
+
React.createElement(ListItem, null,
|
|
28
|
+
React.createElement(Trans, null, "We see this error message: \u201Cfunction that is failing\u201D. (54/255 characters)"))))))));
|
|
28
29
|
};
|
|
@@ -38,7 +38,7 @@ function TroubleshootSection(props) {
|
|
|
38
38
|
React.createElement("span", { className: "pf-v5-u-font-family-heading pf-v5-u-ml-xl pf-v5-u-pr-xs" }, "Version"),
|
|
39
39
|
' ',
|
|
40
40
|
version),
|
|
41
|
-
React.createElement("div", { className: "pf-v5-u-font-family-heading" }, "
|
|
41
|
+
React.createElement("div", { className: "pf-v5-u-font-family-heading" }, "Problem statement"),
|
|
42
42
|
React.createElement("p", { className: "pf-v5-u-mb-xl" }, summary)),
|
|
43
43
|
!isCreatingCase && (React.createElement(OpenShiftClusterId, { className: "push-bottom", "data-tracking-id": "troubleshoot-section-openshift-cluster-id" })),
|
|
44
44
|
React.createElement(LoadingDots, { show: topContent.isFetching }),
|
package/lib/esm/css/app.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.90-beta.
|
|
3
|
+
"version": "2.2.90-beta.8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"@progress/kendo-licensing": "1.3.5",
|
|
62
62
|
"@progress/kendo-react-pdf": "^5.16.0",
|
|
63
63
|
"@redux-devtools/extension": "^3.3.0",
|
|
64
|
-
"@rh-support/components": "2.1.47-beta.
|
|
65
|
-
"@rh-support/react-context": "2.1.52-beta.
|
|
64
|
+
"@rh-support/components": "2.1.47-beta.2",
|
|
65
|
+
"@rh-support/react-context": "2.1.52-beta.2",
|
|
66
66
|
"@rh-support/types": "2.0.3",
|
|
67
|
-
"@rh-support/user-permissions": "2.1.34-beta.
|
|
68
|
-
"@rh-support/utils": "2.1.24-beta.
|
|
67
|
+
"@rh-support/user-permissions": "2.1.34-beta.2",
|
|
68
|
+
"@rh-support/utils": "2.1.24-beta.2",
|
|
69
69
|
"@types/react-redux": "^7.1.33",
|
|
70
70
|
"@types/redux": "^3.6.0",
|
|
71
71
|
"dompurify": "^2.2.6",
|
|
@@ -132,5 +132,5 @@
|
|
|
132
132
|
"defaults and supports es6-module",
|
|
133
133
|
"maintained node versions"
|
|
134
134
|
],
|
|
135
|
-
"gitHead": "
|
|
135
|
+
"gitHead": "541174a66743c6400e8a27aeed3d49268d917d51"
|
|
136
136
|
}
|