@rh-support/troubleshoot 1.1.3 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +1 -1
- package/lib/esm/components/CaseInformation/CaseGroup.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/CaseGroup.js +4 -1
- package/lib/esm/components/CaseInformation/OpenCaseIssue.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/OpenCaseIssue.js +13 -3
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.js +2 -2
- package/lib/esm/components/CaseManagement/RHAssociatesSelector.js +2 -2
- package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.js +1 -1
- package/lib/esm/components/ImproveCase/KtQuestions.d.ts.map +1 -1
- package/lib/esm/components/ImproveCase/KtQuestions.js +2 -2
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelectorImage.js +1 -1
- package/package.json +4 -4
|
@@ -126,7 +126,7 @@ export function RequestEscalationModal(props) {
|
|
|
126
126
|
t('Submit')),
|
|
127
127
|
React.createElement(Button, { key: "cancel", variant: "link", onClick: onCancel, "data-tracking-id": "request-rme-cancel", isDisabled: createEscalationFetch.isFetching || isPostingComment || isUpdatingCase, "aria-label": t('Cancel') }, t('Cancel')),
|
|
128
128
|
];
|
|
129
|
-
const header = (React.createElement(Title, { id: "custom-header-label", headingLevel: "h1" },
|
|
129
|
+
const header = (React.createElement(Title, { className: "pf-u-mb-0", id: "custom-header-label", headingLevel: "h1" },
|
|
130
130
|
React.createElement(Trans, null, "Request an escalation"),
|
|
131
131
|
React.createElement(Popover, { showClose: false, position: 'top', hasAutoWidth: true, bodyContent: () => (React.createElement("a", { href: "/support/escalation", target: "_blank", "aria-label": t('Learn more about escalation cases.') },
|
|
132
132
|
React.createElement(Trans, null, "Learn more about escalation cases."))) },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/CaseGroup.tsx"],"names":[],"mappings":"AAkBA,UAAU,MAAM;IACZ,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB;AAWD,iBAAS,SAAS,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CaseGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/CaseGroup.tsx"],"names":[],"mappings":"AAkBA,UAAU,MAAM;IACZ,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB;AAWD,iBAAS,SAAS,CAAC,KAAK,EAAE,MAAM,eA6M/B;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -151,6 +151,7 @@ function CaseGroup(props) {
|
|
|
151
151
|
console.log(error);
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
|
+
const showHelperText = !isSelectedUngroupedInvalid || (!isCaseGroupInvalid && !isGroupMandatory);
|
|
154
155
|
return (React.createElement("div", { className: "form-group" },
|
|
155
156
|
React.createElement("label", { htmlFor: "get-support-group" },
|
|
156
157
|
React.createElement(Trans, null, "Group"),
|
|
@@ -160,6 +161,8 @@ function CaseGroup(props) {
|
|
|
160
161
|
isSelectedUngroupedInvalid && (React.createElement("p", { className: "form-instructions form-invalid" },
|
|
161
162
|
React.createElement(Trans, null, "'Ungrouped Case' cannot be selected. Please select a group."))),
|
|
162
163
|
isCaseGroupInvalid && isGroupMandatory && (React.createElement("p", { className: "form-instructions form-invalid" },
|
|
163
|
-
React.createElement(Trans, null, "Case group cannot be empty.")))
|
|
164
|
+
React.createElement(Trans, null, "Case group cannot be empty."))),
|
|
165
|
+
showHelperText && (React.createElement("p", { className: "form-instructions" },
|
|
166
|
+
React.createElement(Trans, null, "Organization administrators have the permission to manage groups.")))));
|
|
164
167
|
}
|
|
165
168
|
export default CaseGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenCaseIssue.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/OpenCaseIssue.tsx"],"names":[],"mappings":"AAYA,UAAU,MAAM;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AASD,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"OpenCaseIssue.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/OpenCaseIssue.tsx"],"names":[],"mappings":"AAYA,UAAU,MAAM;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AASD,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,eAkGnC;kBAlGQ,aAAa;;;AAqGtB,eAAe,aAAa,CAAC"}
|
|
@@ -43,13 +43,23 @@ function OpenCaseIssue(props) {
|
|
|
43
43
|
limit: SUMMARY_LENGTH_LIMIT,
|
|
44
44
|
});
|
|
45
45
|
return (React.createElement(React.Fragment, null,
|
|
46
|
-
React.createElement(InlineEdit, { labelProps: {
|
|
46
|
+
React.createElement(InlineEdit, { labelProps: {
|
|
47
|
+
htmlFor: supportType === PreviousCaseTypes.FEATURE_ENHANCEMENT
|
|
48
|
+
? 'get-support-title'
|
|
49
|
+
: 'get-support-summary',
|
|
50
|
+
}, labelContent: React.createElement(React.Fragment, null,
|
|
47
51
|
React.createElement(Trans, null, supportType === PreviousCaseTypes.FEATURE_ENHANCEMENT ? 'Title' : 'Summary'),
|
|
48
52
|
' ',
|
|
49
53
|
!!props.required && (React.createElement("span", { className: "form-required", "aria-hidden": true }, "*"))), allowInlineEdit: props.inlineEditable, hideSaveCancel: !!props.hideSaveCancel, initialIsEditing: !!props.initialIsEditing, saveOnBlur: true, collapseOnBlur: !!props.collapseOnBlur && !isSummaryInValid, content: summary },
|
|
50
|
-
React.createElement("input", { type: "text", id:
|
|
54
|
+
React.createElement("input", { type: "text", id: supportType === PreviousCaseTypes.FEATURE_ENHANCEMENT
|
|
55
|
+
? 'get-support-title'
|
|
56
|
+
: 'get-support-summary', className: `form-control${isSummaryInValid || hasLargeSummary || (showValidationErrorAlert && !summary)
|
|
51
57
|
? ' form-invalid'
|
|
52
|
-
: ''}`, "aria-invalid": isSummaryInValid, "aria-required": !!props.required, required: !!props.required, name:
|
|
58
|
+
: ''}`, "aria-invalid": isSummaryInValid, "aria-required": !!props.required, required: !!props.required, name: supportType === PreviousCaseTypes.FEATURE_ENHANCEMENT
|
|
59
|
+
? 'get-support-title'
|
|
60
|
+
: 'get-support-summary', placeholder: t("Summarize what you're experiencing today"), value: summary, onChange: onSummaryChange, onBlur: onSummaryBlur, autoFocus: !!props.autoFocus, "data-tracking-id": supportType === PreviousCaseTypes.FEATURE_ENHANCEMENT
|
|
61
|
+
? 'get-support-title'
|
|
62
|
+
: 'get-support-summary' })),
|
|
53
63
|
((_a = summary) === null || _a === void 0 ? void 0 : _a.length) > SUMMARY_LENGTH_LIMIT && (React.createElement("div", { className: "pull-top" },
|
|
54
64
|
React.createElement("p", { className: "form-instructions form-invalid" },
|
|
55
65
|
React.createElement(Trans, null, maxLengthErrorMessage))))));
|
|
@@ -51,11 +51,11 @@ export default function CaseLanguageSelector(props) {
|
|
|
51
51
|
props.isManageStep,
|
|
52
52
|
]);
|
|
53
53
|
return (React.createElement("div", { className: "form-group" },
|
|
54
|
-
React.createElement("label", { htmlFor: "
|
|
54
|
+
React.createElement("label", { htmlFor: "get-support-language" },
|
|
55
55
|
React.createElement(Trans, null, "Preferred language"),
|
|
56
56
|
' ',
|
|
57
57
|
React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
|
|
58
|
-
React.createElement(Select, { variant: SelectVariant.single, "aria-label": t(`Select a language`), onToggle: onToggle, onSelect: onLanguageChange, selections: caseLanguage, isOpen: isOpen, "aria-labelledby": '
|
|
58
|
+
React.createElement(Select, { variant: SelectVariant.single, "aria-label": t(`Select a language`), onToggle: onToggle, onSelect: onLanguageChange, selections: caseLanguage, isOpen: isOpen, "aria-labelledby": 'get-support-language', isDisabled: caseLanguages.isError, validated: caseLanguages.isError ? ValidatedOptions.error : ValidatedOptions.default }, caseLanguages.data.map((sla, index) => (React.createElement(SelectOption, { value: sla, key: index }, Constants.languagesMap[sla])))),
|
|
59
59
|
React.createElement("p", { className: "form-instructions" },
|
|
60
60
|
React.createElement(Trans, null, "Select a language for communicating with our support engineers."))));
|
|
61
61
|
}
|
|
@@ -105,7 +105,7 @@ function RHAssociatesSelector(props) {
|
|
|
105
105
|
if (!canNotifyRHAssociates)
|
|
106
106
|
return React.createElement(React.Fragment, null);
|
|
107
107
|
return (React.createElement(React.Fragment, null, canNotifyRHAssociates && (React.createElement("div", { className: "form-group" },
|
|
108
|
-
React.createElement("label", { htmlFor: "
|
|
108
|
+
React.createElement("label", { htmlFor: "get-support-notifications" },
|
|
109
109
|
React.createElement(Trans, null, "Red Hat associates")),
|
|
110
110
|
React.createElement(ContactSelectorInternal, { className: "push-bottom-narrow", selectedContacts: filter(selectedNotificationContacts, (c) => c.isInternal), showSelectedContacts: true, contactsToExclude: !isEmpty(selectedOwner.data) ? [{ ssoUsername: selectedOwner.data.ssoUsername }] : [], id: "open-case-rh-notifications", name: "open-case-rh-notifications", multiple: true, contactListParams: {
|
|
111
111
|
internal: false,
|
|
@@ -115,7 +115,7 @@ function RHAssociatesSelector(props) {
|
|
|
115
115
|
React.createElement(Trans, null, "Add me as a watcher"))),
|
|
116
116
|
caseNumber && showRemoveWatchButton() && (React.createElement("div", { ref: toolTipRef, className: "remove-me-as-watcher pf-u-display-inline-block" }, isCurrentUserCaseContact ? (React.createElement(React.Fragment, null,
|
|
117
117
|
React.createElement(Tooltip, { trigger: 'mouseenter focus', reference: toolTipRef, position: TooltipPosition.top, content: React.createElement(Trans, null, "You are case contact and therefore you cannot be removed as watcher") }),
|
|
118
|
-
React.createElement(Button, { variant: "tertiary", onClick: removeCurrentUser, type: "button", isDisabled: true, "data-tracking-id": "case-remove-me-rh-watcher" },
|
|
118
|
+
React.createElement(Button, { variant: "tertiary", onClick: removeCurrentUser, type: "button", isDisabled: true, "data-tracking-id": "case-remove-me-rh-watcher-case-contact" },
|
|
119
119
|
React.createElement(Trans, null, "Remove me as a watcher")))) : (React.createElement(Button, { variant: "secondary", onClick: removeCurrentUser, type: "button", "data-tracking-id": "case-remove-me-rh-watcher" },
|
|
120
120
|
React.createElement(Trans, null, "Remove me as a watcher")))))))));
|
|
121
121
|
}
|
|
@@ -246,7 +246,7 @@ function CaseContactSelector(props) {
|
|
|
246
246
|
if (!canSeeEmailNotifications)
|
|
247
247
|
return React.createElement(React.Fragment, null);
|
|
248
248
|
return (React.createElement("div", { className: "form-group" },
|
|
249
|
-
React.createElement("label", { htmlFor: "
|
|
249
|
+
React.createElement("label", { htmlFor: "get-support-notifications" },
|
|
250
250
|
React.createElement(Trans, null, "Send notifications")),
|
|
251
251
|
loggedInUserRights.data.isOrgAdmin() ? (React.createElement(React.Fragment, null,
|
|
252
252
|
React.createElement("div", { "data-tracking-id": "send-notification-listbox" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KtQuestions.d.ts","sourceRoot":"","sources":["../../../../src/components/ImproveCase/KtQuestions.tsx"],"names":[],"mappings":"AAqBA,UAAU,MAAM;IACZ,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AAGD,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"KtQuestions.d.ts","sourceRoot":"","sources":["../../../../src/components/ImproveCase/KtQuestions.tsx"],"names":[],"mappings":"AAqBA,UAAU,MAAM;IACZ,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AAGD,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,eAiQjC;kBAjQQ,WAAW;;;AAmQpB,eAAe,WAAW,CAAC"}
|
|
@@ -100,7 +100,7 @@ function KtQuestions(props) {
|
|
|
100
100
|
t(KtQuestionConstant.environment),
|
|
101
101
|
' ',
|
|
102
102
|
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 },
|
|
103
|
-
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",
|
|
103
|
+
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", "aria-invalid": environment && (environment === null || environment === void 0 ? void 0 : environment.length) > CASE_DEATILS_ENVIRONMENT_LIMIT ? 'true' : 'false' }),
|
|
104
104
|
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
|
|
105
105
|
? `Description cannot be more than ${CASE_DEATILS_ENVIRONMENT_LIMIT} characters`
|
|
106
106
|
: ''}`),
|
|
@@ -111,7 +111,7 @@ function KtQuestions(props) {
|
|
|
111
111
|
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 },
|
|
112
112
|
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
|
|
113
113
|
? 'true'
|
|
114
|
-
: 'false'
|
|
114
|
+
: 'false' }),
|
|
115
115
|
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
|
|
116
116
|
? `Description cannot be more than ${CASE_DEATILS_PERIODICITYOFISSUE_LIMIT} characters`
|
|
117
117
|
: ''}`),
|
|
@@ -11,7 +11,7 @@ function WidgetFileSelectorImage({ id = '', className = '', isSessionId, isPriva
|
|
|
11
11
|
const dispatchToAttachmentReducer = useContext(AttachmentDispatchContext);
|
|
12
12
|
const { getRootProps, getInputProps, isDragActive, inputRef, rejectedFiles } = useDropzone({
|
|
13
13
|
onDrop: onDrop(dispatchToAttachmentReducer, isSessionId, isPrivate),
|
|
14
|
-
accept: '
|
|
14
|
+
accept: ['.jpeg', '.png', '.jpg', '.gif'],
|
|
15
15
|
maxSize: MAX_SIZE,
|
|
16
16
|
});
|
|
17
17
|
const onLabelClick = (evt) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
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.3.
|
|
77
|
-
"@rh-support/react-context": "1.1.
|
|
76
|
+
"@rh-support/components": "1.3.1",
|
|
77
|
+
"@rh-support/react-context": "1.1.2",
|
|
78
78
|
"@rh-support/types": "0.2.1-beta.58",
|
|
79
79
|
"@rh-support/user-permissions": "1.1.0",
|
|
80
80
|
"@rh-support/utils": "1.0.10-beta.58",
|
|
@@ -145,5 +145,5 @@
|
|
|
145
145
|
"not ie <= 11",
|
|
146
146
|
"not op_mini all"
|
|
147
147
|
],
|
|
148
|
-
"gitHead": "
|
|
148
|
+
"gitHead": "7fcba84fa328794d586b747de2800e470c9c263b"
|
|
149
149
|
}
|