@rh-support/troubleshoot 2.2.82 → 2.2.83

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.
@@ -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,qBA2W7C"}
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(Button, { variant: "link", isInline: true, title: t('Collapse sidebar') },
174
- React.createElement("span", null,
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(Button, { variant: "link" },
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,qBAuN5C"}
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, role: "region", "aria-label": t('Case details tabs') }, tabsToRender.map((tab, index) => (React.createElement(Tab, { eventKey: index, tabContentRef: tab.ref, tabContentId: tab.key, key: tab.title, href: `#${props.basePath}/${tab.routePath}`, "data-tracking-id": tab['data-tracking-id'], title: React.createElement(TabTitleText, null,
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.key, ref: tab.ref, "aria-label": tab.title, hidden: isExportingPDF ? !isTabVisibleInPdfExport(tab) : index !== getActiveTabKey() },
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.key, ref: tab.ref, "aria-label": tab.title, hidden: isExportingPDF ? !isTabVisibleInPdfExport(tab) : index !== getActiveTabKey() },
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,sBAkPrC"}
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", "aria-hidden": "true", onClick: copyToClipboard }))))),
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 ||
@@ -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,qBAuBR;AAED,eAAe,kBAAkB,CAAC"}
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())),
@@ -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: #e7e7e7;
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: #dedede;
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: var(--pf-v5-global--palette--black-600);
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.82",
3
+ "version": "2.2.83",
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.44",
65
- "@rh-support/react-context": "2.1.49",
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": "ddd27b6725f89a2144082517f0c5f5c9b9cae0d3"
135
+ "gitHead": "f779a81c8186fbafef56ce2344429122f1603248"
136
136
  }