@rh-support/troubleshoot 2.2.82 → 2.2.84
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/CaseDetailsAside.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsAside.js +6 -6
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +4 -4
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +11 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.js +1 -1
- package/lib/esm/components/wizardLayout/WizardAside.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardAside.js +2 -0
- package/lib/esm/scss/_main.scss +3 -3
- package/lib/esm/scss/_pf-overrides.scss +27 -0
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseDetailsAside.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsAside.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAYvE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;CACtB;AAMD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CaseDetailsAside.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsAside.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAYvE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;CACtB;AAMD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,qBAiX7C"}
|
|
@@ -169,22 +169,22 @@ export function CaseDetailsAside(props) {
|
|
|
169
169
|
// To check if the user is ESS Customer and Product has ESS Support
|
|
170
170
|
const isESSCustomer = isSpecialSupportOfferingEnabled((_b = allProducts.data) === null || _b === void 0 ? void 0 : _b.productsResult, selectedProduct);
|
|
171
171
|
return (React.createElement("aside", { className: `grid-aside ${isSideBarExpanded ? '' : 'sidebar-collapsed'} ` },
|
|
172
|
-
React.createElement("pfe-collapse-toggle", { "aria-controls": "case-details-aside-content", onClick: onToggleAside }, isSideBarExpanded ? (React.createElement("div", { className: `sidebar-header ${isExportingPDF ? 'hide-in-pdf' : ''}` },
|
|
173
|
-
React.createElement(
|
|
174
|
-
React.createElement("
|
|
172
|
+
React.createElement("pfe-collapse-toggle", { "aria-label": `${isSideBarExpanded ? t('Collapse sidebar') : t('Expand sidebar')}`, "aria-controls": "case-details-aside-content", onClick: onToggleAside }, isSideBarExpanded ? (React.createElement("div", { className: `sidebar-header ${isExportingPDF ? 'hide-in-pdf' : ''}` },
|
|
173
|
+
React.createElement("div", { className: "case-detail-collapse-panel" },
|
|
174
|
+
React.createElement("p", { className: "case-detail-collapse-label" },
|
|
175
175
|
React.createElement(Trans, null, "Collapse")),
|
|
176
176
|
React.createElement(Icon, { className: "pf-v5-u-ml-auto", size: "md" },
|
|
177
177
|
React.createElement(AngleDoubleRightIcon, null))))) : (React.createElement("div", { className: "pf-v5-u-display-flex pf-v5-u-flex-direction-column sidebar-section-collapsed" },
|
|
178
178
|
React.createElement(Tooltip, { content: t('Expand sidebar'), position: "left" },
|
|
179
|
-
React.createElement(
|
|
179
|
+
React.createElement("div", { className: "case-detail-collapse-panel" },
|
|
180
180
|
React.createElement(Icon, { size: "md" },
|
|
181
181
|
React.createElement(AngleDoubleLeftIcon, null)))),
|
|
182
182
|
canSeeToggleCustomerView && (React.createElement(Tooltip, { content: viewAsCustomer ? t('External view') : t('Internal view'), position: "left" },
|
|
183
|
-
React.createElement(Button, { variant: "link", onClick: () => setSectionToScollRef(toggleCustomerViewRef), className: "sidebar-section-toggle-btn" },
|
|
183
|
+
React.createElement(Button, { variant: "link", onClick: () => setSectionToScollRef(toggleCustomerViewRef), className: "sidebar-section-toggle-btn", "aria-label": viewAsCustomer ? t('External view') : t('Internal view') },
|
|
184
184
|
React.createElement(Icon, { size: "md", className: viewAsCustomer ? 'blueLock' : 'greyLock' },
|
|
185
185
|
React.createElement(LockIcon, null))))),
|
|
186
186
|
!isLoadingRecommendations && allDocs.length > 0 && (React.createElement(Tooltip, { content: t('Top recommendations'), position: "left" },
|
|
187
|
-
React.createElement(Button, { variant: "link", onClick: () => setSectionToScollRef(topSolutionsRef), className: "sidebar-section-toggle-btn" },
|
|
187
|
+
React.createElement(Button, { variant: "link", onClick: () => setSectionToScollRef(topSolutionsRef), className: "sidebar-section-toggle-btn", "aria-label": t('Top recommendations') },
|
|
188
188
|
React.createElement(Icon, { size: "md" },
|
|
189
189
|
React.createElement(ListIcon, null))))),
|
|
190
190
|
!caseEscalations.isFetching && (canCreateICE || (canCreateRME && isCreateRMEVisible)) && (React.createElement(Tooltip, { content: t('Request an escalation'), position: "left" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseDetailsTabs.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsTabs.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAa,MAAM,kBAAkB,CAAC;AAwBlE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,mBAAmB,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AACD,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CaseDetailsTabs.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsTabs.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAa,MAAM,kBAAkB,CAAC;AAwBlE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,mBAAmB,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AACD,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,qBAsN5C"}
|
|
@@ -109,11 +109,11 @@ export function CaseDetailsTabs(props) {
|
|
|
109
109
|
return tabIndex > -1 ? tabIndex : activeTabKey;
|
|
110
110
|
};
|
|
111
111
|
const isTabVisibleInPdfExport = (tab) => tab.title === CaseDetailsTabsEnum.DISCUSSION && pdfOption === 'Reduced' ? false : true;
|
|
112
|
-
return (React.createElement("div", { className: "case-details-tabs", ref: props.tabdRef },
|
|
113
|
-
React.createElement(Tabs, { className: isExportingPDF ? 'hide-in-pdf' : '', activeKey: getActiveTabKey(), component: TabsComponent.nav, onSelect: handleTabClick,
|
|
112
|
+
return (React.createElement("div", { className: "case-details-tabs", role: "region", ref: props.tabdRef },
|
|
113
|
+
React.createElement(Tabs, { className: isExportingPDF ? 'hide-in-pdf' : '', activeKey: getActiveTabKey(), component: TabsComponent.nav, onSelect: handleTabClick, "aria-label": t('Case details tabs') }, tabsToRender.map((tab, index) => (React.createElement(Tab, { eventKey: index, tabContentRef: tab.ref, tabContentId: `pf-tab-${index}-${tab.title.split(' ')[0]}-tabpanel`, key: tab.title, href: `#${props.basePath}/${tab.routePath}`, "data-tracking-id": tab['data-tracking-id'], title: React.createElement(TabTitleText, null,
|
|
114
114
|
React.createElement(Trans, null, tab.title)) })))),
|
|
115
115
|
React.createElement("div", { className: "case-details-tabs-content pf-v5-u-pt-xl" }, tabsToRender.map((tab, index) => {
|
|
116
|
-
return index === getActiveTabKey() && !isExportingPDF ? (React.createElement(TabContent, { eventKey: index, key: tab.key, id: tab.
|
|
116
|
+
return index === getActiveTabKey() && !isExportingPDF ? (React.createElement(TabContent, { eventKey: index, key: tab.key, id: `pf-tab-${index}-${tab.title.split(' ')[0]}-tabpanel`, ref: tab.ref, "aria-label": tab.title, hidden: isExportingPDF ? !isTabVisibleInPdfExport(tab) : index !== getActiveTabKey() },
|
|
117
117
|
React.createElement(ErrorBoundary, { errorMsgInfo: {
|
|
118
118
|
message: t(`There was an error loading case ${tab.key}`),
|
|
119
119
|
} },
|
|
@@ -123,7 +123,7 @@ export function CaseDetailsTabs(props) {
|
|
|
123
123
|
React.createElement(Trans, null, tab.title))),
|
|
124
124
|
tab.component)))) : isExportingPDF ? (React.createElement(React.Fragment, null,
|
|
125
125
|
React.createElement("div", { className: "page-break" }),
|
|
126
|
-
React.createElement(TabContent, { eventKey: index, key: tab.key, id: tab.
|
|
126
|
+
React.createElement(TabContent, { eventKey: index, key: tab.key, id: `pf-tab-${index}-${tab.title.split(' ')[0]}-tabpanel`, ref: tab.ref, "aria-label": tab.title, hidden: isExportingPDF ? !isTabVisibleInPdfExport(tab) : index !== getActiveTabKey() },
|
|
127
127
|
React.createElement(ErrorBoundary, { errorMsgInfo: {
|
|
128
128
|
message: t(`There was an error loading case ${tab.key}`),
|
|
129
129
|
} },
|
|
@@ -309,7 +309,7 @@ export const CaseSolutions = forwardRef((props, ref) => {
|
|
|
309
309
|
{ title: '10', value: 10 },
|
|
310
310
|
] }))))),
|
|
311
311
|
topRecommendations.length > 0 && (React.createElement("div", { className: "card card-white card-support recommendations", ref: ref },
|
|
312
|
-
React.createElement("h3", { className: "card-heading" },
|
|
312
|
+
React.createElement("h3", { className: "card-heading knowledgebase-recommendations" },
|
|
313
313
|
React.createElement(Trans, null, "Knowledgebase recommendations")),
|
|
314
314
|
React.createElement("div", { className: "card-body" },
|
|
315
315
|
React.createElement(PaginatedList, { id: "case-details-top-recommendations", className: "list-icons list-icons-flush", listItems: topRecommendations
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.tsx"],"names":[],"mappings":"AAQA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAgB/D,wBAAgB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"CaseContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.tsx"],"names":[],"mappings":"AAQA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAgB/D,wBAAgB,sBAAsB,sBAoPrC"}
|
|
@@ -152,11 +152,11 @@ export function CaseContactPhoneNumber() {
|
|
|
152
152
|
!isExportingPDF ? ContactPhoneNumberPopOver() : ''),
|
|
153
153
|
React.createElement(InputGroupText, null,
|
|
154
154
|
React.createElement(PhoneInput, { phoneValue: localFullPhoneState, onPhoneValueChange: onPhoneChange, onCountryCodeChange: onCountryCodeChange, validations: isPhoneNumberValid, isDisabled: isCasePhoneUpdating || isCaseOwnerUpdating, isLoading: isCasePhoneUpdating, "data-tracking-id": "case-details-page-supplied-phone", invalid: invalid, setInvalid: setInvalid }),
|
|
155
|
-
React.createElement("button", { className: "btn btn-app btn-link pf-v5-u-ml-sm", type: "button", "data-tracking-id": "case-details-page-supplied-phone-save", onClick: () => onSave(), disabled: (localFullPhoneState === null || localFullPhoneState === void 0 ? void 0 : localFullPhoneState.length) > PHONE_LIMIT ||
|
|
155
|
+
React.createElement("button", { className: "btn btn-app btn-link pf-v5-u-ml-sm", type: "button", "data-tracking-id": "case-details-page-supplied-phone-save", onClick: () => onSave(), "aria-label": "Save", disabled: (localFullPhoneState === null || localFullPhoneState === void 0 ? void 0 : localFullPhoneState.length) > PHONE_LIMIT ||
|
|
156
156
|
localFullPhoneState === phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber ||
|
|
157
157
|
(isSaveClicked && isPhoneValueCannotBeSaved), style: { display: isExportingPDF ? 'none' : '' } },
|
|
158
158
|
React.createElement(CheckIcon, null)),
|
|
159
|
-
React.createElement("button", { className: "btn btn-app btn-link", type: "button", onClick: onClear, "data-tracking-id": "case-details-page-supplied-phone-cancel", style: { display: isExportingPDF ? 'none' : '' }, disabled: isEmpty(localFullPhoneState) },
|
|
159
|
+
React.createElement("button", { className: "btn btn-app btn-link", type: "button", onClick: onClear, "data-tracking-id": "case-details-page-supplied-phone-cancel", style: { display: isExportingPDF ? 'none' : '' }, disabled: isEmpty(localFullPhoneState), "aria-label": "Clear" },
|
|
160
160
|
React.createElement(TimesIcon, { color: "#6A6E73" }))),
|
|
161
161
|
!invalid &&
|
|
162
162
|
(localFullPhoneState === null || localFullPhoneState === void 0 ? void 0 : localFullPhoneState.length) < PHONE_LIMIT &&
|
|
@@ -140,7 +140,7 @@ const CaseAttachment = React.forwardRef((props, ref) => {
|
|
|
140
140
|
React.createElement("div", { className: "clip-content-wrapper code-block" },
|
|
141
141
|
React.createElement("code", { ref: clipboardRef }, props.attachment.checksum)),
|
|
142
142
|
React.createElement(Tooltip, { position: TooltipPosition.top, content: clipboardText, trigger: "click" },
|
|
143
|
-
React.createElement("button", { className: "nimbus-icon-clipboard clip-code-raw-btn xs-icon",
|
|
143
|
+
React.createElement("button", { "aria-label": "Copy to clipboard", className: "nimbus-icon-clipboard clip-code-raw-btn xs-icon", onClick: copyToClipboard }))))),
|
|
144
144
|
React.createElement(InlineEdit, { labelProps: { htmlFor: `case-details-file-description-${props.attachment.id}` }, allowInlineEdit: true, labelContent: React.createElement(Trans, null, "Description"), content: React.createElement("div", { className: "clip-content-wrapper code-block" }, props.attachment.description), hideSaveCancel: false, onSave: onDescriptionSave, onCancel: onDescriptionCancel, dataTrackingId: "case-details-file-description", initialIsEditing: props.attachment.description ? false : true, saveDisabled: isCaseAttachmentDescriptionLengthy ||
|
|
145
145
|
isCaseAttachmentDescription ||
|
|
146
146
|
attachmentDescription === props.attachment.description ||
|
|
@@ -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;AAqB1G,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,qBAujBnD"}
|
|
@@ -8,6 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { caseAttachments } from '@cee-eng/hydrajs';
|
|
11
|
+
import { Alert } from '@patternfly/react-core';
|
|
11
12
|
import { AlertMessage, AlertType, Dropdown, ErrorBoundary, LoadingIndicator, MultiSelectDropDownList, ToastNotification, } from '@rh-support/components';
|
|
12
13
|
import { useGlobalStateContext } from '@rh-support/react-context';
|
|
13
14
|
import { AbilityContext, CaseDetailsFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
@@ -41,6 +42,7 @@ let cellMeasureCache = new CellMeasurerCache({
|
|
|
41
42
|
defaultHeight: 100,
|
|
42
43
|
});
|
|
43
44
|
export default function CaseDiscussion(props) {
|
|
45
|
+
var _a;
|
|
44
46
|
const { t } = useTranslation();
|
|
45
47
|
const { isPostingRemoteRequestCommentCompleted, screenSessionRequested } = useCaseSelector((state) => ({
|
|
46
48
|
isPostingRemoteRequestCommentCompleted: state.isPostingRemoteRequestCommentCompleted,
|
|
@@ -53,7 +55,7 @@ export default function CaseDiscussion(props) {
|
|
|
53
55
|
(urlSearchParams === null || urlSearchParams === void 0 ? void 0 : urlSearchParams.chatId));
|
|
54
56
|
const activeDiscussionElementRef = useRef(null);
|
|
55
57
|
const { sort, discussionFiltersListState, allDiscussions, replyCommentText, replyCommentCreator } = useCaseDiscussionTabStateContext();
|
|
56
|
-
const { globalMetadataState: { loggedInUsersAccount, navBarRef }, } = useGlobalStateContext();
|
|
58
|
+
const { globalMetadataState: { loggedInUsersAccount, loggedInUserRights, navBarRef }, } = useGlobalStateContext();
|
|
57
59
|
const dispatchDiscussion = useCaseDiscussionTabDispatchContext();
|
|
58
60
|
const caseDispatch = useCaseDispatch();
|
|
59
61
|
const { caseDetailsPageState: { caseFeedbacksHydra, caseAttachmentHydra, caseExternalTrackersUpdate }, } = useCaseDetailsPageStateContext();
|
|
@@ -328,6 +330,14 @@ export default function CaseDiscussion(props) {
|
|
|
328
330
|
}, [isPostingRemoteRequestCommentCompleted]);
|
|
329
331
|
return (React.createElement(React.Fragment, null,
|
|
330
332
|
React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading post comment section') } },
|
|
333
|
+
((_a = loggedInUserRights === null || loggedInUserRights === void 0 ? void 0 : loggedInUserRights.data) === null || _a === void 0 ? void 0 : _a.isInternal()) && (React.createElement(Alert, { variant: "warning", isInline: true, title: t('Critical reminder'), className: "pf-v5-u-mb-md" },
|
|
334
|
+
React.createElement("p", null,
|
|
335
|
+
React.createElement(Trans, null,
|
|
336
|
+
"Before posting any comments to a case ",
|
|
337
|
+
React.createElement("b", null, "confirm"),
|
|
338
|
+
" that your content and the case screen are for the ",
|
|
339
|
+
React.createElement("b", null, "correct"),
|
|
340
|
+
" customer case. This avoids accidental breaches of customer contracts and confidentiality obligations.")))),
|
|
331
341
|
React.createElement(AttachmentContextProvider, null,
|
|
332
342
|
React.createElement(PostComment, { caseNumber: caseNumber, allDiscussions: allDiscussions, onCommentAdded: onCommentAdded, onAttachmentAdded: onAttachmentAdded, commentText: replyCommentText, onCommentClear: resetReplyComment, commentCreator: replyCommentCreator, defaultIsPublic: replyingToPrivateComment === null ? replyingToPrivateComment : !replyingToPrivateComment }))),
|
|
333
343
|
React.createElement(LoadingIndicator, { className: "text-center", isInline: true, show: caseAttachmentHydra.isFetching ||
|
|
@@ -339,7 +339,7 @@ export function PostComment(props) {
|
|
|
339
339
|
canPostPrivateComments && (React.createElement("span", { className: "post-comment-checkbox" },
|
|
340
340
|
React.createElement(Checkbox, { label: t('Private'), isChecked: !isPublic && canPostPrivateComments, onChange: handleCheckboxToggle, "aria-label": t('Private'), id: "private-comment", name: "private-comment", "data-tracking-id": "private-comment-checkbox" }))))),
|
|
341
341
|
React.createElement(FileUpload, { className: `file-upload-section ${hasSomeSelectedFilesLocal ? 'card card-white pf-v5-u-mt-lg pf-v5-u-p-lg' : ''}`, idToUploadTo: caseNumber, onUploadClick: onFileUploadClick, isSessionId: false, isSecureSupport: loggedInUsersAccount.data.secureSupport, isPrivate: !isPublic, autoUploadOnSelect: true, showDescriptionInfoMsg: true }),
|
|
342
|
-
React.createElement("span", Object.assign({}, getRootProps()),
|
|
342
|
+
React.createElement("span", Object.assign({}, getRootProps(), { tabIndex: -1 }),
|
|
343
343
|
React.createElement("input", Object.assign({ style: { display: 'none !important' } }, getInputProps()))),
|
|
344
344
|
!loggedInUsersAccount.data.secureSupport && (React.createElement(NewFeaturePopoverAnnouncement, { "aria-label": "Attach and embed images! You'll find all of your uploaded images here.", featureName: FeatureAnnouncementKeys.MARKDOWN_INLINE_IMAGES, sectionRef: componentRef, bodyContent: React.createElement("div", null,
|
|
345
345
|
React.createElement(Trans, null, "Attach and embed images! You'll find all of your uploaded images here.")), triggerRef: () => document.getElementById('md-editor-toolbar-file-selector') }))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileSelectorButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/fileUpload/fileSelectors/FileSelectorButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,UAAU,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC;IACvD,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,iBAAS,kBAAkB,CAAC,EACxB,WAAW,EACX,EAAO,EACP,SAA4B,EAC5B,WAA6B,EAC7B,SAAiB,EACjB,GAAG,QAAQ,EACd,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"FileSelectorButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/fileUpload/fileSelectors/FileSelectorButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,UAAU,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC;IACvD,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,iBAAS,kBAAkB,CAAC,EACxB,WAAW,EACX,EAAO,EACP,SAA4B,EAC5B,WAA6B,EAC7B,SAAiB,EACjB,GAAG,QAAQ,EACd,EAAE,MAAM,qBA4BR;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -21,7 +21,7 @@ function FileSelectorButton(_a) {
|
|
|
21
21
|
const { getRootProps, getInputProps } = useDropzone({
|
|
22
22
|
onDrop: onDrop(dispatchToAttachmentReducer, isSessionId, isPrivate),
|
|
23
23
|
});
|
|
24
|
-
return (React.createElement("span", Object.assign({ className: "upload-another-file", "data-tracking-id": "file-selector-btn-wrapper" }, getRootProps()),
|
|
24
|
+
return (React.createElement("span", Object.assign({ className: "upload-another-file", "data-tracking-id": "file-selector-btn-wrapper" }, getRootProps(), { tabIndex: -1 }),
|
|
25
25
|
React.createElement("label", { className: "sr-only", htmlFor: "upload-btn" },
|
|
26
26
|
React.createElement(Trans, null, "Upload new file")),
|
|
27
27
|
React.createElement("input", Object.assign({ value: "", style: { display: 'none !important' }, id: `${id !== null && id !== void 0 ? id : 'upload-btn'}` }, getInputProps())),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardAside.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardAside.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WizardAside.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardAside.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,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,qBA2CjC;kBA3CQ,WAAW;;;AA6CpB,eAAe,WAAW,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ability, CaseListFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
2
2
|
import { PreviousCaseTypes } from '@rh-support/utils';
|
|
3
3
|
import isEqual from 'lodash/isEqual';
|
|
4
|
+
import isUndefined from 'lodash/isUndefined';
|
|
4
5
|
import React, { useContext } from 'react';
|
|
5
6
|
import { useCaseSelector } from '../../context/CaseContext';
|
|
6
7
|
import { RouteContext } from '../../context/RouteContext';
|
|
@@ -23,6 +24,7 @@ function WizardAside(props) {
|
|
|
23
24
|
const canUseSessionManagement = ability.can(resourceActions.CREATE, resources.SESSION_TRACKING);
|
|
24
25
|
const canShowFileUploadWidget = () => canAddAttachments &&
|
|
25
26
|
!props.isAttachmentUploadModalOpen &&
|
|
27
|
+
!isUndefined(activeSection) &&
|
|
26
28
|
!hideFileUploadSidebarWidgetSections.includes(activeSection);
|
|
27
29
|
const canshowEARuleWidget = showSideBarEARuleWidgetSections.includes(activeSection);
|
|
28
30
|
const canShowClusterIdReportWidget = showSideBarClusterIdRuleWidgetSections.includes(activeSection);
|
package/lib/esm/scss/_main.scss
CHANGED
|
@@ -35,7 +35,7 @@ div.support-grid-case-details.support-case {
|
|
|
35
35
|
|
|
36
36
|
.grid-aside {
|
|
37
37
|
grid-area: aside;
|
|
38
|
-
background-color:
|
|
38
|
+
background-color: var(--pf-v5-global--palette--black-200);
|
|
39
39
|
padding: 1rem;
|
|
40
40
|
display: none;
|
|
41
41
|
|
|
@@ -398,7 +398,7 @@ div.support-grid-case-details.support-case {
|
|
|
398
398
|
}
|
|
399
399
|
|
|
400
400
|
.sidebar-header {
|
|
401
|
-
background-color: #
|
|
401
|
+
background-color: #e0e0e0;
|
|
402
402
|
border-top: 1px solid #ccc;
|
|
403
403
|
border-bottom: 1px solid #ccc;
|
|
404
404
|
|
|
@@ -688,7 +688,7 @@ div.pf-v5-c-alert.ea-rule-alert > div.pf-v5-c-alert__description > p {
|
|
|
688
688
|
.customer-view-switch-label {
|
|
689
689
|
font-size: 15px;
|
|
690
690
|
font-weight: 700;
|
|
691
|
-
color:
|
|
691
|
+
color: #252525;
|
|
692
692
|
}
|
|
693
693
|
|
|
694
694
|
#case-details-aside-content[pfe-expanded] {
|
|
@@ -664,3 +664,30 @@ button.pf-m-plain.manage-bookmark-info-icon-button {
|
|
|
664
664
|
--pf-c-button--m-plain--Color: var(--pf-v5-global--palette--black-900);
|
|
665
665
|
color: var(--pf-v5-global--palette--black-900);
|
|
666
666
|
}
|
|
667
|
+
|
|
668
|
+
.case-detail-collapse-panel {
|
|
669
|
+
display: flex;
|
|
670
|
+
align-items: center;
|
|
671
|
+
justify-content: space-between;
|
|
672
|
+
width: 100%;
|
|
673
|
+
padding: 1.8rem 1.5rem;
|
|
674
|
+
color: var(--pf-v5-global--palette--blue-500);
|
|
675
|
+
font-size: var(--pf-v5-global--FontSize--md);
|
|
676
|
+
font-weight: 500;
|
|
677
|
+
cursor: pointer;
|
|
678
|
+
&:hover {
|
|
679
|
+
background-color: #d1d1d1;
|
|
680
|
+
color: var(--pf-v5-global--palette--blue-500);
|
|
681
|
+
p.case-detail-collapse-label {
|
|
682
|
+
text-decoration: underline;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
p.case-detail-collapse-label {
|
|
686
|
+
margin-bottom: 0;
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
#rh-support #rh-support-main .card.card-support .card-heading.knowledgebase-recommendations {
|
|
691
|
+
background-color: var(--pf-v5-global--palette--black-600);
|
|
692
|
+
border: 1px solid var(--pf-v5-global--palette--black-600);
|
|
693
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.84",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"@progress/kendo-licensing": "1.3.5",
|
|
62
62
|
"@progress/kendo-react-pdf": "^5.16.0",
|
|
63
63
|
"@redux-devtools/extension": "^3.3.0",
|
|
64
|
-
"@rh-support/components": "2.1.
|
|
65
|
-
"@rh-support/react-context": "2.1.
|
|
64
|
+
"@rh-support/components": "2.1.45",
|
|
65
|
+
"@rh-support/react-context": "2.1.50",
|
|
66
66
|
"@rh-support/types": "2.0.3",
|
|
67
67
|
"@rh-support/user-permissions": "2.1.32",
|
|
68
68
|
"@rh-support/utils": "2.1.22",
|
|
@@ -132,5 +132,5 @@
|
|
|
132
132
|
"defaults and supports es6-module",
|
|
133
133
|
"maintained node versions"
|
|
134
134
|
],
|
|
135
|
-
"gitHead": "
|
|
135
|
+
"gitHead": "81feae5875e3bd90298890a7516b43851f6628ed"
|
|
136
136
|
}
|