@rh-support/troubleshoot 2.2.42 → 2.2.44
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/CaseDiscussion/CaseDiscussion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +18 -1
- package/lib/esm/components/CaseManagement/Cep.js +13 -13
- package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.js +1 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +2 -2
- package/lib/esm/components/Recommendations/AlertToastWrapper.d.ts +3 -0
- package/lib/esm/components/Recommendations/AlertToastWrapper.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/AlertToastWrapper.js +2 -2
- package/lib/esm/components/Recommendations/RulesModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/RulesModal.js +1 -0
- package/lib/esm/components/SessionRestore/SessionRestore.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/SessionRestore.js +5 -3
- package/lib/esm/components/SessionRestore/SessionRestoreCard.js +3 -3
- package/lib/esm/components/SubmitCase/ResubmitToast.d.ts +3 -0
- package/lib/esm/components/SubmitCase/ResubmitToast.d.ts.map +1 -1
- package/lib/esm/components/SubmitCase/ResubmitToast.js +3 -1
- package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
- package/lib/esm/components/SubmitCase/SubmitCase.js +3 -3
- package/lib/esm/components/wizardLayout/WizardAside.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardAside.js +3 -3
- package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardLayout.js +2 -2
- package/lib/esm/reducers/CaseConstNTypes.d.ts +5 -1
- package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.js +4 -0
- package/lib/esm/reducers/CaseReducer.d.ts +1 -1
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.js +19 -5
- package/lib/esm/reducers/SessionRestoreReducer.d.ts +1 -1
- package/lib/esm/reducers/SessionRestoreReducer.d.ts.map +1 -1
- package/lib/esm/reducers/SessionRestoreReducer.js +7 -1
- package/lib/esm/scss/{_pf4-overrides.scss → _pf-overrides.scss} +12 -0
- package/lib/esm/scss/index.scss +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseDiscussion.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,YAAY,EAA0B,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"CaseDiscussion.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,YAAY,EAA0B,MAAM,yCAAyC,CAAC;AAoB1G,OAAO,KAAoE,MAAM,OAAO,CAAC;AAwCzF,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,SAAS,EAAE,SAAS,EAAE,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAC/C,eAAe,EAAE,OAAO,CAAC;CAC5B;AAOD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,MAAM,eA2hBnD"}
|
|
@@ -12,6 +12,7 @@ import { AlertMessage, AlertType, Dropdown, ErrorBoundary, LoadingIndicator, Mul
|
|
|
12
12
|
import { useGlobalStateContext } from '@rh-support/react-context';
|
|
13
13
|
import { AbilityContext, CaseDetailsFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
14
14
|
import { getDropdownBtnPlaceholder, getUrlParsedParams, scrollIntoView, toOption, toOptions } from '@rh-support/utils';
|
|
15
|
+
import { isEqual } from 'lodash';
|
|
15
16
|
import cloneDeep from 'lodash/cloneDeep';
|
|
16
17
|
import filter from 'lodash/filter';
|
|
17
18
|
import findIndex from 'lodash/findIndex';
|
|
@@ -21,9 +22,11 @@ import React, { useContext, useEffect, useRef, useState } from 'react';
|
|
|
21
22
|
import { Trans, useTranslation } from 'react-i18next';
|
|
22
23
|
import { useLocation } from 'react-router';
|
|
23
24
|
import { AutoSizer, CellMeasurer, CellMeasurerCache, List, WindowScroller } from 'react-virtualized';
|
|
25
|
+
import { useCaseDispatch, useCaseSelector } from '../../../../context/CaseContext';
|
|
24
26
|
import { useCaseDetailsPageStateContext } from '../../../../context/CaseDetailsPageContext';
|
|
25
27
|
import { useCaseDiscussionTabDispatchContext, useCaseDiscussionTabStateContext, } from '../../../../context/CaseDiscussionTabContext';
|
|
26
28
|
import { clearReplyComment, discussionSortOrderConst, DiscussionType, setCommentText, setDiscussions, setFilter, setSort, updateAttachment, updateAttacmentsAfterRemoval, updateCommentStateFeedback, updateDiscussionStateAttachments, updateDiscussionStateComments, } from '../../../../reducers/CaseDiscussionTabReducer';
|
|
29
|
+
import { setCaseState } from '../../../../reducers/CaseReducer';
|
|
27
30
|
import { AttachmentContextProvider } from '../../../shared/fileUpload/reducer/AttachmentReducerContext';
|
|
28
31
|
import { PDFContext } from '../../PDFContainer';
|
|
29
32
|
import CaseAttachment from './CaseAttachment';
|
|
@@ -39,6 +42,10 @@ let cellMeasureCache = new CellMeasurerCache({
|
|
|
39
42
|
});
|
|
40
43
|
export default function CaseDiscussion(props) {
|
|
41
44
|
const { t } = useTranslation();
|
|
45
|
+
const { isPostingRemoteRequestCommentCompleted, screenSessionRequested } = useCaseSelector((state) => ({
|
|
46
|
+
isPostingRemoteRequestCommentCompleted: state.isPostingRemoteRequestCommentCompleted,
|
|
47
|
+
screenSessionRequested: state.caseDetails.screenSessionRequested,
|
|
48
|
+
}), isEqual);
|
|
42
49
|
const urlSearchParams = getUrlParsedParams(useLocation().search);
|
|
43
50
|
const discussionIdFromUrl = ((urlSearchParams === null || urlSearchParams === void 0 ? void 0 : urlSearchParams.commentId) ||
|
|
44
51
|
(urlSearchParams === null || urlSearchParams === void 0 ? void 0 : urlSearchParams.externalTrackerId) ||
|
|
@@ -48,6 +55,7 @@ export default function CaseDiscussion(props) {
|
|
|
48
55
|
const { sort, discussionFiltersListState, allDiscussions, replyCommentText, replyCommentCreator } = useCaseDiscussionTabStateContext();
|
|
49
56
|
const { globalMetadataState: { loggedInUsersAccount, navBarRef }, } = useGlobalStateContext();
|
|
50
57
|
const dispatchDiscussion = useCaseDiscussionTabDispatchContext();
|
|
58
|
+
const caseDispatch = useCaseDispatch();
|
|
51
59
|
const { caseDetailsPageState: { caseFeedbacksHydra, caseAttachmentHydra, caseExternalTrackersUpdate }, } = useCaseDetailsPageStateContext();
|
|
52
60
|
const { caseNumber } = props;
|
|
53
61
|
const activeElementId = useRef(null);
|
|
@@ -297,16 +305,25 @@ export default function CaseDiscussion(props) {
|
|
|
297
305
|
}
|
|
298
306
|
};
|
|
299
307
|
const list = discussionFiltersListState.filter((filter) => filter.canSee);
|
|
308
|
+
useEffect(() => {
|
|
309
|
+
if (isPostingRemoteRequestCommentCompleted) {
|
|
310
|
+
onCommentAdded();
|
|
311
|
+
!isEmpty(allDiscussions) && setCaseState(caseDispatch, { isPostingRemoteRequestCommentCompleted: false });
|
|
312
|
+
}
|
|
313
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
314
|
+
}, [isPostingRemoteRequestCommentCompleted]);
|
|
300
315
|
return (React.createElement(React.Fragment, null,
|
|
301
316
|
React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading post comment section') } },
|
|
302
317
|
React.createElement(AttachmentContextProvider, null,
|
|
303
318
|
React.createElement(PostComment, { caseNumber: caseNumber, allDiscussions: allDiscussions, onCommentAdded: onCommentAdded, onAttachmentAdded: onAttachmentAdded, commentText: replyCommentText, onCommentClear: resetReplyComment, commentCreator: replyCommentCreator, defaultIsPublic: replyingToPrivateComment === null ? replyingToPrivateComment : !replyingToPrivateComment }))),
|
|
304
319
|
React.createElement(LoadingIndicator, { className: "text-center", isInline: true, show: caseAttachmentHydra.isFetching ||
|
|
305
320
|
caseExternalTrackersUpdate.isFetching ||
|
|
306
|
-
caseFeedbacksHydra.isFetching
|
|
321
|
+
caseFeedbacksHydra.isFetching ||
|
|
322
|
+
(screenSessionRequested && allDiscussions.length === 0) }),
|
|
307
323
|
!caseAttachmentHydra.isFetching &&
|
|
308
324
|
!caseFeedbacksHydra.isFetching &&
|
|
309
325
|
!caseExternalTrackersUpdate.isFetching &&
|
|
326
|
+
!screenSessionRequested &&
|
|
310
327
|
allDiscussions.length === 0 && React.createElement(Trans, null, "No comments"),
|
|
311
328
|
!caseAttachmentHydra.isFetching &&
|
|
312
329
|
!caseFeedbacksHydra.isFetching &&
|
|
@@ -156,33 +156,33 @@ export function Cep(props) {
|
|
|
156
156
|
React.createElement(Trans, null, "If requested, Red Hat Support will use this information to initiate direct contact (i.e. phone, chat) with listed contact(s) in order to provide faster assistance. The primary method of communication will continue to be this support ticket.")),
|
|
157
157
|
React.createElement(Form, { className: "push-top-narrow" },
|
|
158
158
|
React.createElement(FormGroup, { label: t('Contact name'), isRequired: true, fieldId: "cep-contact-name" },
|
|
159
|
-
React.createElement(FormHelperText, null,
|
|
160
|
-
React.createElement(HelperText, null,
|
|
161
|
-
React.createElement(HelperTextItem, null,
|
|
162
|
-
React.createElement(Trans, null, "Provide main contact(s) troubleshooting the issue.")))),
|
|
163
159
|
React.createElement(TextInput, { type: "text", id: "cep-contact-name", isRequired: true, maxLength: 254, "aria-label": t('Contact name'), onChange: (_event, value) => onCepContactNameChange(value), validated: saveButtonIsClicked && isEmpty((_d = cepDetailsLocal.contactName) === null || _d === void 0 ? void 0 : _d.trim())
|
|
164
160
|
? ValidatedOptions.error
|
|
165
|
-
: ValidatedOptions.default })
|
|
166
|
-
React.createElement(FormGroup, { label: t('Availability/Working hours'), isRequired: true, fieldId: "cep-workingHours" },
|
|
161
|
+
: ValidatedOptions.default }),
|
|
167
162
|
React.createElement(FormHelperText, null,
|
|
168
163
|
React.createElement(HelperText, null,
|
|
169
164
|
React.createElement(HelperTextItem, null,
|
|
170
|
-
React.createElement(Trans, null, "
|
|
165
|
+
React.createElement(Trans, null, "Provide main contact(s) troubleshooting the issue."))))),
|
|
166
|
+
React.createElement(FormGroup, { label: t('Availability/Working hours'), isRequired: true, fieldId: "cep-workingHours" },
|
|
171
167
|
React.createElement(TextInput, { type: "text", id: "cep-workingHours", isRequired: true, maxLength: 254, "aria-label": t('Availability/Working hours'), onChange: (_event, value) => onCepWorkingHoursChange(value), validated: saveButtonIsClicked && isEmpty((_e = cepDetailsLocal.workingHours) === null || _e === void 0 ? void 0 : _e.trim())
|
|
172
168
|
? ValidatedOptions.error
|
|
173
|
-
: ValidatedOptions.default })
|
|
174
|
-
React.createElement(FormGroup, { label: t('Contact information'), isRequired: true, fieldId: "cep-contactInformation" },
|
|
169
|
+
: ValidatedOptions.default }),
|
|
175
170
|
React.createElement(FormHelperText, null,
|
|
176
171
|
React.createElement(HelperText, null,
|
|
177
172
|
React.createElement(HelperTextItem, null,
|
|
178
|
-
React.createElement(Trans, null, "
|
|
173
|
+
React.createElement(Trans, null, "Indicate working hours, time zone; specify if not available on certain dates (i.e. weekends, holidays)."))))),
|
|
174
|
+
React.createElement(FormGroup, { label: t('Contact information'), isRequired: true, fieldId: "cep-contactInformation" },
|
|
179
175
|
React.createElement(TextArea, { id: "cep-contactInformation", "aria-required": true, isRequired: true, maxLength: 2000, name: "cep-contactInformation", value: cepDetailsLocal.contactInformation, onChange: (_event, value) => onCepContactInformationsChange(value), "aria-label": "auto resizing text area example", autoResize: true, validated: saveButtonIsClicked && isEmpty((_f = cepDetailsLocal.contactInformation) === null || _f === void 0 ? void 0 : _f.trim())
|
|
180
176
|
? ValidatedOptions.error
|
|
181
|
-
: ValidatedOptions.default, resizeOrientation: "vertical" })
|
|
177
|
+
: ValidatedOptions.default, resizeOrientation: "vertical" }),
|
|
178
|
+
React.createElement(FormHelperText, null,
|
|
179
|
+
React.createElement(HelperText, null,
|
|
180
|
+
React.createElement(HelperTextItem, null,
|
|
181
|
+
React.createElement(Trans, null, "Please provide phone number, chat ID or email."))))),
|
|
182
182
|
React.createElement(FormGroup, { label: t('Notes'), fieldId: "cep-notes" },
|
|
183
|
+
React.createElement(TextArea, { id: "cep-notes", "aria-required": false, isRequired: false, maxLength: 2000, name: "cep-notes", value: cepDetailsLocal.notes, onChange: (_event, value) => onCepNotesChange(value), autoResize: true, resizeOrientation: "vertical" }),
|
|
183
184
|
React.createElement(FormHelperText, null,
|
|
184
185
|
React.createElement(HelperText, null,
|
|
185
186
|
React.createElement(HelperTextItem, null,
|
|
186
|
-
React.createElement(Trans, null, "Provide any pertinent information that Red Hat Support should be aware of that's not already captured in the issue statement or comments."))))
|
|
187
|
-
React.createElement(TextArea, { id: "cep-notes", "aria-required": false, isRequired: false, maxLength: 2000, name: "cep-notes", value: cepDetailsLocal.notes, onChange: (_event, value) => onCepNotesChange(value), autoResize: true, resizeOrientation: "vertical" }))))));
|
|
187
|
+
React.createElement(Trans, null, "Provide any pertinent information that Red Hat Support should be aware of that's not already captured in the issue statement or comments.")))))))));
|
|
188
188
|
}
|
|
@@ -98,7 +98,7 @@ const NoClusterIDReasonSelector = (props) => {
|
|
|
98
98
|
React.createElement("span", { className: `form-required ${isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-hidden": true },
|
|
99
99
|
' ',
|
|
100
100
|
"*")),
|
|
101
|
-
React.createElement(Select, { variant: SelectVariant.typeahead, typeAheadAriaLabel: t('Select an option or briefly describe your reason'), onToggle: (_event, isOpen) => onToggle(isOpen), onSelect: onSelect, selections: getSelectedItem(), isOpen: isOpen, placeholderText: t('Select an option or briefly describe your reason'), noValidate: props.isInValid, "aria-labelledby": titleId, "aria-invalid": props.isInValid, "aria-describedby": "validate-reason-helper", validated: validated, className:
|
|
101
|
+
React.createElement(Select, { variant: SelectVariant.typeahead, typeAheadAriaLabel: t('Select an option or briefly describe your reason'), onToggle: (_event, isOpen) => onToggle(isOpen), onSelect: onSelect, selections: getSelectedItem(), isOpen: isOpen, placeholderText: t('Select an option or briefly describe your reason'), noValidate: props.isInValid, "aria-labelledby": titleId, "aria-invalid": props.isInValid, "aria-describedby": "validate-reason-helper", validated: validated, className: `${props.isInValid ? ' form-invalid' : ''}`, isDisabled: caseNoClusterIdReasons.isFetching || props.isDisabled, required: true, onFilter: () => null, ref: selectRef, onTypeaheadInputChanged: onTypeaheadInputChanged, "data-tracking-id": "no-openshift-cluster-id-reason" }, (caseNoClusterIdReasonsList || []).map((option, index) => (React.createElement(SelectOption, { key: index, value: createState(option, t(option)) })))),
|
|
102
102
|
React.createElement(LoadingIndicator, { show: caseNoClusterIdReasons.isFetching, size: "xs" }),
|
|
103
103
|
React.createElement("p", { id: "validate-reason-helper", className: `form-instructions ${props.isInValid ? 'form-invalid' : ''}` },
|
|
104
104
|
React.createElement(React.Fragment, null,
|
|
@@ -32,10 +32,10 @@ export const NewProductDropdownSelector = (props) => {
|
|
|
32
32
|
const productOptions = props.products.map((p, id) => createOption(p, id, 'product'));
|
|
33
33
|
const allProductsTroubleshootOptions = allProducts.data.productsResult.map((p, id) => createOption(p, id, 'product'));
|
|
34
34
|
return [
|
|
35
|
-
React.createElement(SelectGroup, { label: t('Top products'), key: "topProducts", value: '' }),
|
|
35
|
+
React.createElement(SelectGroup, { label: t('Top products'), key: "topProducts", value: '', className: "product-selector-group" }),
|
|
36
36
|
...topProductOptions,
|
|
37
37
|
React.createElement(Divider, { key: "all-product-divider" }),
|
|
38
|
-
React.createElement(SelectGroup, { label: t('All products'), key: "AllProducts", value: '' }),
|
|
38
|
+
React.createElement(SelectGroup, { label: t('All products'), key: "AllProducts", value: '', className: "product-selector-group" }),
|
|
39
39
|
...(props.isCaseCreate ? productOptions : allProductsTroubleshootOptions),
|
|
40
40
|
];
|
|
41
41
|
};
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
* We need to wrap Critical solution toast notification and Cluster recommendation toast notification so they don't get overlapped.
|
|
3
3
|
*/
|
|
4
4
|
import { FC } from 'react';
|
|
5
|
+
import { RouteComponentProps } from 'react-router-dom';
|
|
6
|
+
import { IRouteUrlParams } from '../../reducers/RouteConstNTypes';
|
|
5
7
|
interface IProps {
|
|
6
8
|
submitCaseAndNavigate: (isReSubmitting: boolean) => void;
|
|
9
|
+
routeProps: RouteComponentProps<IRouteUrlParams>;
|
|
7
10
|
}
|
|
8
11
|
declare const AlertToastWrapper: FC<IProps>;
|
|
9
12
|
export default AlertToastWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertToastWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/AlertToastWrapper.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAc,EAAE,EAAE,EAAmC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AlertToastWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/AlertToastWrapper.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAc,EAAE,EAAE,EAAmC,MAAM,OAAO,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAKvD,OAAO,EAAiC,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAMjG,UAAU,MAAM;IACZ,qBAAqB,EAAE,CAAC,cAAc,EAAE,OAAO,KAAK,IAAI,CAAC;IACzD,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,QAAA,MAAM,iBAAiB,EAAE,EAAE,CAAC,MAAM,CAuCjC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -13,7 +13,7 @@ import { AttachmentStateContext } from '../shared/fileUpload';
|
|
|
13
13
|
import { ResubmitToast } from '../SubmitCase/ResubmitToast';
|
|
14
14
|
import ClusterRecommendationToast from './ClusterRecommendationToast';
|
|
15
15
|
import CriticalSolutionsToast from './CriticalSolutionsToast';
|
|
16
|
-
const AlertToastWrapper = ({ submitCaseAndNavigate }) => {
|
|
16
|
+
const AlertToastWrapper = ({ submitCaseAndNavigate, routeProps }) => {
|
|
17
17
|
const { routeState: { activeSection }, } = useContext(RouteContext);
|
|
18
18
|
const [isCriticalSolutionsVisible, setIsCriticalSolutionsVisible] = useState(true);
|
|
19
19
|
const { caseType } = useCaseSelector((state) => ({
|
|
@@ -33,6 +33,6 @@ const AlertToastWrapper = ({ submitCaseAndNavigate }) => {
|
|
|
33
33
|
return (React.createElement(AlertGroup, { isToast: true },
|
|
34
34
|
isCriticalSolutionsVisible && isNotAnIdea && React.createElement(CriticalSolutionsToast, { userClosed: userClosed }),
|
|
35
35
|
!hideClusterIdReportModal && isNotAnIdea && React.createElement(ClusterRecommendationToast, null),
|
|
36
|
-
React.createElement(ResubmitToast, { submitCaseAndNavigate: submitCaseAndNavigate })));
|
|
36
|
+
React.createElement(ResubmitToast, { submitCaseAndNavigate: submitCaseAndNavigate, routeProps: routeProps })));
|
|
37
37
|
};
|
|
38
38
|
export default AlertToastWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RulesModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/RulesModal.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAI5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAG7D,UAAU,MAAM;IACZ,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"RulesModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/RulesModal.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAI5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAG7D,UAAU,MAAM;IACZ,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,eA+M/C"}
|
|
@@ -101,6 +101,7 @@ export function InsightResultModal(props) {
|
|
|
101
101
|
'aria-label': t('File recommendations'),
|
|
102
102
|
'aria-labelledby': 'expandable-card-title toggle-button1',
|
|
103
103
|
'aria-expanded': isExpanded,
|
|
104
|
+
className: 'popular-solutions-toggle-button',
|
|
104
105
|
}, className: "popular-solutions" },
|
|
105
106
|
React.createElement(CardTitle, { id: "expandable-card-title", className: "card-title" },
|
|
106
107
|
React.createElement(Trans, null, "File recommendations"))),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionRestore.d.ts","sourceRoot":"","sources":["../../../../src/components/SessionRestore/SessionRestore.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAQvD,OAAO,EAGH,eAAe,EAElB,MAAM,iCAAiC,CAAC;AAgBzC,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SessionRestore.d.ts","sourceRoot":"","sources":["../../../../src/components/SessionRestore/SessionRestore.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAQvD,OAAO,EAGH,eAAe,EAElB,MAAM,iCAAiC,CAAC;AAgBzC,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,eA8T3C"}
|
|
@@ -132,8 +132,10 @@ export function SessionRestore(props) {
|
|
|
132
132
|
: userAgent;
|
|
133
133
|
let session = { userAgent, originatingSystem, caseCreationError: caseCreation500ErrorStatus };
|
|
134
134
|
// PCM-12337 - Moved the session patch call to submit case function in CaseReducer.ts
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
const newSessionDetails = getSessionDetailsFromCase(caseDetails, selectedNotificationContacts);
|
|
136
|
+
if (isEqual(newSessionDetails, relevantSession.sessionDetails))
|
|
137
|
+
return;
|
|
138
|
+
updateSession(sessionRestoreDispatch, sessionRestore.activeSessionId, newSessionDetails, session);
|
|
137
139
|
}, [
|
|
138
140
|
caseDetails,
|
|
139
141
|
currentUrlSeSessionId,
|
|
@@ -256,7 +258,7 @@ export function SessionRestore(props) {
|
|
|
256
258
|
}
|
|
257
259
|
}
|
|
258
260
|
previousSessions = orderBy(previousSessions, (s) => s.session.modifiedDate, 'desc');
|
|
259
|
-
if (
|
|
261
|
+
if (caseDetails.product || caseDetails.summary) {
|
|
260
262
|
previousSessions = previousSessions.filter((s) => {
|
|
261
263
|
var _a, _b, _c, _d, _e, _f;
|
|
262
264
|
return s.session.isActive &&
|
|
@@ -6,12 +6,12 @@ import React, { useState } from 'react';
|
|
|
6
6
|
import { Trans } from 'react-i18next';
|
|
7
7
|
import { SessionItem } from './SessionItem';
|
|
8
8
|
export function SessionRestoreCard(props) {
|
|
9
|
-
const [
|
|
9
|
+
const [dismissed, setDismissed] = useState(false);
|
|
10
10
|
const onCardDismiss = () => {
|
|
11
|
-
|
|
11
|
+
setDismissed(true);
|
|
12
12
|
props.onCardDismiss && props.onCardDismiss();
|
|
13
13
|
};
|
|
14
|
-
if (
|
|
14
|
+
if (dismissed || isEmpty(props.previousSessions))
|
|
15
15
|
return React.createElement(React.Fragment, null);
|
|
16
16
|
return (React.createElement("div", { className: "pf-v5-c-alert pf-m-inline", role: "alert" },
|
|
17
17
|
React.createElement("div", { className: "pf-v5-c-alert__icon" },
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
+
import { RouteComponentProps } from 'react-router-dom';
|
|
3
|
+
import { IRouteUrlParams } from '../../reducers/RouteConstNTypes';
|
|
2
4
|
interface IProps {
|
|
3
5
|
submitCaseAndNavigate: (isReSubmitting: boolean) => void;
|
|
6
|
+
routeProps: RouteComponentProps<IRouteUrlParams>;
|
|
4
7
|
}
|
|
5
8
|
export declare const ResubmitToast: FC<IProps>;
|
|
6
9
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResubmitToast.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/ResubmitToast.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ResubmitToast.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/ResubmitToast.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAGlE,UAAU,MAAM;IACZ,qBAAqB,EAAE,CAAC,cAAc,EAAE,OAAO,KAAK,IAAI,CAAC;IACzD,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,MAAM,CAwCpC,CAAC"}
|
|
@@ -4,7 +4,8 @@ import React from 'react';
|
|
|
4
4
|
import { Trans, useTranslation } from 'react-i18next';
|
|
5
5
|
import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
|
|
6
6
|
import { updateCaseCreationErrorStatus } from '../../reducers/CaseReducer';
|
|
7
|
-
|
|
7
|
+
import RouteUtils from '../../utils/routeUtils';
|
|
8
|
+
export const ResubmitToast = ({ submitCaseAndNavigate, routeProps }) => {
|
|
8
9
|
const { t } = useTranslation();
|
|
9
10
|
const { caseCreation500ErrorStatus, caseCreationError } = useCaseSelector((state) => ({
|
|
10
11
|
caseCreation500ErrorStatus: state.caseCreation500ErrorStatus,
|
|
@@ -17,6 +18,7 @@ export const ResubmitToast = ({ submitCaseAndNavigate }) => {
|
|
|
17
18
|
};
|
|
18
19
|
const onReturnToCase = () => {
|
|
19
20
|
updateCaseCreationErrorStatus(caseDispatch, false);
|
|
21
|
+
RouteUtils.navigateToSection(routeProps, '/', false);
|
|
20
22
|
};
|
|
21
23
|
return caseCreationError && caseCreation500ErrorStatus ? (React.createElement(Alert, { "data-tracking-id": "resubmit-case-toast", variant: AlertVariant.danger, title: t('Case was not submitted due to an internal error'), actionClose: React.createElement(AlertActionCloseButton, { onClose: onReturnToCase }), actionLinks: React.createElement(React.Fragment, null,
|
|
22
24
|
React.createElement(AlertActionLink, { onClick: onResubmit }, t('Resubmit')),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AAkCA,MAAM,CAAC,OAAO,UAAU,UAAU,
|
|
1
|
+
{"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AAkCA,MAAM,CAAC,OAAO,UAAU,UAAU,gBAyTjC"}
|
|
@@ -93,10 +93,10 @@ export default function SubmitCase() {
|
|
|
93
93
|
React.createElement("p", { className: "kicker kicker-sm pf-v5-u-mb-sm" }, !isEmpty(RouteUtils.seBasePath) &&
|
|
94
94
|
!isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles) ? (React.createElement(React.Fragment, null,
|
|
95
95
|
React.createElement("div", { className: "submit-page-title pf-v5-u-mb-lg" },
|
|
96
|
-
React.createElement(Icon, { className: "submit-case-check-icon", size: "lg" },
|
|
96
|
+
React.createElement(Icon, { className: "submit-case-check-icon pf-v5-u-mt-sm", size: "lg" },
|
|
97
97
|
React.createElement(CheckCircleIcon, null)),
|
|
98
98
|
' ',
|
|
99
|
-
React.createElement(Text, { className: "pf-v5-u-
|
|
99
|
+
React.createElement(Text, { className: "pf-v5-u-mb-0", component: TextVariants.h1 },
|
|
100
100
|
React.createElement(Trans, null, "We've added your case to our queue"))),
|
|
101
101
|
React.createElement("div", { className: "pf-v5-u-mt-sm" },
|
|
102
102
|
React.createElement(Trans, null, "Case number:"),
|
|
@@ -135,7 +135,7 @@ export default function SubmitCase() {
|
|
|
135
135
|
React.createElement(Button, { component: "a", href: `${getRedhatDotComHost(Env.getEnvName())}/wapps/ugc/protected/${'personalInfo.html'}`, target: "_blank", variant: "secondary", "data-tracking-id": "get-support-update-info", className: "update-info-button" }, "Update info")),
|
|
136
136
|
React.createElement(ActionListItem, null, isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles) ? (React.createElement(React.Fragment, null,
|
|
137
137
|
React.createElement(Tooltip, { content: t('File upload in progress.'), position: "bottom" },
|
|
138
|
-
React.createElement(Button, { className: "pf-v5-u-ml-md", component: "a", href: getCaseURL(), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case'), isAriaDisabled: isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles) }, "View case")))) : (React.createElement(Button, {
|
|
138
|
+
React.createElement(Button, { className: "pf-v5-u-ml-md", component: "a", href: getCaseURL(), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case'), isAriaDisabled: isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles) }, "View case")))) : (React.createElement(Button, { component: (props) => (React.createElement(Link, Object.assign({}, props, { to: `/case/${caseNoOfCreatedCase}` }))), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case') }, "View case")))))),
|
|
139
139
|
!isEmpty(attachmentState.caseFiles.selectedLocalFiles) && (React.createElement(FileUploader, { idToUploadTo: caseNoOfCreatedCase, isSessionId: false, isSecureSupport: loggedInUsersAccount.data.secureSupport })),
|
|
140
140
|
React.createElement("div", null,
|
|
141
141
|
(!isEmpty(topContent.data) || !rulesState.EARules.rules || !clusterRecommendations) &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardAside.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardAside.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAInD,OAAO,
|
|
1
|
+
{"version":3,"file":"WizardAside.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardAside.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAInD,OAAO,EAGH,eAAe,EAIlB,MAAM,iCAAiC,CAAC;AAQzC,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,2BAA2B,EAAE,OAAO,CAAC;CACxC;AAGD,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,eA0CjC;kBA1CQ,WAAW;;;AA4CpB,eAAe,WAAW,CAAC"}
|
|
@@ -4,7 +4,7 @@ import isEqual from 'lodash/isEqual';
|
|
|
4
4
|
import React, { useContext } from 'react';
|
|
5
5
|
import { useCaseSelector } from '../../context/CaseContext';
|
|
6
6
|
import { RouteContext } from '../../context/RouteContext';
|
|
7
|
-
import { hideFileUploadSidebarWidgetSections, showSideBarClusterIdRuleWidgetSections, showSideBarEARuleWidgetSections, showSideBarFileRecommendationSections, } from '../../reducers/RouteConstNTypes';
|
|
7
|
+
import { AppRouteSections, hideFileUploadSidebarWidgetSections, showSideBarClusterIdRuleWidgetSections, showSideBarEARuleWidgetSections, showSideBarFileRecommendationSections, } from '../../reducers/RouteConstNTypes';
|
|
8
8
|
import { FileDiag } from '../CaseInformation/FileDiag';
|
|
9
9
|
import { AsideResults } from '../Recommendations/AsideResults';
|
|
10
10
|
import ClusterRecommendations from '../Recommendations/ClusterRecommendations';
|
|
@@ -35,8 +35,8 @@ function WizardAside(props) {
|
|
|
35
35
|
!(isIdea && activeSection === 'submit-case') && React.createElement(AsideResults, null),
|
|
36
36
|
canShowFileRecommendationSectionsWidget && React.createElement(InsightsResults, { isDisplayOnMain: true }),
|
|
37
37
|
React.createElement(ClusterRecommendations, { showClusterRecommendationsList: canShowClusterIdReportWidget }),
|
|
38
|
-
canUseSessionManagement && !isCreatingCase && React.createElement(SessionRestore, { routeProps: props.routeProps }),
|
|
39
|
-
canShowFileUploadWidget() && React.createElement(FileDiag, { className: "pf-
|
|
38
|
+
canUseSessionManagement && !isCreatingCase && activeSection !== AppRouteSections.SUBMIT_CASE && (React.createElement(SessionRestore, { routeProps: props.routeProps })),
|
|
39
|
+
canShowFileUploadWidget() && React.createElement(FileDiag, { className: "pf-u-mt-md" }))));
|
|
40
40
|
}
|
|
41
41
|
WizardAside.defaultProps = defaultProps;
|
|
42
42
|
export default WizardAside;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardLayout.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAuC,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAavG,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"WizardLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardLayout.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAuC,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAavG,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,eAgJzC"}
|
|
@@ -85,7 +85,7 @@ export function WizardLayout(props) {
|
|
|
85
85
|
"Try submitting again after a minute. Please ",
|
|
86
86
|
React.createElement(SupportFeedbackForm, { isInline: true }),
|
|
87
87
|
" if you continue to see this message.")));
|
|
88
|
-
submitCase(caseDispatch, sessionRestoreDispatch, caseState, sessionItem, isCaseCreate, errorMessageCaseSubmit500, loggedInUser.data.ssoUsername, loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data.secureSupport);
|
|
88
|
+
submitCase(caseDispatch, sessionRestoreDispatch, caseState, sessionItem, isCaseCreate, errorMessageCaseSubmit500, loggedInUser.data.ssoUsername, loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data.secureSupport, isReSubmitting || false);
|
|
89
89
|
// reset viewedModals on case submit
|
|
90
90
|
viewedConfirmationModalsList.current = [];
|
|
91
91
|
!isReSubmitting &&
|
|
@@ -116,5 +116,5 @@ export function WizardLayout(props) {
|
|
|
116
116
|
React.createElement(WizardMain, { routeProps: props.routeProps, submitCaseAndNavigate: submitCaseAndNavigate, confirmSupportModal: confirmSupportModal })),
|
|
117
117
|
React.createElement(GridItem, { span: 4, className: "grid-wizard-aside-content" },
|
|
118
118
|
React.createElement(WizardAside, { isAttachmentUploadModalOpen: confirmationModalType === PreCaseConfirmationModalsEnum.NO_ATTACHMENT_MODAL, routeProps: props.routeProps }))),
|
|
119
|
-
React.createElement(AlertToastWrapper, { submitCaseAndNavigate: submitCaseAndNavigate })));
|
|
119
|
+
React.createElement(AlertToastWrapper, { submitCaseAndNavigate: submitCaseAndNavigate, routeProps: props.routeProps })));
|
|
120
120
|
}
|
|
@@ -155,7 +155,9 @@ export declare enum CaseReducerConstants {
|
|
|
155
155
|
updateEmailList = "updateEmailList",
|
|
156
156
|
getVersionDetails = "getVersionDetails",
|
|
157
157
|
caseCreation500ErrorStatus = "caseCreation500ErrorStatus",
|
|
158
|
-
resetCaseNoOfCreatedCase = "resetCaseNoOfCreatedCase"
|
|
158
|
+
resetCaseNoOfCreatedCase = "resetCaseNoOfCreatedCase",
|
|
159
|
+
setIsPostingRemoteRequestCommentCompleted = "setIsPostingRemoteRequestCommentCompleted",
|
|
160
|
+
setIsPostingRemoteRequestCommentCompletedError = "setIsPostingRemoteRequestCommentCompletedError"
|
|
159
161
|
}
|
|
160
162
|
export declare const initialCaseState: ICaseState;
|
|
161
163
|
export interface ICaseState {
|
|
@@ -202,6 +204,8 @@ export interface ICaseState {
|
|
|
202
204
|
isCaseOwnerUpdating: boolean;
|
|
203
205
|
isFileRecommendationsTriggered?: boolean;
|
|
204
206
|
caseNoOfCreatedCase?: string;
|
|
207
|
+
isPostingRemoteRequestCommentCompleted?: boolean;
|
|
208
|
+
isPostingRemoteRequestCommentCompletedErrorMessage?: string | undefined;
|
|
205
209
|
}
|
|
206
210
|
export interface ICreateCasePayloadType extends ICaseState {
|
|
207
211
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseConstNTypes.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseConstNTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACjH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EA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BAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,sCAAsC,CAAC,EAAE,OAAO,CAAC;IACjD,kDAAkD,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3E;AAED,MAAM,WAAW,sBAAuB,SAAQ,UAAU;CAAG;AAC7D,oBAAY,eAAe,GAAG,OAAO,CAAC,oBAAoB,EAAE,sBAAsB,CAAC,CAAC;AACpF,oBAAY,uBAAuB,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;AAEhE,eAAO,MAAM,qCAAqC,+CAA+C,CAAC;AAClG,eAAO,MAAM,yCAAyC,+CAA+C,CAAC"}
|
|
@@ -106,6 +106,8 @@ export var CaseReducerConstants;
|
|
|
106
106
|
CaseReducerConstants["getVersionDetails"] = "getVersionDetails";
|
|
107
107
|
CaseReducerConstants["caseCreation500ErrorStatus"] = "caseCreation500ErrorStatus";
|
|
108
108
|
CaseReducerConstants["resetCaseNoOfCreatedCase"] = "resetCaseNoOfCreatedCase";
|
|
109
|
+
CaseReducerConstants["setIsPostingRemoteRequestCommentCompleted"] = "setIsPostingRemoteRequestCommentCompleted";
|
|
110
|
+
CaseReducerConstants["setIsPostingRemoteRequestCommentCompletedError"] = "setIsPostingRemoteRequestCommentCompletedError";
|
|
109
111
|
})(CaseReducerConstants || (CaseReducerConstants = {}));
|
|
110
112
|
export const initialCaseState = {
|
|
111
113
|
isCreatingCase: false,
|
|
@@ -196,6 +198,8 @@ export const initialCaseState = {
|
|
|
196
198
|
isCaseOwnerUpdating: false,
|
|
197
199
|
isFileRecommendationsTriggered: false,
|
|
198
200
|
caseNoOfCreatedCase: '',
|
|
201
|
+
isPostingRemoteRequestCommentCompleted: false,
|
|
202
|
+
isPostingRemoteRequestCommentCompletedErrorMessage: '',
|
|
199
203
|
};
|
|
200
204
|
export const ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967811';
|
|
201
205
|
export const NON_ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967831';
|
|
@@ -12,7 +12,7 @@ export declare const caseReducer: (pState: ICaseState, action: any) => ICaseStat
|
|
|
12
12
|
export declare const setCaseDetails: (dispatch: CaseReducerDispatchType, caseState: Partial<ICasePayload>) => void;
|
|
13
13
|
export declare const setCaseState: (dispatch: CaseReducerDispatchType, caseState: Partial<ICaseState>) => void;
|
|
14
14
|
export declare const setNotifiedUser: (dispatch: CaseReducerDispatchType, selectedNotificationContacts: IContact[]) => void;
|
|
15
|
-
export declare const submitCase: (dispatch: CaseReducerDispatchType, sessionRestoreDispatch: SessionReducerDispatchType, caseDetails: ICaseState, sessionItem: ISessionItem, isCaseCreate: boolean, errorMessage500: string | JSX.Element, loggedInUserSsoUsername: string, isSecureSupport
|
|
15
|
+
export declare const submitCase: (dispatch: CaseReducerDispatchType, sessionRestoreDispatch: SessionReducerDispatchType, caseDetails: ICaseState, sessionItem: ISessionItem, isCaseCreate: boolean, errorMessage500: string | JSX.Element, loggedInUserSsoUsername: string, isSecureSupport: boolean, isResubmit: boolean) => Promise<void>;
|
|
16
16
|
/**
|
|
17
17
|
* Update case details if there is HTTP 500 error while submitting case
|
|
18
18
|
* @param dispatch CaseReducerDispatchType
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseReducer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAEtH,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAA+B,MAAM,qCAAqC,CAAC;AAC9G,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,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AAED,wBAAsB,kBAAkB,CAAC,QAAQ,EAAE,uBAAuB,EAAE,OAAO,EAAE,MAAM,iBAiB1F;AAED,eAAO,MAAM,kBAAkB,aAAc,uBAAuB,QAAQ,OAAO,SAKlF,CAAC"}
|
|
@@ -135,6 +135,12 @@ export const caseReducer = (pState, action) => {
|
|
|
135
135
|
case CaseReducerConstants.caseCreation500ErrorStatus: {
|
|
136
136
|
return Object.assign(Object.assign({}, pState), { caseCreation500ErrorStatus: action.payload.caseCreation500ErrorStatus });
|
|
137
137
|
}
|
|
138
|
+
case CaseReducerConstants.setIsPostingRemoteRequestCommentCompleted: {
|
|
139
|
+
return Object.assign(Object.assign({}, pState), { isPostingRemoteRequestCommentCompleted: action.payload.isPostingRemoteRequestCommentCompleted });
|
|
140
|
+
}
|
|
141
|
+
case CaseReducerConstants.setIsPostingRemoteRequestCommentCompletedError: {
|
|
142
|
+
return Object.assign(Object.assign({}, pState), { isPostingRemoteRequestCommentCompleted: false, isPostingRemoteRequestCommentCompletedErrorMessage: action.payload.isPostingRemoteRequestCommentCompletedErrorMessage });
|
|
143
|
+
}
|
|
138
144
|
default: {
|
|
139
145
|
return pState;
|
|
140
146
|
}
|
|
@@ -153,7 +159,7 @@ export const setNotifiedUser = (dispatch, selectedNotificationContacts) => {
|
|
|
153
159
|
payload: { selectedNotificationContacts },
|
|
154
160
|
});
|
|
155
161
|
};
|
|
156
|
-
export const submitCase = (dispatch, sessionRestoreDispatch, caseDetails, sessionItem, isCaseCreate, errorMessage500, loggedInUserSsoUsername, isSecureSupport = false) => __awaiter(void 0, void 0, void 0, function* () {
|
|
162
|
+
export const submitCase = (dispatch, sessionRestoreDispatch, caseDetails, sessionItem, isCaseCreate, errorMessage500, loggedInUserSsoUsername, isSecureSupport = false, isResubmit) => __awaiter(void 0, void 0, void 0, function* () {
|
|
157
163
|
var _a;
|
|
158
164
|
dispatch({ type: CaseReducerConstants.isCreatingCase });
|
|
159
165
|
try {
|
|
@@ -180,6 +186,8 @@ export const submitCase = (dispatch, sessionRestoreDispatch, caseDetails, sessio
|
|
|
180
186
|
type: CaseReducerConstants.setCaseCreationError,
|
|
181
187
|
payload: { caseCreationErrorMessage: errorMessage },
|
|
182
188
|
});
|
|
189
|
+
!isResubmit &&
|
|
190
|
+
(yield updateSession(sessionRestoreDispatch, sessionItem.session.id, sessionItem.sessionDetails, Object.assign(Object.assign({}, sessionItem.session), { caseCreationError: true })));
|
|
183
191
|
}
|
|
184
192
|
});
|
|
185
193
|
/**
|
|
@@ -212,20 +220,26 @@ export const updateCaseCreationErrorStatus = (dispatch, errorStatus) => {
|
|
|
212
220
|
});
|
|
213
221
|
};
|
|
214
222
|
export const postRemoteSessionRequest = (dispatch, caseNumber) => __awaiter(void 0, void 0, void 0, function* () {
|
|
215
|
-
dispatch({ type: CaseReducerConstants.updateCaseDetails, payload: { isCaseUpdating: true } });
|
|
216
223
|
try {
|
|
224
|
+
dispatch({
|
|
225
|
+
type: CaseReducerConstants.setIsPostingRemoteRequestCommentCompleted,
|
|
226
|
+
payload: { isPostingRemoteRequestCommentCompleted: false },
|
|
227
|
+
});
|
|
217
228
|
yield publicApi.kase.postComment({
|
|
218
229
|
caseNumber,
|
|
219
230
|
commentBody: 'Submitted a remote session request.',
|
|
220
231
|
isPublic: true,
|
|
221
232
|
contentType: 'markdown',
|
|
222
233
|
});
|
|
223
|
-
dispatch({
|
|
234
|
+
dispatch({
|
|
235
|
+
type: CaseReducerConstants.setIsPostingRemoteRequestCommentCompleted,
|
|
236
|
+
payload: { isPostingRemoteRequestCommentCompleted: true },
|
|
237
|
+
});
|
|
224
238
|
}
|
|
225
239
|
catch (error) {
|
|
226
240
|
dispatch({
|
|
227
|
-
type: CaseReducerConstants.
|
|
228
|
-
payload: {
|
|
241
|
+
type: CaseReducerConstants.setIsPostingRemoteRequestCommentCompletedError,
|
|
242
|
+
payload: { isPostingRemoteRequestCommentCompletedErrorMessage: error.message },
|
|
229
243
|
});
|
|
230
244
|
}
|
|
231
245
|
});
|
|
@@ -56,7 +56,7 @@ export declare type SessionRestoreDispatchType = (value: IActionType) => void;
|
|
|
56
56
|
export declare const sessionRestoreReducer: (state: ISessionRestoreState, action: IActionType) => ISessionRestoreState;
|
|
57
57
|
export declare const loadPreviousSessions: (dispatch: SessionReducerDispatchType, caseDispatch: CaseReducerDispatchType) => Promise<void>;
|
|
58
58
|
export declare const createSession: (dispatch: SessionReducerDispatchType, sessionDetails: ISessionDetails, session: ISession) => Promise<string>;
|
|
59
|
-
export declare const updateSession: (dispatch: SessionReducerDispatchType, sessionId: string, sessionDetails
|
|
59
|
+
export declare const updateSession: (dispatch: SessionReducerDispatchType, sessionId: string, sessionDetails: ISessionDetails, session?: ISession) => Promise<void>;
|
|
60
60
|
export declare const updateActiveSessionId: (dispatch: SessionReducerDispatchType, activeSessionId: string) => void;
|
|
61
61
|
export declare function getRelevantSessionFromSessions(dispatch: SessionReducerDispatchType, currentRelevantSessionId: string, previousSessions: IPrevSessions, caseDetails: Partial<ICasePayload>): string;
|
|
62
62
|
export declare function markAllSessionsUnresolved(dispatch: SessionReducerDispatchType, sessionData: IPrevSessions, userAgent: string): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionRestoreReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/SessionRestoreReducer.ts"],"names":[],"mappings":"AACA,OAAO,EACH,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,IAAI,sBAAsB,EAC/C,yBAAyB,IAAI,0BAA0B,EAC1D,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AACzG,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC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|
@@ -188,7 +188,13 @@ export const updateSession = (dispatch, sessionId, sessionDetails, session) => _
|
|
|
188
188
|
payload: { sessionUpdationStatus: getApiUpdationStatus(true) },
|
|
189
189
|
});
|
|
190
190
|
const updatedSession = yield patchSession(sessionId, sessionDetails, session);
|
|
191
|
-
|
|
191
|
+
// to set sessionDetails fn param used because the session api response removes the
|
|
192
|
+
// fields that have undefined value and it causes problem when we compare
|
|
193
|
+
// sessionDetails and caseDetails
|
|
194
|
+
dispatch({
|
|
195
|
+
type: SessionRestoreConstants.patchSession,
|
|
196
|
+
payload: { sessionItem: { session: updatedSession.session, sessionDetails } },
|
|
197
|
+
});
|
|
192
198
|
}
|
|
193
199
|
catch (error) {
|
|
194
200
|
dispatch({
|
|
@@ -289,6 +289,12 @@
|
|
|
289
289
|
color: white !important;
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
+
|
|
293
|
+
.popular-solutions-toggle-button {
|
|
294
|
+
padding-right: 5px;
|
|
295
|
+
margin-top: 2px;
|
|
296
|
+
}
|
|
297
|
+
|
|
292
298
|
.file-diag {
|
|
293
299
|
border: 1px solid #ededed;
|
|
294
300
|
}
|
|
@@ -534,3 +540,9 @@ span.pf-v5-c-input-group__text {
|
|
|
534
540
|
.pf-v5-c-list {
|
|
535
541
|
padding: 0;
|
|
536
542
|
}
|
|
543
|
+
|
|
544
|
+
.product-selector-group {
|
|
545
|
+
.pf-v5-c-select__menu-group-title {
|
|
546
|
+
font-weight: 700;
|
|
547
|
+
}
|
|
548
|
+
}
|
package/lib/esm/scss/index.scss
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.44",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
"@patternfly/react-core": "5.1.1",
|
|
66
66
|
"@progress/kendo-drawing": "^1.6.0",
|
|
67
67
|
"@progress/kendo-react-pdf": "^3.12.0",
|
|
68
|
-
"@rh-support/components": "2.1.
|
|
69
|
-
"@rh-support/react-context": "2.1.
|
|
68
|
+
"@rh-support/components": "2.1.26",
|
|
69
|
+
"@rh-support/react-context": "2.1.28",
|
|
70
70
|
"@rh-support/types": "2.0.2",
|
|
71
|
-
"@rh-support/user-permissions": "2.1.
|
|
72
|
-
"@rh-support/utils": "2.1.
|
|
71
|
+
"@rh-support/user-permissions": "2.1.19",
|
|
72
|
+
"@rh-support/utils": "2.1.12",
|
|
73
73
|
"@types/react-redux": "^7.1.12",
|
|
74
74
|
"@types/redux": "^3.6.0",
|
|
75
75
|
"dompurify": "^2.4.1",
|
|
@@ -131,5 +131,5 @@
|
|
|
131
131
|
"defaults and supports es6-module",
|
|
132
132
|
"maintained node versions"
|
|
133
133
|
],
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "672a8f5024aded7ed6ce4edb5c0991bc3f5570bb"
|
|
135
135
|
}
|