@rh-support/troubleshoot 2.2.18 → 2.2.20
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/AccountInfo/OwnerSelector.d.ts.map +1 -1
- package/lib/esm/components/AccountInfo/OwnerSelector.js +2 -2
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +18 -9
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.js +3 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseBugzilla/CaseBugzilla.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseBugzilla/CaseBugzilla.js +11 -7
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +13 -18
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInformation.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInformation.js +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseChat.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseChat.js +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +3 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseExternalTrackerUpdate.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseExternalTrackerUpdate.js +5 -3
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.js +4 -2
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.js +11 -17
- package/lib/esm/components/CaseInformation/Description.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Description.js +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.js +1 -1
- package/lib/esm/components/EditDescription/EditDescription.d.ts.map +1 -1
- package/lib/esm/components/EditDescription/EditDescription.js +2 -1
- package/lib/esm/components/ProductSelector/ProductSelector.js +1 -1
- package/lib/esm/components/Recommendations/EARules/EARule.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/EARules/EARule.js +4 -1
- package/lib/esm/components/Recommendations/InsightsRuleInfo.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/InsightsRuleInfo.js +5 -3
- package/lib/esm/components/Recommendations/Recommendations.d.ts +0 -1
- package/lib/esm/components/Recommendations/Recommendations.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/Recommendations.js +0 -4
- package/lib/esm/components/Recommendations/RulesModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/RulesModal.js +2 -2
- package/lib/esm/components/SessionRestore/SessionItem.js +4 -4
- package/lib/esm/components/SessionRestore/SessionRestore.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/SessionRestore.js +4 -4
- package/lib/esm/components/shared/Rule.d.ts.map +1 -1
- package/lib/esm/components/shared/Rule.js +2 -1
- package/lib/esm/components/shared/fileUpload/FileLister.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/FileLister.js +6 -9
- package/lib/esm/components/shared/utils.d.ts.map +1 -1
- package/lib/esm/components/shared/utils.js +1 -4
- package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardLayout.js +4 -3
- package/lib/esm/constants/caseDetailsConstants.d.ts +1 -2
- package/lib/esm/constants/caseDetailsConstants.d.ts.map +1 -1
- package/lib/esm/constants/caseDetailsConstants.js +1 -2
- package/lib/esm/reducers/CaseConstNTypes.d.ts +2 -2
- package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.js +1 -1
- package/lib/esm/reducers/CaseHelpers.d.ts.map +1 -1
- package/lib/esm/reducers/CaseHelpers.js +2 -0
- package/lib/esm/reducers/CaseReducer.d.ts +4 -2
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.js +14 -5
- package/lib/esm/reducers/SessionRestoreReducer.d.ts.map +1 -1
- package/package.json +6 -6
- package/lib/esm/components/Issue/Issue.d.ts +0 -2
- package/lib/esm/components/Issue/Issue.d.ts.map +0 -1
- package/lib/esm/components/Issue/Issue.js +0 -52
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.20",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -66,11 +66,11 @@
|
|
|
66
66
|
"@patternfly/react-core": "4.264.0",
|
|
67
67
|
"@progress/kendo-drawing": "^1.6.0",
|
|
68
68
|
"@progress/kendo-react-pdf": "^3.12.0",
|
|
69
|
-
"@rh-support/components": "2.1.
|
|
70
|
-
"@rh-support/react-context": "2.1.
|
|
69
|
+
"@rh-support/components": "2.1.10",
|
|
70
|
+
"@rh-support/react-context": "2.1.10",
|
|
71
71
|
"@rh-support/types": "2.0.2",
|
|
72
|
-
"@rh-support/user-permissions": "2.1.
|
|
73
|
-
"@rh-support/utils": "2.1.
|
|
72
|
+
"@rh-support/user-permissions": "2.1.5",
|
|
73
|
+
"@rh-support/utils": "2.1.3",
|
|
74
74
|
"@types/react-redux": "^7.1.12",
|
|
75
75
|
"@types/redux": "^3.6.0",
|
|
76
76
|
"dompurify": "^2.4.1",
|
|
@@ -133,5 +133,5 @@
|
|
|
133
133
|
"defaults and supports es6-module",
|
|
134
134
|
"maintained node versions"
|
|
135
135
|
],
|
|
136
|
-
"gitHead": "
|
|
136
|
+
"gitHead": "a800e4c57066bcf8c753267c93e941e0618afefc"
|
|
137
137
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Issue.d.ts","sourceRoot":"","sources":["../../../../src/components/Issue/Issue.tsx"],"names":[],"mappings":"AAmBA,MAAM,CAAC,OAAO,UAAU,KAAK,gBA2F5B"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { TextArea } from '@patternfly/react-core';
|
|
2
|
-
import { InlineEdit, MoreOrLess } from '@rh-support/components';
|
|
3
|
-
import { useGlobalStateContext } from '@rh-support/react-context';
|
|
4
|
-
import isEmpty from 'lodash/isEmpty';
|
|
5
|
-
import isEqual from 'lodash/isEqual';
|
|
6
|
-
import React, { useState } from 'react';
|
|
7
|
-
import { Trans, useTranslation } from 'react-i18next';
|
|
8
|
-
import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
|
|
9
|
-
import { CASE_DEATILS_ISSUE_LIMIT, DESCRIPTION_LENGTH_LIMIT, MODIFIED_DESCRIPTION_LENGTH_LIMIT, } from '../../reducers/CaseConstNTypes';
|
|
10
|
-
import { getUpdatedDescription } from '../../reducers/CaseHelpers';
|
|
11
|
-
import { setCaseDetails } from '../../reducers/CaseReducer';
|
|
12
|
-
import OpenCaseIssue from '../CaseInformation/OpenCaseIssue';
|
|
13
|
-
export default function Issue() {
|
|
14
|
-
var _a, _b, _c;
|
|
15
|
-
const { t } = useTranslation();
|
|
16
|
-
const { summary, issue, environment, periodicityOfIssue, timeFramesAndUrgency, v3ClusterName } = useCaseSelector((state) => ({
|
|
17
|
-
summary: state.caseDetails.summary,
|
|
18
|
-
issue: state.caseDetails.issue,
|
|
19
|
-
environment: state.caseDetails.environment,
|
|
20
|
-
periodicityOfIssue: state.caseDetails.periodicityOfIssue,
|
|
21
|
-
timeFramesAndUrgency: state.caseDetails.timeFramesAndUrgency,
|
|
22
|
-
v3ClusterName: state.v3ClusterName,
|
|
23
|
-
}), isEqual);
|
|
24
|
-
const caseDispatch = useCaseDispatch();
|
|
25
|
-
const { globalMetadataState: { navBarRef }, } = useGlobalStateContext();
|
|
26
|
-
const [hasLargeDescription, setHasLargeDescription] = useState(false);
|
|
27
|
-
const onCaseDetailsChange = (caseDetails) => {
|
|
28
|
-
setCaseDetails(caseDispatch, caseDetails);
|
|
29
|
-
};
|
|
30
|
-
// To handle change of KTQ1
|
|
31
|
-
const onKTQ1IssueChange = (value, e) => {
|
|
32
|
-
const ktQ1Local = isEmpty(value === null || value === void 0 ? void 0 : value.trim()) ? '' : value;
|
|
33
|
-
const description = getUpdatedDescription(ktQ1Local, environment, periodicityOfIssue, timeFramesAndUrgency, v3ClusterName);
|
|
34
|
-
setHasLargeDescription(description.length > DESCRIPTION_LENGTH_LIMIT);
|
|
35
|
-
onCaseDetailsChange({ issue: ktQ1Local, description });
|
|
36
|
-
};
|
|
37
|
-
const maxLengtMessage = t('Case description cannot be more than {{limit}} characters', {
|
|
38
|
-
limit: MODIFIED_DESCRIPTION_LENGTH_LIMIT,
|
|
39
|
-
});
|
|
40
|
-
return (React.createElement(React.Fragment, null,
|
|
41
|
-
React.createElement("form", { className: "push-bottom" },
|
|
42
|
-
React.createElement(OpenCaseIssue, { inlineEditable: false, hideSaveCancel: true, initialIsEditing: isEmpty(summary), required: true }),
|
|
43
|
-
React.createElement(MoreOrLess, { maxHeight: 600, appStickyHeaderRef: navBarRef },
|
|
44
|
-
React.createElement(InlineEdit, { labelProps: { htmlFor: 'issue-section-ktQ1-issue' }, labelContent: React.createElement(React.Fragment, null,
|
|
45
|
-
React.createElement(Trans, null, "What are you experiencing? What are you expecting to happen?")), allowInlineEdit: false, hideSaveCancel: true, initialIsEditing: isEmpty(issue), usePreformattedTag: true, content: issue },
|
|
46
|
-
React.createElement(TextArea, { id: "issue-section-ktQ1-issue", name: "issue-section-ktQ1-issue", className: `form-control${hasLargeDescription ? ' form-invalid' : ''}`, "aria-invalid": ((_a = issue) === null || _a === void 0 ? void 0 : _a.length) > CASE_DEATILS_ISSUE_LIMIT ? 'true' : 'false', value: issue, onChange: onKTQ1IssueChange, "data-tracking-id": "get-support-describe-ktQ1-issue", "aria-describedby": "describeIssueDesc", placeholder: t('Elaborate more on your issue') }),
|
|
47
|
-
React.createElement("p", { className: "form-instructions", "data-tracking-id": "large-20k-warning-ktQ1-environment" }, `${((_b = issue) === null || _b === void 0 ? void 0 : _b.length) > CASE_DEATILS_ISSUE_LIMIT
|
|
48
|
-
? `Description cannot be more than ${CASE_DEATILS_ISSUE_LIMIT} characters`
|
|
49
|
-
: ''}`))),
|
|
50
|
-
((_c = getUpdatedDescription(issue, environment, periodicityOfIssue, timeFramesAndUrgency, v3ClusterName)) === null || _c === void 0 ? void 0 : _c.length) > DESCRIPTION_LENGTH_LIMIT && (React.createElement("div", { className: "pull-top" },
|
|
51
|
-
React.createElement("p", { className: "form-instructions form-invalid" }, maxLengtMessage))))));
|
|
52
|
-
}
|