@rh-support/troubleshoot 2.2.99 → 2.2.100
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/CaseManagement/RHAssociatesSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/RHAssociatesSelector.js +6 -6
- package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
- package/lib/esm/components/shared/useIsSectionValid.js +2 -6
- package/lib/esm/css/case.css +1 -1
- package/lib/esm/reducers/CaseHelpers.d.ts.map +1 -1
- package/lib/esm/reducers/CaseHelpers.js +0 -11
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RHAssociatesSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/RHAssociatesSelector.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,MAAM,WAAW,MAAM;CAAG;AAG1B,iBAAS,oBAAoB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"RHAssociatesSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/RHAssociatesSelector.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,MAAM,WAAW,MAAM;CAAG;AAG1B,iBAAS,oBAAoB,CAAC,KAAK,EAAE,MAAM,qBAqM1C;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -107,12 +107,12 @@ function RHAssociatesSelector(props) {
|
|
|
107
107
|
if (!canNotifyRHAssociates)
|
|
108
108
|
return React.createElement(React.Fragment, null);
|
|
109
109
|
return (React.createElement(React.Fragment, null, canNotifyRHAssociates && (React.createElement("div", { className: "form-group" },
|
|
110
|
-
React.createElement("label", { htmlFor: "get-support-notifications" },
|
|
111
|
-
React.createElement(Trans, null, "Red Hat associates")
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
110
|
+
React.createElement("label", { className: "react-typeahead-label-wrapper", htmlFor: "get-support-notifications" },
|
|
111
|
+
React.createElement(Trans, null, "Red Hat associates"),
|
|
112
|
+
React.createElement(ContactSelectorInternal, { className: "push-bottom-narrow", selectedContacts: filter(selectedNotificationContacts, (c) => c.isInternal), showSelectedContacts: true, contactsToExclude: !isEmpty(selectedOwner.data) ? [{ ssoUsername: selectedOwner.data.ssoUsername }] : [], id: "open-case-rh-notifications", name: "open-case-rh-notifications", multiple: true, contactListParams: {
|
|
113
|
+
internal: false, // to get non-ldap contacts only
|
|
114
|
+
isInternalContact: true,
|
|
115
|
+
}, placeholder: t(`Add an internal associate to watch this case`), onSelect: onNotifiedUserChange, renderToken: renderToken, isUpdating: isRHAssociatesUpdating, "data-tracking-id": "case-contact-select-rh-watcher" })),
|
|
116
116
|
caseNumber && showAddWatchButton() && !isExportingPDF && (React.createElement(Button, { variant: "secondary", onClick: addCurrentUser, type: "button", "data-tracking-id": "case-add-me-rh-watcher" },
|
|
117
117
|
React.createElement(Trans, null, "Add me as a watcher"))),
|
|
118
118
|
caseNumber && showRemoveWatchButton() && !isExportingPDF && (React.createElement("div", { ref: toolTipRef, className: "remove-me-as-watcher pf-v5-u-display-inline-block" }, isCurrentUserCaseContact ? (React.createElement(React.Fragment, null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsSectionValid.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/useIsSectionValid.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useIsSectionValid.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/useIsSectionValid.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAoB1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAInE,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,gBAAgB;;;;;EA4L9D"}
|
|
@@ -8,13 +8,13 @@ import { useCaseSelector } from '../../context/CaseContext';
|
|
|
8
8
|
import { RecommendationStateContext } from '../../context/RecommendationContext';
|
|
9
9
|
import { RouteContext } from '../../context/RouteContext';
|
|
10
10
|
import { TCStateContext } from '../../context/TopContentContext';
|
|
11
|
-
import { CASE_REFERENCE_NUMBER_LIMIT, CONTACT_INFO_24X7_LIMIT,
|
|
11
|
+
import { CASE_REFERENCE_NUMBER_LIMIT, CONTACT_INFO_24X7_LIMIT, HOSTNAME_LENGTH_LIMIT, SUMMARY_LENGTH_LIMIT, } from '../../reducers/CaseConstNTypes';
|
|
12
12
|
import { isCaseInformationSectionValid, isCaseManagementStateValid, isCaseStateValid, isClusterIDValid, isIdeaCaseStateValid, } from '../../reducers/CaseHelpers';
|
|
13
13
|
import { AppRouteSections } from '../../reducers/RouteConstNTypes';
|
|
14
14
|
import { AttachmentStateContext } from './fileUpload/reducer/AttachmentReducerContext';
|
|
15
15
|
export function useIsSectionValid(sectionName) {
|
|
16
16
|
var _a, _b;
|
|
17
|
-
const { caseState, caseType, product, version, contactSSOName, accountNumber, summary,
|
|
17
|
+
const { caseState, caseType, product, version, contactSSOName, accountNumber, summary, hostname, contactInfo24x7, alternateId, selectedAccountDetails, } = useCaseSelector((state) => ({
|
|
18
18
|
caseState: state,
|
|
19
19
|
caseType: state.caseDetails.caseType,
|
|
20
20
|
product: state.caseDetails.product,
|
|
@@ -22,7 +22,6 @@ export function useIsSectionValid(sectionName) {
|
|
|
22
22
|
contactSSOName: state.caseDetails.contactSSOName,
|
|
23
23
|
accountNumber: state.caseDetails.accountNumberRef,
|
|
24
24
|
summary: state.caseDetails.summary,
|
|
25
|
-
description: state.caseDetails.description,
|
|
26
25
|
hostname: state.caseDetails.hostname,
|
|
27
26
|
contactInfo24x7: state.caseDetails.contactInfo24x7,
|
|
28
27
|
alternateId: state.caseDetails.alternateId,
|
|
@@ -75,10 +74,7 @@ export function useIsSectionValid(sectionName) {
|
|
|
75
74
|
// don't check for entitled product if user is on search intent flow
|
|
76
75
|
const isEntitledProductLocal = isSearchIntent ? true : isEntitledProduct;
|
|
77
76
|
return (!recommendationState.isLoadingRecommendations &&
|
|
78
|
-
!isEmpty(summary) &&
|
|
79
77
|
isEntitledProductLocal &&
|
|
80
|
-
(summary === null || summary === void 0 ? void 0 : summary.length) <= SUMMARY_LENGTH_LIMIT &&
|
|
81
|
-
(description === null || description === void 0 ? void 0 : description.length) <= DESCRIPTION_LENGTH_LIMIT &&
|
|
82
78
|
isClusterIDValid(caseState, (_a = allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult));
|
|
83
79
|
};
|
|
84
80
|
const isReviewSectionValid = () => {
|
package/lib/esm/css/case.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseHelpers.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACpG,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACvG,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAmB3D,OAAO,EAUH,UAAU,EAeb,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,sBAAsB,SAAU,mBAAmB,EAAE,wBAMjE,CAAC;AAEF,eAAO,MAAM,2BAA2B,eAAgB,WAAW,KAAG,MAOrE,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAAS,mBAAmB,SAAS,MAAM,sBAyB9E,CAAC;AAIF,eAAO,MAAM,qBAAqB,UACvB,MAAM,gBACC,MAAM,uBACC,MAAM,yBACJ,MAAM,kBACb,MAAM,YACZ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AAyB,gBACrB,QAAQ,YAAY,CAAC,gCACJ,QAAQ,EAAE,KACzC,eAiDF,CAAC"}
|
|
@@ -183,13 +183,6 @@ export const isIdeaCaseStateValid = (caseState, loggedInUserJwtToken) => {
|
|
|
183
183
|
export const isCaseManagementStateValid = (caseState, loggedInUserJwtToken) => {
|
|
184
184
|
const case_details = caseState.caseDetails;
|
|
185
185
|
return (isEmpty(case_details.caseNumber) &&
|
|
186
|
-
!caseState.hasLargeCaseDescription &&
|
|
187
|
-
!isEmpty(case_details.product) &&
|
|
188
|
-
!isEmpty(case_details.version) &&
|
|
189
|
-
!isEmpty(case_details.summary) &&
|
|
190
|
-
case_details.summary.length <= SUMMARY_LENGTH_LIMIT &&
|
|
191
|
-
!isEmpty(case_details.description) &&
|
|
192
|
-
case_details.description.length <= DESCRIPTION_LENGTH_LIMIT &&
|
|
193
186
|
!isEmpty(case_details.severity) &&
|
|
194
187
|
(caseState.selectedAccountDetails.data.requireCGroupOnCreate
|
|
195
188
|
? !isEmpty(case_details.groupNumber) && case_details.groupNumber !== '-1'
|
|
@@ -203,10 +196,6 @@ export const isCaseInformationSectionValid = (caseState, loggedInUserJwtToken) =
|
|
|
203
196
|
//checks to ensure the ktquestion section is valid
|
|
204
197
|
return (isEmpty(case_details.caseNumber) &&
|
|
205
198
|
!caseState.hasLargeCaseDescription &&
|
|
206
|
-
!isEmpty(case_details.product) &&
|
|
207
|
-
!isEmpty(case_details.version) &&
|
|
208
|
-
!isEmpty(case_details.summary) &&
|
|
209
|
-
case_details.summary.length <= SUMMARY_LENGTH_LIMIT &&
|
|
210
199
|
!isEmpty(case_details.description) &&
|
|
211
200
|
case_details.description.length <= DESCRIPTION_LENGTH_LIMIT &&
|
|
212
201
|
!isEmpty(case_details.timeFramesAndUrgency) &&
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.100",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"@progress/kendo-licensing": "1.3.5",
|
|
61
61
|
"@progress/kendo-react-pdf": "^5.16.0",
|
|
62
62
|
"@redux-devtools/extension": "^3.3.0",
|
|
63
|
-
"@rh-support/components": "2.1.
|
|
64
|
-
"@rh-support/react-context": "2.1.
|
|
63
|
+
"@rh-support/components": "2.1.51",
|
|
64
|
+
"@rh-support/react-context": "2.1.57",
|
|
65
65
|
"@rh-support/types": "2.0.3",
|
|
66
66
|
"@rh-support/user-permissions": "2.1.37",
|
|
67
67
|
"@rh-support/utils": "2.1.27",
|
|
@@ -131,5 +131,5 @@
|
|
|
131
131
|
"defaults and supports es6-module",
|
|
132
132
|
"maintained node versions"
|
|
133
133
|
],
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "3b669f23c094069a3e7d042cfdffd716407734d3"
|
|
135
135
|
}
|