@rh-support/troubleshoot 2.6.46 → 2.6.47-hotfix
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 +8 -0
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +5 -2
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseDetailsTabs.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsTabs.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CaseDetailsTabs.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsTabs.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAa,MAAM,kBAAkB,CAAC;AA0BlE,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,qBAgT5C"}
|
|
@@ -5,6 +5,7 @@ import { ErrorBoundary, LoadingIndicator } from '@rh-support/components';
|
|
|
5
5
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
6
6
|
import { ability, CaseDetailsFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
7
7
|
import { getConfigField, PCM_CONFIG_FIELD_TYPE } from '@rh-support/utils';
|
|
8
|
+
import includes from 'lodash/includes';
|
|
8
9
|
import isEqual from 'lodash/isEqual';
|
|
9
10
|
import React, { Suspense, useContext, useRef, useState } from 'react';
|
|
10
11
|
import { Trans, useTranslation } from 'react-i18next';
|
|
@@ -44,6 +45,12 @@ export function CaseDetailsTabs(props) {
|
|
|
44
45
|
const isCaseSummaryViewActive = caseSummaryViewConfig === '1';
|
|
45
46
|
const { isExportingPDF, pdfOption } = useContext(PDFContext);
|
|
46
47
|
const canSeeRMEs = ability.can(resourceActions.PATCH, resources.CASE_DETAILS, CaseDetailsFields.CASE_DETAILS_RMES);
|
|
48
|
+
/**
|
|
49
|
+
* Checks a list of account numbers for which the case summarization feature should be hidden.
|
|
50
|
+
*/
|
|
51
|
+
const caseSummarizationBlockedAccountsConfig = getConfigField(pcmConfig.data, 'caseSummarizationBlockedAccounts', PCM_CONFIG_FIELD_TYPE.STRING);
|
|
52
|
+
const blockedAccounts = JSON.parse(caseSummarizationBlockedAccountsConfig || []);
|
|
53
|
+
const isAccountBlocked = includes(blockedAccounts, accountNumber);
|
|
47
54
|
const [selectedTab, setSelectedTab] = useState(CaseDetailsTabsEnum.DISCUSSION);
|
|
48
55
|
const discussionTabRef = useRef(null);
|
|
49
56
|
// const bugZillaTabRef: React.MutableRefObject<HTMLDivElement> = useRef(null);
|
|
@@ -126,6 +133,7 @@ export function CaseDetailsTabs(props) {
|
|
|
126
133
|
!loggedInUsersAccount.data.secureSupport &&
|
|
127
134
|
!loggedInUsersAccount.data.hasConfirmedStatesideSupport &&
|
|
128
135
|
isCaseSummaryViewActive &&
|
|
136
|
+
!isAccountBlocked &&
|
|
129
137
|
tabsToRender.push({
|
|
130
138
|
'data-tracking-id': 'generate-ai-case-summary-tab',
|
|
131
139
|
title: CaseDetailsTabsEnum.GENERATE_AI_CASE_SUMMARY,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenshiftDropdownV4.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenshiftDropdownV4.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAgB5E,OAAO,EAAE,gB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C;IACtC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC;AAgBD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,qBAmdzC;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -79,7 +79,6 @@ function OpenshiftDropdownV4(props) {
|
|
|
79
79
|
});
|
|
80
80
|
const onSelect = (event, selectedCluster) => __awaiter(this, void 0, void 0, function* () {
|
|
81
81
|
if (selectedCluster.type === 'checkbox') {
|
|
82
|
-
console.log('from ccc1');
|
|
83
82
|
setShowArchivedClusters(!showArchivedClusters);
|
|
84
83
|
props.onClusterClear();
|
|
85
84
|
setClustersRawResponse([]);
|
|
@@ -154,7 +153,11 @@ function OpenshiftDropdownV4(props) {
|
|
|
154
153
|
});
|
|
155
154
|
clusterOptions.push(React.createElement(Divider, { component: "div", key: index + domain }));
|
|
156
155
|
});
|
|
157
|
-
if (
|
|
156
|
+
if (isFetchingClusters) {
|
|
157
|
+
clusterOptions.push(React.createElement(SelectOption, { isLoading: true, disabled: true },
|
|
158
|
+
React.createElement(Spinner, { size: "lg" })));
|
|
159
|
+
}
|
|
160
|
+
else if (!isFetchingClusters && clustersRawResponse.length < totalResultsNo) {
|
|
158
161
|
clusterOptions.push(React.createElement(SelectOption, { isLoadButton: true, onClick: onViewMoreClick, value: "loader" }, "Display additional results"));
|
|
159
162
|
}
|
|
160
163
|
return [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.47-hotfix",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -134,5 +134,5 @@
|
|
|
134
134
|
"defaults and supports es6-module",
|
|
135
135
|
"maintained node versions"
|
|
136
136
|
],
|
|
137
|
-
"gitHead": "
|
|
137
|
+
"gitHead": "bc2d54e30493e170069aa68ef56a171e55284378"
|
|
138
138
|
}
|