@rh-support/troubleshoot 2.2.181 → 2.2.183

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.
Files changed (25) hide show
  1. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.js +2 -2
  2. package/lib/esm/components/CaseEditView/CaseOverview/index.js +2 -2
  3. package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.d.ts.map +1 -1
  4. package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.js +6 -6
  5. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts.map +1 -1
  6. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.js +66 -7
  7. package/lib/esm/components/CaseInformation/Description.d.ts.map +1 -1
  8. package/lib/esm/components/CaseInformation/Description.js +1 -1
  9. package/lib/esm/components/CaseManagement/CaseManagement.d.ts.map +1 -1
  10. package/lib/esm/components/CaseManagement/CaseManagement.js +5 -2
  11. package/lib/esm/components/CaseManagement/OpenShiftClusterId.d.ts.map +1 -1
  12. package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +3 -2
  13. package/lib/esm/components/IdeaInformation/IdeaInformation.d.ts.map +1 -1
  14. package/lib/esm/components/IdeaInformation/IdeaInformation.js +5 -2
  15. package/lib/esm/components/Recommendations/Recommendations.d.ts.map +1 -1
  16. package/lib/esm/components/Recommendations/Recommendations.js +2 -1
  17. package/lib/esm/components/Review/Review.d.ts.map +1 -1
  18. package/lib/esm/components/Review/Review.js +5 -2
  19. package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts.map +1 -1
  20. package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +1 -1
  21. package/lib/esm/components/shared/fileUpload/WidgetFileUploader.d.ts.map +1 -1
  22. package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +5 -4
  23. package/lib/esm/components/wizardLayout/WizardAside.js +1 -1
  24. package/lib/esm/scss/_pf-overrides.scss +13 -0
  25. package/package.json +2 -2
@@ -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, { className: "pf-v5-c-button pf-m-tertiary", onClick: toggleModal, "data-tracking-id": "request-rme-trigger", "aria-label": t('Request an escalation') }, t('Request an escalation')))));
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 LockedIcon from '@patternfly/react-icons/dist/js/icons/locked-icon';
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(LockedIcon, { "aria-hidden": true }),
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,+EAogBxB,CAAC"}
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;AAoK5E,QAAA,MAAM,QAAQ;;uBAgRb,CAAC;AACF,eAAe,QAAQ,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
- const applyReplacements = (text) => {
44
- let newText = text;
45
- //replacing Problem Statement to Title
46
- if (newText.includes('Problem Statement')) {
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 replace Problem Statement with Title
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,qBA6JhD"}
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' : '', "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 }),
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,qBA6CnD"}
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(CaseLanguageSelector, { isManageStep: true }),
43
- React.createElement(CaseGroup, { init: true }),
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,yBAUxC,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"}
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
- "Required field.",
35
- React.createElement("a", { className: "show-target", href: "/solutions/4505861", target: "_blank", rel: "noopener noreferrer" }, "How do I determine my OpenShift 4.x Cluster ID?"))));
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,sBA8ItC"}
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(CaseLanguageSelector, { isManageStep: true }),
108
- React.createElement(CaseGroup, { init: true }),
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":"Recommendations.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/Recommendations.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAa,MAAM,kBAAkB,CAAC;AAelE,OAAO,EAAoB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAWpF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACzE,qCAAqC,CAAC,EAAE,OAAO,CAAC;IAChD,aAAa,EAAE,GAAG,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAAK,EAAE,MAAM,qBAyRpD"}
1
+ {"version":3,"file":"Recommendations.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/Recommendations.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAa,MAAM,kBAAkB,CAAC;AAelE,OAAO,EAAoB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAWpF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACzE,qCAAqC,CAAC,EAAE,OAAO,CAAC;IAChD,aAAa,EAAE,GAAG,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAAK,EAAE,MAAM,qBA0RpD"}
@@ -175,7 +175,8 @@ export default function Recommendations(props) {
175
175
  recommendationState.visibleDocs.length === 0 &&
176
176
  !recommendationState.isLoadingRecommendations &&
177
177
  !recommendationState.isLoadingRecommendationsError &&
178
+ !isEmpty(issue) &&
178
179
  !isEmpty(summary) &&
179
- !isEmpty(prevMainRecommendations) && (React.createElement("p", null,
180
+ isEmpty(prevMainRecommendations) && (React.createElement("p", null,
180
181
  React.createElement(Trans, null, "We couldn't find any matches. Revise your search for better results.")))));
181
182
  }
@@ -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,qBAsE3C"}
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(CaseLanguageSelector, null),
65
- React.createElement(CaseGroup, null),
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":"UpdateSeverityModal.d.ts","sourceRoot":"","sources":["../../../../src/components/UpdateSeverityModal/UpdateSeverityModal.tsx"],"names":[],"mappings":"AAgCA,OAAO,KAAmE,MAAM,OAAO,CAAC;AAgBxF,UAAU,MAAM;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,MAAM,qBAglBxD"}
1
+ {"version":3,"file":"UpdateSeverityModal.d.ts","sourceRoot":"","sources":["../../../../src/components/UpdateSeverityModal/UpdateSeverityModal.tsx"],"names":[],"mappings":"AAgCA,OAAO,KAAmE,MAAM,OAAO,CAAC;AAgBxF,UAAU,MAAM;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,MAAM,qBA+kBxD"}
@@ -315,7 +315,7 @@ export default function UpdateSeverityModal(props) {
315
315
  setLocalFts(true);
316
316
  setLocalFtsContact('');
317
317
  setCaseState(caseDispatch, { ftsContactSameAsOwner: false });
318
- setUpdatedCaseDetails((pre) => (Object.assign(Object.assign({}, pre), { ftsContactSameAsOwner: false, severity: option.name, fts: !isIdea, contactInfo24x7: '' })));
318
+ setUpdatedCaseDetails((pre) => (Object.assign(Object.assign({}, pre), { severity: option.name, fts: !isIdea, contactInfo24x7: '' })));
319
319
  }
320
320
  else {
321
321
  setUpdatedCaseDetails({ severity: option.name, fts: false });
@@ -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,qBA6OxC;kBA7OQ,kBAAkB;;;AAiP3B,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
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(Trans, { i18nKey: "i18nUploadSosReport" },
155
- "To help us provide the right guidance, upload a",
156
- ' ',
157
- React.createElement("a", { href: "/solutions/3592", target: "_blank" }, "sosreport"))) : (React.createElement("span", { className: "pf-v5-u-font-family-redhatVF-heading-sans-serif pf-v5-u-color-300" },
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.') })),
@@ -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" }),
@@ -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.181",
3
+ "version": "2.2.183",
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": "66526673b8a34858094195171b3faec5ddd9ff82"
136
+ "gitHead": "af41f9cc9403ddae00b0ef3701e68224e7715c5b"
137
137
  }