@rh-support/manage 2.5.38 → 2.5.40

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":"ConfigsTable.d.ts","sourceRoot":"","sources":["../../../../src/components/Configs/ConfigsTable.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,eAAO,MAAM,YAAY,yBA6JxB,CAAC"}
1
+ {"version":3,"file":"ConfigsTable.d.ts","sourceRoot":"","sources":["../../../../src/components/Configs/ConfigsTable.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,eAAO,MAAM,YAAY,yBA8JxB,CAAC"}
@@ -69,9 +69,10 @@ export const ConfigsTable = () => {
69
69
  },
70
70
  {
71
71
  // @ts-ignore
72
- cell: (data) => () => {
72
+ cell: (data) => {
73
73
  const value = data.fieldValue;
74
74
  const name = data.fieldName;
75
+ console.log(data);
75
76
  if (value === '0' || value === '1') {
76
77
  return (React.createElement(ConfigSwitch, { id: data.id, isChecked: value === '1' ? true : false, onChange: onUpdate, isUpdating: isUpdating, fieldName: name }));
77
78
  }
@@ -162,7 +162,7 @@ export const ManageGroupUsers = () => {
162
162
  React.createElement(Trans, null, "Customers can organize and group related cases and filter on the case list page, but they cannot change permissions for case groups unless the Case Group ACL is enabled."))),
163
163
  React.createElement("header", null,
164
164
  React.createElement("h2", null, t('Groups')),
165
- React.createElement("p", null, t('Add or edit groups to easily filter while searching through cases.'))),
165
+ React.createElement("p", null, t('To filter cases while searching, add or edit groups.'))),
166
166
  React.createElement("div", { className: "toolbar" },
167
167
  React.createElement(GroupSelect, { isDisabled: isFetching || disableGroupSelect, onSelect: onGroupSelect }),
168
168
  React.createElement("span", { className: "toolbar-right" },
@@ -100,7 +100,7 @@ export function PartnershipsList() {
100
100
  {
101
101
  id: 'customer-partnership-access-level',
102
102
  title: t('Default access level'),
103
- sortable: false,
103
+ sortable: true,
104
104
  cellWidth: 30,
105
105
  cell: (data) => data.partnerCaseAccess,
106
106
  },
@@ -1 +1 @@
1
- {"version":3,"file":"RequestCollaborationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePartnerships/RequestCollaborationModal.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACrC;AAID,eAAO,MAAM,yBAAyB,UAAW,MAAM,sBAkOtD,CAAC"}
1
+ {"version":3,"file":"RequestCollaborationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePartnerships/RequestCollaborationModal.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACrC;AAID,eAAO,MAAM,yBAAyB,UAAW,MAAM,sBAqOtD,CAAC"}
@@ -139,9 +139,8 @@ export const RequestCollaborationModal = (props) => {
139
139
  React.createElement("code", { ref: clipboardRef }, generatedUrl)),
140
140
  React.createElement(Tooltip, { position: TooltipPosition.top, content: clipboardText, trigger: "click" },
141
141
  React.createElement("button", { className: "nimbus-icon-clipboard clip-code-raw-btn xs-icon", "aria-hidden": "true", onClick: onClickOnCopyToClipboardButton, "data-tracking-id": "request-collaboration-link-copy-button", type: "button" }))),
142
- React.createElement("p", { className: "pf-v6-u-text-color-status-danger" },
142
+ React.createElement("p", { className: !isCopyClicked && isDoneClicked ? 'pf-v6-u-text-color-status-danger' : '' },
143
143
  React.createElement(Trans, null,
144
- ' ',
145
144
  "Please ",
146
145
  React.createElement("strong", null, "copy and send"),
147
146
  " this unique link to your customer for approval.")))) : (React.createElement(Trans, null, "Partnership request expiration date is extended."))))),
@@ -35,7 +35,7 @@ export function PreferencesACL() {
35
35
  }
36
36
  setIsAclLoading(false);
37
37
  });
38
- return (React.createElement(Card, { className: "preference-card" },
38
+ return (React.createElement(Card, { variant: "secondary", className: "preference-card" },
39
39
  React.createElement(CardHeader, null,
40
40
  React.createElement("h3", null,
41
41
  React.createElement(Trans, null, "Case Group Access Control List"))),
@@ -140,7 +140,7 @@ export function PreferencesCaseCreate(props) {
140
140
  }
141
141
  // eslint-disable-next-line react-hooks/exhaustive-deps
142
142
  }, [caseLanguages]);
143
- return (React.createElement(Card, { className: "preference-card" },
143
+ return (React.createElement(Card, { variant: "secondary", className: "preference-card" },
144
144
  React.createElement(CardHeader, null,
145
145
  React.createElement("h3", null,
146
146
  React.createElement(Trans, null, "Case create"))),
@@ -85,7 +85,7 @@ export function PreferencesCaseSearch(props) {
85
85
  return emptyPlaceHolderList;
86
86
  }; // we are now adding "restore last" as the last of the array and "select a saved search" as the first option.
87
87
  const titleId = 'auto-restore-preference-dropdown';
88
- return (React.createElement(Card, { className: "preference-card" },
88
+ return (React.createElement(Card, { variant: "secondary", className: "preference-card" },
89
89
  React.createElement(CardHeader, null,
90
90
  React.createElement("h3", null,
91
91
  React.createElement(Trans, null, "Case search"))),
@@ -192,7 +192,7 @@ export function PreferencesCaseView(props) {
192
192
  React.createElement(Popover, { "aria-label": "Preferred-default-case-view-popover", position: PopoverPosition.top, bodyContent: React.createElement("p", { className: 'pref-case-popover-text' },
193
193
  React.createElement(Trans, null, "Choose the default view you want to see when looking at a case")), showClose: false },
194
194
  React.createElement(InfoCircleIcon, { "aria-label": "Preferred-default-case-view-info-icon", className: "pf-v6-u-ml-sm" }))));
195
- return (React.createElement(Card, { className: "preference-card" },
195
+ return (React.createElement(Card, { variant: "secondary", className: "preference-card" },
196
196
  React.createElement(CardHeader, null,
197
197
  React.createElement("h3", null,
198
198
  React.createElement(Trans, null, "Case view"))),
@@ -111,7 +111,7 @@ export const NotificationEmailsModal = (props) => {
111
111
  React.createElement(ModalBody, null,
112
112
  React.createElement(Form, null,
113
113
  React.createElement(FormGroup, { label: t('Email address'), isRequired: true, fieldId: "email-notification-first-emailaddress" },
114
- React.createElement(TextInput, { value: email, isRequired: true, type: "text", onChange: (_event, localemail) => onEmailChange(localemail), "aria-label": t('Email address'), placeholder: t('Email address'), maxLength: 254, validated: isValidEmail && !isEmailDuplicate ? ValidatedOptions.default : ValidatedOptions.error, isDisabled: props.isAddingNotificationEmail }),
114
+ React.createElement(TextInput, { value: email, isRequired: true, type: "text", onChange: (_event, localemail) => onEmailChange(localemail), "aria-label": t('Email address'), placeholder: t('Email address'), maxLength: 254, validated: isValidEmail && !isEmailDuplicate ? ValidatedOptions.default : ValidatedOptions.error, isDisabled: !props.isAddingNotificationEmail }),
115
115
  !(isValidEmail && !isEmailDuplicate) && (React.createElement(FormHelperText, null,
116
116
  React.createElement(HelperText, null,
117
117
  React.createElement(HelperTextItem, { variant: ValidatedOptions.error }, !isValidEmail
@@ -1 +1 @@
1
- {"version":3,"file":"PerformanceMetrics.d.ts","sourceRoot":"","sources":["../../../../../src/components/TopContentManagement/ContentUsage/PerformanceMetrics.tsx"],"names":[],"mappings":"AAUA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKlC,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CAC3B;AACD,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,MAAM,CA4CzC,CAAC"}
1
+ {"version":3,"file":"PerformanceMetrics.d.ts","sourceRoot":"","sources":["../../../../../src/components/TopContentManagement/ContentUsage/PerformanceMetrics.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKlC,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CAC3B;AACD,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,MAAM,CA4CzC,CAAC"}
@@ -1,12 +1,12 @@
1
- import { Button, Modal, ModalBody, ModalFooter, ModalHeader, ModalVariant, Title, TitleSizes, } from '@patternfly/react-core';
1
+ import { Button, Modal, ModalBody, ModalFooter, ModalHeader, ModalVariant } from '@patternfly/react-core';
2
2
  import React from 'react';
3
3
  import { Trans } from 'react-i18next';
4
4
  import { PerformanceMetricClickCount } from './PerformanceMetricClickCount';
5
5
  export const PerformanceMetrics = ({ isModalOpen, onHideModal, needsAttention, contentId, title, lastModifiedBy, selectedVersion, }) => {
6
6
  return (React.createElement(Modal, { variant: ModalVariant.small, id: "top-content-performance-metric", "aria-label": "top-content-performance-metric", isOpen: isModalOpen, onClose: onHideModal },
7
7
  React.createElement(ModalHeader, null,
8
- React.createElement(Title, { headingLevel: "h1", size: TitleSizes['2xl'] },
9
- React.createElement(Trans, null, " Performance metrics "))),
8
+ React.createElement("h2", { className: "pf-v6-u-mb-0" },
9
+ React.createElement(Trans, null, "Performance metrics"))),
10
10
  React.createElement(ModalBody, null,
11
11
  React.createElement("p", { className: "pf-v6-u-pb-lg pf-v6-u-pt-sm" }, "Better understand the Performance for the top content resources."),
12
12
  React.createElement("div", { className: "pf-v6-u-pb-xs top-content-tooltip-view-metric-label" }, title),
@@ -1 +1 @@
1
- {"version":3,"file":"VersionPerformanceMetrics.d.ts","sourceRoot":"","sources":["../../../../../src/components/TopContentManagement/ContentUsage/VersionPerformanceMetrics.tsx"],"names":[],"mappings":"AAgBA,OAAc,EAAE,EAAE,EAAgC,MAAM,OAAO,CAAC;AAUhE,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;CAC3B;AACD,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC,MAAM,CAuGhD,CAAC"}
1
+ {"version":3,"file":"VersionPerformanceMetrics.d.ts","sourceRoot":"","sources":["../../../../../src/components/TopContentManagement/ContentUsage/VersionPerformanceMetrics.tsx"],"names":[],"mappings":"AAcA,OAAc,EAAE,EAAE,EAAgC,MAAM,OAAO,CAAC;AAUhE,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;CAC3B;AACD,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC,MAAM,CAsGhD,CAAC"}
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { pcm } from '@cee-eng/hydrajs';
11
- import { Button, ButtonVariant, Flex, FlexItem, Modal, ModalBody, ModalFooter, ModalHeader, ModalVariant, Title, TitleSizes, } from '@patternfly/react-core';
11
+ import { Button, ButtonVariant, Flex, FlexItem, Modal, ModalBody, ModalFooter, ModalHeader, ModalVariant, } from '@patternfly/react-core';
12
12
  import { useFetch } from '@rh-support/components';
13
13
  import isEmpty from 'lodash/isEmpty';
14
14
  import React, { useEffect, useMemo, useState } from 'react';
@@ -51,11 +51,10 @@ export const VersionPerformanceMetrics = ({ isModalOpen, onHideModal, selectedVe
51
51
  const versionOptions = isMajorProjectVersion ? versionDifference : [selectedVersionProp];
52
52
  return (React.createElement(Modal, { variant: ModalVariant.large, id: "top-content-major-version-performance-metric", "aria-label": "top-content-performance-metric", isOpen: isModalOpen, onClose: onModalClose, className: "performance-metrics-modal" },
53
53
  React.createElement(ModalHeader, { className: "sticky-header" },
54
- React.createElement(Title, { headingLevel: "h1", size: TitleSizes['2xl'] },
55
- React.createElement(Trans, null, " Performance metrics ")),
56
- React.createElement("p", { className: "pf-v6-u-pt-sm" },
54
+ React.createElement("h2", { className: "pf-v6-u-mb-0" },
55
+ React.createElement(Trans, null, "Performance metrics")),
56
+ React.createElement("p", { className: "pf-v6-u-p-0 pf-v6-u-mb-0" },
57
57
  React.createElement(Trans, null, "Better understand the Performance for the top content resources.")),
58
- React.createElement("br", null),
59
58
  React.createElement(Flex, { justifyContent: { default: 'justifyContentSpaceBetween' } },
60
59
  React.createElement(FlexItem, { className: "pf-v6-u-w-50 pf-v6-u-pr-md", style: { marginRight: 'unset' } },
61
60
  React.createElement(PerformanceMetricsSelect, { placeholderText: t(!isEmpty(versionOptions) ? 'Select a version' : 'No versions available'), title: t(`Version using ${selectedVersionProp}`), onSelectCallback: onVersionSelect, options: versionOptions, optionValue: (option) => option, isLoading: isLoading, isDisabled: isEmpty(versionOptions) })),
@@ -415,10 +415,6 @@ svg.hostnameSpinner {
415
415
  line-height: var(--pf-t--global--font--line-height--body);
416
416
  }
417
417
 
418
- .pf-v6-c-date-picker__input input[aria-label='Date picker'] {
419
- min-width: 10rem;
420
- }
421
-
422
418
  .pf-v6-c-date-picker__input button {
423
419
  flex: 0 0 auto;
424
420
  height: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/manage",
3
- "version": "2.5.38",
3
+ "version": "2.5.40",
4
4
  "description": "Customer Support Manage App",
5
5
  "author": "Jordan Eudy <jeudy100@gmail.com>",
6
6
  "license": "ISC",
@@ -79,9 +79,9 @@
79
79
  "@patternfly/patternfly": "6.2.1",
80
80
  "@patternfly/react-core": "6.2.1",
81
81
  "@patternfly/react-table": "6.2.1",
82
- "@rh-support/components": "2.5.32",
82
+ "@rh-support/components": "2.5.33",
83
83
  "@rh-support/configs": "2.0.21",
84
- "@rh-support/react-context": "2.5.34",
84
+ "@rh-support/react-context": "2.5.36",
85
85
  "@rh-support/types": "2.0.5",
86
86
  "@rh-support/user-permissions": "2.5.20",
87
87
  "@rh-support/utils": "2.5.19",
@@ -103,5 +103,5 @@
103
103
  "defaults and supports es6-module",
104
104
  "maintained node versions"
105
105
  ],
106
- "gitHead": "0ecaec663e234789df10d8f8a98a46757388e573"
106
+ "gitHead": "60ca9bb964b292380cd258edc372803a9a387f57"
107
107
  }