@rh-support/troubleshoot 1.0.47-beta.41 → 1.0.47-beta.43
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/CaseOverview/index.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/index.js +3 -0
- package/lib/esm/components/CaseInformation/ContactPhoneNumberAlert.js +1 -1
- package/lib/esm/components/CaseInformation/Severity.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Severity.js +4 -1
- package/lib/esm/components/ImproveCase/KtQuestions.js +3 -3
- package/lib/esm/components/Issue/Issue.js +4 -4
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.js +1 -1
- package/lib/esm/components/Recommendations/InsightsResults.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/InsightsResults.js +1 -2
- package/lib/esm/components/Recommendations/Recommendations.js +1 -1
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +1 -1
- package/lib/esm/components/shared/fileUpload/FileLister.js +46 -43
- package/lib/esm/components/wizardLayout/WizardAside.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardAside.js +7 -4
- package/lib/esm/components/wizardLayout/index.d.ts +0 -1
- package/lib/esm/components/wizardLayout/index.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/index.js +0 -1
- package/lib/esm/css/results.css +22 -27
- package/lib/esm/reducers/CaseHelpers.d.ts.map +1 -1
- package/lib/esm/reducers/CaseHelpers.js +1 -3
- package/lib/esm/reducers/RouteConstNTypes.d.ts +1 -0
- package/lib/esm/reducers/RouteConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/RouteConstNTypes.js +2 -1
- package/lib/esm/reducers/RouteReducer.js +2 -2
- package/lib/esm/scss/_main.scss +3 -3
- package/package.json +4 -4
- package/lib/esm/css/feedbackForm.css +0 -92
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/index.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAA8D,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/index.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAA8D,MAAM,OAAO,CAAC;AA6BnF,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,MAAM,eAyejD"}
|
|
@@ -27,6 +27,7 @@ import { ReopenCaseModal } from '../ConfirmationModals/ReopenCaseModal';
|
|
|
27
27
|
import { PDFContext } from '../PDFContainer';
|
|
28
28
|
import { CaseInformation } from '../Tabs/CaseDetails/CaseInformation';
|
|
29
29
|
import { CaseContactPhoneNumberAlert } from '../Tabs/CaseDetails/CasePhoneNumberConfirmAlert';
|
|
30
|
+
import Summary from '../Tabs/CaseDetails/Summary';
|
|
30
31
|
import CaseOwnerInfo from './CaseOwnerInfo';
|
|
31
32
|
import CaseStatus from './CaseStatus';
|
|
32
33
|
import CaseType from './CaseType';
|
|
@@ -244,6 +245,8 @@ export default function CaseOverview(props) {
|
|
|
244
245
|
React.createElement(Trans, null, isCaseInOpenState ? 'Close case' : 'Reopen case')))),
|
|
245
246
|
React.createElement("div", { className: `case-details-header-secondary push-bottom-narrow ${isExportingPDF && !viewAsCustomer ? 'hide-in-pdf' : ''}` },
|
|
246
247
|
React.createElement("span", { className: "case-support-level" }, computeSupportLink())),
|
|
248
|
+
React.createElement("div", { className: "case-details-summary push-bottom-narrow" },
|
|
249
|
+
React.createElement(Summary, { inlineEditable: true, hideLabel: true })),
|
|
247
250
|
canSeeManagedByPartnerFlag && (React.createElement(Label, { className: "push-right-narrow", color: "green" },
|
|
248
251
|
React.createElement(Trans, null, "Managed by a partner"))),
|
|
249
252
|
canSeeInternalFlags && (React.createElement(React.Fragment, null,
|
|
@@ -15,7 +15,7 @@ export function ContactPhoneNumberAlert() {
|
|
|
15
15
|
setCaseDetails(caseDispatch, caseDetails);
|
|
16
16
|
};
|
|
17
17
|
useEffect(() => {
|
|
18
|
-
if (caseDetails.severity === "1 (Urgent)" /* SEV_1 */) {
|
|
18
|
+
if (caseDetails.severity === "1 (Urgent)" /* SEV_1 */ && !caseDetails.suppliedPhoneNumberVerified) {
|
|
19
19
|
onCaseDetailsChange({ suppliedPhoneNumberVerified: undefined });
|
|
20
20
|
}
|
|
21
21
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Severity.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/Severity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAKvE,OAAO,EAAE,gBAAgB,EAAW,MAAM,0BAA0B,CAAC;AAwBrE,UAAU,MAAO,SAAQ,gBAAgB;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAChE,oBAAoB,EAAE,OAAO,CAAC;CACjC;AASD,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;CACxD;AAED,iBAAS,QAAQ,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Severity.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/Severity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAKvE,OAAO,EAAE,gBAAgB,EAAW,MAAM,0BAA0B,CAAC;AAwBrE,UAAU,MAAO,SAAQ,gBAAgB;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAChE,oBAAoB,EAAE,OAAO,CAAC;CACjC;AASD,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;CACxD;AAED,iBAAS,QAAQ,CAAC,KAAK,EAAE,MAAM,eAqR9B;kBArRQ,QAAQ;;;AAuRjB,eAAe,QAAQ,CAAC"}
|
|
@@ -42,7 +42,10 @@ function Severity(props) {
|
|
|
42
42
|
const caseDispatch = useCaseDispatch();
|
|
43
43
|
const isOnCaseDetailsPage = !isEmpty(caseNumber);
|
|
44
44
|
const updateState = (value) => {
|
|
45
|
-
const casePayload = {
|
|
45
|
+
const casePayload = {
|
|
46
|
+
severity: value,
|
|
47
|
+
suppliedPhoneNumberVerified: undefined, // Restore Initial State If Severity Changes
|
|
48
|
+
};
|
|
46
49
|
// .. change fts on sev change only while creating case or when we change to sev1
|
|
47
50
|
!isOnCaseDetailsPage && (casePayload.fts = showFtsOnCreateCasePage(entitlementSla, value));
|
|
48
51
|
isOnCaseDetailsPage && autoEnableFtsOnCaseViewEditPage(entitlementSla, value) && (casePayload.fts = true);
|
|
@@ -96,7 +96,7 @@ function KtQuestions(props) {
|
|
|
96
96
|
? ' form-invalid'
|
|
97
97
|
: ''}`, "aria-invalid": timeFramesAndUrgency && (timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length) > CASE_DETAILS_TIMEFRAMESANDURGENCY_LIMIT
|
|
98
98
|
? 'true'
|
|
99
|
-
: 'false', id: "ktQ4-timeFramesAndUrgency", value: timeFramesAndUrgency, isDisabled: isEmpty(timeFramesAndUrgency) && hasLargeCaseDescription && !isKTQ4TextAreaActive, onChange: onKtQ4Change, onFocus: onKTQ4FocusChange, onBlur: onKTQ4FocusChange, "aria-required": isKT4Required, "data-tracking-id": "
|
|
99
|
+
: 'false', id: "ktQ4-timeFramesAndUrgency", value: timeFramesAndUrgency, isDisabled: isEmpty(timeFramesAndUrgency) && hasLargeCaseDescription && !isKTQ4TextAreaActive, onChange: onKtQ4Change, onFocus: onKTQ4FocusChange, onBlur: onKTQ4FocusChange, "aria-required": isKT4Required, "data-tracking-id": "get-support-ktQ4-timeFramesAndUrgency", placeholder: t('User or financial impact, and whether there’s a legal, national, or medical urgency'), isRequired: isKT4Required }),
|
|
100
100
|
React.createElement("p", { className: "form-instructions", "data-tracking-id": "large-4k-warning-ktQ4-environment" }, `${isKTQ4TextAreaActive && ((_a = timeFramesAndUrgency) === null || _a === void 0 ? void 0 : _a.length) > CASE_DETAILS_TIMEFRAMESANDURGENCY_LIMIT
|
|
101
101
|
? `Description cannot be more than ${CASE_DETAILS_TIMEFRAMESANDURGENCY_LIMIT} characters`
|
|
102
102
|
: ''}`),
|
|
@@ -105,7 +105,7 @@ function KtQuestions(props) {
|
|
|
105
105
|
t(KtQuestionConstant.environment),
|
|
106
106
|
' ',
|
|
107
107
|
isKT2Required && (React.createElement("span", { className: "form-required", "aria-hidden": true }, "*"))), allowInlineEdit: props.inlineEditable, hideSaveCancel: props.hideSaveCancel, initialIsEditing: isEmpty(environment), usePreformattedTag: true, saveOnBlur: true, content: environment },
|
|
108
|
-
React.createElement(TextArea, { className: `form-control`, id: "ktQ2-environment", value: environment, isDisabled: isEmpty(environment) && hasLargeCaseDescription && !isKTQ2TextAreaActive, onChange: onKtQ2Change, onFocus: onKTQ2FocusChange, onBlur: onKTQ2FocusChange, "aria-required": isKT2Required, isRequired: isKT2Required, "data-tracking-id": "
|
|
108
|
+
React.createElement(TextArea, { className: `form-control`, id: "ktQ2-environment", value: environment, isDisabled: isEmpty(environment) && hasLargeCaseDescription && !isKTQ2TextAreaActive, onChange: onKtQ2Change, onFocus: onKTQ2FocusChange, onBlur: onKTQ2FocusChange, "aria-required": isKT2Required, isRequired: isKT2Required, "data-tracking-id": "get-support-ktQ2-environment", placeholder: t('User or financial impact, and whether there’s a legal, national, or medical urgency'), "aria-invalid": environment && (environment === null || environment === void 0 ? void 0 : environment.length) > CASE_DEATILS_ENVIRONMENT_LIMIT ? 'true' : 'false' }),
|
|
109
109
|
React.createElement("p", { className: "form-instructions", "data-tracking-id": "large-4k-warning-ktQ2-environment" }, `${isKTQ2TextAreaActive && ((_b = environment) === null || _b === void 0 ? void 0 : _b.length) > CASE_DEATILS_ENVIRONMENT_LIMIT
|
|
110
110
|
? `Description cannot be more than ${CASE_DEATILS_ENVIRONMENT_LIMIT} characters`
|
|
111
111
|
: ''}`),
|
|
@@ -114,7 +114,7 @@ function KtQuestions(props) {
|
|
|
114
114
|
t(KtQuestionConstant.periodicityOfIssue),
|
|
115
115
|
' ',
|
|
116
116
|
isKT3Required && (React.createElement("span", { className: "form-required", "aria-hidden": true }, "*"))), allowInlineEdit: props.inlineEditable, hideSaveCancel: props.hideSaveCancel, initialIsEditing: isEmpty(periodicityOfIssue), usePreformattedTag: true, saveOnBlur: true, content: periodicityOfIssue },
|
|
117
|
-
React.createElement(TextArea, { className: `form-control`, id: "ktQ3-periodicityOfIssue", value: periodicityOfIssue, isDisabled: isEmpty(periodicityOfIssue) && hasLargeCaseDescription && !isKTQ3TextAreaActive, onChange: onKtQ3Change, onFocus: onKTQ3FocusChange, onBlur: onKTQ3FocusChange, "aria-required": isKT3Required, isRequired: isKT3Required, "data-tracking-id": "
|
|
117
|
+
React.createElement(TextArea, { className: `form-control`, id: "ktQ3-periodicityOfIssue", value: periodicityOfIssue, isDisabled: isEmpty(periodicityOfIssue) && hasLargeCaseDescription && !isKTQ3TextAreaActive, onChange: onKtQ3Change, onFocus: onKTQ3FocusChange, onBlur: onKTQ3FocusChange, "aria-required": isKT3Required, isRequired: isKT3Required, "data-tracking-id": "get-support-ktQ3-periodicityOfIssue", "aria-invalid": periodicityOfIssue && (periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length) > CASE_DEATILS_PERIODICITYOFISSUE_LIMIT
|
|
118
118
|
? 'true'
|
|
119
119
|
: 'false', placeholder: t('User or financial impact, and whether there’s a legal, national, or medical urgency') }),
|
|
120
120
|
React.createElement("p", { className: "form-instructions", "data-tracking-id": "large-4k-warning-ktQ3-environment" }, `${isKTQ3TextAreaActive && ((_c = periodicityOfIssue) === null || _c === void 0 ? void 0 : _c.length) > CASE_DEATILS_PERIODICITYOFISSUE_LIMIT
|
|
@@ -11,7 +11,7 @@ import { getUpdatedDescription } from '../../reducers/CaseHelpers';
|
|
|
11
11
|
import { setCaseDetails } from '../../reducers/CaseReducer';
|
|
12
12
|
import OpenCaseIssue from '../CaseInformation/OpenCaseIssue';
|
|
13
13
|
export default function Issue() {
|
|
14
|
-
var _a;
|
|
14
|
+
var _a, _b, _c;
|
|
15
15
|
const { t } = useTranslation();
|
|
16
16
|
const { summary, issue, environment, periodicityOfIssue, timeFramesAndUrgency, v3ClusterName } = useCaseSelector((state) => ({
|
|
17
17
|
summary: state.caseDetails.summary,
|
|
@@ -43,10 +43,10 @@ export default function Issue() {
|
|
|
43
43
|
React.createElement(MoreOrLess, { maxHeight: 600, appStickyHeaderRef: navBarRef },
|
|
44
44
|
React.createElement(InlineEdit, { labelProps: { htmlFor: 'issue-section-ktQ1-issue' }, labelContent: React.createElement(React.Fragment, null,
|
|
45
45
|
React.createElement(Trans, null, "What are you experiencing? What are you expecting to happen?")), allowInlineEdit: false, hideSaveCancel: true, initialIsEditing: isEmpty(issue), usePreformattedTag: true, content: issue },
|
|
46
|
-
React.createElement(TextArea, { id: "issue-section-ktQ1-issue", name: "issue-section-ktQ1-issue", className: `form-control${hasLargeDescription ? ' form-invalid' : ''}`, "aria-invalid": (issue === null ||
|
|
47
|
-
React.createElement("p", { className: "form-instructions", "data-tracking-id": "large-20k-warning-ktQ1-environment" }, `${(issue === null ||
|
|
46
|
+
React.createElement(TextArea, { id: "issue-section-ktQ1-issue", name: "issue-section-ktQ1-issue", className: `form-control${hasLargeDescription ? ' form-invalid' : ''}`, "aria-invalid": ((_a = issue) === null || _a === void 0 ? void 0 : _a.length) > CASE_DEATILS_ISSUE_LIMIT ? 'true' : 'false', value: issue, onChange: onKTQ1IssueChange, "data-tracking-id": "get-support-describe-ktQ1-issue", "aria-describedby": "describeIssueDesc", placeholder: t('Elaborate more on your issue') }),
|
|
47
|
+
React.createElement("p", { className: "form-instructions", "data-tracking-id": "large-20k-warning-ktQ1-environment" }, `${((_b = issue) === null || _b === void 0 ? void 0 : _b.length) > CASE_DEATILS_ISSUE_LIMIT
|
|
48
48
|
? `Description cannot be more than ${CASE_DEATILS_ISSUE_LIMIT} characters`
|
|
49
49
|
: ''}`))),
|
|
50
|
-
((
|
|
50
|
+
((_c = getUpdatedDescription(issue, environment, periodicityOfIssue, timeFramesAndUrgency, v3ClusterName)) === null || _c === void 0 ? void 0 : _c.length) > DESCRIPTION_LENGTH_LIMIT && (React.createElement("div", { className: "pull-top" },
|
|
51
51
|
React.createElement("p", { className: "form-instructions form-invalid" }, maxLengtMessage))))));
|
|
52
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SupportTypeSelectorPage.d.ts","sourceRoot":"","sources":["../../../../src/components/OpenCase/SupportTypeSelectorPage.tsx"],"names":[],"mappings":"AAqBA,MAAM,CAAC,OAAO,UAAU,uBAAuB,
|
|
1
|
+
{"version":3,"file":"SupportTypeSelectorPage.d.ts","sourceRoot":"","sources":["../../../../src/components/OpenCase/SupportTypeSelectorPage.tsx"],"names":[],"mappings":"AAqBA,MAAM,CAAC,OAAO,UAAU,uBAAuB,gBA+K9C"}
|
|
@@ -117,7 +117,7 @@ export default function SupportTypeSelectorPage() {
|
|
|
117
117
|
React.createElement(Gallery, { hasGutter: true, className: "pf-u-mt-sm" }, SupportTypesArray.map((supportTypesArrayValues) => {
|
|
118
118
|
var _a;
|
|
119
119
|
return (React.createElement(GalleryItem, null,
|
|
120
|
-
React.createElement(Card, { id: supportTypesArrayValues.oldSupportType, key: supportTypesArrayValues.oldSupportType, className:
|
|
120
|
+
React.createElement(Card, { id: supportTypesArrayValues.oldSupportType, key: supportTypesArrayValues.oldSupportType, className: `support-types-card${showValidationErrorAlert && !caseType ? ' support-types-invalid' : ''}`, onKeyDown: onKeyDown, onClick: onSupportTypeClick, onSelectableInputChange: onChange, isSelected: !!caseType && supportTypesArrayValues.oldSupportType === caseType, hasSelectableInput: true, isSelectable: true, isSelectableRaised: true, isFullHeight: true, isDisabledRaised: ((_a = selectedAccountDetails === null || selectedAccountDetails === void 0 ? void 0 : selectedAccountDetails.data) === null || _a === void 0 ? void 0 : _a.subscriptionAbuse) || false },
|
|
121
121
|
React.createElement(CardBody, null, supportTypesArrayValues.icon ? (React.createElement(Split, null,
|
|
122
122
|
React.createElement(SplitItem, { className: "pf-u-pr-lg" },
|
|
123
123
|
React.createElement(Bullseye, null, supportTypesArrayValues.icon && supportTypesArrayValues.icon)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightsResults.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/InsightsResults.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAgC,MAAM,0CAA0C,CAAC;AAG7G,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAwB5D,UAAU,MAAO,SAAQ,gBAAgB;IACrC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AASD,MAAM,WAAW,wBAAyB,SAAQ,mBAAmB;IACjE,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;CAClB;AAED,iBAAS,eAAe,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"InsightsResults.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/InsightsResults.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAgC,MAAM,0CAA0C,CAAC;AAG7G,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAwB5D,UAAU,MAAO,SAAQ,gBAAgB;IACrC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AASD,MAAM,WAAW,wBAAyB,SAAQ,mBAAmB;IACjE,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;CAClB;AAED,iBAAS,eAAe,CAAC,KAAK,EAAE,MAAM,eA8PrC;kBA9PQ,eAAe;;;AAiQxB,eAAe,eAAe,CAAC"}
|
|
@@ -235,8 +235,7 @@ function InsightsResults(props) {
|
|
|
235
235
|
if (isEmpty(allResults))
|
|
236
236
|
return React.createElement(React.Fragment, null);
|
|
237
237
|
if (props.isDisplayOnMain) {
|
|
238
|
-
return (React.createElement(
|
|
239
|
-
React.createElement(InsightResultModal, { EARule: validEARules, onModalToggle: insightsModalToggle, isOpen: isRuleModalVisible, insightResults: allResults, isRenderedMain: true })));
|
|
238
|
+
return (React.createElement(InsightResultModal, { EARule: validEARules, onModalToggle: insightsModalToggle, isOpen: isRuleModalVisible, insightResults: allResults, isRenderedMain: true }));
|
|
240
239
|
}
|
|
241
240
|
return (React.createElement(React.Fragment, null,
|
|
242
241
|
!rulesState.triggerRuleNotification && (React.createElement(Alert, { isInline: true, title: t('Critical solutions have been triggered'), "data-tracking-id": "inline-view-crit-sol", actionLinks: React.createElement(Button, { isInline: true, className: "pf-c-alert__action", variant: "link", onClick: () => {
|
|
@@ -133,7 +133,7 @@ export default function Recommendations(props) {
|
|
|
133
133
|
(!props.renderOnlyRecommendations || !props.renderOnlyRecommendations) && React.createElement(Issue, null),
|
|
134
134
|
React.createElement(LoadingDots, { show: recommendationState.isLoadingRecommendations && !isEmpty(summary) }),
|
|
135
135
|
(!props.renderOnlyRecommendations || !props.renderOnlyRecommendations) && React.createElement(EARuleWidget, null),
|
|
136
|
-
React.createElement("div", { className: "recommendation-list", ref: resultRowRef },
|
|
136
|
+
React.createElement("div", { className: "recommendation-list pf-u-mt-lg", ref: resultRowRef },
|
|
137
137
|
React.createElement("ul", { className: "list-flat" }, map(recommendationState.visibleDocs, (doc, i) => {
|
|
138
138
|
var _a, _b;
|
|
139
139
|
return (React.createElement("li", { className: "result", key: doc.id },
|
|
@@ -41,7 +41,7 @@ function TroubleshootSection(props) {
|
|
|
41
41
|
React.createElement(LoadingDots, { show: topContent.isFetching }),
|
|
42
42
|
React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading suggestions') } }, canShowTopContent && !isEmpty(version) && React.createElement(Suggestions, null)),
|
|
43
43
|
!isCreatingCase && React.createElement(ClusterRecommendations, { className: "push-top" }))),
|
|
44
|
-
React.createElement("section",
|
|
44
|
+
React.createElement("section", { className: "pf-u-mt-lg" },
|
|
45
45
|
React.createElement(InsightsResults, { isDisplayOnMain: true }),
|
|
46
46
|
React.createElement("div", { className: "push-top" },
|
|
47
47
|
React.createElement(FileDiag, null)))));
|
|
@@ -50,7 +50,7 @@ export default function FileLister(props) {
|
|
|
50
50
|
const getAnalysisStepCount = (localFile) => {
|
|
51
51
|
const diagStatus = getAnalysisStep(localFile);
|
|
52
52
|
const stepIndex = analysisSteps.indexOf(diagStatus);
|
|
53
|
-
return stepIndex > -1 ? stepIndex + 1 : analysisSteps.length + 1;
|
|
53
|
+
return stepIndex > -1 ? stepIndex + 1 : (analysisSteps === null || analysisSteps === void 0 ? void 0 : analysisSteps.length) + 1;
|
|
54
54
|
};
|
|
55
55
|
const getAnalysisStep = (localFile) => {
|
|
56
56
|
return analysisStepMap[localFile.analysisMetadata.diagnosticsStatus];
|
|
@@ -85,48 +85,51 @@ export default function FileLister(props) {
|
|
|
85
85
|
return (React.createElement(React.Fragment, null,
|
|
86
86
|
React.createElement("div", { className: "file-diag-selected" },
|
|
87
87
|
React.createElement("span", { className: "sr-only" }, "Selected files"),
|
|
88
|
-
React.createElement("ul", { className: "file-diag-list" }, map(props.selectedLocalFiles, (localFile, index) =>
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
React.createElement(
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
React.createElement(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
React.createElement(
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
React.createElement(
|
|
121
|
-
React.createElement(
|
|
122
|
-
React.createElement(Trans, null, "
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
88
|
+
React.createElement("ul", { className: "file-diag-list" }, map(props.selectedLocalFiles, (localFile, index) => {
|
|
89
|
+
var _a;
|
|
90
|
+
return isFileDeleted(localFile.uploadProgress.uploadStatus) ? (React.createElement(React.Fragment, { key: index })) : (React.createElement("li", { key: index, className: `${localFile.uploadability.ableToUpload
|
|
91
|
+
? `file-${index + 1}`
|
|
92
|
+
: `file-${index + 1} text-error`}` },
|
|
93
|
+
React.createElement("div", { className: "file-name" },
|
|
94
|
+
React.createElement("label", { htmlFor: `file-${index + 1}-description` },
|
|
95
|
+
!isUploadOnTrack(localFile) && (React.createElement("i", { className: "icon-warning pf-u-mr-sm", title: getUploadErrorMessage(localFile, localFile.uploadability), "aria-label": getUploadErrorMessage(localFile, localFile.uploadability) })),
|
|
96
|
+
isUploadedAndAnalysisFailed(localFile) && (React.createElement("i", { className: "icon-warning text-danger pf-u-mr-sm", title: getUploadErrorMessage(localFile, localFile.uploadability), "aria-label": getUploadErrorMessage(localFile, localFile.uploadability) })),
|
|
97
|
+
isUploadedAndAnalyzed(localFile) && (React.createElement("i", { className: "icon-check-alt text-green pf-u-mr-sm", title: t('File uploaded and analyzed'), "aria-label": t('File uploaded and analyzed') })),
|
|
98
|
+
isUploading(localFile.uploadProgress.uploadStatus) && (React.createElement("div", { className: "pf-u-mr-sm pf-u-display-inline-block", style: { height: '20px', width: '20px' } },
|
|
99
|
+
React.createElement(CircularProgressbar, { title: getRadialProgressTitle(localFile), strokeWidth: 13, value: localFile.uploadProgress.percentUploaded }))),
|
|
100
|
+
React.createElement("span", null, `${localFile.name} (${humanizeSize(localFile.size)})`),
|
|
101
|
+
!localFile.uploadability.ableToUpload && (React.createElement("span", { className: "file-error" },
|
|
102
|
+
React.createElement(Trans, null, "can't be selected."))),
|
|
103
|
+
localFile.isPrivate && (React.createElement(Label, { color: "red", className: "pf-u-ml-sm" },
|
|
104
|
+
React.createElement(Trans, null, "Private")))),
|
|
105
|
+
!shouldHideDescription(localFile, props.isSessionId) &&
|
|
106
|
+
((_a = localFile === null || localFile === void 0 ? void 0 : localFile.description) === null || _a === void 0 ? void 0 : _a.length) > 1 && (React.createElement("span", { className: "character-counter text-muted" }, 255 - localFile.description.length)),
|
|
107
|
+
(isUploadFailed(localFile.uploadProgress.uploadStatus) ||
|
|
108
|
+
isUploadAborted(localFile.uploadProgress.uploadStatus)) && (React.createElement("button", { type: "button", "aria-label": "Failed to upload, Retry", title: "Failed to upload, Retry", className: "btn btn-link btn-xs", "data-tracking-id": "file-lister-retry", onClick: onRetry(index) },
|
|
109
|
+
React.createElement("i", { className: "nimbus-icon-backup" }))),
|
|
110
|
+
!isVerifyingUpload(localFile.uploadProgress.uploadStatus) &&
|
|
111
|
+
!isAnalysingFile(localFile.analysisMetadata.analysisStatus) && (React.createElement(React.Fragment, null,
|
|
112
|
+
canShowAbortBtn(localFile.uploadProgress.uploadStatus) && (React.createElement(Button, { variant: ButtonVariant.link, isDanger: true, "aria-label": t('Cancel Upload'), title: t('Cancel Upload'), className: "btn btn-link btn-app remove-file", "data-tracking-id": "file-lister-abort", onClick: onAbortClick(localFile, index), hidden: !localFile.uploadability.ableToUpload, isDisabled: !(localFile.uploadProgress.percentUploaded > 0) },
|
|
113
|
+
React.createElement(Trans, null, "Cancel"))),
|
|
114
|
+
showDeleteBtn(localFile.uploadProgress.uploadStatus, localFile) && (React.createElement(Button, { variant: ButtonVariant.link, isDanger: true, "aria-label": t('Delete file'), title: t('Delete file'), className: "btn btn-link btn-app remove-file", "data-tracking-id": "file-lister-delete", onClick: onRemoveClick(localFile, index), hidden: !localFile.uploadability.ableToUpload },
|
|
115
|
+
React.createElement(Trans, null, "Remove")))))),
|
|
116
|
+
isAnalysingFile(localFile.analysisMetadata.analysisStatus) && (React.createElement(Progress, { measureLocation: ProgressMeasureLocation.top, value: getAnalysisStepCount(localFile), min: 0, max: (analysisSteps === null || analysisSteps === void 0 ? void 0 : analysisSteps.length) + 1, label: getAnalysisProgressTitle(localFile), valueText: getAnalysisProgressTitle(localFile) })),
|
|
117
|
+
React.createElement("input", { id: `file-${index + 1}-description`, "data-tracking-id": `case-${props.isSessionId ? 'create' : 'details'}-file-${index + 1}-description`, className: "file-description form-control pf-u-my-sm", type: "text", value: localFile.description, onChange: onDescriptionChange(localFile, index), maxLength: 255, placeholder: t(`${shouldHideDescription(localFile, props.isSessionId)
|
|
118
|
+
? ''
|
|
119
|
+
: t('Enter a description')}`), hidden: shouldHideDescription(localFile, props.isSessionId) }),
|
|
120
|
+
isUploadedAndAnalysisSkipped(localFile) && (React.createElement("span", { className: "text-muted" }, localFile.analysisMetadata.analysisErrorMesssage)),
|
|
121
|
+
isUploadedAndAnalysisFailed(localFile) && (React.createElement("span", { className: "text-danger" },
|
|
122
|
+
React.createElement(Trans, null, "Something went wrong during file analysis."),
|
|
123
|
+
React.createElement(Button, { onClick: onRetryAnalysis(index), isInline: true, variant: ButtonVariant.link },
|
|
124
|
+
React.createElement(Trans, null, "Try analyzing again.")))),
|
|
125
|
+
isUploadFailed(localFile.uploadProgress.uploadStatus) && (React.createElement("span", { className: "text-danger" },
|
|
126
|
+
React.createElement(Trans, null,
|
|
127
|
+
"Upload Failed, ",
|
|
128
|
+
localFile.uploadProgress.uploadErrorMessage,
|
|
129
|
+
". "),
|
|
130
|
+
React.createElement(Button, { onClick: onRetry(index), isInline: true, variant: ButtonVariant.link },
|
|
131
|
+
React.createElement(Trans, null, "Try again"))))));
|
|
132
|
+
})),
|
|
130
133
|
props.showSlowUploadMsg && isUploadingAttachment(props.selectedLocalFiles) && (React.createElement("span", { className: "text-muted" },
|
|
131
134
|
React.createElement(Trans, null, "We detected you are on a slow internet connection. This might take a while depending on the file size."))))));
|
|
132
135
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardAside.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardAside.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAInD,OAAO,EAEH,eAAe,
|
|
1
|
+
{"version":3,"file":"WizardAside.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardAside.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAInD,OAAO,EAEH,eAAe,EAIlB,MAAM,iCAAiC,CAAC;AAWzC,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,2BAA2B,EAAE,OAAO,CAAC;IACrC,qBAAqB,EAAE,CAAC,cAAc,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5D;AAGD,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,eAqDjC;kBArDQ,WAAW;;;AAuDpB,eAAe,WAAW,CAAC"}
|
|
@@ -5,7 +5,7 @@ import isEqual from 'lodash/isEqual';
|
|
|
5
5
|
import React, { useContext } from 'react';
|
|
6
6
|
import { useCaseSelector } from '../../context/CaseContext';
|
|
7
7
|
import { RouteContext } from '../../context/RouteContext';
|
|
8
|
-
import { hideFileUploadSidebarWidgetSections, showSideBarClusterIdRuleWidgetSections, showSideBarEARuleWidgetSections, } from '../../reducers/RouteConstNTypes';
|
|
8
|
+
import { hideFileUploadSidebarWidgetSections, showSideBarClusterIdRuleWidgetSections, showSideBarEARuleWidgetSections, showSideBarFileRecommendationSections, } from '../../reducers/RouteConstNTypes';
|
|
9
9
|
import { getAppRouteConfugurations } from '../../reducers/RouteReducer';
|
|
10
10
|
import { CaseSolutions } from '../CaseEditView/CaseSolutions/CaseSolutions';
|
|
11
11
|
import { FileDiag } from '../CaseInformation/FileDiag';
|
|
@@ -34,7 +34,8 @@ function WizardAside(props) {
|
|
|
34
34
|
!props.isAttachmentUploadModalOpen &&
|
|
35
35
|
!hideFileUploadSidebarWidgetSections.includes(activeSection);
|
|
36
36
|
const canshowEARuleWidget = showSideBarEARuleWidgetSections.includes(activeSection);
|
|
37
|
-
const
|
|
37
|
+
const canShowClusterIdReportWidget = showSideBarClusterIdRuleWidgetSections.includes(activeSection);
|
|
38
|
+
const canShowFileRecommendationSectionsWidget = showSideBarFileRecommendationSections.includes(activeSection);
|
|
38
39
|
if (appRouteConfugurations[activeSection].hideAside) {
|
|
39
40
|
return null;
|
|
40
41
|
}
|
|
@@ -42,9 +43,11 @@ function WizardAside(props) {
|
|
|
42
43
|
React.createElement("section", { className: "grid-aside-content" },
|
|
43
44
|
canshowEARuleWidget && React.createElement(EARuleWidget, null),
|
|
44
45
|
React.createElement(InsightsResults, null),
|
|
45
|
-
|
|
46
|
-
canUseSessionManagement && !isCreatingCase && React.createElement(SessionRestore, { routeProps: props.routeProps }),
|
|
46
|
+
" ",
|
|
47
47
|
React.createElement(AsideResults, null),
|
|
48
|
+
canShowFileRecommendationSectionsWidget && React.createElement(InsightsResults, { isDisplayOnMain: true }),
|
|
49
|
+
React.createElement(ClusterRecommendations, { showClusterRecommendationsList: canShowClusterIdReportWidget }),
|
|
50
|
+
canUseSessionManagement && !isCreatingCase && React.createElement(SessionRestore, { routeProps: props.routeProps }),
|
|
48
51
|
canShowFileUploadWidget() && React.createElement(FileDiag, null),
|
|
49
52
|
React.createElement(AlertToastWrapper, { submitCaseAndNavigate: props.submitCaseAndNavigate }),
|
|
50
53
|
React.createElement(CaseSolutions, { caseNumber: caseNumber, isSecureSupportAccount: isSecureSupportAccount }))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/index.tsx"],"names":[],"mappings":"AAAA,OAAO,6CAA6C,CAAC;AACrD,OAAO,mBAAmB,CAAC;AAC3B,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/index.tsx"],"names":[],"mappings":"AAAA,OAAO,6CAA6C,CAAC;AACrD,OAAO,mBAAmB,CAAC;AAC3B,OAAO,0BAA0B,CAAC;AAClC,OAAO,+BAA+B,CAAC;AACvC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,2CAA2C,CAAC;AAKnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAoB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAIpF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,SAAS,EAAE,GAAG,CAAC;QACf,oBAAoB,EAAE,GAAG,CAAC;QAC1B,iBAAiB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC,GAAG,MAAM,OAAA,KAAK,GAAG,KAAK,GAAG,CAAC;QAC9E,MAAM,EAAE,GAAG,CAAC;QACZ,KAAK,EAAE,GAAG,CAAC;QACX,eAAe,EAAE,GAAG,CAAC;QACrB,aAAa,EAAE;YACX,cAAc,EAAE,MAAM,CAAC;YACvB,OAAO,EAAE,MAAM,CAAC;SACnB,CAAC;KACL;IAED,UAAU,QAAQ;QACd,YAAY,EAAE,GAAG,CAAC;KACrB;CACJ;AAED,eAAO,MAAM,YAAY,UAAW,MAAM,gBA4BzC,CAAC"}
|
package/lib/esm/css/results.css
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
============================================ */
|
|
3
3
|
|
|
4
4
|
/* ALL RECOMMENDATIONS */
|
|
5
|
-
|
|
6
5
|
.result .result-header .se-recommended {
|
|
7
6
|
font-weight: 600;
|
|
8
7
|
word-wrap: break-word;
|
|
@@ -41,103 +40,99 @@
|
|
|
41
40
|
word-break: break-all;
|
|
42
41
|
}
|
|
43
42
|
|
|
44
|
-
|
|
43
|
+
.recommendation-list {
|
|
45
44
|
margin-top: 2rem;
|
|
46
45
|
}
|
|
47
46
|
|
|
48
|
-
|
|
47
|
+
.recommendation-list .result {
|
|
49
48
|
margin-bottom: 1.75rem;
|
|
50
49
|
}
|
|
51
50
|
|
|
52
|
-
|
|
51
|
+
.recommendation-list .result:last-child {
|
|
53
52
|
margin-bottom: 0;
|
|
54
53
|
}
|
|
55
54
|
|
|
56
|
-
|
|
55
|
+
.recommendation-list .result .result-header,
|
|
57
56
|
.card-body .result .result-header {
|
|
58
57
|
width: 100%;
|
|
59
58
|
margin-bottom: 0;
|
|
60
59
|
font-weight: 600;
|
|
61
60
|
}
|
|
62
61
|
|
|
63
|
-
|
|
62
|
+
.recommendation-list .result .result-header .se-recommended {
|
|
64
63
|
font-size: 1rem;
|
|
65
64
|
}
|
|
66
65
|
|
|
67
|
-
|
|
66
|
+
.recommendation-list .result .result-header .header-meta > * {
|
|
68
67
|
margin-right: 0.5%;
|
|
69
68
|
font-size: 14px;
|
|
70
69
|
font-weight: 600;
|
|
71
70
|
color: rgb(118, 118, 118);
|
|
72
71
|
}
|
|
73
72
|
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
.recommendation-list .result .result-header .header-meta .status-verified,
|
|
74
|
+
.recommendation-list .result .result-header .header-meta .solution-verified {
|
|
76
75
|
color: #486b00;
|
|
77
76
|
font-size: 13px;
|
|
78
77
|
text-transform: uppercase;
|
|
79
78
|
}
|
|
80
79
|
|
|
81
|
-
|
|
80
|
+
.recommendation-list .result .result-header .header-meta .highly-recommended-doc {
|
|
82
81
|
color: #486b00;
|
|
83
82
|
font-size: 13px;
|
|
84
83
|
text-transform: uppercase;
|
|
85
84
|
}
|
|
86
|
-
|
|
87
|
-
#recommendations .recommendation-list .result .issue-wrap {
|
|
85
|
+
.recommendation-list .result .issue-wrap {
|
|
88
86
|
max-height: 150px;
|
|
89
87
|
width: 100%;
|
|
90
88
|
}
|
|
91
89
|
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
.recommendation-list .result .issue-wrap *,
|
|
91
|
+
.recommendation-list .result .issue-wrap * > * {
|
|
94
92
|
margin-bottom: 0.5em;
|
|
95
93
|
}
|
|
96
94
|
|
|
97
|
-
|
|
95
|
+
.recommendation-list .result .issue-wrap pre {
|
|
98
96
|
margin: 1.1em 0;
|
|
99
97
|
}
|
|
100
98
|
|
|
101
|
-
|
|
99
|
+
.recommendation-list .result .list-flushleft {
|
|
102
100
|
padding-left: 1.4rem;
|
|
103
101
|
margin-bottom: 0;
|
|
104
102
|
}
|
|
105
103
|
|
|
106
104
|
/* MAIN RECOMMENDATIONS - file diag */
|
|
107
|
-
#recommendations .card-support {
|
|
108
|
-
margin-bottom: 2rem !important;
|
|
109
|
-
}
|
|
110
105
|
|
|
111
|
-
|
|
106
|
+
.insight-results-list {
|
|
112
107
|
margin-bottom: 0;
|
|
113
108
|
}
|
|
114
109
|
|
|
115
|
-
|
|
110
|
+
.insight-results-list .result {
|
|
116
111
|
margin-bottom: 1rem;
|
|
117
112
|
}
|
|
118
113
|
|
|
119
|
-
|
|
114
|
+
.insight-results-list .result:last-child {
|
|
120
115
|
margin-bottom: 0;
|
|
121
116
|
}
|
|
122
117
|
|
|
123
|
-
|
|
118
|
+
.card-body .result .result-header .header-meta {
|
|
124
119
|
display: none;
|
|
125
120
|
}
|
|
126
121
|
|
|
127
|
-
|
|
122
|
+
.card-body .result .result-header .se-recommended {
|
|
128
123
|
font-size: 15px;
|
|
129
124
|
}
|
|
130
125
|
|
|
131
|
-
|
|
126
|
+
.card-body .result .result-body {
|
|
132
127
|
margin-bottom: 0;
|
|
133
128
|
font-size: 14px;
|
|
134
129
|
}
|
|
135
130
|
|
|
136
|
-
|
|
131
|
+
.card-body .result:last-of-type {
|
|
137
132
|
margin-bottom: 0 !important;
|
|
138
133
|
}
|
|
139
134
|
|
|
140
|
-
|
|
135
|
+
.card-body .result .btn-incident-info {
|
|
141
136
|
font-size: 13px;
|
|
142
137
|
}
|
|
143
138
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseHelpers.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACpG,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACvG,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAkB3D,OAAO,EAUH,UAAU,EAgBb,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,sBAAsB,SAAU,mBAAmB,EAAE,wBAMjE,CAAC;AAEF,eAAO,MAAM,2BAA2B,eAAgB,WAAW,KAAG,MAOrE,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAAS,mBAAmB,SAAS,MAAM,sBAyB9E,CAAC;AAIF,eAAO,MAAM,qBAAqB,UACvB,MAAM,gBACC,MAAM,uBACC,MAAM,yBACJ,MAAM,kBACb,MAAM,KACvB,MAuBF,CAAC;AAIF,eAAO,MAAM,oBAAoB,UACtB,MAAM,gBACC,MAAM,uBACC,MAAM,yBACJ,MAAM,KAC9B,MAQF,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBAAkB,MAAM,YAAY,MAAM,KAAG,MAQhF,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBAAkB,MAAM,YAAY,MAAM,KAAG,MAQhF,CAAC;AAEF,eAAO,MAAM,sBAAsB,aAAc,MAAM,KAAG,MAKzD,CAAC;AAEF,eAAO,MAAM,gBAAgB,+CAmC5B,CAAC;AAIF,eAAO,MAAM,gBAAgB,cAAe,UAAU,wBAAwB,QAAQ,eAAe,CAAC,KAAG,OA6BxG,CAAC;AAEF,eAAO,MAAM,0BAA0B,cACxB,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAiBF,CAAC;AAIF,eAAO,MAAM,6BAA6B,cAC3B,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAuBF,CAAC;AAEF,eAAO,MAAM,iBAAiB,cACf,UAAU,gBACP,YAAY,iBACZ,OAAO,KACtB,QAAQ,YAAY,
|
|
1
|
+
{"version":3,"file":"CaseHelpers.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACpG,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACvG,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAkB3D,OAAO,EAUH,UAAU,EAgBb,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,sBAAsB,SAAU,mBAAmB,EAAE,wBAMjE,CAAC;AAEF,eAAO,MAAM,2BAA2B,eAAgB,WAAW,KAAG,MAOrE,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAAS,mBAAmB,SAAS,MAAM,sBAyB9E,CAAC;AAIF,eAAO,MAAM,qBAAqB,UACvB,MAAM,gBACC,MAAM,uBACC,MAAM,yBACJ,MAAM,kBACb,MAAM,KACvB,MAuBF,CAAC;AAIF,eAAO,MAAM,oBAAoB,UACtB,MAAM,gBACC,MAAM,uBACC,MAAM,yBACJ,MAAM,KAC9B,MAQF,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBAAkB,MAAM,YAAY,MAAM,KAAG,MAQhF,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBAAkB,MAAM,YAAY,MAAM,KAAG,MAQhF,CAAC;AAEF,eAAO,MAAM,sBAAsB,aAAc,MAAM,KAAG,MAKzD,CAAC;AAEF,eAAO,MAAM,gBAAgB,+CAmC5B,CAAC;AAIF,eAAO,MAAM,gBAAgB,cAAe,UAAU,wBAAwB,QAAQ,eAAe,CAAC,KAAG,OA6BxG,CAAC;AAEF,eAAO,MAAM,0BAA0B,cACxB,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAiBF,CAAC;AAIF,eAAO,MAAM,6BAA6B,cAC3B,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAuBF,CAAC;AAEF,eAAO,MAAM,iBAAiB,cACf,UAAU,gBACP,YAAY,iBACZ,OAAO,KACtB,QAAQ,YAAY,CAuEtB,CAAC;AAEF,eAAO,MAAM,wBAAwB,qBAAsB,YAAY,EAAE,KAAG,YAAY,EAEvF,CAAC;AACF,eAAO,MAAM,yBAAyB,qBAAsB,YAAY,EAAE,KAAG,OAE5E,CAAC;AAEF,eAAO,MAAM,yBAAyB,gBACrB,YAAY,6BACE,MAAM,mBAChB,MAAM,KACxB,QAAQ,YAAY,CA+BtB,CAAC;AACF,eAAO,MAAM,yBAAyB,gBACrB,QAAQ,YAAY,CAAC,gCACJ,QAAQ,EAAE,KACzC,eA2CF,CAAC"}
|
|
@@ -213,9 +213,7 @@ export const createCasePayload = (caseState, sessionItem, isCaseCreate = false)
|
|
|
213
213
|
!isEmpty(case_details.phone) && (casePayload.phone = case_details.phone);
|
|
214
214
|
casePayload.suppliedPhoneNumberVerified = !isEmpty(case_details.suppliedPhoneNumberVerified)
|
|
215
215
|
? case_details.suppliedPhoneNumberVerified
|
|
216
|
-
:
|
|
217
|
-
? 'True'
|
|
218
|
-
: 'Deferred';
|
|
216
|
+
: 'False';
|
|
219
217
|
if (!isEmpty(case_details.entitlementSla) &&
|
|
220
218
|
some(caseState.ownersEntitlements.data, ['slaProcessId', case_details.entitlementSla])) {
|
|
221
219
|
casePayload.entitlementSla = case_details.entitlementSla;
|
|
@@ -24,6 +24,7 @@ export declare const hideFileUploadSidebarWidgetSections: AppRouteSections[];
|
|
|
24
24
|
export declare const showSidebarRecommendationsSections: AppRouteSections[];
|
|
25
25
|
export declare const showSideBarEARuleWidgetSections: AppRouteSections[];
|
|
26
26
|
export declare const showSideBarClusterIdRuleWidgetSections: AppRouteSections[];
|
|
27
|
+
export declare const showSideBarFileRecommendationSections: AppRouteSections[];
|
|
27
28
|
export declare const hideSideBarClusterIdRuleToast: AppRouteSections[];
|
|
28
29
|
export declare const hiddengetSupportSections: AppRouteSections[];
|
|
29
30
|
//# sourceMappingURL=RouteConstNTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RouteConstNTypes.d.ts","sourceRoot":"","sources":["../../../src/reducers/RouteConstNTypes.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAIrB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,eAAe;CAAG;AACnC,oBAAY,gBAAgB;IACxB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;CAC9B;AAED,eAAO,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"RouteConstNTypes.d.ts","sourceRoot":"","sources":["../../../src/reducers/RouteConstNTypes.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAIrB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,eAAe;CAAG;AACnC,oBAAY,gBAAgB;IACxB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;CAC9B;AAED,eAAO,MAAM,0BAA0B,oBAAiC,CAAC;AACzE,eAAO,MAAM,mCAAmC,oBAAgE,CAAC;AACjH,eAAO,MAAM,kCAAkC,oBAO9C,CAAC;AAEF,eAAO,MAAM,+BAA+B,oBAK3C,CAAC;AAEF,eAAO,MAAM,sCAAsC,oBAIlD,CAAC;AAEF,eAAO,MAAM,qCAAqC,oBAAgE,CAAC;AAEnH,eAAO,MAAM,6BAA6B,oBAA0D,CAAC;AAErG,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,EAKtD,CAAC"}
|
|
@@ -10,7 +10,7 @@ export var AppRouteSections;
|
|
|
10
10
|
AppRouteSections["SUBMIT_CASE"] = "submit-case";
|
|
11
11
|
AppRouteSections["SUBMIT_IDEA"] = "submit-idea";
|
|
12
12
|
})(AppRouteSections || (AppRouteSections = {}));
|
|
13
|
-
export const sessionRestoreCardSections = [AppRouteSections.GET_SUPPORT
|
|
13
|
+
export const sessionRestoreCardSections = [AppRouteSections.GET_SUPPORT];
|
|
14
14
|
export const hideFileUploadSidebarWidgetSections = [AppRouteSections.GET_SUPPORT, AppRouteSections.TROUBLESHOOT];
|
|
15
15
|
export const showSidebarRecommendationsSections = [
|
|
16
16
|
AppRouteSections.TROUBLESHOOT,
|
|
@@ -31,6 +31,7 @@ export const showSideBarClusterIdRuleWidgetSections = [
|
|
|
31
31
|
AppRouteSections.REVIEW,
|
|
32
32
|
AppRouteSections.SUBMIT_CASE,
|
|
33
33
|
];
|
|
34
|
+
export const showSideBarFileRecommendationSections = [AppRouteSections.DESCRIBE_MORE, AppRouteSections.MANAGEMENT];
|
|
34
35
|
export const hideSideBarClusterIdRuleToast = [AppRouteSections.REVIEW, AppRouteSections.SUBMIT_CASE];
|
|
35
36
|
export const hiddengetSupportSections = [
|
|
36
37
|
AppRouteSections.TROUBLESHOOT,
|
|
@@ -122,14 +122,14 @@ export function getAppRouteConfugurations(isCaseCreate, isIdea, product) {
|
|
|
122
122
|
: isCaseCreate && !isIdea
|
|
123
123
|
? []
|
|
124
124
|
: [AppRouteSections.TROUBLESHOOT] }),
|
|
125
|
-
[AppRouteSections.TROUBLESHOOT]: Object.assign(Object.assign({}, defaultRouteConfiguration), { title: 'Recommendations', stepName: 'Troubleshoot', nextButtonLabel: isCaseCreate ? 'Continue' : '
|
|
125
|
+
[AppRouteSections.TROUBLESHOOT]: Object.assign(Object.assign({}, defaultRouteConfiguration), { title: 'Recommendations', stepName: 'Troubleshoot', nextButtonLabel: isCaseCreate ? 'Continue' : 'Get support', previousSection: AppRouteSections.SUMMARIZE, nextSection: isCaseCreate ? AppRouteSections.DESCRIBE_MORE : AppRouteSections.GET_SUPPORT, futureSections: isCaseCreate
|
|
126
126
|
? [AppRouteSections.DESCRIBE_MORE, AppRouteSections.MANAGEMENT, AppRouteSections.REVIEW]
|
|
127
127
|
: [] }),
|
|
128
128
|
[AppRouteSections.DESCRIBE_MORE]: Object.assign(Object.assign({}, defaultRouteConfiguration), { title: 'Case information', stepName: 'Describe more', previousSection: isCaseCreate ? AppRouteSections.TROUBLESHOOT : AppRouteSections.GET_SUPPORT, nextSection: AppRouteSections.MANAGEMENT, futureSections: [AppRouteSections.MANAGEMENT, AppRouteSections.REVIEW] }),
|
|
129
129
|
[AppRouteSections.DESCRIBE_IDEA]: Object.assign(Object.assign({}, defaultRouteConfiguration), { title: 'Idea information', stepName: 'Describe more', nextButtonLabel: 'Submit', disableOtherSections: false, previousSection: isCaseCreate ? AppRouteSections.SUMMARIZE : AppRouteSections.GET_SUPPORT, nextSection: isOpenshift ? null : AppRouteSections.SUBMIT_IDEA, futureSections: [], hideAside: isOpenshift ? true : false }),
|
|
130
130
|
[AppRouteSections.MANAGEMENT]: Object.assign(Object.assign({}, defaultRouteConfiguration), { title: 'Case management', stepName: 'Management', previousSection: AppRouteSections.DESCRIBE_MORE, nextSection: AppRouteSections.REVIEW, futureSections: [AppRouteSections.REVIEW] }),
|
|
131
131
|
[AppRouteSections.REVIEW]: Object.assign(Object.assign({}, defaultRouteConfiguration), { title: 'Preview case', stepName: 'Review', nextButtonLabel: 'Submit', previousSection: AppRouteSections.MANAGEMENT, nextSection: AppRouteSections.SUBMIT_CASE, futureSections: [] }),
|
|
132
|
-
[AppRouteSections.SUBMIT_CASE]: Object.assign(Object.assign({}, defaultRouteConfiguration), { title: 'Case has been submitted', stepName: 'Submit', disableOtherSections: true, hideAside:
|
|
132
|
+
[AppRouteSections.SUBMIT_CASE]: Object.assign(Object.assign({}, defaultRouteConfiguration), { title: 'Case has been submitted', stepName: 'Submit', disableOtherSections: true, hideAside: false, showBackToSection: false, previousSection: null, showOpenCaseButton: false, showNewIssueButton: false, backToSection: AppRouteSections.GET_SUPPORT, backToSectionLabel: 'Back to open case', nextSection: null, futureSections: [] }),
|
|
133
133
|
};
|
|
134
134
|
return appRouteConfugurations;
|
|
135
135
|
}
|
package/lib/esm/scss/_main.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.support-grid-case-details {
|
|
1
|
+
div.support-grid-case-details.support-case {
|
|
2
2
|
display: -ms-grid;
|
|
3
3
|
display: grid;
|
|
4
4
|
-ms-grid-rows: 1fr auto;
|
|
@@ -2084,7 +2084,7 @@ p.pref-case-popover-text {
|
|
|
2084
2084
|
// To fix the margin for personal reference number in management tab
|
|
2085
2085
|
div.case-details-ref-number {
|
|
2086
2086
|
p {
|
|
2087
|
-
margin-bottom: 0;
|
|
2087
|
+
margin-bottom: 0 !important;
|
|
2088
2088
|
}
|
|
2089
|
-
margin-bottom: 0;
|
|
2089
|
+
margin-bottom: 0 !important;
|
|
2090
2090
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "1.0.47-beta.
|
|
3
|
+
"version": "1.0.47-beta.43",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"@patternfly/react-core": "4.264.0",
|
|
74
74
|
"@progress/kendo-drawing": "^1.6.0",
|
|
75
75
|
"@progress/kendo-react-pdf": "^3.12.0",
|
|
76
|
-
"@rh-support/components": "1.2.22-beta.
|
|
77
|
-
"@rh-support/react-context": "1.0.30-beta.
|
|
76
|
+
"@rh-support/components": "1.2.22-beta.35",
|
|
77
|
+
"@rh-support/react-context": "1.0.30-beta.35",
|
|
78
78
|
"@rh-support/types": "0.2.1-beta.33",
|
|
79
79
|
"@rh-support/user-permissions": "1.0.12-beta.34",
|
|
80
80
|
"@rh-support/utils": "1.0.10-beta.34",
|
|
@@ -145,5 +145,5 @@
|
|
|
145
145
|
"not ie <= 11",
|
|
146
146
|
"not op_mini all"
|
|
147
147
|
],
|
|
148
|
-
"gitHead": "
|
|
148
|
+
"gitHead": "9e3cd2f2e8c21702827eabaeb9104cf69a9a042c"
|
|
149
149
|
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/* .pf-c-backdrop {
|
|
2
|
-
-webkit-backdrop-filter: blur(10px);
|
|
3
|
-
background-color: rgba(3, 3, 3, 0.619608);
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
color: rgb(21, 21, 21);
|
|
6
|
-
display: block;
|
|
7
|
-
font-size: 16px;
|
|
8
|
-
font-weight: normal;
|
|
9
|
-
height: 100%;
|
|
10
|
-
left: 0px;
|
|
11
|
-
line-height: 24px;
|
|
12
|
-
margin: 0px;
|
|
13
|
-
padding: 0px;
|
|
14
|
-
position: fixed;
|
|
15
|
-
text-align: left;
|
|
16
|
-
text-rendering: optimizeLegibility;
|
|
17
|
-
top: 0px;
|
|
18
|
-
width: 100%;
|
|
19
|
-
z-index: 400;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.pf-l-bullseye {
|
|
23
|
-
align-items: center;
|
|
24
|
-
background-color: rgba(0, 0, 0, 0);
|
|
25
|
-
box-sizing: border-box;
|
|
26
|
-
color: rgb(21, 21, 21);
|
|
27
|
-
display: flex;
|
|
28
|
-
font-size: 16px;
|
|
29
|
-
font-weight: normal;
|
|
30
|
-
height: 886px;
|
|
31
|
-
justify-content: center;
|
|
32
|
-
line-height: 24px;
|
|
33
|
-
margin: 0px;
|
|
34
|
-
padding: 0px;
|
|
35
|
-
text-align: left;
|
|
36
|
-
text-rendering: optimizeLegibility;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.pf-c-modal-box {
|
|
40
|
-
background-color: rgb(255, 255, 255);
|
|
41
|
-
box-shadow: rgba(3, 3, 3, 0.13) 0px 3px 7px 3px, rgba(3, 3, 3, 0.12) 0px 11px 24px 16px;
|
|
42
|
-
color: rgb(21, 21, 21);
|
|
43
|
-
padding: 32px;
|
|
44
|
-
position: relative;
|
|
45
|
-
text-rendering: optimizelegibility;
|
|
46
|
-
z-index: 500;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@media (min-width: 992px) {
|
|
50
|
-
.pf-c-modal-box {
|
|
51
|
-
max-width: 750px;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.pf-c-modal-box > .pf-c-button {
|
|
56
|
-
position: absolute;
|
|
57
|
-
top: 27px;
|
|
58
|
-
right: 16px;
|
|
59
|
-
box-sizing: border-box;
|
|
60
|
-
color: rgb(114, 118, 123);
|
|
61
|
-
margin: 0px;
|
|
62
|
-
padding-bottom: 6px;
|
|
63
|
-
padding-left: 16px;
|
|
64
|
-
padding-right: 16px;
|
|
65
|
-
padding-top: 6px;
|
|
66
|
-
text-align: center;
|
|
67
|
-
text-rendering: optimizeLegibility;
|
|
68
|
-
text-shadow: none;
|
|
69
|
-
text-transform: none;
|
|
70
|
-
white-space: nowrap;
|
|
71
|
-
word-spacing: 0px;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.pf-c-modal-box .pf-c-title {
|
|
75
|
-
margin-bottom: calc(1.5rem + 8px);
|
|
76
|
-
font-size: 20px;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.pf-c-modal-box #feedbackForm legend {
|
|
80
|
-
margin-bottom: .5rem;
|
|
81
|
-
font-weight: bold;
|
|
82
|
-
color: rgb(21, 21, 21);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.pf-c-modal-box #feedbackForm .radio-inline+.radio-inline,
|
|
86
|
-
.pf-c-modal-box #feedbackForm .checkbox-inline+.checkbox-inline {
|
|
87
|
-
margin-left: 1.2rem;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.pf-c-modal-box .pf-c-modal-box__footer button:first-child {
|
|
91
|
-
margin-right: 1rem;
|
|
92
|
-
} */
|