@rh-support/troubleshoot 2.2.81 → 2.2.83
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/CaseDetailsAside.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsAside.js +6 -6
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +4 -4
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +1 -1
- package/lib/esm/components/Recommendations/AsideResults.js +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendationItems.js +1 -1
- package/lib/esm/components/Recommendations/EARules/EARuleInfoInline.js +2 -2
- package/lib/esm/components/Recommendations/EARules/EARuleWidget.js +1 -1
- package/lib/esm/components/Recommendations/InsightsRuleInfo.js +1 -1
- package/lib/esm/components/Recommendations/Recommendations.js +1 -1
- package/lib/esm/components/Recommendations/RulesModal.js +2 -2
- package/lib/esm/components/Suggestions/TopContent.js +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.js +1 -1
- package/lib/esm/reducers/SessionRestoreReducer.d.ts +3 -4
- package/lib/esm/reducers/SessionRestoreReducer.d.ts.map +1 -1
- package/lib/esm/reducers/SessionRestoreReducer.js +9 -14
- package/lib/esm/scss/_main.scss +3 -3
- package/lib/esm/scss/_pf-overrides.scss +27 -0
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseDetailsAside.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsAside.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAYvE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;CACtB;AAMD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CaseDetailsAside.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsAside.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAYvE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;CACtB;AAMD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,qBAiX7C"}
|
|
@@ -169,22 +169,22 @@ export function CaseDetailsAside(props) {
|
|
|
169
169
|
// To check if the user is ESS Customer and Product has ESS Support
|
|
170
170
|
const isESSCustomer = isSpecialSupportOfferingEnabled((_b = allProducts.data) === null || _b === void 0 ? void 0 : _b.productsResult, selectedProduct);
|
|
171
171
|
return (React.createElement("aside", { className: `grid-aside ${isSideBarExpanded ? '' : 'sidebar-collapsed'} ` },
|
|
172
|
-
React.createElement("pfe-collapse-toggle", { "aria-controls": "case-details-aside-content", onClick: onToggleAside }, isSideBarExpanded ? (React.createElement("div", { className: `sidebar-header ${isExportingPDF ? 'hide-in-pdf' : ''}` },
|
|
173
|
-
React.createElement(
|
|
174
|
-
React.createElement("
|
|
172
|
+
React.createElement("pfe-collapse-toggle", { "aria-label": `${isSideBarExpanded ? t('Collapse sidebar') : t('Expand sidebar')}`, "aria-controls": "case-details-aside-content", onClick: onToggleAside }, isSideBarExpanded ? (React.createElement("div", { className: `sidebar-header ${isExportingPDF ? 'hide-in-pdf' : ''}` },
|
|
173
|
+
React.createElement("div", { className: "case-detail-collapse-panel" },
|
|
174
|
+
React.createElement("p", { className: "case-detail-collapse-label" },
|
|
175
175
|
React.createElement(Trans, null, "Collapse")),
|
|
176
176
|
React.createElement(Icon, { className: "pf-v5-u-ml-auto", size: "md" },
|
|
177
177
|
React.createElement(AngleDoubleRightIcon, null))))) : (React.createElement("div", { className: "pf-v5-u-display-flex pf-v5-u-flex-direction-column sidebar-section-collapsed" },
|
|
178
178
|
React.createElement(Tooltip, { content: t('Expand sidebar'), position: "left" },
|
|
179
|
-
React.createElement(
|
|
179
|
+
React.createElement("div", { className: "case-detail-collapse-panel" },
|
|
180
180
|
React.createElement(Icon, { size: "md" },
|
|
181
181
|
React.createElement(AngleDoubleLeftIcon, null)))),
|
|
182
182
|
canSeeToggleCustomerView && (React.createElement(Tooltip, { content: viewAsCustomer ? t('External view') : t('Internal view'), position: "left" },
|
|
183
|
-
React.createElement(Button, { variant: "link", onClick: () => setSectionToScollRef(toggleCustomerViewRef), className: "sidebar-section-toggle-btn" },
|
|
183
|
+
React.createElement(Button, { variant: "link", onClick: () => setSectionToScollRef(toggleCustomerViewRef), className: "sidebar-section-toggle-btn", "aria-label": viewAsCustomer ? t('External view') : t('Internal view') },
|
|
184
184
|
React.createElement(Icon, { size: "md", className: viewAsCustomer ? 'blueLock' : 'greyLock' },
|
|
185
185
|
React.createElement(LockIcon, null))))),
|
|
186
186
|
!isLoadingRecommendations && allDocs.length > 0 && (React.createElement(Tooltip, { content: t('Top recommendations'), position: "left" },
|
|
187
|
-
React.createElement(Button, { variant: "link", onClick: () => setSectionToScollRef(topSolutionsRef), className: "sidebar-section-toggle-btn" },
|
|
187
|
+
React.createElement(Button, { variant: "link", onClick: () => setSectionToScollRef(topSolutionsRef), className: "sidebar-section-toggle-btn", "aria-label": t('Top recommendations') },
|
|
188
188
|
React.createElement(Icon, { size: "md" },
|
|
189
189
|
React.createElement(ListIcon, null))))),
|
|
190
190
|
!caseEscalations.isFetching && (canCreateICE || (canCreateRME && isCreateRMEVisible)) && (React.createElement(Tooltip, { content: t('Request an escalation'), position: "left" },
|
|
@@ -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,qBAsN5C"}
|
|
@@ -109,11 +109,11 @@ export function CaseDetailsTabs(props) {
|
|
|
109
109
|
return tabIndex > -1 ? tabIndex : activeTabKey;
|
|
110
110
|
};
|
|
111
111
|
const isTabVisibleInPdfExport = (tab) => tab.title === CaseDetailsTabsEnum.DISCUSSION && pdfOption === 'Reduced' ? false : true;
|
|
112
|
-
return (React.createElement("div", { className: "case-details-tabs", ref: props.tabdRef },
|
|
113
|
-
React.createElement(Tabs, { className: isExportingPDF ? 'hide-in-pdf' : '', activeKey: getActiveTabKey(), component: TabsComponent.nav, onSelect: handleTabClick,
|
|
112
|
+
return (React.createElement("div", { className: "case-details-tabs", role: "region", ref: props.tabdRef },
|
|
113
|
+
React.createElement(Tabs, { className: isExportingPDF ? 'hide-in-pdf' : '', activeKey: getActiveTabKey(), component: TabsComponent.nav, onSelect: handleTabClick, "aria-label": t('Case details tabs') }, tabsToRender.map((tab, index) => (React.createElement(Tab, { eventKey: index, tabContentRef: tab.ref, tabContentId: `pf-tab-${index}-${tab.title.split(' ')[0]}-tabpanel`, key: tab.title, href: `#${props.basePath}/${tab.routePath}`, "data-tracking-id": tab['data-tracking-id'], title: React.createElement(TabTitleText, null,
|
|
114
114
|
React.createElement(Trans, null, tab.title)) })))),
|
|
115
115
|
React.createElement("div", { className: "case-details-tabs-content pf-v5-u-pt-xl" }, tabsToRender.map((tab, index) => {
|
|
116
|
-
return index === getActiveTabKey() && !isExportingPDF ? (React.createElement(TabContent, { eventKey: index, key: tab.key, id: tab.
|
|
116
|
+
return index === getActiveTabKey() && !isExportingPDF ? (React.createElement(TabContent, { eventKey: index, key: tab.key, id: `pf-tab-${index}-${tab.title.split(' ')[0]}-tabpanel`, ref: tab.ref, "aria-label": tab.title, hidden: isExportingPDF ? !isTabVisibleInPdfExport(tab) : index !== getActiveTabKey() },
|
|
117
117
|
React.createElement(ErrorBoundary, { errorMsgInfo: {
|
|
118
118
|
message: t(`There was an error loading case ${tab.key}`),
|
|
119
119
|
} },
|
|
@@ -123,7 +123,7 @@ export function CaseDetailsTabs(props) {
|
|
|
123
123
|
React.createElement(Trans, null, tab.title))),
|
|
124
124
|
tab.component)))) : isExportingPDF ? (React.createElement(React.Fragment, null,
|
|
125
125
|
React.createElement("div", { className: "page-break" }),
|
|
126
|
-
React.createElement(TabContent, { eventKey: index, key: tab.key, id: tab.
|
|
126
|
+
React.createElement(TabContent, { eventKey: index, key: tab.key, id: `pf-tab-${index}-${tab.title.split(' ')[0]}-tabpanel`, ref: tab.ref, "aria-label": tab.title, hidden: isExportingPDF ? !isTabVisibleInPdfExport(tab) : index !== getActiveTabKey() },
|
|
127
127
|
React.createElement(ErrorBoundary, { errorMsgInfo: {
|
|
128
128
|
message: t(`There was an error loading case ${tab.key}`),
|
|
129
129
|
} },
|
|
@@ -309,7 +309,7 @@ export const CaseSolutions = forwardRef((props, ref) => {
|
|
|
309
309
|
{ title: '10', value: 10 },
|
|
310
310
|
] }))))),
|
|
311
311
|
topRecommendations.length > 0 && (React.createElement("div", { className: "card card-white card-support recommendations", ref: ref },
|
|
312
|
-
React.createElement("h3", { className: "card-heading" },
|
|
312
|
+
React.createElement("h3", { className: "card-heading knowledgebase-recommendations" },
|
|
313
313
|
React.createElement(Trans, null, "Knowledgebase recommendations")),
|
|
314
314
|
React.createElement("div", { className: "card-body" },
|
|
315
315
|
React.createElement(PaginatedList, { id: "case-details-top-recommendations", className: "list-icons list-icons-flush", listItems: topRecommendations
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.tsx"],"names":[],"mappings":"AAQA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAgB/D,wBAAgB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"CaseContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.tsx"],"names":[],"mappings":"AAQA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAgB/D,wBAAgB,sBAAsB,sBAoPrC"}
|
|
@@ -152,11 +152,11 @@ export function CaseContactPhoneNumber() {
|
|
|
152
152
|
!isExportingPDF ? ContactPhoneNumberPopOver() : ''),
|
|
153
153
|
React.createElement(InputGroupText, null,
|
|
154
154
|
React.createElement(PhoneInput, { phoneValue: localFullPhoneState, onPhoneValueChange: onPhoneChange, onCountryCodeChange: onCountryCodeChange, validations: isPhoneNumberValid, isDisabled: isCasePhoneUpdating || isCaseOwnerUpdating, isLoading: isCasePhoneUpdating, "data-tracking-id": "case-details-page-supplied-phone", invalid: invalid, setInvalid: setInvalid }),
|
|
155
|
-
React.createElement("button", { className: "btn btn-app btn-link pf-v5-u-ml-sm", type: "button", "data-tracking-id": "case-details-page-supplied-phone-save", onClick: () => onSave(), disabled: (localFullPhoneState === null || localFullPhoneState === void 0 ? void 0 : localFullPhoneState.length) > PHONE_LIMIT ||
|
|
155
|
+
React.createElement("button", { className: "btn btn-app btn-link pf-v5-u-ml-sm", type: "button", "data-tracking-id": "case-details-page-supplied-phone-save", onClick: () => onSave(), "aria-label": "Save", disabled: (localFullPhoneState === null || localFullPhoneState === void 0 ? void 0 : localFullPhoneState.length) > PHONE_LIMIT ||
|
|
156
156
|
localFullPhoneState === phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber ||
|
|
157
157
|
(isSaveClicked && isPhoneValueCannotBeSaved), style: { display: isExportingPDF ? 'none' : '' } },
|
|
158
158
|
React.createElement(CheckIcon, null)),
|
|
159
|
-
React.createElement("button", { className: "btn btn-app btn-link", type: "button", onClick: onClear, "data-tracking-id": "case-details-page-supplied-phone-cancel", style: { display: isExportingPDF ? 'none' : '' }, disabled: isEmpty(localFullPhoneState) },
|
|
159
|
+
React.createElement("button", { className: "btn btn-app btn-link", type: "button", onClick: onClear, "data-tracking-id": "case-details-page-supplied-phone-cancel", style: { display: isExportingPDF ? 'none' : '' }, disabled: isEmpty(localFullPhoneState), "aria-label": "Clear" },
|
|
160
160
|
React.createElement(TimesIcon, { color: "#6A6E73" }))),
|
|
161
161
|
!invalid &&
|
|
162
162
|
(localFullPhoneState === null || localFullPhoneState === void 0 ? void 0 : localFullPhoneState.length) < PHONE_LIMIT &&
|
|
@@ -140,7 +140,7 @@ const CaseAttachment = React.forwardRef((props, ref) => {
|
|
|
140
140
|
React.createElement("div", { className: "clip-content-wrapper code-block" },
|
|
141
141
|
React.createElement("code", { ref: clipboardRef }, props.attachment.checksum)),
|
|
142
142
|
React.createElement(Tooltip, { position: TooltipPosition.top, content: clipboardText, trigger: "click" },
|
|
143
|
-
React.createElement("button", { className: "nimbus-icon-clipboard clip-code-raw-btn xs-icon",
|
|
143
|
+
React.createElement("button", { "aria-label": "Copy to clipboard", className: "nimbus-icon-clipboard clip-code-raw-btn xs-icon", onClick: copyToClipboard }))))),
|
|
144
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 ||
|
|
@@ -339,7 +339,7 @@ export function PostComment(props) {
|
|
|
339
339
|
canPostPrivateComments && (React.createElement("span", { className: "post-comment-checkbox" },
|
|
340
340
|
React.createElement(Checkbox, { label: t('Private'), isChecked: !isPublic && canPostPrivateComments, onChange: handleCheckboxToggle, "aria-label": t('Private'), id: "private-comment", name: "private-comment", "data-tracking-id": "private-comment-checkbox" }))))),
|
|
341
341
|
React.createElement(FileUpload, { className: `file-upload-section ${hasSomeSelectedFilesLocal ? 'card card-white pf-v5-u-mt-lg pf-v5-u-p-lg' : ''}`, idToUploadTo: caseNumber, onUploadClick: onFileUploadClick, isSessionId: false, isSecureSupport: loggedInUsersAccount.data.secureSupport, isPrivate: !isPublic, autoUploadOnSelect: true, showDescriptionInfoMsg: true }),
|
|
342
|
-
React.createElement("span", Object.assign({}, getRootProps()),
|
|
342
|
+
React.createElement("span", Object.assign({}, getRootProps(), { tabIndex: -1 }),
|
|
343
343
|
React.createElement("input", Object.assign({ style: { display: 'none !important' } }, getInputProps()))),
|
|
344
344
|
!loggedInUsersAccount.data.secureSupport && (React.createElement(NewFeaturePopoverAnnouncement, { "aria-label": "Attach and embed images! You'll find all of your uploaded images here.", featureName: FeatureAnnouncementKeys.MARKDOWN_INLINE_IMAGES, sectionRef: componentRef, bodyContent: React.createElement("div", null,
|
|
345
345
|
React.createElement(Trans, null, "Attach and embed images! You'll find all of your uploaded images here.")), triggerRef: () => document.getElementById('md-editor-toolbar-file-selector') }))));
|
|
@@ -119,7 +119,7 @@ export function AsideResults(props) {
|
|
|
119
119
|
const onResourceClick = (doc, index) => (event) => {
|
|
120
120
|
if (isSelectedAccounntSecureSupport)
|
|
121
121
|
return;
|
|
122
|
-
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.RECOMMENDATIONS_ASIDE, [getSessResFromRec(doc, SessionResourceVisibility.VISITED, index)], payload);
|
|
122
|
+
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.RECOMMENDATIONS_ASIDE, [getSessResFromRec(doc, SessionResourceVisibility.VISITED, index + 1)], payload);
|
|
123
123
|
};
|
|
124
124
|
useEffect(() => {
|
|
125
125
|
if (isSelectedAccounntSecureSupport)
|
|
@@ -18,7 +18,7 @@ export function ClusterRecommendationItems(props) {
|
|
|
18
18
|
openshiftClusterID: state.caseDetails.openshiftClusterID,
|
|
19
19
|
}), isEqual);
|
|
20
20
|
const onResourceClick = (e, rule) => {
|
|
21
|
-
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.CLUSTER_RECOMMENDATION, [getSessResFromRules('', SessionResourceVisibility.VISITED, rule.rule_id)], JSON.stringify({ product, version, openshiftClusterID }));
|
|
21
|
+
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.CLUSTER_RECOMMENDATION, [getSessResFromRules('', SessionResourceVisibility.VISITED, 1, rule.rule_id)], JSON.stringify({ product, version, openshiftClusterID }));
|
|
22
22
|
};
|
|
23
23
|
useEffect(() => {
|
|
24
24
|
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.CLUSTER_RECOMMENDATION, getRulesToSave('', '', props.clusterRecommendations), JSON.stringify({ product, version, openshiftClusterID }));
|
|
@@ -54,7 +54,7 @@ export function EARuleInfoInline({ eaRules = [] }) {
|
|
|
54
54
|
}, [validEARulesLength]);
|
|
55
55
|
const onPaginationChange = (currentPage) => {
|
|
56
56
|
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.EDMOUND_ABOTT, [
|
|
57
|
-
getSessResFromRules(eaRules[currentPage - 1].cta, SessionResourceVisibility.PRESENTED, eaRules[currentPage - 1].rule_id
|
|
57
|
+
getSessResFromRules(eaRules[currentPage - 1].cta, SessionResourceVisibility.PRESENTED, currentPage, eaRules[currentPage - 1].rule_id),
|
|
58
58
|
], JSON.stringify({ product, version, summary }));
|
|
59
59
|
setCurrentPage(currentPage);
|
|
60
60
|
};
|
|
@@ -93,7 +93,7 @@ export function EARuleInfoInline({ eaRules = [] }) {
|
|
|
93
93
|
return null;
|
|
94
94
|
return (React.createElement(React.Fragment, null,
|
|
95
95
|
React.createElement(RecommendationFeedbackModal, { isModalOpen: isModalVisible, handleModalToggle: onModalToggle, modalContent: t(`Great, we're glad that resolved your issue`) }),
|
|
96
|
-
React.createElement(EARule, { rule: visibleRule, ruleRank: currentPage
|
|
96
|
+
React.createElement(EARule, { rule: visibleRule, ruleRank: currentPage },
|
|
97
97
|
React.createElement("div", { className: "pf-v5-c-alert pf-m-info pf-m-inline pf-v5-u-mb-md", "aria-label": "Success alert" },
|
|
98
98
|
React.createElement("div", { className: "pf-v5-c-alert__icon" },
|
|
99
99
|
React.createElement(InfoCircleIcon, null)),
|
|
@@ -28,7 +28,7 @@ export function EARuleWidget() {
|
|
|
28
28
|
differenceBy([visibleValidEARules === null || visibleValidEARules === void 0 ? void 0 : visibleValidEARules.rule_id], presentedIds).length > 0 &&
|
|
29
29
|
!isEmpty(activeSessionId)) {
|
|
30
30
|
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.EDMOUND_ABOTT, [
|
|
31
|
-
getSessResFromRules(visibleValidEARules.cta, SessionResourceVisibility.PRESENTED, visibleValidEARules.rule_id
|
|
31
|
+
getSessResFromRules(visibleValidEARules.cta, SessionResourceVisibility.PRESENTED, 1, visibleValidEARules.rule_id),
|
|
32
32
|
], JSON.stringify({ product, version, summary }));
|
|
33
33
|
}
|
|
34
34
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -39,7 +39,7 @@ export function InsightsRuleInfo({ doc, showNewTag, duplicateKeys }) {
|
|
|
39
39
|
}
|
|
40
40
|
}, [setRuleData, doc.attachmentId, doc.id, selectedLocalFiles, duplicateKeys]);
|
|
41
41
|
const onCtaClick = (link) => (event) => {
|
|
42
|
-
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.INSIGHTS, [getSessResFromRules(link, SessionResourceVisibility.VISITED, ruleData.rule_id)]);
|
|
42
|
+
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.INSIGHTS, [getSessResFromRules(link, SessionResourceVisibility.VISITED, 1, ruleData.rule_id)]);
|
|
43
43
|
};
|
|
44
44
|
const parseMoreInfo = (moreInfo, reportDetails) => {
|
|
45
45
|
const result = parseDotMarkdownWithTracking(moreInfo, reportDetails, SessionResourceSource.INSIGHTS, 'ts-result-insights', 'se-recommended-insights-rule');
|
|
@@ -130,7 +130,7 @@ export default function Recommendations(props) {
|
|
|
130
130
|
};
|
|
131
131
|
const onResourceClick = (doc, index) => (event) => {
|
|
132
132
|
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.RECOMMENDATIONS, [
|
|
133
|
-
getSessResFromRec(doc, SessionResourceVisibility.VISITED, index + (pageSize || DEFAULTPAGESIZE) * ((recommendationState.currentPage || 1) - 1)),
|
|
133
|
+
getSessResFromRec(doc, SessionResourceVisibility.VISITED, index + 1 + (pageSize || DEFAULTPAGESIZE) * ((recommendationState.currentPage || 1) - 1)),
|
|
134
134
|
], JSON.stringify(payload));
|
|
135
135
|
};
|
|
136
136
|
return (React.createElement(React.Fragment, null,
|
|
@@ -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, rank: index }))))))));
|
|
113
|
+
props.EARule.map((rule, index) => (React.createElement(EARuleInfoAccordion, { showNewTag: canShowNewTag, key: `${index}_eaRule`, rule: rule, rank: index + 1 }))))))));
|
|
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, rank: index })))))));
|
|
127
|
+
props.EARule.map((rule, index) => (React.createElement(EARuleInfoAccordion, { showNewTag: canShowNewTag, key: `${index}_eaRule`, rule: rule, rank: index + 1 })))))));
|
|
128
128
|
}
|
|
@@ -36,7 +36,7 @@ export default function TopContent(props) {
|
|
|
36
36
|
};
|
|
37
37
|
// when user opens a top content tab, presented resouces are sent to session api
|
|
38
38
|
const onTopContentTabClicked = (docs) => {
|
|
39
|
-
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.TOP_CONTENT, docs.map((doc, index) => getSessResTC(doc, SessionResourceVisibility.PRESENTED, index)), JSON.stringify({
|
|
39
|
+
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.TOP_CONTENT, docs.map((doc, index) => getSessResTC(doc, SessionResourceVisibility.PRESENTED, index + 1)), JSON.stringify({
|
|
40
40
|
product,
|
|
41
41
|
version,
|
|
42
42
|
summary,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileSelectorButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/fileUpload/fileSelectors/FileSelectorButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,UAAU,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC;IACvD,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,iBAAS,kBAAkB,CAAC,EACxB,WAAW,EACX,EAAO,EACP,SAA4B,EAC5B,WAA6B,EAC7B,SAAiB,EACjB,GAAG,QAAQ,EACd,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"FileSelectorButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/fileUpload/fileSelectors/FileSelectorButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,UAAU,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC;IACvD,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,iBAAS,kBAAkB,CAAC,EACxB,WAAW,EACX,EAAO,EACP,SAA4B,EAC5B,WAA6B,EAC7B,SAAiB,EACjB,GAAG,QAAQ,EACd,EAAE,MAAM,qBA4BR;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -21,7 +21,7 @@ function FileSelectorButton(_a) {
|
|
|
21
21
|
const { getRootProps, getInputProps } = useDropzone({
|
|
22
22
|
onDrop: onDrop(dispatchToAttachmentReducer, isSessionId, isPrivate),
|
|
23
23
|
});
|
|
24
|
-
return (React.createElement("span", Object.assign({ className: "upload-another-file", "data-tracking-id": "file-selector-btn-wrapper" }, getRootProps()),
|
|
24
|
+
return (React.createElement("span", Object.assign({ className: "upload-another-file", "data-tracking-id": "file-selector-btn-wrapper" }, getRootProps(), { tabIndex: -1 }),
|
|
25
25
|
React.createElement("label", { className: "sr-only", htmlFor: "upload-btn" },
|
|
26
26
|
React.createElement(Trans, null, "Upload new file")),
|
|
27
27
|
React.createElement("input", Object.assign({ value: "", style: { display: 'none !important' }, id: `${id !== null && id !== void 0 ? id : 'upload-btn'}` }, getInputProps())),
|
|
@@ -65,15 +65,14 @@ export declare function markAllSessionsUnresolved(dispatch: SessionReducerDispat
|
|
|
65
65
|
export declare function createOrUpdateSessionResources(dispatch: SessionReducerDispatchType, activeSessionId: string, currentSessionResourceTracking: ISessionResourcesTracking, source: ISessionResourceSource, resources?: ISessionResource[], payload?: string): Promise<void>;
|
|
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
|
-
export declare
|
|
69
|
-
export declare const getSessResTCCategory: (tcCategory: ITopContentList, visibilityStatus: ISessionResourceVisibility, rank: number) => ISessionResource[];
|
|
68
|
+
export declare const getSessResTCCategory: (tcCategory: ITopContentList, visibilityStatus: ISessionResourceVisibility, rank?: number) => ISessionResource[];
|
|
70
69
|
export declare const getSessResTC: (tc: ITopContent, visibilityStatus: ISessionResourceVisibility, rank?: number) => ISessionResource;
|
|
71
70
|
export declare function getSessResFromRecs(recs: ISolrRecommendation[], visibilityStatus: ISessionResourceVisibility, pageSize?: number, currentPage?: number): ISessionResource[];
|
|
72
71
|
export declare const getSessResFromRec: (rec: ISolrRecommendation, visibilityStatus: ISessionResourceVisibility, rank?: number) => ISessionResource;
|
|
73
|
-
export declare const getSessResFromRules: (url: string, visibilityStatus: ISessionResourceVisibility,
|
|
72
|
+
export declare const getSessResFromRules: (url: string, visibilityStatus: ISessionResourceVisibility, rank?: number, resourceEntityId?: any) => ISessionResource;
|
|
74
73
|
export declare const getRulesToSave: (visiterUrl: any, visitedRec: any, allPresentedRec: any) => ISessionResource[];
|
|
75
74
|
export declare const getInsightRulesToSave: (visiterUrl: any, visitedRec: any, allPresentedRec: any) => ISessionResource[];
|
|
76
|
-
export declare const getSessResFromEA: (cta: string, visibilityStatus: ISessionResourceVisibility, rank
|
|
75
|
+
export declare const getSessResFromEA: (cta: string, visibilityStatus: ISessionResourceVisibility, rank?: number, resourceEntityId?: any) => ISessionResource;
|
|
77
76
|
export declare const getRecToSave: (visitedRec: ISolrRecommendation, allPresentedRec: ISolrRecommendation[], allDocs?: ISolrRecommendation[]) => ISessionResource[];
|
|
78
77
|
export {};
|
|
79
78
|
//# 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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O,MAAM,YAAY,eACT,mBAAmB,mBACd,mBAAmB,EAAE,YAC7B,mBAAmB,EAAE,uBAWjC,CAAC"}
|
|
@@ -366,28 +366,23 @@ export function updateSessionResourcesLocal(dispatch, activeSessionId, currentSe
|
|
|
366
366
|
catch (e) { }
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
|
-
export
|
|
370
|
-
const toReturn = [];
|
|
371
|
-
forEach(tcCategories, (tcCategory, i) => toReturn.push(...getSessResTCCategory(tcCategory, visibilityStatus, i)));
|
|
372
|
-
return toReturn;
|
|
373
|
-
}
|
|
374
|
-
export const getSessResTCCategory = (tcCategory, visibilityStatus, rank) => {
|
|
369
|
+
export const getSessResTCCategory = (tcCategory, visibilityStatus, rank = 1) => {
|
|
375
370
|
const toReturn = [];
|
|
376
371
|
forEach(tcCategory.content, (tc) => toReturn.push(getSessResTC(tc, visibilityStatus, rank)));
|
|
377
372
|
return toReturn;
|
|
378
373
|
};
|
|
379
|
-
export const getSessResTC = (tc, visibilityStatus, rank) => {
|
|
374
|
+
export const getSessResTC = (tc, visibilityStatus, rank = 1) => {
|
|
380
375
|
var _a, _b, _c;
|
|
381
|
-
return (Object.assign(Object.assign({ visibilityStatus }, ((tc === null || tc === void 0 ? void 0 : tc.topContentId) && { resourceEntityId: `${(_a = tc === null || tc === void 0 ? void 0 : tc.topContentId) !== null && _a !== void 0 ? _a : null}` })), { type: getResTypeFromUrl((_b = tc === null || tc === void 0 ? void 0 : tc.contentUrl) !== null && _b !== void 0 ? _b : ''), url: (_c = tc === null || tc === void 0 ? void 0 : tc.contentUrl) !== null && _c !== void 0 ? _c : '', rank
|
|
376
|
+
return (Object.assign(Object.assign({ visibilityStatus }, ((tc === null || tc === void 0 ? void 0 : tc.topContentId) && { resourceEntityId: `${(_a = tc === null || tc === void 0 ? void 0 : tc.topContentId) !== null && _a !== void 0 ? _a : null}` })), { type: getResTypeFromUrl((_b = tc === null || tc === void 0 ? void 0 : tc.contentUrl) !== null && _b !== void 0 ? _b : ''), url: (_c = tc === null || tc === void 0 ? void 0 : tc.contentUrl) !== null && _c !== void 0 ? _c : '', rank }));
|
|
382
377
|
};
|
|
383
378
|
export function getSessResFromRecs(recs, visibilityStatus, pageSize = 1, currentPage = 1) {
|
|
384
379
|
const toReturn = [];
|
|
385
|
-
forEach(recs, (rec, i) => toReturn.push(getSessResFromRec(rec, visibilityStatus, i + pageSize * (currentPage - 1))));
|
|
380
|
+
forEach(recs, (rec, i) => toReturn.push(getSessResFromRec(rec, visibilityStatus, i + 1 + pageSize * (currentPage - 1))));
|
|
386
381
|
return toReturn;
|
|
387
382
|
}
|
|
388
383
|
// Recommendations Helper Function
|
|
389
|
-
export const getSessResFromRec = (rec, visibilityStatus, rank =
|
|
390
|
-
export const getSessResFromRules = (url, visibilityStatus,
|
|
384
|
+
export const getSessResFromRec = (rec, visibilityStatus, rank = 1) => (Object.assign(Object.assign({ visibilityStatus }, (rec.id && { resourceEntityId: rec.id })), { type: getResTypeFromUrl(rec.view_uri), url: rec.view_uri, rank }));
|
|
385
|
+
export const getSessResFromRules = (url, visibilityStatus, rank = 1, resourceEntityId) => (Object.assign(Object.assign({ visibilityStatus }, (resourceEntityId && { resourceEntityId })), { type: getResTypeFromUrl(url), url: url, rank }));
|
|
391
386
|
export const getRulesToSave = (visiterUrl, visitedRec, allPresentedRec) => {
|
|
392
387
|
return map(allPresentedRec, (rec, i) => {
|
|
393
388
|
let visStatus, url;
|
|
@@ -399,7 +394,7 @@ export const getRulesToSave = (visiterUrl, visitedRec, allPresentedRec) => {
|
|
|
399
394
|
visStatus = SessionResourceVisibility.PRESENTED;
|
|
400
395
|
url = null;
|
|
401
396
|
}
|
|
402
|
-
return getSessResFromRules(url, visStatus, rec.rule_id, i);
|
|
397
|
+
return getSessResFromRules(url, visStatus, rec.rule_id, i + 1);
|
|
403
398
|
});
|
|
404
399
|
};
|
|
405
400
|
export const getInsightRulesToSave = (visiterUrl, visitedRec, allPresentedRec) => {
|
|
@@ -413,11 +408,11 @@ export const getInsightRulesToSave = (visiterUrl, visitedRec, allPresentedRec) =
|
|
|
413
408
|
visStatus = SessionResourceVisibility.PRESENTED;
|
|
414
409
|
url = null;
|
|
415
410
|
}
|
|
416
|
-
return getSessResFromRules(url, visStatus, rec.id, i);
|
|
411
|
+
return getSessResFromRules(url, visStatus, rec.id, i + 1);
|
|
417
412
|
});
|
|
418
413
|
};
|
|
419
414
|
// EARules Helper Function
|
|
420
|
-
export const getSessResFromEA = (cta, visibilityStatus, rank, resourceEntityId) => (Object.assign(Object.assign({ visibilityStatus }, (resourceEntityId && { resourceEntityId })), { type: getResTypeFromUrl(cta), url: cta, rank }));
|
|
415
|
+
export const getSessResFromEA = (cta, visibilityStatus, rank = 1, resourceEntityId) => (Object.assign(Object.assign({ visibilityStatus }, (resourceEntityId && { resourceEntityId })), { type: getResTypeFromUrl(cta), url: cta, rank }));
|
|
421
416
|
// Save Recommendations Helper Function
|
|
422
417
|
export const getRecToSave = (visitedRec, allPresentedRec, allDocs = []) => {
|
|
423
418
|
var _a, _b;
|
package/lib/esm/scss/_main.scss
CHANGED
|
@@ -35,7 +35,7 @@ div.support-grid-case-details.support-case {
|
|
|
35
35
|
|
|
36
36
|
.grid-aside {
|
|
37
37
|
grid-area: aside;
|
|
38
|
-
background-color:
|
|
38
|
+
background-color: var(--pf-v5-global--palette--black-200);
|
|
39
39
|
padding: 1rem;
|
|
40
40
|
display: none;
|
|
41
41
|
|
|
@@ -398,7 +398,7 @@ div.support-grid-case-details.support-case {
|
|
|
398
398
|
}
|
|
399
399
|
|
|
400
400
|
.sidebar-header {
|
|
401
|
-
background-color: #
|
|
401
|
+
background-color: #e0e0e0;
|
|
402
402
|
border-top: 1px solid #ccc;
|
|
403
403
|
border-bottom: 1px solid #ccc;
|
|
404
404
|
|
|
@@ -688,7 +688,7 @@ div.pf-v5-c-alert.ea-rule-alert > div.pf-v5-c-alert__description > p {
|
|
|
688
688
|
.customer-view-switch-label {
|
|
689
689
|
font-size: 15px;
|
|
690
690
|
font-weight: 700;
|
|
691
|
-
color:
|
|
691
|
+
color: #252525;
|
|
692
692
|
}
|
|
693
693
|
|
|
694
694
|
#case-details-aside-content[pfe-expanded] {
|
|
@@ -664,3 +664,30 @@ button.pf-m-plain.manage-bookmark-info-icon-button {
|
|
|
664
664
|
--pf-c-button--m-plain--Color: var(--pf-v5-global--palette--black-900);
|
|
665
665
|
color: var(--pf-v5-global--palette--black-900);
|
|
666
666
|
}
|
|
667
|
+
|
|
668
|
+
.case-detail-collapse-panel {
|
|
669
|
+
display: flex;
|
|
670
|
+
align-items: center;
|
|
671
|
+
justify-content: space-between;
|
|
672
|
+
width: 100%;
|
|
673
|
+
padding: 1.8rem 1.5rem;
|
|
674
|
+
color: var(--pf-v5-global--palette--blue-500);
|
|
675
|
+
font-size: var(--pf-v5-global--FontSize--md);
|
|
676
|
+
font-weight: 500;
|
|
677
|
+
cursor: pointer;
|
|
678
|
+
&:hover {
|
|
679
|
+
background-color: #d1d1d1;
|
|
680
|
+
color: var(--pf-v5-global--palette--blue-500);
|
|
681
|
+
p.case-detail-collapse-label {
|
|
682
|
+
text-decoration: underline;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
p.case-detail-collapse-label {
|
|
686
|
+
margin-bottom: 0;
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
#rh-support #rh-support-main .card.card-support .card-heading.knowledgebase-recommendations {
|
|
691
|
+
background-color: var(--pf-v5-global--palette--black-600);
|
|
692
|
+
border: 1px solid var(--pf-v5-global--palette--black-600);
|
|
693
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.83",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -61,8 +61,8 @@
|
|
|
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.45",
|
|
65
|
+
"@rh-support/react-context": "2.1.50",
|
|
66
66
|
"@rh-support/types": "2.0.3",
|
|
67
67
|
"@rh-support/user-permissions": "2.1.32",
|
|
68
68
|
"@rh-support/utils": "2.1.22",
|
|
@@ -132,5 +132,5 @@
|
|
|
132
132
|
"defaults and supports es6-module",
|
|
133
133
|
"maintained node versions"
|
|
134
134
|
],
|
|
135
|
-
"gitHead": "
|
|
135
|
+
"gitHead": "f779a81c8186fbafef56ce2344429122f1603248"
|
|
136
136
|
}
|