@rh-support/troubleshoot 2.2.83 → 2.2.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +11 -1
- package/lib/esm/components/wizardLayout/WizardAside.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardAside.js +2 -0
- package/package.json +2 -2
|
@@ -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;
|
|
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;AAqB1G,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,qBAujBnD"}
|
|
@@ -8,6 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { caseAttachments } from '@cee-eng/hydrajs';
|
|
11
|
+
import { Alert } from '@patternfly/react-core';
|
|
11
12
|
import { AlertMessage, AlertType, Dropdown, ErrorBoundary, LoadingIndicator, MultiSelectDropDownList, ToastNotification, } from '@rh-support/components';
|
|
12
13
|
import { useGlobalStateContext } from '@rh-support/react-context';
|
|
13
14
|
import { AbilityContext, CaseDetailsFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
@@ -41,6 +42,7 @@ let cellMeasureCache = new CellMeasurerCache({
|
|
|
41
42
|
defaultHeight: 100,
|
|
42
43
|
});
|
|
43
44
|
export default function CaseDiscussion(props) {
|
|
45
|
+
var _a;
|
|
44
46
|
const { t } = useTranslation();
|
|
45
47
|
const { isPostingRemoteRequestCommentCompleted, screenSessionRequested } = useCaseSelector((state) => ({
|
|
46
48
|
isPostingRemoteRequestCommentCompleted: state.isPostingRemoteRequestCommentCompleted,
|
|
@@ -53,7 +55,7 @@ export default function CaseDiscussion(props) {
|
|
|
53
55
|
(urlSearchParams === null || urlSearchParams === void 0 ? void 0 : urlSearchParams.chatId));
|
|
54
56
|
const activeDiscussionElementRef = useRef(null);
|
|
55
57
|
const { sort, discussionFiltersListState, allDiscussions, replyCommentText, replyCommentCreator } = useCaseDiscussionTabStateContext();
|
|
56
|
-
const { globalMetadataState: { loggedInUsersAccount, navBarRef }, } = useGlobalStateContext();
|
|
58
|
+
const { globalMetadataState: { loggedInUsersAccount, loggedInUserRights, navBarRef }, } = useGlobalStateContext();
|
|
57
59
|
const dispatchDiscussion = useCaseDiscussionTabDispatchContext();
|
|
58
60
|
const caseDispatch = useCaseDispatch();
|
|
59
61
|
const { caseDetailsPageState: { caseFeedbacksHydra, caseAttachmentHydra, caseExternalTrackersUpdate }, } = useCaseDetailsPageStateContext();
|
|
@@ -328,6 +330,14 @@ export default function CaseDiscussion(props) {
|
|
|
328
330
|
}, [isPostingRemoteRequestCommentCompleted]);
|
|
329
331
|
return (React.createElement(React.Fragment, null,
|
|
330
332
|
React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading post comment section') } },
|
|
333
|
+
((_a = loggedInUserRights === null || loggedInUserRights === void 0 ? void 0 : loggedInUserRights.data) === null || _a === void 0 ? void 0 : _a.isInternal()) && (React.createElement(Alert, { variant: "warning", isInline: true, title: t('Critical reminder'), className: "pf-v5-u-mb-md" },
|
|
334
|
+
React.createElement("p", null,
|
|
335
|
+
React.createElement(Trans, null,
|
|
336
|
+
"Before posting any comments to a case ",
|
|
337
|
+
React.createElement("b", null, "confirm"),
|
|
338
|
+
" that your content and the case screen are for the ",
|
|
339
|
+
React.createElement("b", null, "correct"),
|
|
340
|
+
" customer case. This avoids accidental breaches of customer contracts and confidentiality obligations.")))),
|
|
331
341
|
React.createElement(AttachmentContextProvider, null,
|
|
332
342
|
React.createElement(PostComment, { caseNumber: caseNumber, allDiscussions: allDiscussions, onCommentAdded: onCommentAdded, onAttachmentAdded: onAttachmentAdded, commentText: replyCommentText, onCommentClear: resetReplyComment, commentCreator: replyCommentCreator, defaultIsPublic: replyingToPrivateComment === null ? replyingToPrivateComment : !replyingToPrivateComment }))),
|
|
333
343
|
React.createElement(LoadingIndicator, { className: "text-center", isInline: true, show: caseAttachmentHydra.isFetching ||
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardAside.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardAside.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WizardAside.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardAside.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAInD,OAAO,EAGH,eAAe,EAIlB,MAAM,iCAAiC,CAAC;AAQzC,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,2BAA2B,EAAE,OAAO,CAAC;CACxC;AAGD,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,qBA2CjC;kBA3CQ,WAAW;;;AA6CpB,eAAe,WAAW,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ability, CaseListFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
2
2
|
import { PreviousCaseTypes } from '@rh-support/utils';
|
|
3
3
|
import isEqual from 'lodash/isEqual';
|
|
4
|
+
import isUndefined from 'lodash/isUndefined';
|
|
4
5
|
import React, { useContext } from 'react';
|
|
5
6
|
import { useCaseSelector } from '../../context/CaseContext';
|
|
6
7
|
import { RouteContext } from '../../context/RouteContext';
|
|
@@ -23,6 +24,7 @@ function WizardAside(props) {
|
|
|
23
24
|
const canUseSessionManagement = ability.can(resourceActions.CREATE, resources.SESSION_TRACKING);
|
|
24
25
|
const canShowFileUploadWidget = () => canAddAttachments &&
|
|
25
26
|
!props.isAttachmentUploadModalOpen &&
|
|
27
|
+
!isUndefined(activeSection) &&
|
|
26
28
|
!hideFileUploadSidebarWidgetSections.includes(activeSection);
|
|
27
29
|
const canshowEARuleWidget = showSideBarEARuleWidgetSections.includes(activeSection);
|
|
28
30
|
const canShowClusterIdReportWidget = showSideBarClusterIdRuleWidgetSections.includes(activeSection);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.84",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -132,5 +132,5 @@
|
|
|
132
132
|
"defaults and supports es6-module",
|
|
133
133
|
"maintained node versions"
|
|
134
134
|
],
|
|
135
|
-
"gitHead": "
|
|
135
|
+
"gitHead": "81feae5875e3bd90298890a7516b43851f6628ed"
|
|
136
136
|
}
|