@rh-support/troubleshoot 2.2.182 → 2.2.184
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/ActiveCustomerEscalation/ActiveCustomerEscalation.js +2 -2
- package/lib/esm/components/CaseEditView/CaseOverview/index.js +2 -2
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.js +6 -6
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.js +66 -7
- 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/CaseManagement.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/CaseManagement.js +5 -2
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +3 -2
- package/lib/esm/components/IdeaInformation/IdeaInformation.d.ts.map +1 -1
- package/lib/esm/components/IdeaInformation/IdeaInformation.js +5 -2
- package/lib/esm/components/Review/Review.d.ts.map +1 -1
- package/lib/esm/components/Review/Review.js +5 -2
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +5 -4
- package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
- package/lib/esm/components/shared/useIsSectionValid.js +1 -4
- package/lib/esm/components/wizardLayout/WizardAside.js +1 -1
- package/lib/esm/components/wizardLayout/WizardMain.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardMain.js +3 -1
- 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 +6 -0
- package/lib/esm/hooks/useWizard.d.ts +1 -0
- package/lib/esm/hooks/useWizard.d.ts.map +1 -1
- package/lib/esm/hooks/useWizard.js +1 -1
- package/lib/esm/scss/_pf-overrides.scss +13 -0
- package/package.json +2 -2
package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button, Popover } from '@patternfly/react-core';
|
|
1
|
+
import { Button, ButtonVariant, Popover } from '@patternfly/react-core';
|
|
2
2
|
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
3
3
|
import { useCanEditCase } from '@rh-support/react-context';
|
|
4
4
|
import { Can, resourceActions, resources } from '@rh-support/user-permissions';
|
|
@@ -51,7 +51,7 @@ export const ActiveCustomerEscalation = forwardRef((props, ref) => {
|
|
|
51
51
|
React.createElement("li", null, t('Needs a senior resource.')),
|
|
52
52
|
React.createElement("li", null, t('Is more severe or should be a higher priority.'))),
|
|
53
53
|
commonElements,
|
|
54
|
-
React.createElement(Button, {
|
|
54
|
+
React.createElement(Button, { variant: ButtonVariant.secondary, onClick: toggleModal, "data-tracking-id": "request-rme-trigger", "aria-label": t('Request an escalation') }, t('Request an escalation')))));
|
|
55
55
|
return (React.createElement(React.Fragment, null,
|
|
56
56
|
React.createElement(RequestEscalationModal, { caseNumber: props.caseNumber, severity: props.caseSeverity, caseStatus: props.caseStatus, show: openRequestEscalationModal, onClose: toggleModal }),
|
|
57
57
|
React.createElement(Can, { do: resourceActions.CREATE, on: resources.ICE_ESCALATION, passThrough: true }, (canCreateICE) => canCreateICE ? isInternalElements : isCreateRMEVisible ? isNotInternalElements : React.createElement(React.Fragment, null))));
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { Alert, AlertVariant, Button, ButtonVariant, ExpandableSection, Label, ModalVariant, } from '@patternfly/react-core';
|
|
11
|
-
import
|
|
11
|
+
import LockIcon from '@patternfly/react-icons/dist/js/icons/lock-icon';
|
|
12
12
|
import { ToastNotification, useConfirmation } from '@rh-support/components';
|
|
13
13
|
import { CloseCaseModal, fetchCaseSeverities, fetchCaseTypes, GlobalMetadataDispatchContext, GlobalMetadataStateContext, useCanEditCase, } from '@rh-support/react-context';
|
|
14
14
|
import { AbilityContext, CaseDetailsFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
@@ -259,7 +259,7 @@ export default function CaseOverview(props) {
|
|
|
259
259
|
React.createElement(Trans, null, "Managed by a partner"))),
|
|
260
260
|
canSeeInternalFlags && (React.createElement(React.Fragment, null,
|
|
261
261
|
isPrivate && (React.createElement(Label, { className: "push-right-narrow", color: "red" },
|
|
262
|
-
React.createElement(
|
|
262
|
+
React.createElement(LockIcon, { "aria-hidden": true }),
|
|
263
263
|
" ",
|
|
264
264
|
React.createElement(Trans, null, "Private Case"))),
|
|
265
265
|
hotfixRequested && (React.createElement(Label, { className: "push-right-narrow", color: "blue" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseSolutions.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseSolutions/CaseSolutions.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAsD,MAAM,OAAO,CAAC;AAuE3E,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB,EAAE,OAAO,CAAC;CACnC;AAUD,eAAO,MAAM,aAAa,+
|
|
1
|
+
{"version":3,"file":"CaseSolutions.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseSolutions/CaseSolutions.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAsD,MAAM,OAAO,CAAC;AAuE3E,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB,EAAE,OAAO,CAAC;CACnC;AAUD,eAAO,MAAM,aAAa,+EAihBxB,CAAC"}
|
|
@@ -290,18 +290,18 @@ export const CaseSolutions = forwardRef((props, ref) => {
|
|
|
290
290
|
React.createElement(Trans, null, "We're glad to hear this article was helpful. Would you like to close this case or keep it open? You can still view the case after it closes.")));
|
|
291
291
|
return (React.createElement(React.Fragment, null,
|
|
292
292
|
closeCaseModal,
|
|
293
|
-
React.createElement(Accordion, { isBordered: true, asDefinitionList: false, className: "card card-white case-details-aside-solutions" },
|
|
294
|
-
React.createElement(AccordionItem, null,
|
|
293
|
+
linkedRecommendations.length !== 0 && pinnedRecommendations.length !== 0 && (React.createElement(Accordion, { isBordered: true, asDefinitionList: false, className: "card card-white case-details-aside-solutions" },
|
|
294
|
+
linkedRecommendations.length !== 0 && (React.createElement(AccordionItem, null,
|
|
295
295
|
React.createElement(AccordionToggle, { id: "sol-handpicked", isExpanded: handPickedOpen, onClick: () => setHandPickedOpen((pre) => !pre) },
|
|
296
|
-
React.createElement("span", null, canLinkUnlink ? React.createElement(Trans, null, "Handpicked by you") : React.createElement(Trans, null, "Handpicked for this case")),
|
|
296
|
+
React.createElement("span", null, canLinkUnlink ? (React.createElement(Trans, null, "Handpicked by you")) : (React.createElement(Trans, null, "Handpicked for this case"))),
|
|
297
297
|
React.createElement("span", { className: "badge-item pf-v5-u-font-size-sm pf-v5-u-mx-sm" }, linkedRecommendations.length)),
|
|
298
298
|
React.createElement(AccordionContent, { isHidden: !handPickedOpen }, !hasLink ? (!canLinkUnlink ? (React.createElement(Trans, null, "If a Red Hat engineer finds an article or solution that can help with your case, they'll pin it here.")) : (React.createElement(React.Fragment, null))) : (React.createElement(PaginatedList, { id: "case-details-handpicked-recommendations", listItems: linkedRecommendations.map((rec, index) => canLinkUnlink
|
|
299
299
|
? renderHandPickedByRedHatter(rec, index, 'handpicked-recommendations')
|
|
300
300
|
: renderHandpickedCustomerView(rec, index, 'handpicked-recommendations')), perPage: 5, className: "list-icons list-icons-flush", isFetching: !!isLoadingRecommendations, perPageOptions: [
|
|
301
301
|
{ title: '5', value: 5 },
|
|
302
302
|
{ title: '10', value: 10 },
|
|
303
|
-
] })))),
|
|
304
|
-
React.createElement(AccordionItem, null,
|
|
303
|
+
] }))))),
|
|
304
|
+
pinnedRecommendations.length !== 0 && (React.createElement(AccordionItem, null,
|
|
305
305
|
React.createElement(AccordionToggle, { id: "sol-pinned", isExpanded: pinnedOpen, onClick: () => setPinnedOpen((pre) => !pre) },
|
|
306
306
|
React.createElement("span", null, canLinkUnlink ? (React.createElement(Trans, null, "Pinned by customer")) : (React.createElement(Trans, null, "My pinned recommendations"))),
|
|
307
307
|
React.createElement("span", { className: "badge-item pf-v5-u-font-size-sm pf-v5-u-mx-sm" }, pinnedRecommendations.length)),
|
|
@@ -310,7 +310,7 @@ export const CaseSolutions = forwardRef((props, ref) => {
|
|
|
310
310
|
: renderPinsByCustomer(rec, index, 'pinned-recommendations')), perPage: 5, className: "list-icons list-icons-flush", isFetching: !!isLoadingRecommendations, perPageOptions: [
|
|
311
311
|
{ title: '5', value: 5 },
|
|
312
312
|
{ title: '10', value: 10 },
|
|
313
|
-
] }))))),
|
|
313
|
+
] }))))))),
|
|
314
314
|
topRecommendations.length > 0 && (React.createElement("div", { className: "card card-white card-support recommendations", ref: ref },
|
|
315
315
|
React.createElement("h3", { className: "card-heading case-detail-panel-card-heading" },
|
|
316
316
|
React.createElement(Trans, null, "Knowledgebase recommendations")),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseHistory/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,CAAC;AAwBxB,OAAO,KAAuD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseHistory/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,CAAC;AAwBxB,OAAO,KAAuD,MAAM,OAAO,CAAC;AAkO5E,QAAA,MAAM,QAAQ;;uBAgRb,CAAC;AACF,eAAe,QAAQ,CAAC"}
|
|
@@ -40,18 +40,77 @@ const TimelineNode = React.forwardRef(({ leftEvent, rightEvent, user, useAvatar
|
|
|
40
40
|
React.createElement("div", { ref: ref, "aria-label": `${useAvatar ? 'Open user profile' : 'Marker'}`, tabIndex: 0 }, useAvatar ? (React.createElement(Avatar, { src: 'https://www.patternfly.org/images/668560cd.svg', className: `timeline-avatar timeline-avatar-${user}`, alt: `${user}'s avatar` })) : (React.createElement("div", { className: `timeline-marker timeline-${user}` }))),
|
|
41
41
|
rightEvent && React.createElement(TimelineEvent, Object.assign({}, rightEvent, { side: "right" }))));
|
|
42
42
|
});
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
//Handling changes in case fields to be displayed to the user
|
|
44
|
+
const applyReplacements = (item) => {
|
|
45
|
+
if (!item || typeof item !== 'object') {
|
|
46
|
+
return '';
|
|
47
|
+
}
|
|
48
|
+
const fieldNameMapping = {
|
|
49
|
+
ContactId: 'Contact',
|
|
50
|
+
RH_Product__c: 'Product',
|
|
51
|
+
RH_Version__c: 'Version',
|
|
52
|
+
EntitlementId: 'Entitlement',
|
|
53
|
+
AccountId: 'Account',
|
|
54
|
+
OwnerId: 'Owner',
|
|
55
|
+
BusinessHoursId: 'Business Hours',
|
|
56
|
+
FolderId__c: 'Case Group',
|
|
57
|
+
Status: 'Status',
|
|
58
|
+
};
|
|
59
|
+
let fieldName = fieldNameMapping[item.fieldName] || item.fieldLabel || item.fieldName || '';
|
|
60
|
+
const getNameValue = (prefix) => {
|
|
61
|
+
const keyMap = {
|
|
62
|
+
Product: 'product',
|
|
63
|
+
Version: 'version',
|
|
64
|
+
Account: 'account',
|
|
65
|
+
Contact: 'contact',
|
|
66
|
+
Entitlement: 'entitlement',
|
|
67
|
+
'Business Hours': 'businessHours',
|
|
68
|
+
Owner: 'queueNameOwner',
|
|
69
|
+
};
|
|
70
|
+
const baseKey = keyMap[fieldName] || fieldName.replace(/\s/g, '');
|
|
71
|
+
const key = `${baseKey}${prefix}Name`;
|
|
72
|
+
return item[key] || item[`${prefix}Value`] || '';
|
|
73
|
+
};
|
|
74
|
+
const newValue = getNameValue('New');
|
|
75
|
+
const oldValue = getNameValue('Old');
|
|
76
|
+
let newText = '';
|
|
77
|
+
if (item.fieldName === 'OwnerId' && item.createdByUserName) {
|
|
78
|
+
newText = `set ${fieldName} to ${item.createdByUserName}`;
|
|
79
|
+
}
|
|
80
|
+
else if (item.fieldName === 'Status') {
|
|
81
|
+
if (item.oldValue && item.newValue) {
|
|
82
|
+
newText = `changed ${fieldName} from ${item.oldValue} to ${item.newValue}`;
|
|
83
|
+
}
|
|
84
|
+
else if (item.newValue) {
|
|
85
|
+
newText = `set ${fieldName} to ${item.newValue}`;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
else if (oldValue && newValue) {
|
|
89
|
+
newText = `changed ${fieldName} from ${oldValue} to ${newValue}`;
|
|
90
|
+
}
|
|
91
|
+
else if (newValue) {
|
|
92
|
+
newText = `set ${fieldName} to ${newValue}`;
|
|
93
|
+
}
|
|
94
|
+
else if (item.newValue !== undefined) {
|
|
95
|
+
newText = `set ${fieldName} to ${item.newValue}`;
|
|
96
|
+
}
|
|
97
|
+
// Handle boolean values
|
|
98
|
+
if (typeof item.newValue === 'boolean') {
|
|
99
|
+
newText = `set ${fieldName} to ${item.newValue}`;
|
|
100
|
+
}
|
|
101
|
+
// Handle date values
|
|
102
|
+
if (item.fieldName === 'SlaStartDate' && item.newValue) {
|
|
103
|
+
newText = `set ${fieldName} to ${item.newValue}`;
|
|
104
|
+
}
|
|
105
|
+
// Replace 'Problem Statement' with 'Title'
|
|
106
|
+
if (typeof newText === 'string') {
|
|
47
107
|
newText = newText.replace(/Problem Statement/g, 'Title');
|
|
48
108
|
}
|
|
49
|
-
//we can add more conditions here if needed
|
|
50
109
|
return newText;
|
|
51
110
|
};
|
|
52
|
-
//function to
|
|
111
|
+
// function to change the apiResponse
|
|
53
112
|
const specialTimelineData = (apiResponse) => {
|
|
54
|
-
return Object.assign(Object.assign({}, apiResponse), { historyItems: apiResponse.historyItems.map((item) => (Object.assign(Object.assign({}, item), { outputText: applyReplacements(item.outputText
|
|
113
|
+
return Object.assign(Object.assign({}, apiResponse), { historyItems: apiResponse.historyItems.map((item) => (Object.assign(Object.assign({}, item), { outputText: item.type === 'Change' ? applyReplacements(item) : item.outputText }))) });
|
|
55
114
|
};
|
|
56
115
|
const transformApiResponseToTimelineData = (apiResponse) => {
|
|
57
116
|
let previousUser = null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/Description.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAQ3D,UAAU,MAAM;IACZ,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/Description.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAQ3D,UAAU,MAAM;IACZ,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,MAAM,qBA+JhD"}
|
|
@@ -73,7 +73,7 @@ export default function Description(props) {
|
|
|
73
73
|
isKT1Required && (React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
|
|
74
74
|
React.createElement(Popover, { position: 'right', isVisible: isOpen, shouldClose: handleClose, headerContent: headerPopoverContent, bodyContent: PopoverContent },
|
|
75
75
|
React.createElement(QuestionCircleIcon, { className: "pf-v5-u-ml-xs icon-size", onClick: handleToggle }))))), labelProps: { htmlFor: 'get-support-ktQ1-issue' }, content: issue, allowInlineEdit: !!props.inlineEditable, hideSaveCancel: !!props.hideSaveCancel, initialIsEditing: isEmpty(issue), usePreformattedTag: true, saveOnBlur: true },
|
|
76
|
-
React.createElement(TextArea, { id: "get-support-ktQ1-issue", name: "get-support-ktQ1-issue", className: (isEmpty(summary) || isEmpty(version)) && isEmpty(issue) ? 'kt1-disabled' : ''
|
|
76
|
+
React.createElement(TextArea, { id: "get-support-ktQ1-issue", name: "get-support-ktQ1-issue", className: `description-textarea ${(isEmpty(summary) || isEmpty(version)) && isEmpty(issue) ? 'kt1-disabled' : ''}`, "aria-invalid": (issue === null || issue === void 0 ? void 0 : issue.length) > CASE_DETAILS_ISSUE_LIMIT ? 'true' : 'false', "aria-required": isKT1Required, isRequired: isKT1Required, value: issue, disabled: (isEmpty(summary) || isEmpty(version)) && isEmpty(issue), onChange: (e, value) => onKTQ1IssueChange(value, e), "data-tracking-id": "get-support-ktQ1-issue", placeholder: t(`The more detail that you include, the easier it is for us to help you. \nExample: \nI'm unable to start the SSHD service and am receiving the error message "Bad yes/no \nargument for ShowPatchLevel parameter"`), resizeOrientation: "vertical", validated: props.isSummarizeInvalid ? 'error' : 'default', rows: isLgScreenHeight ? 10 : 4, ref: textAreaRef, onClick: handleTextAreaClick }),
|
|
77
77
|
React.createElement("p", { className: "form-instructions pf-v5-u-danger-color-100", "data-tracking-id": "large-20k-warning-ktQ1-environment" }, `${(issue === null || issue === void 0 ? void 0 : issue.length) > CASE_DETAILS_ISSUE_LIMIT
|
|
78
78
|
? `This description exceeds ${CASE_DETAILS_ISSUE_LIMIT} characters. Try shortening it.`
|
|
79
79
|
: ''}`)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseManagement.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/CaseManagement.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAiB1B,MAAM,WAAW,MAAM;CAAG;AAC1B,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CaseManagement.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/CaseManagement.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAiB1B,MAAM,WAAW,MAAM;CAAG;AAC1B,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,MAAM,qBAmDnD"}
|
|
@@ -39,8 +39,11 @@ export default function CaseManagement(props) {
|
|
|
39
39
|
React.createElement(ContactPhoneNumber, null))),
|
|
40
40
|
React.createElement(ContactPhoneNumberAlert, null),
|
|
41
41
|
React.createElement(Fts, { inlineEditable: false }),
|
|
42
|
-
React.createElement(
|
|
43
|
-
|
|
42
|
+
React.createElement(Grid, { hasGutter: true },
|
|
43
|
+
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v5-u-mb-xs" },
|
|
44
|
+
React.createElement(CaseLanguageSelector, { isManageStep: true })),
|
|
45
|
+
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v5-u-mb-xs" },
|
|
46
|
+
React.createElement(CaseGroup, { init: true }))),
|
|
44
47
|
React.createElement(CaseContactSelector, null),
|
|
45
48
|
React.createElement(RHAssociatesSelector, null),
|
|
46
49
|
React.createElement(OpenReferenceNumber, { inlineEditable: false, hideSaveCancel: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenShiftClusterId.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenShiftClusterId.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAsB/D,eAAO,MAAM,oBAAoB,yBAShC,CAAC;AAEF,eAAO,MAAM,uBAAuB,yBAInC,CAAC;AAEF,eAAO,MAAM,4BAA4B,
|
|
1
|
+
{"version":3,"file":"OpenShiftClusterId.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenShiftClusterId.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAsB/D,eAAO,MAAM,oBAAoB,yBAShC,CAAC;AAEF,eAAO,MAAM,uBAAuB,yBAInC,CAAC;AAEF,eAAO,MAAM,4BAA4B,yBAYxC,CAAC;AAEF,eAAO,MAAM,qBAAqB,yBAIjC,CAAC;AAEF,UAAU,MAAM;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,qBA8S/C"}
|
|
@@ -31,8 +31,9 @@ export const discoverV4ClusterIdLink = () => (React.createElement("a", { classNa
|
|
|
31
31
|
export const discoverV4ClusterIdLinkError = () => (React.createElement(React.Fragment, null,
|
|
32
32
|
React.createElement(ExclamationCircleIcon, { color: "#c9190b", className: "pf-v5-u-mr-sm" }),
|
|
33
33
|
React.createElement(Trans, { i18nKey: 'v4ClusterRequiredField' },
|
|
34
|
-
"
|
|
35
|
-
React.createElement("
|
|
34
|
+
"Cluster ID is required.",
|
|
35
|
+
React.createElement("div", null,
|
|
36
|
+
React.createElement("a", { className: "show-target", href: "/solutions/4505861", target: "_blank", rel: "noopener noreferrer" }, "How do I determine my OpenShift 4.x Cluster ID?")))));
|
|
36
37
|
export const isInvalidErrorMessage = () => (React.createElement(React.Fragment, null,
|
|
37
38
|
React.createElement(Trans, null,
|
|
38
39
|
"Cluster Id is not valid. ",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdeaInformation.d.ts","sourceRoot":"","sources":["../../../../src/components/IdeaInformation/IdeaInformation.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAkBrD,MAAM,CAAC,OAAO,UAAU,eAAe,
|
|
1
|
+
{"version":3,"file":"IdeaInformation.d.ts","sourceRoot":"","sources":["../../../../src/components/IdeaInformation/IdeaInformation.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAkBrD,MAAM,CAAC,OAAO,UAAU,eAAe,sBAoJtC"}
|
|
@@ -104,8 +104,11 @@ export default function IdeaInformation() {
|
|
|
104
104
|
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v5-u-mb-xl" },
|
|
105
105
|
React.createElement(ContactPhoneNumber, null))),
|
|
106
106
|
React.createElement(ContactPhoneNumberAlert, null),
|
|
107
|
-
React.createElement(
|
|
108
|
-
|
|
107
|
+
React.createElement(Grid, { hasGutter: true },
|
|
108
|
+
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v5-u-mb-xs" },
|
|
109
|
+
React.createElement(CaseLanguageSelector, { isManageStep: true })),
|
|
110
|
+
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v5-u-mb-xs" },
|
|
111
|
+
React.createElement(CaseGroup, { init: true }))),
|
|
109
112
|
React.createElement(CaseContactSelector, null),
|
|
110
113
|
React.createElement(RHAssociatesSelector, null),
|
|
111
114
|
React.createElement(OpenReferenceNumber, { inlineEditable: false, hideSaveCancel: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Review.d.ts","sourceRoot":"","sources":["../../../../src/components/Review/Review.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAsBlE,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AACD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Review.d.ts","sourceRoot":"","sources":["../../../../src/components/Review/Review.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAsBlE,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AACD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,MAAM,qBA6E3C"}
|
|
@@ -61,8 +61,11 @@ export default function Review(props) {
|
|
|
61
61
|
React.createElement(ContactPhoneNumber, null))),
|
|
62
62
|
React.createElement(ContactPhoneNumberAlert, null),
|
|
63
63
|
React.createElement(Fts, { inlineEditable: true, initialIsEditing: isEmpty(contactInfo24x7), hideSaveCancel: true }),
|
|
64
|
-
React.createElement(
|
|
65
|
-
|
|
64
|
+
React.createElement(Grid, { hasGutter: true },
|
|
65
|
+
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v5-u-mb-xs" },
|
|
66
|
+
React.createElement(CaseLanguageSelector, null)),
|
|
67
|
+
React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v5-u-mb-xs" },
|
|
68
|
+
React.createElement(CaseGroup, null))),
|
|
66
69
|
canSeeEmailNotifications && React.createElement(CaseContactSelector, null),
|
|
67
70
|
React.createElement(RHAssociatesSelector, null),
|
|
68
71
|
React.createElement(OpenReferenceNumber, { inlineEditable: false, hideSaveCancel: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetFileUploader.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/WidgetFileUploader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,KAA0C,MAAM,OAAO,CAAC;AA0B/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAInD,UAAU,MAAO,SAAQ,wBAAwB,EAAE,gBAAgB;IAC/D,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACtC,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB;AAYD,iBAAS,kBAAkB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"WidgetFileUploader.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/WidgetFileUploader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,KAA0C,MAAM,OAAO,CAAC;AA0B/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAInD,UAAU,MAAO,SAAQ,wBAAwB,EAAE,gBAAgB;IAC/D,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACtC,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB;AAYD,iBAAS,kBAAkB,CAAC,KAAK,EAAE,MAAM,qBA8OxC;kBA9OQ,kBAAkB;;;AAkP3B,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -151,10 +151,11 @@ function WidgetFileUploader(props) {
|
|
|
151
151
|
React.createElement("div", { className: "card-body" },
|
|
152
152
|
React.createElement(WidgetFileSelector, { isSessionId: props.isSessionId, isPrivate: props.isPrivate, isIdea: props.isIdea, showFileExceed: fileExceedInfo }),
|
|
153
153
|
!hasSomeSelectedFiles(selectedLocalFiles) ? ((!props.isIdea && props.helperText) || (React.createElement("p", { className: "pf-v5-u-mt-sm" },
|
|
154
|
-
!props.isIdea ? (React.createElement(
|
|
155
|
-
"To help us provide the right guidance, upload a",
|
|
156
|
-
|
|
157
|
-
React.createElement("a", { href: "/solutions/3592", target: "_blank" },
|
|
154
|
+
!props.isIdea ? (React.createElement(React.Fragment, null,
|
|
155
|
+
React.createElement(Trans, null, "To help us provide the right guidance, upload a sosreport."),
|
|
156
|
+
React.createElement("br", null),
|
|
157
|
+
React.createElement("a", { href: "/solutions/3592", target: "_blank" },
|
|
158
|
+
React.createElement(Trans, null, "How to create sosreport?")))) : (React.createElement("span", { className: "pf-v5-u-font-family-redhatVF-heading-sans-serif pf-v5-u-color-300" },
|
|
158
159
|
React.createElement(Trans, null, "Allowed file types: png, gif, jpg, jpeg."))),
|
|
159
160
|
' '))) : (React.createElement(React.Fragment, null,
|
|
160
161
|
unallowedLocalFileExists && (React.createElement(Alert, { variant: "danger", title: t('File type is not allowed on this support type. Please remove file to proceed.') })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsSectionValid.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/useIsSectionValid.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAuB1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAInE,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,gBAAgB;;;;;
|
|
1
|
+
{"version":3,"file":"useIsSectionValid.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/useIsSectionValid.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAuB1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAInE,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,gBAAgB;;;;;EAuM9D"}
|
|
@@ -76,12 +76,9 @@ export function useIsSectionValid(sectionName) {
|
|
|
76
76
|
hasAlternateCaseIdValidLength);
|
|
77
77
|
};
|
|
78
78
|
const isTroubleshootSectionValid = () => {
|
|
79
|
-
var _a;
|
|
80
79
|
// don't check for entitled product if user is on search intent flow
|
|
81
80
|
const isEntitledProductLocal = isSearchIntent ? true : isEntitledProduct;
|
|
82
|
-
return
|
|
83
|
-
isEntitledProductLocal &&
|
|
84
|
-
isClusterIDValid(caseState, (_a = allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult));
|
|
81
|
+
return !recommendationState.isLoadingRecommendations && isEntitledProductLocal;
|
|
85
82
|
};
|
|
86
83
|
const isReviewSectionValid = () => {
|
|
87
84
|
var _a;
|
|
@@ -35,7 +35,7 @@ function WizardAside(props) {
|
|
|
35
35
|
React.createElement("section", { className: "grid-aside-content" },
|
|
36
36
|
canShowFileUploadWidget() && React.createElement(InsightsResults, null),
|
|
37
37
|
canShowFileUploadWidget() && React.createElement(FileDiag, { className: "pf-v5-u-mb-md" }),
|
|
38
|
-
canshowEARuleWidget && React.createElement(EARuleWidget, null),
|
|
38
|
+
canshowEARuleWidget && activeSection !== AppRouteSections.GET_SUPPORT && React.createElement(EARuleWidget, null),
|
|
39
39
|
!(isIdea && activeSection === 'submit-case') && (React.createElement(AsideResults, { routeProps: props.routeProps, className: "pf-v5-u-mb-md pf-v5-u-mt-0" })),
|
|
40
40
|
canShowFileRecommendationSectionsWidget && React.createElement(InsightsResults, { isDisplayOnMain: true }),
|
|
41
41
|
React.createElement(ClusterRecommendations, { showClusterRecommendationsList: canShowClusterIdReportWidget, className: "pf-v5-u-mb-md pf-v5-u-mt-0" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardMain.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardMain.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAS,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAK9D,OAAO,EAAoB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAQpF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,qBAAqB,EAAE,CAAC,cAAc,EAAE,OAAO,KAAK,IAAI,CAAC;IACzD,mBAAmB,EAAE,CAAC,gCAAgC,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5E;AAED,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"WizardMain.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardMain.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAS,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAK9D,OAAO,EAAoB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAQpF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,qBAAqB,EAAE,CAAC,cAAc,EAAE,OAAO,KAAK,IAAI,CAAC;IACzD,mBAAmB,EAAE,CAAC,gCAAgC,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5E;AAED,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,qBAsIhC;AACD,eAAe,UAAU,CAAC"}
|
|
@@ -22,10 +22,12 @@ function WizardMain(props) {
|
|
|
22
22
|
const [userSeenRecommendations, setUserSeenRecommendations] = useState(false);
|
|
23
23
|
const [userClickedNextonRecommendations, setUserClickedNextonRecommendations] = useState(false);
|
|
24
24
|
const [userScrolledLabel, setUserScrolledLabel] = useState(false);
|
|
25
|
+
const [userCanNavigateToTroubleshoot, setUserCanNavigateToTroubleshoot] = useState(false);
|
|
25
26
|
const resultsRowRef = useRef(null);
|
|
26
27
|
const { getStepsSequece } = useWizard(props.routeProps, {
|
|
27
28
|
userSeenRecommendationsfn: setUserSeenRecommendations,
|
|
28
29
|
userSeenRecommendationsValue: userSeenRecommendations,
|
|
30
|
+
userCanNavigateToTroubleshoot: userCanNavigateToTroubleshoot,
|
|
29
31
|
userClickedNextonRecommendationsValue: userClickedNextonRecommendations,
|
|
30
32
|
resultsRowRef: resultsRowRef,
|
|
31
33
|
userScrolledLabel: userScrolledLabel,
|
|
@@ -66,7 +68,7 @@ function WizardMain(props) {
|
|
|
66
68
|
}, onBack: () => {
|
|
67
69
|
onBack();
|
|
68
70
|
focusWizardMainPanel();
|
|
69
|
-
}, activeStep: activeStep, onSubmit: onSubmit, confirmSupportModal: props.confirmSupportModal, onShowRestUpdate: (flag) => setShowRestFlag(flag), userSeenRecommendations: userSeenRecommendations, setUserSeenRecommendations: setUserSeenRecommendations, userClickedNextonRecommendationsFn: setUserClickedNextonRecommendations, userClickedNextonRecommendationsValue: userClickedNextonRecommendations, resultsRowRef: resultsRowRef, setUserScrolledLabel: setUserScrolledLabel }));
|
|
71
|
+
}, activeStep: activeStep, onSubmit: onSubmit, confirmSupportModal: props.confirmSupportModal, onShowRestUpdate: (flag) => setShowRestFlag(flag), userSeenRecommendations: userSeenRecommendations, setUserSeenRecommendations: setUserSeenRecommendations, userClickedNextonRecommendationsFn: setUserClickedNextonRecommendations, userClickedNextonRecommendationsValue: userClickedNextonRecommendations, setUserCanNavigateToTroubleshoot: setUserCanNavigateToTroubleshoot, resultsRowRef: resultsRowRef, setUserScrolledLabel: setUserScrolledLabel }));
|
|
70
72
|
})));
|
|
71
73
|
// To add a new step to wizard first need to add the component to appRouteConfugurations
|
|
72
74
|
// in useWizard file then add it to step squences in RouteConstNTypes
|
|
@@ -13,6 +13,7 @@ interface IProps {
|
|
|
13
13
|
setUserSeenRecommendations?: (value: React.SetStateAction<boolean>) => void;
|
|
14
14
|
userClickedNextonRecommendationsFn?: (value: React.SetStateAction<boolean>) => void;
|
|
15
15
|
userClickedNextonRecommendationsValue?: boolean;
|
|
16
|
+
setUserCanNavigateToTroubleshoot: (value: React.SetStateAction<boolean>) => void;
|
|
16
17
|
resultsRowRef?: any;
|
|
17
18
|
setUserScrolledLabel: (value: React.SetStateAction<boolean>) => void;
|
|
18
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardNavigation.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAOvD,OAAO,EAAoB,eAAe,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAK3G,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC3C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,mBAAmB,EAAE,CAAC,gCAAgC,EAAE,OAAO,KAAK,IAAI,CAAC;IACzE,gBAAgB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,0BAA0B,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IAC5E,kCAAkC,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACpF,qCAAqC,CAAC,EAAE,OAAO,CAAC;IAChD,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,oBAAoB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;CACxE;AAGD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"WizardNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardNavigation.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAOvD,OAAO,EAAoB,eAAe,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAK3G,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC3C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,mBAAmB,EAAE,CAAC,gCAAgC,EAAE,OAAO,KAAK,IAAI,CAAC;IACzE,gBAAgB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,0BAA0B,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IAC5E,kCAAkC,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACpF,qCAAqC,CAAC,EAAE,OAAO,CAAC;IAChD,gCAAgC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACjF,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,oBAAoB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;CACxE;AAGD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,qBA4OtC;kBA5OQ,gBAAgB;;;AA8OzB,eAAe,gBAAgB,CAAC"}
|
|
@@ -108,6 +108,12 @@ function WizardNavigation(props) {
|
|
|
108
108
|
props.userClickedNextonRecommendationsFn && props.userClickedNextonRecommendationsFn(true);
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
|
+
else {
|
|
112
|
+
props.setUserCanNavigateToTroubleshoot(true);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
props.setUserCanNavigateToTroubleshoot(true);
|
|
111
117
|
}
|
|
112
118
|
const userCanNotOpenCase = props.activeStep.id === AppRouteSections.TROUBLESHOOT && canCreateCase.alert();
|
|
113
119
|
if (userCanNotOpenCase || !isSectionValidFn(props.activeStep.id))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWizard.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWizard.tsx"],"names":[],"mappings":"AA+BA,UAAU,MAAM;IACZ,yBAAyB,CAAC,EAAE,GAAG,CAAC;IAChC,4BAA4B,EAAE,OAAO,CAAC;IACtC,qCAAqC,EAAE,OAAO,CAAC;IAC/C,aAAa,EAAE,GAAG,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;CAC9B;AAED,wBAAgB,SAAS,CAAC,UAAU,KAAA,EAAE,KAAK,CAAC,EAAE,MAAM;iCAgQb,OAAO;EAwC7C"}
|
|
1
|
+
{"version":3,"file":"useWizard.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWizard.tsx"],"names":[],"mappings":"AA+BA,UAAU,MAAM;IACZ,yBAAyB,CAAC,EAAE,GAAG,CAAC;IAChC,4BAA4B,EAAE,OAAO,CAAC;IACtC,6BAA6B,EAAE,OAAO,CAAC;IACvC,qCAAqC,EAAE,OAAO,CAAC;IAC/C,aAAa,EAAE,GAAG,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;CAC9B;AAED,wBAAgB,SAAS,CAAC,UAAU,KAAA,EAAE,KAAK,CAAC,EAAE,MAAM;iCAgQb,OAAO;EAwC7C"}
|
|
@@ -70,7 +70,7 @@ export function useWizard(routeProps, props) {
|
|
|
70
70
|
alertMessage(),
|
|
71
71
|
React.createElement(TroubleshootSection, null)))), canJumpTo: isSectionValidFn(AppRouteSections.TROUBLESHOOT || activeSection === AppRouteSections.TROUBLESHOOT) &&
|
|
72
72
|
(props === null || props === void 0 ? void 0 : props.userSeenRecommendationsValue) &&
|
|
73
|
-
props.
|
|
73
|
+
(props === null || props === void 0 ? void 0 : props.userCanNavigateToTroubleshoot), nextButtonLabel: isCaseCreate ? t('Continue') : t('Convert to Case') }),
|
|
74
74
|
[AppRouteSections.DESCRIBE_MORE]: Object.assign(Object.assign({}, defaultRouteConfiguration), { id: AppRouteSections.DESCRIBE_MORE, name: t('Describe more'), component: (React.createElement(MainSection, { stepNumber: 4, totalSteps: 6, section: AppRouteSections.DESCRIBE_MORE, title: React.createElement(React.Fragment, null,
|
|
75
75
|
t('Case information'),
|
|
76
76
|
isEmpty(RouteUtils.seBasePath) && isSelectedAccounntSecureSupport && (React.createElement("span", { className: "secured-support" },
|
|
@@ -728,9 +728,22 @@ a.case-resource-recommendation-link {
|
|
|
728
728
|
font-weight: 400;
|
|
729
729
|
}
|
|
730
730
|
|
|
731
|
+
.description-textarea {
|
|
732
|
+
&.pf-v5-c-form-control {
|
|
733
|
+
&:disabled,
|
|
734
|
+
&.kt1-disabled {
|
|
735
|
+
&::after,
|
|
736
|
+
&:after {
|
|
737
|
+
border-block-end: none !important;
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
|
|
731
743
|
.kt1-disabled {
|
|
732
744
|
background-color: #f0f0f0;
|
|
733
745
|
}
|
|
746
|
+
|
|
734
747
|
.issue-title-disabled {
|
|
735
748
|
background-color: #f0f0f0 !important;
|
|
736
749
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.184",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -133,5 +133,5 @@
|
|
|
133
133
|
"defaults and supports es6-module",
|
|
134
134
|
"maintained node versions"
|
|
135
135
|
],
|
|
136
|
-
"gitHead": "
|
|
136
|
+
"gitHead": "bb5f3093583e78c2c155fd31c9e3804035f4ad2f"
|
|
137
137
|
}
|