@rh-support/troubleshoot 2.2.43 → 2.2.45
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/CaseInformation/Severity.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Severity.js +2 -1
- package/lib/esm/components/CaseManagement/Cep.js +13 -13
- package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.js +1 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +2 -2
- package/lib/esm/components/Recommendations/RulesModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/RulesModal.js +1 -0
- package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
- package/lib/esm/components/SubmitCase/SubmitCase.js +3 -3
- package/lib/esm/components/Suggestions/Suggestions.js +1 -1
- package/lib/esm/components/Suggestions/TopContent.d.ts.map +1 -1
- package/lib/esm/components/Suggestions/TopContent.js +39 -20
- package/lib/esm/scss/{_pf4-overrides.scss → _pf-overrides.scss} +27 -0
- package/lib/esm/scss/index.scss +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Severity.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/Severity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"Severity.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/Severity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAMvE,OAAO,EAAE,gBAAgB,EAAW,MAAM,0BAA0B,CAAC;AAyBrE,UAAU,MAAO,SAAQ,gBAAgB;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAChE,oBAAoB,EAAE,OAAO,CAAC;CACjC;AASD,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;CACxD;AAED,iBAAS,QAAQ,CAAC,KAAK,EAAE,MAAM,eA4R9B;kBA5RQ,QAAQ;;;AA8RjB,eAAe,QAAQ,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Icon, Popover, PopoverPosition, Tooltip, TooltipPosition } from '@patternfly/react-core';
|
|
2
|
+
import QuestionCircleIcon from '@patternfly/react-icons/dist/js/icons/question-circle-icon';
|
|
2
3
|
import WarningTriangleIcon from '@patternfly/react-icons/dist/js/icons/warning-triangle-icon';
|
|
3
4
|
import { Dropdown, ValueChangedIcon } from '@rh-support/components';
|
|
4
5
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
@@ -161,7 +162,7 @@ function Severity(props) {
|
|
|
161
162
|
' ',
|
|
162
163
|
React.createElement("a", { href: "/support/policy/severity", target: "_blank" },
|
|
163
164
|
React.createElement(Trans, null, "Red Hat Support Severity Level Definitions"))), closeBtnAriaLabel: "Close" },
|
|
164
|
-
React.createElement(
|
|
165
|
+
React.createElement(QuestionCircleIcon, { className: "pf-v5-u-ml-xs icon-size", "aria-label": t(`Support Severity Level info`) }))),
|
|
165
166
|
"\u00A0",
|
|
166
167
|
filteredSeverities.filter((s) => s.disabled).length !== 0 && (React.createElement(Tooltip, { position: TooltipPosition.top, content: React.createElement(Trans, null, "Only the enabled severity levels are supported for selected product and version.") },
|
|
167
168
|
React.createElement(Icon, { size: "sm" },
|
|
@@ -156,33 +156,33 @@ export function Cep(props) {
|
|
|
156
156
|
React.createElement(Trans, null, "If requested, Red Hat Support will use this information to initiate direct contact (i.e. phone, chat) with listed contact(s) in order to provide faster assistance. The primary method of communication will continue to be this support ticket.")),
|
|
157
157
|
React.createElement(Form, { className: "push-top-narrow" },
|
|
158
158
|
React.createElement(FormGroup, { label: t('Contact name'), isRequired: true, fieldId: "cep-contact-name" },
|
|
159
|
-
React.createElement(FormHelperText, null,
|
|
160
|
-
React.createElement(HelperText, null,
|
|
161
|
-
React.createElement(HelperTextItem, null,
|
|
162
|
-
React.createElement(Trans, null, "Provide main contact(s) troubleshooting the issue.")))),
|
|
163
159
|
React.createElement(TextInput, { type: "text", id: "cep-contact-name", isRequired: true, maxLength: 254, "aria-label": t('Contact name'), onChange: (_event, value) => onCepContactNameChange(value), validated: saveButtonIsClicked && isEmpty((_d = cepDetailsLocal.contactName) === null || _d === void 0 ? void 0 : _d.trim())
|
|
164
160
|
? ValidatedOptions.error
|
|
165
|
-
: ValidatedOptions.default })
|
|
166
|
-
React.createElement(FormGroup, { label: t('Availability/Working hours'), isRequired: true, fieldId: "cep-workingHours" },
|
|
161
|
+
: ValidatedOptions.default }),
|
|
167
162
|
React.createElement(FormHelperText, null,
|
|
168
163
|
React.createElement(HelperText, null,
|
|
169
164
|
React.createElement(HelperTextItem, null,
|
|
170
|
-
React.createElement(Trans, null, "
|
|
165
|
+
React.createElement(Trans, null, "Provide main contact(s) troubleshooting the issue."))))),
|
|
166
|
+
React.createElement(FormGroup, { label: t('Availability/Working hours'), isRequired: true, fieldId: "cep-workingHours" },
|
|
171
167
|
React.createElement(TextInput, { type: "text", id: "cep-workingHours", isRequired: true, maxLength: 254, "aria-label": t('Availability/Working hours'), onChange: (_event, value) => onCepWorkingHoursChange(value), validated: saveButtonIsClicked && isEmpty((_e = cepDetailsLocal.workingHours) === null || _e === void 0 ? void 0 : _e.trim())
|
|
172
168
|
? ValidatedOptions.error
|
|
173
|
-
: ValidatedOptions.default })
|
|
174
|
-
React.createElement(FormGroup, { label: t('Contact information'), isRequired: true, fieldId: "cep-contactInformation" },
|
|
169
|
+
: ValidatedOptions.default }),
|
|
175
170
|
React.createElement(FormHelperText, null,
|
|
176
171
|
React.createElement(HelperText, null,
|
|
177
172
|
React.createElement(HelperTextItem, null,
|
|
178
|
-
React.createElement(Trans, null, "
|
|
173
|
+
React.createElement(Trans, null, "Indicate working hours, time zone; specify if not available on certain dates (i.e. weekends, holidays)."))))),
|
|
174
|
+
React.createElement(FormGroup, { label: t('Contact information'), isRequired: true, fieldId: "cep-contactInformation" },
|
|
179
175
|
React.createElement(TextArea, { id: "cep-contactInformation", "aria-required": true, isRequired: true, maxLength: 2000, name: "cep-contactInformation", value: cepDetailsLocal.contactInformation, onChange: (_event, value) => onCepContactInformationsChange(value), "aria-label": "auto resizing text area example", autoResize: true, validated: saveButtonIsClicked && isEmpty((_f = cepDetailsLocal.contactInformation) === null || _f === void 0 ? void 0 : _f.trim())
|
|
180
176
|
? ValidatedOptions.error
|
|
181
|
-
: ValidatedOptions.default, resizeOrientation: "vertical" })
|
|
177
|
+
: ValidatedOptions.default, resizeOrientation: "vertical" }),
|
|
178
|
+
React.createElement(FormHelperText, null,
|
|
179
|
+
React.createElement(HelperText, null,
|
|
180
|
+
React.createElement(HelperTextItem, null,
|
|
181
|
+
React.createElement(Trans, null, "Please provide phone number, chat ID or email."))))),
|
|
182
182
|
React.createElement(FormGroup, { label: t('Notes'), fieldId: "cep-notes" },
|
|
183
|
+
React.createElement(TextArea, { id: "cep-notes", "aria-required": false, isRequired: false, maxLength: 2000, name: "cep-notes", value: cepDetailsLocal.notes, onChange: (_event, value) => onCepNotesChange(value), autoResize: true, resizeOrientation: "vertical" }),
|
|
183
184
|
React.createElement(FormHelperText, null,
|
|
184
185
|
React.createElement(HelperText, null,
|
|
185
186
|
React.createElement(HelperTextItem, null,
|
|
186
|
-
React.createElement(Trans, null, "Provide any pertinent information that Red Hat Support should be aware of that's not already captured in the issue statement or comments."))))
|
|
187
|
-
React.createElement(TextArea, { id: "cep-notes", "aria-required": false, isRequired: false, maxLength: 2000, name: "cep-notes", value: cepDetailsLocal.notes, onChange: (_event, value) => onCepNotesChange(value), autoResize: true, resizeOrientation: "vertical" }))))));
|
|
187
|
+
React.createElement(Trans, null, "Provide any pertinent information that Red Hat Support should be aware of that's not already captured in the issue statement or comments.")))))))));
|
|
188
188
|
}
|
|
@@ -98,7 +98,7 @@ const NoClusterIDReasonSelector = (props) => {
|
|
|
98
98
|
React.createElement("span", { className: `form-required ${isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-hidden": true },
|
|
99
99
|
' ',
|
|
100
100
|
"*")),
|
|
101
|
-
React.createElement(Select, { variant: SelectVariant.typeahead, typeAheadAriaLabel: t('Select an option or briefly describe your reason'), onToggle: (_event, isOpen) => onToggle(isOpen), onSelect: onSelect, selections: getSelectedItem(), isOpen: isOpen, placeholderText: t('Select an option or briefly describe your reason'), noValidate: props.isInValid, "aria-labelledby": titleId, "aria-invalid": props.isInValid, "aria-describedby": "validate-reason-helper", validated: validated, className:
|
|
101
|
+
React.createElement(Select, { variant: SelectVariant.typeahead, typeAheadAriaLabel: t('Select an option or briefly describe your reason'), onToggle: (_event, isOpen) => onToggle(isOpen), onSelect: onSelect, selections: getSelectedItem(), isOpen: isOpen, placeholderText: t('Select an option or briefly describe your reason'), noValidate: props.isInValid, "aria-labelledby": titleId, "aria-invalid": props.isInValid, "aria-describedby": "validate-reason-helper", validated: validated, className: `${props.isInValid ? ' form-invalid' : ''}`, isDisabled: caseNoClusterIdReasons.isFetching || props.isDisabled, required: true, onFilter: () => null, ref: selectRef, onTypeaheadInputChanged: onTypeaheadInputChanged, "data-tracking-id": "no-openshift-cluster-id-reason" }, (caseNoClusterIdReasonsList || []).map((option, index) => (React.createElement(SelectOption, { key: index, value: createState(option, t(option)) })))),
|
|
102
102
|
React.createElement(LoadingIndicator, { show: caseNoClusterIdReasons.isFetching, size: "xs" }),
|
|
103
103
|
React.createElement("p", { id: "validate-reason-helper", className: `form-instructions ${props.isInValid ? 'form-invalid' : ''}` },
|
|
104
104
|
React.createElement(React.Fragment, null,
|
|
@@ -32,10 +32,10 @@ export const NewProductDropdownSelector = (props) => {
|
|
|
32
32
|
const productOptions = props.products.map((p, id) => createOption(p, id, 'product'));
|
|
33
33
|
const allProductsTroubleshootOptions = allProducts.data.productsResult.map((p, id) => createOption(p, id, 'product'));
|
|
34
34
|
return [
|
|
35
|
-
React.createElement(SelectGroup, { label: t('Top products'), key: "topProducts", value: '' }),
|
|
35
|
+
React.createElement(SelectGroup, { label: t('Top products'), key: "topProducts", value: '', className: "product-selector-group" }),
|
|
36
36
|
...topProductOptions,
|
|
37
37
|
React.createElement(Divider, { key: "all-product-divider" }),
|
|
38
|
-
React.createElement(SelectGroup, { label: t('All products'), key: "AllProducts", value: '' }),
|
|
38
|
+
React.createElement(SelectGroup, { label: t('All products'), key: "AllProducts", value: '', className: "product-selector-group" }),
|
|
39
39
|
...(props.isCaseCreate ? productOptions : allProductsTroubleshootOptions),
|
|
40
40
|
];
|
|
41
41
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RulesModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/RulesModal.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAI5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAG7D,UAAU,MAAM;IACZ,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"RulesModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/RulesModal.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAI5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAG7D,UAAU,MAAM;IACZ,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,eA+M/C"}
|
|
@@ -101,6 +101,7 @@ export function InsightResultModal(props) {
|
|
|
101
101
|
'aria-label': t('File recommendations'),
|
|
102
102
|
'aria-labelledby': 'expandable-card-title toggle-button1',
|
|
103
103
|
'aria-expanded': isExpanded,
|
|
104
|
+
className: 'popular-solutions-toggle-button',
|
|
104
105
|
}, className: "popular-solutions" },
|
|
105
106
|
React.createElement(CardTitle, { id: "expandable-card-title", className: "card-title" },
|
|
106
107
|
React.createElement(Trans, null, "File recommendations"))),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AAkCA,MAAM,CAAC,OAAO,UAAU,UAAU,
|
|
1
|
+
{"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AAkCA,MAAM,CAAC,OAAO,UAAU,UAAU,gBAyTjC"}
|
|
@@ -93,10 +93,10 @@ export default function SubmitCase() {
|
|
|
93
93
|
React.createElement("p", { className: "kicker kicker-sm pf-v5-u-mb-sm" }, !isEmpty(RouteUtils.seBasePath) &&
|
|
94
94
|
!isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles) ? (React.createElement(React.Fragment, null,
|
|
95
95
|
React.createElement("div", { className: "submit-page-title pf-v5-u-mb-lg" },
|
|
96
|
-
React.createElement(Icon, { className: "submit-case-check-icon", size: "lg" },
|
|
96
|
+
React.createElement(Icon, { className: "submit-case-check-icon pf-v5-u-mt-sm", size: "lg" },
|
|
97
97
|
React.createElement(CheckCircleIcon, null)),
|
|
98
98
|
' ',
|
|
99
|
-
React.createElement(Text, { className: "pf-v5-u-
|
|
99
|
+
React.createElement(Text, { className: "pf-v5-u-mb-0", component: TextVariants.h1 },
|
|
100
100
|
React.createElement(Trans, null, "We've added your case to our queue"))),
|
|
101
101
|
React.createElement("div", { className: "pf-v5-u-mt-sm" },
|
|
102
102
|
React.createElement(Trans, null, "Case number:"),
|
|
@@ -135,7 +135,7 @@ export default function SubmitCase() {
|
|
|
135
135
|
React.createElement(Button, { component: "a", href: `${getRedhatDotComHost(Env.getEnvName())}/wapps/ugc/protected/${'personalInfo.html'}`, target: "_blank", variant: "secondary", "data-tracking-id": "get-support-update-info", className: "update-info-button" }, "Update info")),
|
|
136
136
|
React.createElement(ActionListItem, null, isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles) ? (React.createElement(React.Fragment, null,
|
|
137
137
|
React.createElement(Tooltip, { content: t('File upload in progress.'), position: "bottom" },
|
|
138
|
-
React.createElement(Button, { className: "pf-v5-u-ml-md", component: "a", href: getCaseURL(), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case'), isAriaDisabled: isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles) }, "View case")))) : (React.createElement(Button, {
|
|
138
|
+
React.createElement(Button, { className: "pf-v5-u-ml-md", component: "a", href: getCaseURL(), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case'), isAriaDisabled: isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles) }, "View case")))) : (React.createElement(Button, { component: (props) => (React.createElement(Link, Object.assign({}, props, { to: `/case/${caseNoOfCreatedCase}` }))), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case') }, "View case")))))),
|
|
139
139
|
!isEmpty(attachmentState.caseFiles.selectedLocalFiles) && (React.createElement(FileUploader, { idToUploadTo: caseNoOfCreatedCase, isSessionId: false, isSecureSupport: loggedInUsersAccount.data.secureSupport })),
|
|
140
140
|
React.createElement("div", null,
|
|
141
141
|
(!isEmpty(topContent.data) || !rulesState.EARules.rules || !clusterRecommendations) &&
|
|
@@ -42,7 +42,7 @@ export default function Suggestions(props) {
|
|
|
42
42
|
(_b = accordionRef.current) === null || _b === void 0 ? void 0 : _b.collapseAll();
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
-
return (React.createElement("div",
|
|
45
|
+
return (React.createElement("div", { className: "top-content-suggestion-accordion" },
|
|
46
46
|
showTitleDescription && (React.createElement("div", { className: "card card-support" },
|
|
47
47
|
!isTCSearchEnabled && (React.createElement(Trans, null,
|
|
48
48
|
React.createElement("h3", { className: "card-heading popular-solutions green-card-heading" }, props.title ? props.title : t('i18nKeyPopularSolutions', 'Popular solutions and docs')))),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Suggestions/TopContent.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAGnC,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AAaxF,UAAU,MAAM;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TopContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Suggestions/TopContent.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAGnC,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AAaxF,UAAU,MAAM;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,eA8I/C"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '@patternfly/pfe-accordion';
|
|
2
2
|
import { pcm } from '@cee-eng/hydrajs';
|
|
3
|
-
import { Tooltip } from '@patternfly/react-core';
|
|
3
|
+
import { Accordion, AccordionContent, AccordionItem, AccordionToggle, Tooltip } from '@patternfly/react-core';
|
|
4
4
|
import isEqual from 'lodash/isEqual';
|
|
5
5
|
import map from 'lodash/map';
|
|
6
|
-
import React from 'react';
|
|
6
|
+
import React, { useState } from 'react';
|
|
7
7
|
import { useCaseSelector } from '../../context/CaseContext';
|
|
8
8
|
import { SessionRestoreDispatchContext, SessionRestoreStateContext } from '../../context/SessionRestoreContext';
|
|
9
9
|
import { getDescriptionWOQues } from '../../reducers/CaseHelpers';
|
|
@@ -13,6 +13,7 @@ const { SessionResourceVisibility, SessionResourceSource } = pcm.preCase.session
|
|
|
13
13
|
export default function TopContent(props) {
|
|
14
14
|
const sessionRestoreDispatch = React.useContext(SessionRestoreDispatchContext);
|
|
15
15
|
const { sessionRestore: { activeSessionId, sessionResourceTracking }, } = React.useContext(SessionRestoreStateContext);
|
|
16
|
+
const [expanded, setExpanded] = useState('');
|
|
16
17
|
const { product, version, summary, issue, environment, periodicityOfIssue, timeFramesAndUrgency } = useCaseSelector((state) => ({
|
|
17
18
|
product: state.caseDetails.product,
|
|
18
19
|
version: state.caseDetails.version,
|
|
@@ -25,24 +26,42 @@ export default function TopContent(props) {
|
|
|
25
26
|
const onLinkClick = (item) => (event) => {
|
|
26
27
|
props.onResourceClick && props.onResourceClick(item);
|
|
27
28
|
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
description: getDescriptionWOQues(issue, environment, periodicityOfIssue, timeFramesAndUrgency),
|
|
36
|
-
}));
|
|
29
|
+
const onToggle = (id) => {
|
|
30
|
+
if (id === expanded) {
|
|
31
|
+
setExpanded('');
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
setExpanded(id);
|
|
35
|
+
onTopContentTabClicked(props.items);
|
|
37
36
|
}
|
|
38
37
|
};
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
// when user opens a top content tab, presented resouces are sent to session api
|
|
39
|
+
const onTopContentTabClicked = (docs) => {
|
|
40
|
+
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.TOP_CONTENT, docs.map((doc, index) => getSessResTC(doc, SessionResourceVisibility.PRESENTED, doc.id, index)), JSON.stringify({
|
|
41
|
+
product,
|
|
42
|
+
version,
|
|
43
|
+
summary,
|
|
44
|
+
description: getDescriptionWOQues(issue, environment, periodicityOfIssue, timeFramesAndUrgency),
|
|
45
|
+
}));
|
|
46
|
+
};
|
|
47
|
+
return (React.createElement(React.Fragment, null, props.helperText ? (React.createElement(Tooltip, { content: React.createElement("div", null, props.helperText) },
|
|
48
|
+
React.createElement(Accordion, { isBordered: true },
|
|
49
|
+
React.createElement(AccordionItem, null,
|
|
50
|
+
React.createElement(AccordionToggle, { onClick: () => {
|
|
51
|
+
onToggle(`${props.topContentIndex}`);
|
|
52
|
+
}, isExpanded: expanded === `${props.topContentIndex}`, "data-tracking-id": `top-content-accordion-header-${props.topContentIndex}`, id: `${props.topContentIndex}` },
|
|
53
|
+
React.createElement("h3", null, props.name)),
|
|
54
|
+
React.createElement(AccordionContent, { id: `${props.topContentIndex}`, isHidden: expanded !== `${props.topContentIndex}` },
|
|
55
|
+
React.createElement("ul", { className: "list-flushleft", style: { listStyleType: 'disc' } }, map(props.items, (item, i) => (React.createElement("li", { key: i + item.contentTitle },
|
|
56
|
+
React.createElement("p", null,
|
|
57
|
+
React.createElement("a", { className: "se-recommended ts-top-problems", "data-tracking-id": "se-recommended-top-content", onClick: onLinkClick(item), href: `${item.contentUrl}?${RouteUtils.getSEResourceQueryParams(props.seSessionId, props.seResourceOriginID, SessionResourceSource.TOP_CONTENT)}`, target: "_blank", rel: "noopener noreferrer" }, item.contentTitle))))))))))) : (React.createElement(Accordion, { isBordered: true },
|
|
58
|
+
React.createElement(AccordionItem, null,
|
|
59
|
+
React.createElement(AccordionToggle, { onClick: () => {
|
|
60
|
+
onToggle(`${props.topContentIndex}`);
|
|
61
|
+
}, isExpanded: expanded === `${props.topContentIndex}`, "data-tracking-id": `top-content-accordion-header-${props.topContentIndex}`, id: `${props.topContentIndex}` },
|
|
62
|
+
React.createElement("h3", null, props.name)),
|
|
63
|
+
React.createElement(AccordionContent, { id: `${props.topContentIndex}`, isHidden: expanded !== `${props.topContentIndex}` },
|
|
64
|
+
React.createElement("ul", { className: "list-flushleft", style: { listStyleType: 'disc' } }, map(props.items, (item, i) => (React.createElement("li", { key: i + item.contentTitle },
|
|
65
|
+
React.createElement("p", null,
|
|
66
|
+
React.createElement("a", { className: "se-recommended ts-top-problems", "data-tracking-id": "se-recommended-top-content", onClick: onLinkClick(item), href: `${item.contentUrl}?${RouteUtils.getSEResourceQueryParams(props.seSessionId, props.seResourceOriginID, SessionResourceSource.TOP_CONTENT)}`, target: "_blank", rel: "noopener noreferrer" }, item.contentTitle))))))))))));
|
|
48
67
|
}
|
|
@@ -289,6 +289,12 @@
|
|
|
289
289
|
color: white !important;
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
+
|
|
293
|
+
.popular-solutions-toggle-button {
|
|
294
|
+
padding-right: 5px;
|
|
295
|
+
margin-top: 2px;
|
|
296
|
+
}
|
|
297
|
+
|
|
292
298
|
.file-diag {
|
|
293
299
|
border: 1px solid #ededed;
|
|
294
300
|
}
|
|
@@ -534,3 +540,24 @@ span.pf-v5-c-input-group__text {
|
|
|
534
540
|
.pf-v5-c-list {
|
|
535
541
|
padding: 0;
|
|
536
542
|
}
|
|
543
|
+
|
|
544
|
+
.product-selector-group {
|
|
545
|
+
.pf-v5-c-select__menu-group-title {
|
|
546
|
+
font-weight: 700;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.pf-v5-c-accordion__expandable-content {
|
|
551
|
+
margin: 0;
|
|
552
|
+
}
|
|
553
|
+
.top-content-suggestion-accordion {
|
|
554
|
+
dl dt {
|
|
555
|
+
margin: 0px;
|
|
556
|
+
}
|
|
557
|
+
.pf-v5-c-accordion.pf-m-bordered {
|
|
558
|
+
margin: 0px;
|
|
559
|
+
padding: 0px;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
border: 1px solid #d2d2d2;
|
|
563
|
+
}
|
package/lib/esm/scss/index.scss
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.45",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@progress/kendo-drawing": "^1.6.0",
|
|
67
67
|
"@progress/kendo-react-pdf": "^3.12.0",
|
|
68
68
|
"@rh-support/components": "2.1.26",
|
|
69
|
-
"@rh-support/react-context": "2.1.
|
|
69
|
+
"@rh-support/react-context": "2.1.29",
|
|
70
70
|
"@rh-support/types": "2.0.2",
|
|
71
71
|
"@rh-support/user-permissions": "2.1.19",
|
|
72
72
|
"@rh-support/utils": "2.1.12",
|
|
@@ -131,5 +131,5 @@
|
|
|
131
131
|
"defaults and supports es6-module",
|
|
132
132
|
"maintained node versions"
|
|
133
133
|
],
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "ed9cba460bdbf0d0104fe6e8f21a0ca554bdaee8"
|
|
135
135
|
}
|