@rh-support/manage 2.5.41 → 2.5.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/Groups/ManageGroupUsers/ManageGroupUsers.js +3 -3
- package/lib/esm/components/ManagePartnerships/PartnershipsList.js +3 -3
- package/lib/esm/components/ManagePartnerships/RequestCollaborationModal.d.ts.map +1 -1
- package/lib/esm/components/ManagePartnerships/RequestCollaborationModal.js +10 -8
- package/lib/esm/components/NotificationEmails/index.d.ts.map +1 -1
- package/lib/esm/components/NotificationEmails/index.js +1 -0
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentEditor.js +1 -1
- package/lib/esm/scss/_main.scss +40 -2
- package/lib/esm/scss/_pf-overrides.scss +0 -5
- package/package.json +2 -2
|
@@ -132,7 +132,7 @@ export const ManageGroupUsers = () => {
|
|
|
132
132
|
return (React.createElement(React.Fragment, null,
|
|
133
133
|
React.createElement(AlertMessage, { variant: AlertType.INFO, show: loggedInUserRights.data.isOrgAdmin() &&
|
|
134
134
|
!loggedInUsersAccount.data.hasGroupACLs &&
|
|
135
|
-
!loggedInUserRights.data.isInternal(), isInline: true, className: "pf-v6-u-mb-
|
|
135
|
+
!loggedInUserRights.data.isInternal(), isInline: true, className: "pf-v6-u-mb-lg", title: t('Case Group ACL is not enabled') },
|
|
136
136
|
React.createElement("p", null,
|
|
137
137
|
React.createElement(Trans, { i18nKey: "i18nRequestControl" },
|
|
138
138
|
"To use case groups to limit user access, enable the",
|
|
@@ -146,7 +146,7 @@ export const ManageGroupUsers = () => {
|
|
|
146
146
|
}, "data-tracking-id": "case-contact-phone-number-review" }, "Preferences")),
|
|
147
147
|
React.createElement("br", null),
|
|
148
148
|
React.createElement(Trans, null, "You can organize and group related cases and filter on the case list page, but you cannot change permissions for case groups unless the Case Group ACL is enabled."))),
|
|
149
|
-
React.createElement(AlertMessage, { variant: AlertType.INFO, show: loggedInUserRights.data.isInternal(), isInline: true, className: "pf-v6-u-mb-
|
|
149
|
+
React.createElement(AlertMessage, { variant: AlertType.INFO, show: loggedInUserRights.data.isInternal(), isInline: true, className: "pf-v6-u-mb-lg", title: t('Case Group ACL is not available for internal users.') },
|
|
150
150
|
React.createElement("p", null,
|
|
151
151
|
React.createElement(Trans, { i18nKey: "i18nRequestControl" },
|
|
152
152
|
"As an internal user you can use case group without ACL functionality. To use case groups to limit user access, customers can enable the",
|
|
@@ -161,7 +161,7 @@ export const ManageGroupUsers = () => {
|
|
|
161
161
|
React.createElement("br", null),
|
|
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
|
-
React.createElement("h2",
|
|
164
|
+
React.createElement("h2", { className: "pf-v6-u-pb-sm" }, t('Groups')),
|
|
165
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 }),
|
|
@@ -170,10 +170,10 @@ export function PartnershipsList() {
|
|
|
170
170
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
171
171
|
}, [managedAccounts, accountManagers]);
|
|
172
172
|
return (React.createElement("section", { id: "manage-partnerships-list" },
|
|
173
|
-
React.createElement("div", { className: "toolbar" },
|
|
174
|
-
React.createElement("div", { className: "toolbar-left" },
|
|
173
|
+
React.createElement("div", { className: "toolbar secondary-toolbar" },
|
|
174
|
+
React.createElement("div", { className: "toolbar-left pf-v6-u-mr-md" },
|
|
175
175
|
React.createElement("label", { htmlFor: "search-partnerships" }, "Filter by"),
|
|
176
|
-
React.createElement(SearchInput, { className: "pf-v6-u-flex-grow-1 pf-v6-c-search-input pf-v6-u-background-color-100
|
|
176
|
+
React.createElement(SearchInput, { className: "pf-v6-u-flex-grow-1 pf-v6-c-search-input pf-v6-u-background-color-100", id: "search-partnerships", placeholder: t('Search for an existing partnership'), value: searchString, onChange: (_event, value) => setSearchString(value), onClear: () => setSearchString(''), "aria-label": t('Search for an existing partnership') })),
|
|
177
177
|
requestCollaborationButton()),
|
|
178
178
|
React.createElement(ManageTable, { ariaLabel: t('Partnerships list'), columns: columns, data: accountList.filter((account) => account.name.toLowerCase().includes(searchString.toLowerCase())), sortInfo: { column: 'customer-account-name', direction: 'asc' }, errorVariant: AlertVariant.warning, isFetching: isFetching, isError: hasError, errorTitle: t('Partnerships error'), errorComponent: React.createElement(Trans, null, "Could not get partnerships list"), noResultText: t('There are no results to display.') }),
|
|
179
179
|
React.createElement(RequestCollaborationModal, { isOpen: isRequestCollabModalOpen, onClose: () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestCollaborationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePartnerships/RequestCollaborationModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestCollaborationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePartnerships/RequestCollaborationModal.tsx"],"names":[],"mappings":"AAuBA,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,sBA4OtD,CAAC"}
|
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { pcm } from '@cee-eng/hydrajs';
|
|
11
11
|
import { Button, ButtonVariant, Form, FormGroup, FormHelperText, Grid, GridItem, HelperText, HelperTextItem, Modal, ModalBody, ModalFooter, ModalHeader, ModalVariant, TextInput, Tooltip, TooltipPosition, } from '@patternfly/react-core';
|
|
12
|
+
import CopyIcon from '@patternfly/react-icons/dist/esm/icons/copy-icon';
|
|
12
13
|
import { ToastNotification, useCopyToClipboard } from '@rh-support/components';
|
|
13
14
|
import isEmpty from 'lodash/isEmpty';
|
|
14
15
|
import React, { useRef, useState } from 'react';
|
|
@@ -121,25 +122,26 @@ export const RequestCollaborationModal = (props) => {
|
|
|
121
122
|
React.createElement(ModalBody, null,
|
|
122
123
|
React.createElement("p", null, "Initiate a new collaboration by generating a unique link for your customer. Check the status under your requests to see if they accept or reject your collaboration."),
|
|
123
124
|
React.createElement(Form, { className: "pf-v6-u-my-md" },
|
|
124
|
-
React.createElement(Grid, { sm: 12, md:
|
|
125
|
+
React.createElement(Grid, { sm: 12, md: 12, lg: 12 },
|
|
125
126
|
React.createElement(GridItem, null,
|
|
126
127
|
React.createElement(FormGroup, { label: t('Name your link'), type: "string", fieldId: partnershipLinkId, isRequired: true },
|
|
128
|
+
React.createElement(TextInput, { isRequired: true, className: showDone || isRequestingAgain ? 'request-collaboration-input' : '', value: localLinkName || props.sendReqAgainFriendlyName, id: partnershipLinkId, "aria-describedby": "age-1-helper", onChange: handleLinkNameChange, onKeyDown: handleKeyDown, placeholder: t('e.g. Customer name'), isDisabled: showDone || isRequestingAgain }),
|
|
127
129
|
React.createElement(FormHelperText, null,
|
|
128
130
|
React.createElement(HelperText, null, validated !== 'error' ? (React.createElement(HelperTextItem, null,
|
|
129
131
|
React.createElement(Trans, null, "Please enter a name for your request"))) : (React.createElement(HelperTextItem, { variant: "error" },
|
|
130
132
|
React.createElement(Trans, null, isDuplicateLinkName
|
|
131
133
|
? t('Link name already used. Please enter a unique name')
|
|
132
|
-
: t('Please enter a name for your request')))))),
|
|
133
|
-
React.createElement(TextInput, { isRequired: true, validated: validated, value: localLinkName || props.sendReqAgainFriendlyName, id: partnershipLinkId, "aria-describedby": "age-1-helper", onChange: handleLinkNameChange, onKeyDown: handleKeyDown, placeholder: t('e.g. Customer name'), isDisabled: showDone || isRequestingAgain }))))),
|
|
134
|
+
: t('Please enter a name for your request')))))))))),
|
|
134
135
|
showDone && (React.createElement(React.Fragment, null, !isRequestingAgain ? (React.createElement(React.Fragment, null,
|
|
135
|
-
React.createElement("h4",
|
|
136
|
+
React.createElement("h4", { className: "label-text-size" },
|
|
136
137
|
React.createElement("strong", null, "Copy and send")),
|
|
137
138
|
React.createElement("div", { className: "clipboard-wrapper" },
|
|
138
|
-
React.createElement(
|
|
139
|
-
React.createElement("code", { ref: clipboardRef }, generatedUrl)),
|
|
139
|
+
React.createElement(TextInput, { isDisabled: true, className: "request-collaboration-input", ref: clipboardRef, value: generatedUrl }),
|
|
140
140
|
React.createElement(Tooltip, { position: TooltipPosition.top, content: clipboardText, trigger: "click" },
|
|
141
|
-
React.createElement(
|
|
142
|
-
React.createElement("
|
|
141
|
+
React.createElement(Button, { className: "pf-v6-u-ml-sm copy-button", variant: "control", "aria-label": "Copy", icon: React.createElement(CopyIcon, null), "aria-hidden": "true", onClick: onClickOnCopyToClipboardButton, "data-tracking-id": "request-collaboration-link-copy-button", type: "button" }))),
|
|
142
|
+
React.createElement("div", { className: !isCopyClicked && isDoneClicked
|
|
143
|
+
? 'pf-v6-u-text-color-status-danger helper-text-size'
|
|
144
|
+
: 'helper-text-size' },
|
|
143
145
|
React.createElement(Trans, null,
|
|
144
146
|
"Please ",
|
|
145
147
|
React.createElement("strong", null, "copy and send"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/NotificationEmails/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,wBAAgB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/NotificationEmails/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,wBAAgB,kBAAkB,sBAuOjC"}
|
|
@@ -73,6 +73,7 @@ export function NotificationEmails() {
|
|
|
73
73
|
ToastNotification.addSuccessMessage(t('Notification email has been successfully removed'));
|
|
74
74
|
}
|
|
75
75
|
catch (e) {
|
|
76
|
+
console.error(e);
|
|
76
77
|
// we come here if error happens or user didn't confirm the delete action
|
|
77
78
|
!isEmpty(e) && ToastNotification.addDangerMessage(t('Notification email account failed to update'));
|
|
78
79
|
}
|
|
@@ -149,7 +149,7 @@ export function TopContentEditor() {
|
|
|
149
149
|
React.createElement(TopContentHeader, null),
|
|
150
150
|
!topContentResponse.isFetching && topContentResponse.isError && (React.createElement(Alert, { isInline: true, variant: AlertVariant.danger, title: React.createElement(Trans, null, "Error loading Top Content") })),
|
|
151
151
|
React.createElement(TopContentProductVersionSelector, { selectedProduct: selectedProduct, selectedVersion: selectedVersion, onProductChange: onProductChange, onVersionChange: onVersionChange }),
|
|
152
|
-
!topContentResponse.isFetching && (React.createElement("div", { className: "toolbar" },
|
|
152
|
+
!topContentResponse.isFetching && (React.createElement("div", { className: "toolbar secondary-toolbar" },
|
|
153
153
|
React.createElement(TopContentSearch, { dataTrackingId: "top-content-filter-manage", topContentData: flagContentEditState, onSearch: onSearch, topContentResultsWrapperRef: topContentResultsRef, searchQuery: searchQuery, setSearchQuery: setSearchQuery, className: "toolbar-content", isDisabled: isEmpty(flagContentEditState) }),
|
|
154
154
|
React.createElement("div", { className: "toolbar-content pf-v6-u-ml-md" },
|
|
155
155
|
React.createElement("label", { htmlFor: 'tag-selector' },
|
package/lib/esm/scss/_main.scss
CHANGED
|
@@ -42,10 +42,19 @@
|
|
|
42
42
|
-ms-flex-direction: column;
|
|
43
43
|
flex-direction: column;
|
|
44
44
|
flex-wrap: wrap;
|
|
45
|
-
|
|
45
|
+
justify-content: space-between !important;
|
|
46
|
+
padding-left: var(--pf-t--global--spacer--lg);
|
|
47
|
+
padding-right: var(--pf-t--global--spacer--lg);
|
|
48
|
+
padding-top: var(--pf-t--global--spacer--md);
|
|
49
|
+
padding-bottom: var(--pf-t--global--spacer--md);
|
|
46
50
|
background-color: #f0f0f0;
|
|
47
51
|
border: 1px solid #d2d2d2;
|
|
48
52
|
|
|
53
|
+
&:not(.secondary-toolbar) {
|
|
54
|
+
border-top-left-radius: var(--pf-t--global--border--radius--small);
|
|
55
|
+
border-top-right-radius: var(--pf-t--global--border--radius--small);
|
|
56
|
+
}
|
|
57
|
+
|
|
49
58
|
.toolbar-content {
|
|
50
59
|
width: 49%;
|
|
51
60
|
}
|
|
@@ -123,7 +132,6 @@
|
|
|
123
132
|
.toolbar-right {
|
|
124
133
|
flex: 1 1 35%;
|
|
125
134
|
max-width: 35%;
|
|
126
|
-
padding: 0px 16px;
|
|
127
135
|
}
|
|
128
136
|
}
|
|
129
137
|
|
|
@@ -176,6 +184,8 @@
|
|
|
176
184
|
margin-top: 0;
|
|
177
185
|
padding: 0.5rem 1.2rem;
|
|
178
186
|
background-color: #f0f0f0;
|
|
187
|
+
border-bottom-left-radius: var(--pf-t--global--border--radius--small);
|
|
188
|
+
border-bottom-right-radius: var(--pf-t--global--border--radius--small);
|
|
179
189
|
|
|
180
190
|
.pf-v6-c-pagination {
|
|
181
191
|
padding: 0;
|
|
@@ -446,3 +456,31 @@ svg.hostnameSpinner {
|
|
|
446
456
|
#tag-search-input input {
|
|
447
457
|
min-width: 30rem;
|
|
448
458
|
}
|
|
459
|
+
|
|
460
|
+
.grid-main.manage {
|
|
461
|
+
header > h2 {
|
|
462
|
+
margin-bottom: var(--pf-t--global--spacer--sm);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
header {
|
|
466
|
+
margin-bottom: var(--pf-t--global--spacer--lg);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.pf-v6-c-tab-content {
|
|
470
|
+
padding-top: var(--pf-t--global--spacer--lg);
|
|
471
|
+
padding-bottom: var(--pf-t--global--spacer--lg);
|
|
472
|
+
padding-right: var(--pf-t--global--spacer--xl);
|
|
473
|
+
padding-left: var(--pf-t--global--spacer--xl);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.pf-v6-c-table__th {
|
|
478
|
+
padding-left: var(--pf-t--global--spacer--xl);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.pf-v6-c-table__td {
|
|
482
|
+
padding-left: calc(var(--pf-t--global--spacer--xl) + 1.35px);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.border-none {
|
|
486
|
+
}
|
|
@@ -143,11 +143,6 @@ div.pf-v6-c-pagination__nav-page-select {
|
|
|
143
143
|
padding: 0;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
.pf-v6-c-form-control.pf-m-disabled {
|
|
147
|
-
background-color: #e0e0e0;
|
|
148
|
-
border-bottom: 1px solid black;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
146
|
.pf-v6-c-form-control.pf-m-disabled.issue-title-disabled {
|
|
152
147
|
border: none !important;
|
|
153
148
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/manage",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.43",
|
|
4
4
|
"description": "Customer Support Manage App",
|
|
5
5
|
"author": "Jordan Eudy <jeudy100@gmail.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"defaults and supports es6-module",
|
|
104
104
|
"maintained node versions"
|
|
105
105
|
],
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "f69973584d77efaa8fb77808e43757b074e50dc6"
|
|
107
107
|
}
|