@rh-support/troubleshoot 2.2.70 → 2.2.71
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/CaseDetailsTabs.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +13 -9
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +21 -12
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +1 -1
- package/lib/esm/components/Recommendations/AsideResults.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/AsideResults.js +5 -5
- package/lib/esm/components/Recommendations/EARules/EARule.d.ts +2 -1
- package/lib/esm/components/Recommendations/EARules/EARule.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/EARules/EARule.js +2 -2
- package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.d.ts +2 -1
- package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.js +2 -2
- package/lib/esm/components/Recommendations/EARules/EARuleInfoInline.js +2 -2
- package/lib/esm/components/Recommendations/InsightsRuleInfo.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/InsightsRuleInfo.js +4 -3
- package/lib/esm/components/Recommendations/RulesModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/RulesModal.js +2 -2
- package/lib/esm/components/shared/fileUpload/FileLister.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/FileLister.js +1 -1
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +1 -1
- package/lib/esm/components/wizardLayout/MainSection.js +1 -1
- package/lib/esm/reducers/RecommendationsReducer.d.ts.map +1 -1
- package/lib/esm/reducers/RecommendationsReducer.js +8 -4
- package/lib/esm/reducers/SessionRestoreReducer.d.ts +2 -4
- package/lib/esm/reducers/SessionRestoreReducer.d.ts.map +1 -1
- package/lib/esm/reducers/SessionRestoreReducer.js +4 -11
- package/lib/esm/scss/_pf-overrides.scss +16 -1
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseDetailsTabs.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsTabs.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAa,MAAM,kBAAkB,CAAC;AAwBlE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,mBAAmB,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AACD,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CaseDetailsTabs.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsTabs.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAa,MAAM,kBAAkB,CAAC;AAwBlE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,mBAAmB,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AACD,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,qBAuN5C"}
|
|
@@ -119,14 +119,18 @@ export function CaseDetailsTabs(props) {
|
|
|
119
119
|
} },
|
|
120
120
|
React.createElement(Suspense, { fallback: React.createElement(LoadingIndicator, { size: "sm" }) },
|
|
121
121
|
React.createElement(TextContent, { className: "show-in-pdf pf-v5-u-mt-md" },
|
|
122
|
-
React.createElement(Text, { component: TextVariants.h2 },
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
React.createElement(
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
122
|
+
React.createElement(Text, { component: TextVariants.h2 },
|
|
123
|
+
React.createElement(Trans, null, tab.title))),
|
|
124
|
+
tab.component)))) : isExportingPDF ? (React.createElement(React.Fragment, null,
|
|
125
|
+
React.createElement("div", { className: "page-break" }),
|
|
126
|
+
React.createElement(TabContent, { eventKey: index, key: tab.key, id: tab.key, ref: tab.ref, "aria-label": tab.title, hidden: isExportingPDF ? !isTabVisibleInPdfExport(tab) : index !== getActiveTabKey() },
|
|
127
|
+
React.createElement(ErrorBoundary, { errorMsgInfo: {
|
|
128
|
+
message: t(`There was an error loading case ${tab.key}`),
|
|
129
|
+
} },
|
|
130
|
+
React.createElement(Suspense, { fallback: React.createElement(LoadingIndicator, { size: "sm" }) },
|
|
131
|
+
React.createElement(TextContent, { className: "show-in-pdf pf-v5-u-mt-md" },
|
|
132
|
+
React.createElement(Text, { component: TextVariants.h2 },
|
|
133
|
+
React.createElement(Trans, null, tab.title))),
|
|
134
|
+
tab.component))))) : (React.createElement(React.Fragment, null));
|
|
131
135
|
}))));
|
|
132
136
|
}
|
|
@@ -141,7 +141,7 @@ const CaseAttachment = React.forwardRef((props, ref) => {
|
|
|
141
141
|
React.createElement("code", { ref: clipboardRef }, props.attachment.checksum)),
|
|
142
142
|
React.createElement(Tooltip, { position: TooltipPosition.top, content: clipboardText, trigger: "click" },
|
|
143
143
|
React.createElement("button", { className: "nimbus-icon-clipboard clip-code-raw-btn xs-icon", "aria-hidden": "true", onClick: copyToClipboard }))))),
|
|
144
|
-
React.createElement(InlineEdit, { labelProps: { htmlFor: `case-details-file-description-${props.attachment.id}` }, allowInlineEdit: true, labelContent: React.createElement(
|
|
144
|
+
React.createElement(InlineEdit, { labelProps: { htmlFor: `case-details-file-description-${props.attachment.id}` }, allowInlineEdit: true, labelContent: React.createElement(Trans, null, "Description"), content: React.createElement("div", { className: "clip-content-wrapper code-block" }, props.attachment.description), hideSaveCancel: false, onSave: onDescriptionSave, onCancel: onDescriptionCancel, dataTrackingId: "case-details-file-description", initialIsEditing: props.attachment.description ? false : true, saveDisabled: isCaseAttachmentDescriptionLengthy ||
|
|
145
145
|
isCaseAttachmentDescription ||
|
|
146
146
|
attachmentDescription === props.attachment.description ||
|
|
147
147
|
isUpdating, loadingIndicator: isUpdating ? React.createElement(LoadingIndicator, { isInline: true }) : undefined, isExportingPDF: isExportingPDF },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseDiscussion.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,YAAY,EAA0B,MAAM,yCAAyC,CAAC;AAoB1G,OAAO,KAAoE,MAAM,OAAO,CAAC;AAwCzF,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,SAAS,EAAE,SAAS,EAAE,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAC/C,eAAe,EAAE,OAAO,CAAC;CAC5B;AAOD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CaseDiscussion.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,YAAY,EAA0B,MAAM,yCAAyC,CAAC;AAoB1G,OAAO,KAAoE,MAAM,OAAO,CAAC;AAwCzF,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,SAAS,EAAE,SAAS,EAAE,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAC/C,eAAe,EAAE,OAAO,CAAC;CAC5B;AAOD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,MAAM,qBAoiBnD"}
|
|
@@ -96,15 +96,12 @@ export default function CaseDiscussion(props) {
|
|
|
96
96
|
: filter([...computeFilteredComments], (o) => { var _a; return searchResult.indexOf((_a = o === null || o === void 0 ? void 0 : o.item) === null || _a === void 0 ? void 0 : _a.id) !== -1; });
|
|
97
97
|
const isSearchResultEmpty = !isEmpty(searchCommentText) && (searchResult.length === 0 || comuteSearchedComments.length === 0);
|
|
98
98
|
const setVRCommentIndex = (cId) => {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
setCommentIndex(commentIndex < 0 ? 0 : commentIndex);
|
|
102
|
-
setJumpToCommentClicked(true);
|
|
103
|
-
}
|
|
99
|
+
setCommentIndex(cId < 0 ? 0 : cId);
|
|
100
|
+
setJumpToCommentClicked(true);
|
|
104
101
|
isCommentSearchCleared && setIsCommentSearchCleared(false);
|
|
105
102
|
};
|
|
106
103
|
useEffect(() => {
|
|
107
|
-
var _a;
|
|
104
|
+
var _a, _b;
|
|
108
105
|
isCommentSearchCleared && setIsCommentSearchCleared(false);
|
|
109
106
|
if (!discussionIdFromUrl ||
|
|
110
107
|
(activeElementId && activeElementId.current === discussionIdFromUrl) ||
|
|
@@ -113,8 +110,20 @@ export default function CaseDiscussion(props) {
|
|
|
113
110
|
}
|
|
114
111
|
activeElementId.current = discussionIdFromUrl;
|
|
115
112
|
if (allDiscussions.length > VC_MINIMUM_COMMENT) {
|
|
116
|
-
|
|
117
|
-
(
|
|
113
|
+
const commentIndex = findIndex([...comuteSearchedComments], (discussion) => discussion.item.id === discussionIdFromUrl);
|
|
114
|
+
setVRCommentIndex(commentIndex);
|
|
115
|
+
// to fix scrolling to comment index when scrollTop value from window scroller is 0
|
|
116
|
+
// initial list items
|
|
117
|
+
if (0 <= commentIndex && commentIndex <= 3) {
|
|
118
|
+
const offset = 80;
|
|
119
|
+
const scrollTopValue = ((_a = windowScrollerRef === null || windowScrollerRef === void 0 ? void 0 : windowScrollerRef.current) === null || _a === void 0 ? void 0 : _a._positionFromTop) - offset;
|
|
120
|
+
const scrollLeftValue = (_b = windowScrollerRef === null || windowScrollerRef === void 0 ? void 0 : windowScrollerRef.current) === null || _b === void 0 ? void 0 : _b._positionFromLeft;
|
|
121
|
+
window.scrollTo({
|
|
122
|
+
top: scrollTopValue,
|
|
123
|
+
left: scrollLeftValue,
|
|
124
|
+
behavior: 'smooth',
|
|
125
|
+
});
|
|
126
|
+
}
|
|
118
127
|
}
|
|
119
128
|
else if (!isEmpty(allDiscussions) && allDiscussions.length < VC_MINIMUM_COMMENT) {
|
|
120
129
|
activeDiscussionElementRef &&
|
|
@@ -248,7 +257,7 @@ export default function CaseDiscussion(props) {
|
|
|
248
257
|
discussionSectionWidth !== width &&
|
|
249
258
|
setTimeout(() => setDiscussionSectionWidth(width), 0);
|
|
250
259
|
return (React.createElement("div", { ref: registerChild },
|
|
251
|
-
React.createElement(List, { ref: listRef, autoHeight: true, isScrolling: isScrolling, height: height, overscanRowCount: 10, rowRenderer: rowRenderer, rowCount: comuteSearchedComments.length, rowHeight: cellMeasureCache.rowHeight, deferredMeasurementCache: cellMeasureCache, width: width, scrollToIndex: commentIndex, scrollToAlignment: "
|
|
260
|
+
React.createElement(List, { ref: listRef, autoHeight: true, isScrolling: isScrolling, height: height, overscanRowCount: 10, rowRenderer: rowRenderer, rowCount: comuteSearchedComments.length, rowHeight: cellMeasureCache.rowHeight, deferredMeasurementCache: cellMeasureCache, width: width, scrollToIndex: commentIndex, scrollToAlignment: "center", onScroll: discussionIdFromUrl && canUpdateScrollTop
|
|
252
261
|
? onChildScroll
|
|
253
262
|
: customChildScroll })));
|
|
254
263
|
})));
|
|
@@ -279,7 +288,7 @@ export default function CaseDiscussion(props) {
|
|
|
279
288
|
}
|
|
280
289
|
};
|
|
281
290
|
const handleScroll = ({ scrollTop }) => {
|
|
282
|
-
var _a, _b, _c, _d, _e;
|
|
291
|
+
var _a, _b, _c, _d, _e, _f;
|
|
283
292
|
// here we are doing couple of things
|
|
284
293
|
// 1. check scroll position on the first comment, 2. set scrollposition as par window top
|
|
285
294
|
// 3. if user click on jump to comment button then select row as per commentid and adding css class.
|
|
@@ -294,13 +303,13 @@ export default function CaseDiscussion(props) {
|
|
|
294
303
|
if (isEmpty(discussionIdFromUrl) || commentTop > 0) {
|
|
295
304
|
(_c = listRef === null || listRef === void 0 ? void 0 : listRef.current) === null || _c === void 0 ? void 0 : _c.scrollToPosition(commentTop > 0 ? 0 : Math.abs(commentTop));
|
|
296
305
|
}
|
|
297
|
-
else if (commentTop < 0 && !isEmpty(discussionIdFromUrl)) {
|
|
306
|
+
else if (commentTop < 0 && !isEmpty(discussionIdFromUrl) && !isJumpToCommentClicked) {
|
|
298
307
|
(_d = listRef === null || listRef === void 0 ? void 0 : listRef.current) === null || _d === void 0 ? void 0 : _d.scrollToPosition(scrollTop);
|
|
299
308
|
}
|
|
300
309
|
if (isJumpToCommentClicked) {
|
|
301
310
|
(_e = listRef === null || listRef === void 0 ? void 0 : listRef.current) === null || _e === void 0 ? void 0 : _e.scrollToRow(commentIndex);
|
|
311
|
+
(_f = windowScrollerRef === null || windowScrollerRef === void 0 ? void 0 : windowScrollerRef.current) === null || _f === void 0 ? void 0 : _f.updatePosition();
|
|
302
312
|
setJumpToCommentClicked(false);
|
|
303
|
-
commentIndex !== -1 && setCommentIndex(-1);
|
|
304
313
|
}
|
|
305
314
|
}
|
|
306
315
|
};
|
|
@@ -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,sBAoItD,CAAC"}
|
|
@@ -91,5 +91,5 @@ export const NewProductVersionSelector = (props) => {
|
|
|
91
91
|
setIsOpen(false);
|
|
92
92
|
};
|
|
93
93
|
const titleId = 'version-selector';
|
|
94
|
-
return (React.createElement(Select, Object.assign({ variant: SelectVariant.single, onToggle: (_event, isOpen) => onToggle(isOpen), onSelect: onSelect, isOpen: isOpen, placeholderText: t('Select a version'), "aria-labelledby": titleId, selections: version, validated: isEmpty(version) && showValidationLocal ? 'error' : 'default', isDisabled: isEmpty(product), "data-tracking-id": "get-support-version-dropdown-selector" }, (isSEProductApiIsDown && versionsDetails.isFetching && { loadingVariant: 'spinner' })), selectVersionOptions.map((version, index) => (React.createElement(SelectOption, { key: index, value: version })))));
|
|
94
|
+
return (React.createElement(Select, Object.assign({ variant: SelectVariant.single, onToggle: (_event, isOpen) => onToggle(isOpen), onSelect: onSelect, isOpen: isOpen, placeholderText: t('Select a version'), toggleAriaLabel: t('Select a version'), "aria-labelledby": titleId, selections: version, validated: isEmpty(version) && showValidationLocal ? 'error' : 'default', isDisabled: isEmpty(product), "data-tracking-id": "get-support-version-dropdown-selector" }, (isSEProductApiIsDown && versionsDetails.isFetching && { loadingVariant: 'spinner' })), selectVersionOptions.map((version, index) => (React.createElement(SelectOption, { key: index, value: version })))));
|
|
95
95
|
};
|
|
@@ -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;AAUvD,OAAO,EAAE,eAAe,EAAsC,MAAM,iCAAiC,CAAC;AAUtG,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,qBA6NzC"}
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
import { pcm, search } from '@cee-eng/hydrajs';
|
|
11
11
|
import { useDebounce } from '@rh-support/components';
|
|
12
12
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
13
|
-
import { computeRecommendationAbstract, computeRecommendationTitle, getConfigField, getSolrParams,
|
|
13
|
+
import { buildParams, computeRecommendationAbstract, computeRecommendationTitle, getConfigField, getSolrParams, getTrimmedCharacters, PCM_CONFIG_FIELD_TYPE, PreviousCaseTypes, replaceHighlightingData, } from '@rh-support/utils';
|
|
14
14
|
import isEmpty from 'lodash/isEmpty';
|
|
15
15
|
import isEqual from 'lodash/isEqual';
|
|
16
16
|
import React, { useContext, useEffect, useRef } from 'react';
|
|
@@ -80,11 +80,11 @@ export function AsideResults(props) {
|
|
|
80
80
|
id: { values: recommendationState.insightsKcsIds, exclude: true },
|
|
81
81
|
};
|
|
82
82
|
const response = !loggedInUsersAccount.data.secureSupport
|
|
83
|
-
? yield search.
|
|
84
|
-
summary:
|
|
83
|
+
? yield search.getWatsonXRecommendationsForCase2(buildParams(Object.assign(Object.assign(Object.assign(Object.assign({ product: product, version: version }, ((payload === null || payload === void 0 ? void 0 : payload.summary) && {
|
|
84
|
+
summary: getTrimmedCharacters(payload.summary, WATSONX_SUMMARY_LIMIT),
|
|
85
85
|
})), ((payload === null || payload === void 0 ? void 0 : payload.description) && {
|
|
86
|
-
description:
|
|
87
|
-
})), { rerank: isRerankEnabled }), getSolrParams(PAGE_SIZE, 129, queryFilters)), controllerRef.current.signal)
|
|
86
|
+
description: getTrimmedCharacters(payload === null || payload === void 0 ? void 0 : payload.description, WATSONX_DESCRIPTION_LIMIT),
|
|
87
|
+
})), { rerank: isRerankEnabled }), getSolrParams(PAGE_SIZE, 129, queryFilters))), controllerRef.current.signal)
|
|
88
88
|
: yield search.getRecommendationsForCase(payload, getSolrParams(PAGE_SIZE, 129, queryFilters), controllerRef.current.signal);
|
|
89
89
|
const sideDocs = replaceHighlightingData(response.response.docs, response.highlighting);
|
|
90
90
|
recommendationDispatch({
|
|
@@ -6,9 +6,10 @@ interface IEARuleContext {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const EARuleContext: React.Context<IEARuleContext>;
|
|
8
8
|
export declare function useEARuleContext(): IEARuleContext;
|
|
9
|
-
export declare function EARule({ children, rule }: {
|
|
9
|
+
export declare function EARule({ children, rule, ruleRank }: {
|
|
10
10
|
children: any;
|
|
11
11
|
rule: any;
|
|
12
|
+
ruleRank: any;
|
|
12
13
|
}): React.JSX.Element;
|
|
13
14
|
declare function EARuleTitle(): React.JSX.Element;
|
|
14
15
|
declare function EARuleDescription(): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EARule.d.ts","sourceRoot":"","sources":["../../../../../src/components/Recommendations/EARules/EARule.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAM1C,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,UAAU,cAAc;IACpB,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;CAClG;AAGD,eAAO,MAAM,aAAa,+BAGxB,CAAC;AAEH,wBAAgB,gBAAgB,mBAM/B;AACD,wBAAgB,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE
|
|
1
|
+
{"version":3,"file":"EARule.d.ts","sourceRoot":"","sources":["../../../../../src/components/Recommendations/EARules/EARule.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAM1C,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,UAAU,cAAc;IACpB,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;CAClG;AAGD,eAAO,MAAM,aAAa,+BAGxB,CAAC;AAEH,wBAAgB,gBAAgB,mBAM/B;AACD,wBAAgB,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;;;;CAAA,qBAmClD;AAED,iBAAS,WAAW,sBAGnB;AAED,iBAAS,iBAAiB,sBA0BzB;AAED,iBAAS,aAAa,CAAC,EAAE,SAA6B,EAAE,SAAc,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,qBA2BnH;AAED,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -20,7 +20,7 @@ export function useEARuleContext() {
|
|
|
20
20
|
}
|
|
21
21
|
return context;
|
|
22
22
|
}
|
|
23
|
-
export function EARule({ children, rule }) {
|
|
23
|
+
export function EARule({ children, rule, ruleRank }) {
|
|
24
24
|
const { sessionRestore: { activeSessionId, sessionResourceTracking }, } = useContext(SessionRestoreStateContext);
|
|
25
25
|
const { product, version } = useCaseSelector((state) => ({
|
|
26
26
|
product: state.caseDetails.product,
|
|
@@ -28,7 +28,7 @@ export function EARule({ children, rule }) {
|
|
|
28
28
|
}), isEqual);
|
|
29
29
|
const sessionRestoreDispatch = useContext(SessionRestoreDispatchContext);
|
|
30
30
|
const onCtaClick = (link) => () => {
|
|
31
|
-
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.EDMOUND_ABOTT, [getSessResFromEA(link, SessionResourceVisibility.VISITED, rule.rule_id)], JSON.stringify({ product, version }));
|
|
31
|
+
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.EDMOUND_ABOTT, [getSessResFromEA(link, SessionResourceVisibility.VISITED, ruleRank, rule.rule_id)], JSON.stringify({ product, version }));
|
|
32
32
|
};
|
|
33
33
|
return (React.createElement(EARuleContext.Provider, { value: {
|
|
34
34
|
rule,
|
|
@@ -3,7 +3,8 @@ import { IExtendedRule } from '../../../reducers/RulesReducer';
|
|
|
3
3
|
interface IProps {
|
|
4
4
|
rule: IExtendedRule;
|
|
5
5
|
showNewTag: boolean;
|
|
6
|
+
rank: number;
|
|
6
7
|
}
|
|
7
|
-
export declare function EARuleInfoAccordion({ rule, showNewTag }: IProps): React.JSX.Element;
|
|
8
|
+
export declare function EARuleInfoAccordion({ rule, showNewTag, rank }: IProps): React.JSX.Element;
|
|
8
9
|
export {};
|
|
9
10
|
//# sourceMappingURL=EARuleInfoAccordion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EARuleInfoAccordion.d.ts","sourceRoot":"","sources":["../../../../../src/components/Recommendations/EARules/EARuleInfoAccordion.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAG/D,UAAU,MAAM;IACZ,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"EARuleInfoAccordion.d.ts","sourceRoot":"","sources":["../../../../../src/components/Recommendations/EARules/EARuleInfoAccordion.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAG/D,UAAU,MAAM;IACZ,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,MAAM,qBA4BrE"}
|
|
@@ -2,10 +2,10 @@ import { AccordionContent, AccordionItem, AccordionToggle, Label } from '@patter
|
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import { Trans } from 'react-i18next';
|
|
4
4
|
import { EARule, EARuleArticle, EARuleDescription, EARuleTitle } from './EARule';
|
|
5
|
-
export function EARuleInfoAccordion({ rule, showNewTag }) {
|
|
5
|
+
export function EARuleInfoAccordion({ rule, showNewTag, rank }) {
|
|
6
6
|
var _a;
|
|
7
7
|
const [isExpanded, setIsExpanded] = useState(false);
|
|
8
|
-
return (React.createElement(EARule, { rule: rule },
|
|
8
|
+
return (React.createElement(EARule, { rule: rule, ruleRank: rank },
|
|
9
9
|
React.createElement(AccordionItem, null,
|
|
10
10
|
React.createElement(AccordionToggle, { isExpanded: isExpanded, id: "ea-rule-accordion-toggle", onClick: () => {
|
|
11
11
|
setIsExpanded(!isExpanded);
|
|
@@ -53,7 +53,7 @@ export function EARuleInfoInline({ eaRules = [] }) {
|
|
|
53
53
|
}, [validEARulesLength]);
|
|
54
54
|
const onPaginationChange = (currentPage) => {
|
|
55
55
|
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.EDMOUND_ABOTT, [
|
|
56
|
-
getSessResFromRules(
|
|
56
|
+
getSessResFromRules(eaRules[currentPage - 1].cta, SessionResourceVisibility.PRESENTED, eaRules[currentPage - 1].rule_id, currentPage),
|
|
57
57
|
], JSON.stringify({ product, version }));
|
|
58
58
|
setCurrentPage(currentPage);
|
|
59
59
|
};
|
|
@@ -92,7 +92,7 @@ export function EARuleInfoInline({ eaRules = [] }) {
|
|
|
92
92
|
return null;
|
|
93
93
|
return (React.createElement(React.Fragment, null,
|
|
94
94
|
React.createElement(RecommendationFeedbackModal, { isModalOpen: isModalVisible, handleModalToggle: onModalToggle, modalContent: t(`Great, we're glad that resolved your issue`) }),
|
|
95
|
-
React.createElement(EARule, { rule: visibleRule },
|
|
95
|
+
React.createElement(EARule, { rule: visibleRule, ruleRank: currentPage - 1 },
|
|
96
96
|
React.createElement("div", { className: "pf-v5-c-alert pf-m-info pf-m-inline pf-v5-u-mb-md", "aria-label": "Success alert" },
|
|
97
97
|
React.createElement("div", { className: "pf-v5-c-alert__icon" },
|
|
98
98
|
React.createElement(InfoCircleIcon, null)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightsRuleInfo.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/InsightsRuleInfo.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAOvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAI7D,UAAU,MAAM;IACZ,GAAG,EAAE,wBAAwB,CAAC;IAC9B,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,EAAE,CAAC;CAC3B;AAOD,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,GAAG,CAAC;QACV,UAAU,iBAAiB;YACvB,SAAS,EAAE,GAAG,CAAC;SAClB;KACJ;CACJ;AAED,wBAAgB,gBAAgB,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"InsightsRuleInfo.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/InsightsRuleInfo.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAOvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAI7D,UAAU,MAAM;IACZ,GAAG,EAAE,wBAAwB,CAAC;IAC9B,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,EAAE,CAAC;CAC3B;AAOD,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,GAAG,CAAC;QACV,UAAU,iBAAiB;YACvB,SAAS,EAAE,GAAG,CAAC;SAClB;KACJ;CACJ;AAED,wBAAgB,gBAAgB,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE,MAAM,qBAqK1E"}
|
|
@@ -55,10 +55,11 @@ export function InsightsRuleInfo({ doc, showNewTag, duplicateKeys }) {
|
|
|
55
55
|
React.createElement(AccordionToggle, { isExpanded: isParentExpanded, id: doc.id + doc.attachmentId, onClick: () => {
|
|
56
56
|
setIsParentExpanded(!isParentExpanded);
|
|
57
57
|
} },
|
|
58
|
-
showNewTag && ((_b = (_a = insightsReport === null || insightsReport === void 0 ? void 0 : insightsReport.current) === null || _a === void 0 ? void 0 : _a.isNew) !== null && _b !== void 0 ? _b : false) && (React.createElement(Label, { color: "green", className: "pf-v5-u-mr-md" },
|
|
59
|
-
React.createElement(Trans, null, "NEW"))),
|
|
60
58
|
React.createElement("div", null,
|
|
61
|
-
React.createElement("div", null,
|
|
59
|
+
React.createElement("div", null,
|
|
60
|
+
showNewTag && ((_b = (_a = insightsReport === null || insightsReport === void 0 ? void 0 : insightsReport.current) === null || _a === void 0 ? void 0 : _a.isNew) !== null && _b !== void 0 ? _b : false) && (React.createElement(Label, { color: "green", className: "pf-v5-u-mr-sm" },
|
|
61
|
+
React.createElement(Trans, null, "NEW"))), ruleData === null || ruleData === void 0 ? void 0 :
|
|
62
|
+
ruleData.summary),
|
|
62
63
|
React.createElement("div", { className: "pf-v5-u-mb-sm pf-v5-u-text-align-left" }, ((_d = (_c = insightsReport === null || insightsReport === void 0 ? void 0 : insightsReport.current) === null || _c === void 0 ? void 0 : _c.name) !== null && _d !== void 0 ? _d : false) && (React.createElement(Label, null,
|
|
63
64
|
React.createElement(Trans, null, insightsReport.current.name)))),
|
|
64
65
|
React.createElement("div", { className: "pf-v5-u-text-align-left" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RulesModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/RulesModal.tsx"],"names":[],"mappings":"AAaA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAM/D,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":"AAaA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAM/D,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,qBAqN/C"}
|
|
@@ -110,7 +110,7 @@ export function InsightResultModal(props) {
|
|
|
110
110
|
React.createElement(Accordion, { headingLevel: "h5", asDefinitionList: false, isBordered: true },
|
|
111
111
|
props.insightResults.map((doc) => (React.createElement(InsightsRuleInfo, { duplicateKeys: duplicateKeys, showNewTag: canShowNewTag, key: doc.id + doc.attachmentId, doc: doc }))),
|
|
112
112
|
props.EARule.length > 0 &&
|
|
113
|
-
props.EARule.map((rule, index) => (React.createElement(EARuleInfoAccordion, { showNewTag: canShowNewTag, key: `${index}_eaRule`, rule: rule }))))))));
|
|
113
|
+
props.EARule.map((rule, index) => (React.createElement(EARuleInfoAccordion, { showNewTag: canShowNewTag, key: `${index}_eaRule`, rule: rule, rank: index }))))))));
|
|
114
114
|
}
|
|
115
115
|
return (React.createElement(React.Fragment, null,
|
|
116
116
|
React.createElement(RecommendationFeedbackModal, { isModalOpen: isModalVisible, handleModalToggle: onModalToggle, modalContent: t(`Great, we're glad that resolved your issue`) }),
|
|
@@ -124,5 +124,5 @@ export function InsightResultModal(props) {
|
|
|
124
124
|
React.createElement(Accordion, { className: "push-top-narrow rules-modal-items", headingLevel: "h2", asDefinitionList: false, isBordered: true },
|
|
125
125
|
props.insightResults.map((doc) => (React.createElement(InsightsRuleInfo, { duplicateKeys: duplicateKeys, showNewTag: canShowNewTag, key: doc.id + doc.attachmentId, doc: doc }))),
|
|
126
126
|
props.EARule.length > 0 &&
|
|
127
|
-
props.EARule.map((rule, index) => (React.createElement(EARuleInfoAccordion, { showNewTag: canShowNewTag, key: `${index}_eaRule`, rule: rule })))))));
|
|
127
|
+
props.EARule.map((rule, index) => (React.createElement(EARuleInfoAccordion, { showNewTag: canShowNewTag, key: `${index}_eaRule`, rule: rule, rank: index })))))));
|
|
128
128
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileLister.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/FileLister.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,OAAO,CAAC;AAsB1B,OAAO,EAAiB,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGxE,eAAO,MAAM,qBAAqB,2FAAyC,CAAC;AAiB5E,UAAU,MAAM;IACZ,kBAAkB,EAAE,UAAU,EAAE,CAAC;IACjC,UAAU,EAAE,CAAC,eAAe,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IACtG,YAAY,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACtE,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,eAAe,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,CAAC,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"FileLister.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/FileLister.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,OAAO,CAAC;AAsB1B,OAAO,EAAiB,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGxE,eAAO,MAAM,qBAAqB,2FAAyC,CAAC;AAiB5E,UAAU,MAAM;IACZ,kBAAkB,EAAE,UAAU,EAAE,CAAC;IACjC,UAAU,EAAE,CAAC,eAAe,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IACtG,YAAY,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACtE,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,eAAe,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,CAAC,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,qBA0S/C"}
|
|
@@ -127,7 +127,7 @@ export default function FileLister(props) {
|
|
|
127
127
|
React.createElement(Trans, null, "Cancel"))),
|
|
128
128
|
showDeleteBtn(localFile.uploadProgress.uploadStatus, localFile) && (React.createElement(Button, { variant: ButtonVariant.link, isDanger: true, "aria-label": t('Delete file'), title: t('Delete file'), className: "btn btn-link btn-app remove-file", "data-tracking-id": "file-lister-delete", onClick: onRemoveClick(localFile, index), hidden: !localFile.uploadability.ableToUpload },
|
|
129
129
|
React.createElement(Trans, null, "Remove")))))),
|
|
130
|
-
isAnalysingFile(localFile.analysisMetadata.analysisStatus) && (React.createElement(Progress, { measureLocation: ProgressMeasureLocation.top, value: getAnalysisStepCount(localFile), min: 0, max: (analysisSteps === null || analysisSteps === void 0 ? void 0 : analysisSteps.length) + 1, label: getAnalysisProgressTitle(localFile), valueText: getAnalysisProgressTitle(localFile) })),
|
|
130
|
+
isAnalysingFile(localFile.analysisMetadata.analysisStatus) && (React.createElement(Progress, { measureLocation: ProgressMeasureLocation.top, value: getAnalysisStepCount(localFile), "aria-label": `Progress - ${getAnalysisProgressTitle(localFile)}`, min: 0, max: (analysisSteps === null || analysisSteps === void 0 ? void 0 : analysisSteps.length) + 1, label: getAnalysisProgressTitle(localFile), valueText: getAnalysisProgressTitle(localFile) })),
|
|
131
131
|
React.createElement("input", { id: `file-${index + 1}-description`, "data-tracking-id": `case-${props.isSessionId ? 'create' : 'details'}-file-${index + 1}-description`, className: "file-description form-control pf-v5-u-my-sm", type: "text", value: localFile.description, onChange: onDescriptionChange(localFile, index), maxLength: 255, placeholder: t(`${shouldHideDescription(localFile, props.isSessionId)
|
|
132
132
|
? ''
|
|
133
133
|
: t('Enter a description')}`), hidden: shouldHideDescription(localFile, props.isSessionId) }),
|
|
@@ -147,7 +147,7 @@ function WidgetFileUploader(props) {
|
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
149
|
return (React.createElement("div", { className: `card card-white card-support file-diag ${props.className || ''}`, onPaste: handlePaste },
|
|
150
|
-
React.createElement("
|
|
150
|
+
React.createElement("h2", { className: "card-heading card-widget-file-upload-heading" }, props.isIdea || props.isSecureSupport ? (React.createElement(Trans, null, "File uploader")) : (React.createElement(Trans, null, "Upload file to analyze"))),
|
|
151
151
|
React.createElement("div", { className: "card-body" },
|
|
152
152
|
React.createElement(WidgetFileSelector, { isSessionId: props.isSessionId, isPrivate: props.isPrivate, isIdea: props.isIdea, showFileExceed: fileExceedInfo }),
|
|
153
153
|
!hasSomeSelectedFiles(selectedLocalFiles) ? ((!props.isIdea && props.helperText) || (React.createElement("p", { className: "pf-v5-u-mt-sm" },
|
|
@@ -5,7 +5,7 @@ const defaultProps = {
|
|
|
5
5
|
};
|
|
6
6
|
const MainSection = (props) => {
|
|
7
7
|
return (React.createElement(ErrorBoundary, { isPageLevelError: true },
|
|
8
|
-
React.createElement("section", { id: `${props.section}`, tabIndex: -1, "aria-labelledby": `${props.section}-heading`, "aria-describedby": `${props.section}-description`, className: `${props.className ? props.className : ''}` },
|
|
8
|
+
React.createElement("section", { id: `${props.section}-section`, tabIndex: -1, "aria-labelledby": `${props.section}-heading`, "aria-describedby": `${props.section}-description`, className: `${props.className ? props.className : ''}` },
|
|
9
9
|
React.createElement(LoadingIndicator, { show: props.isLoading, size: "lg" }),
|
|
10
10
|
!props.isLoading && (React.createElement(React.Fragment, null,
|
|
11
11
|
React.createElement("header", { className: "pf-v5-u-display-none-on-sm" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecommendationsReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/RecommendationsReducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAoB,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACpH,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAiB,MAAM,0CAA0C,CAAC;AAC5G,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,
|
|
1
|
+
{"version":3,"file":"RecommendationsReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/RecommendationsReducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAoB,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACpH,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAiB,MAAM,0CAA0C,CAAC;AAC5G,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAIH,gCAAgC,EAEnC,MAAM,mBAAmB,CAAC;AAG3B,KAAK,WAAW,GAAG,OAAO,CAAC,wBAAwB,EAAE,qBAAqB,CAAC,CAAC;AAC5E,MAAM,MAAM,kCAAkC,GAAG,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;AAE9E,MAAM,WAAW,qBAAqB;IAClC,wBAAwB,EAAE,OAAO,CAAC;IAClC,6BAA6B,EAAE,OAAO,CAAC;IACvC,YAAY,EAAE,YAAY,CAAC;IAC3B,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B,WAAW,EAAE,mBAAmB,EAAE,CAAC;IACnC,QAAQ,CAAC,EAAE,MA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isArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { search } from '@cee-eng/hydrajs';
|
|
11
|
-
import { getSolrParams,
|
|
11
|
+
import { buildParams, getSolrParams, getTrimmedCharacters, replaceHighlightingData, } from '@rh-support/utils';
|
|
12
12
|
import { WATSONX_DESCRIPTION_LIMIT, WATSONX_SUMMARY_LIMIT } from './CaseConstNTypes';
|
|
13
13
|
export const initialRecommendationsState = {
|
|
14
14
|
isLoadingRecommendations: false,
|
|
@@ -110,11 +110,15 @@ export const fetchWatsonXRecommendations = (dispatch, query, max_rows, page_size
|
|
|
110
110
|
});
|
|
111
111
|
try {
|
|
112
112
|
const watsonXQuery = Object.assign(Object.assign(Object.assign({ product: query === null || query === void 0 ? void 0 : query.product, version: query === null || query === void 0 ? void 0 : query.version }, ((query === null || query === void 0 ? void 0 : query.summary) && {
|
|
113
|
-
summary:
|
|
113
|
+
summary: getTrimmedCharacters(query.summary, WATSONX_SUMMARY_LIMIT),
|
|
114
114
|
})), ((query === null || query === void 0 ? void 0 : query.description) && {
|
|
115
|
-
description:
|
|
115
|
+
description: getTrimmedCharacters(query.description, WATSONX_DESCRIPTION_LIMIT),
|
|
116
116
|
})), { rerank: isRerankEnabled });
|
|
117
|
-
const
|
|
117
|
+
const paramsObj = Object.assign(Object.assign({}, watsonXQuery), getSolrParams(max_rows, highlighted_fragment_size, additionalFilters, seQueryFields));
|
|
118
|
+
const response = yield search.getWatsonXRecommendationsForCase2(
|
|
119
|
+
//@ts-ignore
|
|
120
|
+
buildParams(paramsObj), // buildParams creates urlparams and encode values
|
|
121
|
+
abortSignal);
|
|
118
122
|
const docs = replaceHighlightingData(response.response.docs, response.highlighting);
|
|
119
123
|
dispatch({
|
|
120
124
|
type: RecommendationsConstants.receivedRecommendations,
|
|
@@ -66,16 +66,14 @@ export declare function createOrUpdateSessionResources(dispatch: SessionReducerD
|
|
|
66
66
|
export declare function createSessionResourcesLocal(dispatch: SessionReducerDispatchType, activeSessionId: string, currentSessionResourceTracking: ISessionResourcesTracking, source: ISessionResourceSource, payload: string, resources?: ISessionResource[]): Promise<void>;
|
|
67
67
|
export declare function updateSessionResourcesLocal(dispatch: SessionReducerDispatchType, activeSessionId: string, currentSessionResourceTracking: ISessionResourcesTracking, source: ISessionResourceSource, resources: ISessionResource[]): Promise<void>;
|
|
68
68
|
export declare function getSessResFromTCCategories(tcCategories: ITopContentList[], visibilityStatus: ISessionResourceVisibility): ISessionResource[];
|
|
69
|
-
export declare const getSessResTCCategory: (tcCategory: ITopContentList, visibilityStatus: ISessionResourceVisibility) => ISessionResource[];
|
|
69
|
+
export declare const getSessResTCCategory: (tcCategory: ITopContentList, visibilityStatus: ISessionResourceVisibility, rank: number) => ISessionResource[];
|
|
70
70
|
export declare const getSessResTC: (tc: ITopContent, visibilityStatus: ISessionResourceVisibility, resourceEntityId?: number, rank?: number) => ISessionResource;
|
|
71
71
|
export declare function getSessResFromRecs(recs: ISolrRecommendation[], visibilityStatus: ISessionResourceVisibility): ISessionResource[];
|
|
72
72
|
export declare const getSessResFromRec: (rec: ISolrRecommendation, visibilityStatus: ISessionResourceVisibility, rank?: number) => ISessionResource;
|
|
73
73
|
export declare const getSessResFromRules: (url: string, visibilityStatus: ISessionResourceVisibility, resourceEntityId?: any, rank?: number) => ISessionResource;
|
|
74
74
|
export declare const getRulesToSave: (visiterUrl: any, visitedRec: any, allPresentedRec: any) => ISessionResource[];
|
|
75
75
|
export declare const getInsightRulesToSave: (visiterUrl: any, visitedRec: any, allPresentedRec: any) => ISessionResource[];
|
|
76
|
-
export declare const getSessResFromEA: (cta: string, visibilityStatus: ISessionResourceVisibility, resourceEntityId?: any) => ISessionResource;
|
|
77
|
-
export declare const getSessResFromClusterRecommendation: (cta: string, visibilityStatus: ISessionResourceVisibility, resourceEntityId?: any) => ISessionResource;
|
|
78
|
-
export declare function getSessResFromClusterRecommendations(recs: any, visibilityStatus: ISessionResourceVisibility): ISessionResource[];
|
|
76
|
+
export declare const getSessResFromEA: (cta: string, visibilityStatus: ISessionResourceVisibility, rank: number, resourceEntityId?: any) => ISessionResource;
|
|
79
77
|
export declare const getRecToSave: (visitedRec: ISolrRecommendation, allPresentedRec: ISolrRecommendation[], allDocs?: ISolrRecommendation[]) => ISessionResource[];
|
|
80
78
|
export {};
|
|
81
79
|
//# sourceMappingURL=SessionRestoreReducer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionRestoreReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/SessionRestoreReducer.ts"],"names":[],"mappings":"AACA,OAAO,EACH,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,IAAI,sBAAsB,EAC/C,yBAAyB,IAAI,0BAA0B,EAC1D,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AACzG,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAkB1G,OAAO,EAAwB,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAWlF,MAAM,WAAW,aAAa;IAC1B,CAAC,SAAS,EAAE,MAAM,GAAG,YAAY,CAAC;CACrC;AAED,MAAM,WAAW,iBAAiB;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;IACrC,kBAAkB,EAAE,gBAAgB,EAAE,CAAC;CAC1C;AACD,MAAM,WAAW,yBAAyB;IACtC,CAAC,MAAM,EAAE,MAAM,GAAG,i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oB,eACjB,eAAe,oBACT,0BAA0B,QACtC,MAAM,KACb,gBAAgB,EAIlB,CAAC;AAEF,eAAO,MAAM,YAAY,OACjB,WAAW,oBACG,0BAA0B,qBACzB,MAAM,SAClB,MAAM,KACd,gBAMD,CAAC;AAEH,wBAAgB,kBAAkB,CAC9B,IAAI,EAAE,mBAAmB,EAAE,EAC3B,gBAAgB,EAAE,0BAA0B,GAC7C,gBAAgB,EAAE,CAIpB;AAGD,eAAO,MAAM,iBAAiB,QACrB,mBAAmB,oBACN,0BAA0B,SACrC,MAAM,KACd,gBAMD,CAAC;AAEH,eAAO,MAAM,mBAAmB,QACvB,MAAM,oBACO,0BAA0B,iCAErC,MAAM,KACd,gBAMD,CAAC;AAEH,eAAO,MAAM,cAAc,gFAa1B,CAAC;AAEF,eAAO,MAAM,qBAAqB,gFAajC,CAAC;AAGF,eAAO,MAAM,gBAAgB,QACpB,MAAM,oBACO,0BAA0B,QACtC,MAAM,6BAEb,gBAMD,CAAC;AAIH,eAAO,MAAM,YAAY,eACT,mBAAmB,mBACd,mBAAmB,EAAE,YAC7B,mBAAmB,EAAE,uBAWjC,CAAC"}
|
|
@@ -368,12 +368,12 @@ export function updateSessionResourcesLocal(dispatch, activeSessionId, currentSe
|
|
|
368
368
|
}
|
|
369
369
|
export function getSessResFromTCCategories(tcCategories, visibilityStatus) {
|
|
370
370
|
const toReturn = [];
|
|
371
|
-
forEach(tcCategories, (tcCategory) => toReturn.push(...getSessResTCCategory(tcCategory, visibilityStatus)));
|
|
371
|
+
forEach(tcCategories, (tcCategory, i) => toReturn.push(...getSessResTCCategory(tcCategory, visibilityStatus, i)));
|
|
372
372
|
return toReturn;
|
|
373
373
|
}
|
|
374
|
-
export const getSessResTCCategory = (tcCategory, visibilityStatus) => {
|
|
374
|
+
export const getSessResTCCategory = (tcCategory, visibilityStatus, rank) => {
|
|
375
375
|
const toReturn = [];
|
|
376
|
-
forEach(tcCategory.content, (tc) => toReturn.push(getSessResTC(tc, visibilityStatus)));
|
|
376
|
+
forEach(tcCategory.content, (tc) => toReturn.push(getSessResTC(tc, visibilityStatus, rank)));
|
|
377
377
|
return toReturn;
|
|
378
378
|
};
|
|
379
379
|
export const getSessResTC = (tc, visibilityStatus, resourceEntityId, rank) => {
|
|
@@ -419,14 +419,7 @@ export const getInsightRulesToSave = (visiterUrl, visitedRec, allPresentedRec) =
|
|
|
419
419
|
});
|
|
420
420
|
};
|
|
421
421
|
// EARules Helper Function
|
|
422
|
-
export const getSessResFromEA = (cta, visibilityStatus, resourceEntityId) => (Object.assign(Object.assign({ visibilityStatus }, (resourceEntityId && { resourceEntityId })), { type: getResTypeFromUrl(
|
|
423
|
-
// Cluster Recommendation Helper Function
|
|
424
|
-
export const getSessResFromClusterRecommendation = (cta, visibilityStatus, resourceEntityId) => (Object.assign(Object.assign({ visibilityStatus }, (resourceEntityId && { resourceEntityId })), { type: 'rule', url: cta }));
|
|
425
|
-
export function getSessResFromClusterRecommendations(recs, visibilityStatus) {
|
|
426
|
-
const toReturn = [];
|
|
427
|
-
forEach(recs, (rec) => toReturn.push(getSessResFromClusterRecommendation('', visibilityStatus, rec.rule_id)));
|
|
428
|
-
return toReturn;
|
|
429
|
-
}
|
|
422
|
+
export const getSessResFromEA = (cta, visibilityStatus, rank, resourceEntityId) => (Object.assign(Object.assign({ visibilityStatus }, (resourceEntityId && { resourceEntityId })), { type: getResTypeFromUrl(cta), url: cta, rank }));
|
|
430
423
|
// Save Recommendations Helper Function
|
|
431
424
|
export const getRecToSave = (visitedRec, allPresentedRec, allDocs = []) => {
|
|
432
425
|
var _a, _b;
|
|
@@ -628,7 +628,7 @@ button.pf-v5-c-toggle-group__button {
|
|
|
628
628
|
|
|
629
629
|
.top-content-suggestion-accordion {
|
|
630
630
|
.pf-v5-c-accordion .pf-v5-c-accordion__toggle {
|
|
631
|
-
padding:
|
|
631
|
+
padding: 0.5rem 1rem !important;
|
|
632
632
|
}
|
|
633
633
|
.pf-v5-c-accordion__toggle-text h3 {
|
|
634
634
|
font-size: 17px !important;
|
|
@@ -642,3 +642,18 @@ button.pf-v5-c-toggle-group__button {
|
|
|
642
642
|
color: black;
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
+
|
|
646
|
+
.file-diag-selected {
|
|
647
|
+
.file-description.form-control {
|
|
648
|
+
border: 1px solid #f0f0f0;
|
|
649
|
+
box-shadow: none;
|
|
650
|
+
border-bottom: 1px solid #6a6e73;
|
|
651
|
+
color: var(--pf-v5-c-form-control--Color);
|
|
652
|
+
&::-webkit-input-placeholder {
|
|
653
|
+
color: var(--pf-v5-c-form-control--m-placeholder--Color);
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
.text-muted {
|
|
657
|
+
color: var(--pf-v5-c-helper-text__item-icon--m-indeterminate--Color);
|
|
658
|
+
}
|
|
659
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.71",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"lib/**/*"
|
|
27
27
|
],
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@cee-eng/hydrajs": "4.17.
|
|
29
|
+
"@cee-eng/hydrajs": "4.17.3",
|
|
30
30
|
"@cee-eng/ui-toolkit": "1.1.6",
|
|
31
31
|
"@patternfly/patternfly": "5.1.0",
|
|
32
32
|
"@patternfly/react-core": "5.1.1",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"react-redux": "^7.2.2",
|
|
50
50
|
"react-router-dom": "^5.1.2",
|
|
51
51
|
"react-test-renderer": "18.2.0",
|
|
52
|
-
"react-virtualized": "^9.
|
|
52
|
+
"react-virtualized": "^9.22.5"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@cee-eng/hydrajs": "4.17.
|
|
55
|
+
"@cee-eng/hydrajs": "4.17.3",
|
|
56
56
|
"@cee-eng/ui-toolkit": "1.1.6",
|
|
57
57
|
"@patternfly/patternfly": "5.1.0",
|
|
58
58
|
"@patternfly/react-core": "5.1.1",
|
|
@@ -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.
|
|
65
|
-
"@rh-support/react-context": "2.1.
|
|
64
|
+
"@rh-support/components": "2.1.39",
|
|
65
|
+
"@rh-support/react-context": "2.1.42",
|
|
66
66
|
"@rh-support/types": "2.0.3",
|
|
67
|
-
"@rh-support/user-permissions": "2.1.
|
|
68
|
-
"@rh-support/utils": "2.1.
|
|
67
|
+
"@rh-support/user-permissions": "2.1.28",
|
|
68
|
+
"@rh-support/utils": "2.1.20",
|
|
69
69
|
"@types/react-redux": "^7.1.33",
|
|
70
70
|
"@types/redux": "^3.6.0",
|
|
71
71
|
"dompurify": "^2.2.6",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"react-redux": "^7.2.2",
|
|
88
88
|
"react-router-dom": "^5.1.2",
|
|
89
89
|
"react-test-renderer": "18.2.0",
|
|
90
|
-
"react-virtualized": "^9.
|
|
90
|
+
"react-virtualized": "^9.22.5",
|
|
91
91
|
"redux": "^4.0.5",
|
|
92
92
|
"timers": "^0.1.1"
|
|
93
93
|
},
|
|
@@ -132,5 +132,5 @@
|
|
|
132
132
|
"defaults and supports es6-module",
|
|
133
133
|
"maintained node versions"
|
|
134
134
|
],
|
|
135
|
-
"gitHead": "
|
|
135
|
+
"gitHead": "0e07f257ebbb2d665193b3bf245666bf03df10cd"
|
|
136
136
|
}
|