@rh-support/troubleshoot 2.2.149 → 2.2.151
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/CaseDetails/CaseInformation.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInformation.js +3 -7
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.js +1 -6
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.js +3 -3
- package/lib/esm/components/CaseInformation/CaseInformation.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/CaseInformation.js +0 -2
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.js +0 -2
- package/lib/esm/components/CaseInformation/Description.d.ts +1 -0
- package/lib/esm/components/CaseInformation/Description.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Description.js +6 -13
- package/lib/esm/components/CaseInformation/OpenCaseIssue.d.ts +1 -0
- package/lib/esm/components/CaseInformation/OpenCaseIssue.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/OpenCaseIssue.js +36 -19
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +3 -7
- package/lib/esm/components/ImproveCase/KtQuestions.d.ts.map +1 -1
- package/lib/esm/components/ImproveCase/KtQuestions.js +65 -14
- package/lib/esm/components/OpenCase/OpenCase.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/OpenCase.js +0 -2
- package/lib/esm/components/ProductSelector/AllProductsSelector.js +1 -1
- package/lib/esm/components/ProductSelector/ProductSelector.d.ts +1 -0
- package/lib/esm/components/ProductSelector/ProductSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/ProductSelector.js +1 -1
- package/lib/esm/components/Recommendations/EARules/EARuleWidget.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/EARules/EARuleWidget.js +7 -5
- package/lib/esm/components/Recommendations/RecommendationInfoBox.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/RecommendationInfoBox.js +10 -8
- package/lib/esm/components/Recommendations/Recommendations.d.ts +1 -0
- package/lib/esm/components/Recommendations/Recommendations.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/Recommendations.js +15 -6
- package/lib/esm/components/Review/Review.d.ts.map +1 -1
- package/lib/esm/components/Review/Review.js +0 -2
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts.map +1 -1
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +8 -4
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +2 -3
- package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
- package/lib/esm/components/shared/useIsSectionValid.js +6 -3
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.js +2 -38
- package/lib/esm/components/wizardLayout/NewFeatureModal.d.ts +4 -0
- package/lib/esm/components/wizardLayout/NewFeatureModal.d.ts.map +1 -0
- package/lib/esm/components/wizardLayout/NewFeatureModal.js +38 -0
- package/lib/esm/components/wizardLayout/RedHatCustomerPortalIcon.d.ts.map +1 -0
- package/lib/esm/components/wizardLayout/WizardMain.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardMain.js +8 -2
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts +1 -0
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardNavigation.js +2 -1
- package/lib/esm/hooks/useWizard.d.ts +6 -1
- package/lib/esm/hooks/useWizard.d.ts.map +1 -1
- package/lib/esm/hooks/useWizard.js +10 -6
- package/lib/esm/reducers/CaseConstNTypes.d.ts +11 -5
- package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.js +11 -5
- package/lib/esm/reducers/CaseHelpers.d.ts.map +1 -1
- package/lib/esm/reducers/CaseHelpers.js +7 -7
- package/lib/esm/reducers/RecommendationsReducer.d.ts +3 -1
- package/lib/esm/reducers/RecommendationsReducer.d.ts.map +1 -1
- package/lib/esm/reducers/RecommendationsReducer.js +2 -0
- package/lib/esm/scss/_main.scss +6 -0
- package/lib/esm/scss/_pf-overrides.scss +21 -0
- package/package.json +4 -4
- package/lib/esm/components/OpenCase/MandatoryPhoneBanner.d.ts +0 -4
- package/lib/esm/components/OpenCase/MandatoryPhoneBanner.d.ts.map +0 -1
- package/lib/esm/components/OpenCase/MandatoryPhoneBanner.js +0 -29
- package/lib/esm/components/OpenCase/RedHatCustomerPortalIcon.d.ts.map +0 -1
- /package/lib/esm/components/{OpenCase → wizardLayout}/RedHatCustomerPortalIcon.d.ts +0 -0
- /package/lib/esm/components/{OpenCase → wizardLayout}/RedHatCustomerPortalIcon.js +0 -0
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { getApiResourceObject } from '@rh-support/utils';
|
|
2
|
-
export const
|
|
2
|
+
export const TITLE_SUMMARY_LENGTH_LIMIT = 255;
|
|
3
|
+
export const ISSUE_SUMMARY_LENGTH_LIMIT = 20000;
|
|
4
|
+
export const SUMMARY_LENGTH_LIMIT = 16000;
|
|
5
|
+
export const KTQUESTION_MAX_LIMIT = 4000;
|
|
3
6
|
export const ATTACHMENT_DESCRIPTION_LENGTH_LIMIT = 255;
|
|
4
7
|
export const ESCALATION_SUBJECT_LENGTH_LIMIT = 255;
|
|
5
8
|
export const DESCRIPTION_LENGTH_LIMIT = 32000;
|
|
6
|
-
export const MODIFIED_DESCRIPTION_LENGTH_LIMIT = 31000
|
|
9
|
+
export const MODIFIED_DESCRIPTION_LENGTH_LIMIT = 32000; //used to be 31000 to account for added chars, for new changes putting it back to 32000
|
|
7
10
|
export const HOSTNAME_LENGTH_LIMIT = 255;
|
|
8
11
|
export const CONTACT_INFO_24X7_LIMIT = 32768;
|
|
9
12
|
export const CLUSTER_ID_LIMIT = 255;
|
|
@@ -33,11 +36,14 @@ export const summaryMaxLengthErrorMessage = 'Case summary cannot be more than {{
|
|
|
33
36
|
export var KtQuestionConstant;
|
|
34
37
|
(function (KtQuestionConstant) {
|
|
35
38
|
KtQuestionConstant["issue"] = "What are you experiencing? What are you expecting to happen?";
|
|
36
|
-
KtQuestionConstant["timeFramesAndUrgency"] = "
|
|
37
|
-
KtQuestionConstant["environment"] = "
|
|
38
|
-
KtQuestionConstant["periodicityOfIssue"] = "
|
|
39
|
+
KtQuestionConstant["timeFramesAndUrgency"] = "Describe the impact to you or the business";
|
|
40
|
+
KtQuestionConstant["environment"] = "In what environment are you experiencing this behavior?";
|
|
41
|
+
KtQuestionConstant["periodicityOfIssue"] = "How frequently does this behavior occur? Does it occur repeatedly or at certain times?";
|
|
39
42
|
KtQuestionConstant["ideaIssue"] = "Please describe your request";
|
|
40
43
|
})(KtQuestionConstant || (KtQuestionConstant = {}));
|
|
44
|
+
export const KTQ2LengthError = 'Please describe the value and impact to your business in 4000 characters or less.';
|
|
45
|
+
export const KTQ3LengthError = 'Please describe the location and environment to your business in 4000 characters or less.';
|
|
46
|
+
export const KTQ4LengthError = 'Please describe the time and frequency when the issue occurs in 4000 characters or less.';
|
|
41
47
|
export const SupportLevelDisplay = {
|
|
42
48
|
STANDARD: 'Standard',
|
|
43
49
|
PREMIUM: 'Premium',
|
|
@@ -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,YAA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AAY,MAAM,KAAG,MAQhF,CAAC;AAEF,eAAO,MAAM,uBAAuB,aAAc,MAAM,KAAG,MAM1D,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBAAkB,MAAM,YAAY,MAAM,KAAG,MAQhF,CAAC;AAEF,eAAO,MAAM,sBAAsB,aAAc,MAAM,KAAG,MAKzD,CAAC;AAEF,eAAO,MAAM,gBAAgB,+CAqC5B,CAAC;AAIF,eAAO,MAAM,gBAAgB,cAAe,UAAU,wBAAwB,QAAQ,eAAe,CAAC,KAAG,OA6BxG,CAAC;AAEF,eAAO,MAAM,oBAAoB,cAClB,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAyBF,CAAC;AAEF,eAAO,MAAM,0BAA0B,cACxB,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAYF,CAAC;AAIF,eAAO,MAAM,6BAA6B,cAC3B,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAmBF,CAAC;AAEF,eAAO,MAAM,iBAAiB,cACf,UAAU,gBACP,YAAY,iBACZ,OAAO,KACtB,QAAQ,YAAY,CA6EtB,CAAC;AAEF,eAAO,MAAM,wBAAwB,qBAAsB,YAAY,EAAE,KAAG,YAAY,EAEvF,CAAC;AACF,eAAO,MAAM,yBAAyB,qBAAsB,YAAY,EAAE,KAAG,OAE5E,CAAC;AAEF,eAAO,MAAM,yBAAyB,gBACrB,YAAY,6BACE,MAAM,mBAChB,MAAM,KACxB,QAAQ,YAAY,CAiCtB,CAAC;AACF,eAAO,MAAM,yBAAyB,gBACrB,QAAQ,YAAY,CAAC,gCACJ,QAAQ,EAAE,KACzC,eAiDF,CAAC"}
|
|
@@ -8,7 +8,7 @@ import unionBy from 'lodash/unionBy';
|
|
|
8
8
|
import uniqBy from 'lodash/uniqBy';
|
|
9
9
|
import { isPhoneValid, trimAndReplacePlus } from '../components/shared/utils';
|
|
10
10
|
import { getIsClusterIdInvalid, isClusterIdEnabledForProduct } from '../utils/caseOpenshiftClusterIdUtils';
|
|
11
|
-
import {
|
|
11
|
+
import { CASE_DEATILS_ISSUE_LIMIT, CASE_REFERENCE_NUMBER_LIMIT, CLUSTER_ID_LIMIT, CONTACT_INFO_24X7_LIMIT, DESCRIPTION_LENGTH_LIMIT, HOSTNAME_LENGTH_LIMIT, ITRForSLASeverity, KTQUESTION_MAX_LIMIT, KtQuestionConstant, SESSION_ENVIRONMENT_LIMIT, SESSION_ISSUE_LIMIT, SESSION_NO_CLUSTER_REASON_EXPLANATION_LENGTH_LIMIT, SESSION_NO_CLUSTER_REASON_LENGTH_LIMIT, SESSION_NOTIFIED_USERS_EXTERNAL_LIMIT, SESSION_NOTIFIED_USERS_INTERNAL_LIMIT, SESSION_PERIODICITY_OF_ISSUE_LIMIT, SESSION_PHONE_LENGTH_LIMIT, SESSION_TIME_FRAMES_URGENCY_LIMIT, SeverityDescription, SeverityDescriptionDetails, TITLE_SUMMARY_LENGTH_LIMIT, } from './CaseConstNTypes';
|
|
12
12
|
export const getCaseRecommendations = (docs, oldDocs) => {
|
|
13
13
|
const recs = [];
|
|
14
14
|
docs.forEach((doc, i) => {
|
|
@@ -144,7 +144,7 @@ export const isCaseStateValid = (caseState, loggedInUserJwtToken) => {
|
|
|
144
144
|
!isEmpty(case_details.product) &&
|
|
145
145
|
!isEmpty(case_details.version) &&
|
|
146
146
|
!isEmpty(case_details.summary) &&
|
|
147
|
-
case_details.summary.length <=
|
|
147
|
+
case_details.summary.length <= TITLE_SUMMARY_LENGTH_LIMIT &&
|
|
148
148
|
!isEmpty(case_details.description) &&
|
|
149
149
|
case_details.description.length <= DESCRIPTION_LENGTH_LIMIT &&
|
|
150
150
|
!isEmpty(case_details.timeFramesAndUrgency) &&
|
|
@@ -171,7 +171,7 @@ export const isIdeaCaseStateValid = (caseState, loggedInUserJwtToken) => {
|
|
|
171
171
|
!isEmpty(case_details.product) &&
|
|
172
172
|
!isEmpty(case_details.version) &&
|
|
173
173
|
!isEmpty(case_details.summary) &&
|
|
174
|
-
case_details.summary.length <=
|
|
174
|
+
case_details.summary.length <= TITLE_SUMMARY_LENGTH_LIMIT &&
|
|
175
175
|
!isEmpty(case_details.description) &&
|
|
176
176
|
case_details.description.length <= DESCRIPTION_LENGTH_LIMIT &&
|
|
177
177
|
!isEmpty(case_details.timeFramesAndUrgency) &&
|
|
@@ -205,11 +205,11 @@ export const isCaseInformationSectionValid = (caseState, loggedInUserJwtToken) =
|
|
|
205
205
|
!isEmpty(case_details.description) &&
|
|
206
206
|
case_details.description.length <= DESCRIPTION_LENGTH_LIMIT &&
|
|
207
207
|
!isEmpty(case_details.timeFramesAndUrgency) &&
|
|
208
|
-
case_details.timeFramesAndUrgency.length <=
|
|
208
|
+
case_details.timeFramesAndUrgency.length <= KTQUESTION_MAX_LIMIT &&
|
|
209
209
|
!isEmpty(case_details.issue) &&
|
|
210
210
|
case_details.issue.length <= CASE_DEATILS_ISSUE_LIMIT &&
|
|
211
|
-
case_details.environment.length <=
|
|
212
|
-
case_details.periodicityOfIssue.length <=
|
|
211
|
+
case_details.environment.length <= KTQUESTION_MAX_LIMIT &&
|
|
212
|
+
case_details.periodicityOfIssue.length <= KTQUESTION_MAX_LIMIT &&
|
|
213
213
|
!isEmpty(case_details.accountNumberRef) &&
|
|
214
214
|
!isEmpty(case_details.contactSSOName) &&
|
|
215
215
|
canManageCase(loggedInUserJwtToken));
|
|
@@ -339,7 +339,7 @@ export const getSessionDetailsFromCase = (caseDetails, selectedNotificationConta
|
|
|
339
339
|
return {
|
|
340
340
|
product: caseDetails.product,
|
|
341
341
|
version: caseDetails.version,
|
|
342
|
-
summary: (_a = caseDetails.summary) === null || _a === void 0 ? void 0 : _a.substring(0,
|
|
342
|
+
summary: (_a = caseDetails.summary) === null || _a === void 0 ? void 0 : _a.substring(0, TITLE_SUMMARY_LENGTH_LIMIT),
|
|
343
343
|
description: (_b = caseDetails.description) === null || _b === void 0 ? void 0 : _b.substring(0, DESCRIPTION_LENGTH_LIMIT),
|
|
344
344
|
issue: (_c = caseDetails.issue) === null || _c === void 0 ? void 0 : _c.substring(0, SESSION_ISSUE_LIMIT),
|
|
345
345
|
environment: (_d = caseDetails.environment) === null || _d === void 0 ? void 0 : _d.substring(0, SESSION_ENVIRONMENT_LIMIT),
|
|
@@ -16,6 +16,7 @@ export interface IRecommendationsState {
|
|
|
16
16
|
sideRecommendation?: ISolrRecommendation[];
|
|
17
17
|
insightsKcsIds?: string[];
|
|
18
18
|
prevRecommendationsBody: IRecommendationsPayload;
|
|
19
|
+
userViewedDocs?: boolean;
|
|
19
20
|
}
|
|
20
21
|
export declare const initialRecommendationsState: IRecommendationsState;
|
|
21
22
|
export declare enum RecommendationsConstants {
|
|
@@ -28,7 +29,8 @@ export declare enum RecommendationsConstants {
|
|
|
28
29
|
receiveSidebarRecommendation = "receiveSidebarRecommendation",
|
|
29
30
|
setInsighResultsKcsIds = "setInsighResultsKcsIds",
|
|
30
31
|
setIsLoadingRecommendations = "setIsLoadingRecommendations",
|
|
31
|
-
resetRecommendations = "resetRecommendations"
|
|
32
|
+
resetRecommendations = "resetRecommendations",
|
|
33
|
+
userViewedDocs = "userViewedDocs"
|
|
32
34
|
}
|
|
33
35
|
export declare const recommandationsReducer: (state: IRecommendationsState, action: IActionType) => IRecommendationsState;
|
|
34
36
|
export declare const fetchRecommendations: (dispatch: RecommendationsReducerDispatchType, body: IRecommendationsPayload, max_rows: number, page_size: number, highlighted_fragment_size: number, seQueryFields: boolean, caseNumber: string, isSecureSupportAccount: boolean, additionalFilters?: IRecommendationAdditionalFilters, abortSignal?: AbortSignal) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecommendationsReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/RecommendationsReducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAoB,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACpH,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAiB,MAAM,0CAA0C,CAAC;AAC5G,O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E3F,CAAC;AAEF,eAAO,MAAM,sBAAsB,aAAc,kCAAkC,kBAAkB,MAAM,EAAE,SAE5G,CAAC;AAEF,eAAO,MAAM,oBAAoB,aAAc,kCAAkC,SAEhF,CAAC"}
|
|
@@ -22,6 +22,7 @@ export const initialRecommendationsState = {
|
|
|
22
22
|
sideRecommendation: [],
|
|
23
23
|
insightsKcsIds: [],
|
|
24
24
|
prevRecommendationsBody: {},
|
|
25
|
+
userViewedDocs: false,
|
|
25
26
|
};
|
|
26
27
|
export var RecommendationsConstants;
|
|
27
28
|
(function (RecommendationsConstants) {
|
|
@@ -35,6 +36,7 @@ export var RecommendationsConstants;
|
|
|
35
36
|
RecommendationsConstants["setInsighResultsKcsIds"] = "setInsighResultsKcsIds";
|
|
36
37
|
RecommendationsConstants["setIsLoadingRecommendations"] = "setIsLoadingRecommendations";
|
|
37
38
|
RecommendationsConstants["resetRecommendations"] = "resetRecommendations";
|
|
39
|
+
RecommendationsConstants["userViewedDocs"] = "userViewedDocs";
|
|
38
40
|
})(RecommendationsConstants || (RecommendationsConstants = {}));
|
|
39
41
|
// Resucers
|
|
40
42
|
export const recommandationsReducer = (state, action) => {
|
package/lib/esm/scss/_main.scss
CHANGED
|
@@ -720,3 +720,24 @@ a.case-resource-recommendation-link {
|
|
|
720
720
|
padding: 0.5rem;
|
|
721
721
|
padding-left: 0px;
|
|
722
722
|
}
|
|
723
|
+
|
|
724
|
+
#get-support-summary {
|
|
725
|
+
margin-bottom: 1em;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.title-summary-counter {
|
|
729
|
+
display: inline-flex;
|
|
730
|
+
font-size: smaller;
|
|
731
|
+
font-weight: 400;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
.kt1-disabled {
|
|
735
|
+
background-color: #f0f0f0;
|
|
736
|
+
}
|
|
737
|
+
.issue-title-disabled {
|
|
738
|
+
background-color: #f0f0f0 !important;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
.kt-progress-bar {
|
|
742
|
+
padding-top: 1em;
|
|
743
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.151",
|
|
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.76",
|
|
64
|
+
"@rh-support/react-context": "2.1.85",
|
|
65
65
|
"@rh-support/types": "2.0.4",
|
|
66
66
|
"@rh-support/user-permissions": "2.1.49",
|
|
67
67
|
"@rh-support/utils": "2.1.38",
|
|
@@ -131,5 +131,5 @@
|
|
|
131
131
|
"defaults and supports es6-module",
|
|
132
132
|
"maintained node versions"
|
|
133
133
|
],
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "aa0d1f25cf574e935d8e4f2a27585425d2fed4ea"
|
|
135
135
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MandatoryPhoneBanner.d.ts","sourceRoot":"","sources":["../../../../src/components/OpenCase/MandatoryPhoneBanner.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAK/D,QAAA,MAAM,oBAAoB,yBA0DzB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Button, Modal, Title } from '@patternfly/react-core';
|
|
2
|
-
import { useSessionStorage } from '@rh-support/components';
|
|
3
|
-
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
4
|
-
import { getConfigField, PCM_CONFIG_FIELD_TYPE } from '@rh-support/utils';
|
|
5
|
-
import React, { useContext, useEffect, useState } from 'react';
|
|
6
|
-
import { Trans, useTranslation } from 'react-i18next';
|
|
7
|
-
import { RedHatCustomerPortalIcon } from './RedHatCustomerPortalIcon';
|
|
8
|
-
const MandatoryPhoneBanner = () => {
|
|
9
|
-
const [modalViewStorageCounter, setModalViewStorageCounter] = useSessionStorage('modalShowCounter', 0);
|
|
10
|
-
const [showModal, setShowModal] = useState(false);
|
|
11
|
-
const { t } = useTranslation();
|
|
12
|
-
const { globalMetadataState: { pcmConfig }, } = useContext(GlobalMetadataStateContext);
|
|
13
|
-
const isNewFeatureBannerVisible = getConfigField(pcmConfig.data, 'isNewFeatureBannerVisible', PCM_CONFIG_FIELD_TYPE.FEATURE_FLAG);
|
|
14
|
-
const handleModalToggle = (_event) => {
|
|
15
|
-
setShowModal(!showModal);
|
|
16
|
-
setModalViewStorageCounter(modalViewStorageCounter + 1);
|
|
17
|
-
};
|
|
18
|
-
useEffect(() => {
|
|
19
|
-
setShowModal(modalViewStorageCounter < 2);
|
|
20
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
21
|
-
}, []);
|
|
22
|
-
return (React.createElement(React.Fragment, null, isNewFeatureBannerVisible && showModal && (React.createElement(Modal, { width: "45%", "aria-label": t('Mandatory phone field modal'), isOpen: showModal, onClose: handleModalToggle, actions: [
|
|
23
|
-
React.createElement(Button, { key: "close", variant: "primary", "data-tracking-id": "mandatory-phone-modal-close", onClick: handleModalToggle }, t('Close')),
|
|
24
|
-
], showClose: false },
|
|
25
|
-
React.createElement(RedHatCustomerPortalIcon, null),
|
|
26
|
-
React.createElement(Title, { headingLevel: "h2", className: "pf-v5-u-font-weight-bold" }, t('Workflow change: please add a phone number to your cases')),
|
|
27
|
-
React.createElement(Trans, null, "We want to be able to help you quickly if we run into any issues with your case. To make sure we can contact you directly, we now require a contact phone number for all new cases. Thank you for understanding.")))));
|
|
28
|
-
};
|
|
29
|
-
export default MandatoryPhoneBanner;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RedHatCustomerPortalIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/OpenCase/RedHatCustomerPortalIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,wBAAwB,yBA0GpC,CAAC"}
|
|
File without changes
|
|
File without changes
|