@rh-support/manage 2.1.103 → 2.1.105
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/GroupSelect/GroupSelect.d.ts.map +1 -1
- package/lib/esm/components/Groups/GroupSelect/GroupSelect.js +13 -6
- package/lib/esm/components/ManagePartnerships/PartnershipsList.js +1 -1
- package/lib/esm/components/ManagePartnerships/index.d.ts.map +1 -1
- package/lib/esm/components/ManagePartnerships/index.js +3 -2
- package/lib/esm/components/ManagePreferences/components/PreferenceSelect.d.ts.map +1 -1
- package/lib/esm/components/ManagePreferences/components/PreferenceSelect.js +2 -1
- package/lib/esm/components/NotificationEmails/NotificationEmailsModal.js +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentEditor.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentEditor.js +5 -2
- package/lib/esm/reducers/TopContentReducer.d.ts.map +1 -1
- package/lib/esm/reducers/TopContentReducer.js +6 -2
- package/lib/esm/scss/_main.scss +14 -0
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupSelect.d.ts","sourceRoot":"","sources":["../../../../../src/components/Groups/GroupSelect/GroupSelect.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AA4B3E,OAAO,KAAmD,MAAM,OAAO,CAAC;AAKxE,UAAU,MAAM;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,KAAK,IAAI,CAAC;CAChD;AAKD,eAAO,MAAM,WAAW,UAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"GroupSelect.d.ts","sourceRoot":"","sources":["../../../../../src/components/Groups/GroupSelect/GroupSelect.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AA4B3E,OAAO,KAAmD,MAAM,OAAO,CAAC;AAKxE,UAAU,MAAM;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,KAAK,IAAI,CAAC;CAChD;AAKD,eAAO,MAAM,WAAW,UAAW,MAAM,sBAkcxC,CAAC"}
|
|
@@ -307,6 +307,10 @@ export const GroupSelect = (props) => {
|
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
309
|
}, [manageActionsRef, showInput]);
|
|
310
|
+
//added for validation of new group name
|
|
311
|
+
const containsOnlySpecialChars = (str) => {
|
|
312
|
+
return /^[^a-zA-Z0-9]*$/.test(str);
|
|
313
|
+
};
|
|
310
314
|
return (React.createElement("div", { ref: manageActionsRef, className: "toolbar-left" },
|
|
311
315
|
showErrorMessage && (React.createElement(AlertMessage, { variant: AlertType.DANGER, title: t('Could not create group'), show: true })),
|
|
312
316
|
!showErrorMessage && !showInput && (React.createElement(React.Fragment, null,
|
|
@@ -316,10 +320,13 @@ export const GroupSelect = (props) => {
|
|
|
316
320
|
.filter((g) => g.groupNum !== unGroupedCaseGroupNumber)
|
|
317
321
|
.map((data, index) => (React.createElement(SelectOption, { key: index, isSelected: data.name === selectedGroup, value: data.name }, data.name)))))),
|
|
318
322
|
!showErrorMessage && showDropdown && (React.createElement(Dropdown, { className: "group-actions-dropdown group-action", onSelect: closeDropdown, toggle: dropdownToggle, isOpen: isDropdownOpen, "aria-label": t('Group actions dropdown'), isPlain: true, dropdownItems: dropdownItems })),
|
|
319
|
-
!showErrorMessage && showInput && (React.createElement(
|
|
320
|
-
React.createElement(
|
|
321
|
-
|
|
322
|
-
React.createElement(
|
|
323
|
-
|
|
324
|
-
React.createElement(
|
|
323
|
+
!showErrorMessage && showInput && (React.createElement("div", { className: "group-name-select" },
|
|
324
|
+
React.createElement("div", { className: "group-name-buttons" },
|
|
325
|
+
React.createElement(Select, { className: "group-select-input pf-v5-u-mr-sm", isDisabled: disableOnFetch, variant: SelectVariant.typeahead, "aria-label": t('Enter group name'), onToggle: onMultiSelect, onSelect: onMultiSelect, onClear: onMultiClear, onFilter: onChange, selections: input, isOpen: false, placeholderText: t('Enter group name') }),
|
|
326
|
+
React.createElement("button", { ref: submitActionBtn, disabled: disableOnFetch || input.length === 0 || containsOnlySpecialChars(input), className: "btn btn-app btn-link group-action", onClick: onAction, "aria-label": "Group action submit", "data-tracking-id": "group-action-submit", type: "button" },
|
|
327
|
+
React.createElement(Trans, null, "Save")),
|
|
328
|
+
React.createElement("button", { key: "cancel", onClick: onGroupActionCancel, className: "btn btn-app btn-link group-action", disabled: disableOnFetch, "data-tracking-id": "group-action-cancel", "aria-label": "Group action cancel", type: "button" },
|
|
329
|
+
React.createElement(Trans, null, "Cancel"))),
|
|
330
|
+
input && containsOnlySpecialChars(input) && (React.createElement("p", { className: "form-instructions form-invalid" },
|
|
331
|
+
React.createElement(Trans, null, "Group name cannot contain only special characters. Please use letters, numbers and spaces.")))))));
|
|
325
332
|
};
|
|
@@ -175,7 +175,7 @@ export function PartnershipsList() {
|
|
|
175
175
|
React.createElement("div", { className: "toolbar-left" },
|
|
176
176
|
React.createElement("label", { htmlFor: "search-partnerships" }, "Filter by"),
|
|
177
177
|
React.createElement(SearchInput, { className: "pf-v5-u-flex-grow-1 pf-v5-c-search-input pf-v5-u-background-color-100 pf-v5-u-mr-lg", 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') })),
|
|
178
|
-
|
|
178
|
+
requestCollaborationButton()),
|
|
179
179
|
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.') }),
|
|
180
180
|
React.createElement(RequestCollaborationModal, { isOpen: isRequestCollabModalOpen, onClose: () => {
|
|
181
181
|
setIsRequestCollabModalOpen(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePartnerships/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,wBAAgB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePartnerships/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,wBAAgB,kBAAkB,sBAkCjC"}
|
|
@@ -15,10 +15,11 @@ export function ManagePartnerships() {
|
|
|
15
15
|
React.createElement("header", { className: "pf-v5-u-mb-xs" },
|
|
16
16
|
React.createElement("h2", null,
|
|
17
17
|
React.createElement(Trans, null, "Partnerships")),
|
|
18
|
-
React.createElement("p", null,
|
|
18
|
+
React.createElement("p", null,
|
|
19
|
+
React.createElement(Trans, null, "Add, edit, or remove partnerships and manage your collaboration requests"))),
|
|
19
20
|
React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading partnerships list') } },
|
|
20
21
|
React.createElement(ManagePartnershipsProvider, null,
|
|
21
|
-
|
|
22
|
+
React.createElement(Requests, null),
|
|
22
23
|
React.createElement(PartnershipsList, null),
|
|
23
24
|
React.createElement(Switch, null,
|
|
24
25
|
React.createElement(Route, { path: `/manage/partnerships/partnerlink/:linkHash?` }, loggedInUserRights.data.isCustomerOrgAdmin() ? (React.createElement(PartnershipsTermsModal, null)) : (React.createElement(NonOrgCustomerInfoModal, null))))))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreferenceSelect.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/components/PreferenceSelect.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PreferenceSelect.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/components/PreferenceSelect.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,UAAU,MAAM;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,GAAG,CAAC;IACX,UAAU,EAAE,GAAG,CAAC;IAChB,QAAQ,EAAE,CAAC,KAAK,KAAA,EAAE,SAAS,KAAA,EAAE,aAAa,KAAA,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5D,QAAQ,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;CAClC;AACD,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,MAAM,qBA8CrF"}
|
|
@@ -10,6 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
import { Spinner } from '@patternfly/react-core';
|
|
11
11
|
import { Select, SelectVariant } from '@patternfly/react-core/deprecated';
|
|
12
12
|
import { ToastNotification } from '@rh-support/components';
|
|
13
|
+
import isEqual from 'lodash/isEqual';
|
|
13
14
|
import React, { useState } from 'react';
|
|
14
15
|
import { Trans, useTranslation } from 'react-i18next';
|
|
15
16
|
export function PreferenceSelect({ id, label, selections, children, onSelect }) {
|
|
@@ -21,7 +22,7 @@ export function PreferenceSelect({ id, label, selections, children, onSelect })
|
|
|
21
22
|
};
|
|
22
23
|
// To handle select
|
|
23
24
|
const onSelectLocal = (event, selection, isPlaceholder) => __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
if (isPlaceholder)
|
|
25
|
+
if (isPlaceholder || isEqual(selection, selections))
|
|
25
26
|
defaultClearSelection();
|
|
26
27
|
else {
|
|
27
28
|
setIsLoading(true);
|
|
@@ -128,7 +128,7 @@ export const NotificationEmailsModal = (props) => {
|
|
|
128
128
|
!isValidFirstName && (React.createElement(FormHelperText, null,
|
|
129
129
|
React.createElement(HelperText, null,
|
|
130
130
|
React.createElement(HelperTextItem, { variant: ValidatedOptions.error }, isSpecialCharFirstName
|
|
131
|
-
? t('First
|
|
131
|
+
? t('First name cannot contain special characters')
|
|
132
132
|
: t('First name cannot be empty')))))),
|
|
133
133
|
React.createElement(FormGroup, { label: t('Last name'), fieldId: "email-notification-last-name" },
|
|
134
134
|
React.createElement(TextInput, { value: lastName, type: "text", validated: isValidLastName ? ValidatedOptions.default : ValidatedOptions.error, onChange: (_event, lastName) => onLastNameChange(lastName), "aria-label": t('Last name'), placeholder: t('Last name'), maxLength: 254 }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopContentEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/TopContentManagement/TopContentEditor/TopContentEditor.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAA2D,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TopContentEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/TopContentManagement/TopContentEditor/TopContentEditor.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAiChF,wBAAgB,gBAAgB,sBAoX/B"}
|
|
@@ -19,7 +19,7 @@ import { TagManagementDispatchContext, TagManagementStateContext } from '../../.
|
|
|
19
19
|
import { useTopContentContext, useTopContentDispatchContext } from '../../../context/TopContentProvider';
|
|
20
20
|
import { fetchTopContentTags } from '../../../reducers/TagManagmentReducer';
|
|
21
21
|
import { flagContentUsage, isMajorOrNamedVersion } from '../../../reducers/TopContentHelpers';
|
|
22
|
-
import { CategoryMode, fetchTopContent, reArrangeCategory, resetChangeInCategory, resetContentWithSelectedProduct, resetDuplicatUrls, setAddNewSection, setFilteredTags, setIsAddingCategory, setIsSearchModeEnabled, setTopContentArrangingCategory, setTopContentArrangingContent, } from '../../../reducers/TopContentReducer';
|
|
22
|
+
import { CategoryMode, ContentMode, fetchTopContent, reArrangeCategory, resetChangeInCategory, resetContentWithSelectedProduct, resetDuplicatUrls, setAddNewSection, setFilteredTags, setIsAddingCategory, setIsSearchModeEnabled, setTopContentArrangingCategory, setTopContentArrangingContent, } from '../../../reducers/TopContentReducer';
|
|
23
23
|
import CategoryLimit from '../CategoryLimit/CategoryLimit';
|
|
24
24
|
import { VersionPerformanceMetrics } from '../ContentUsage/VersionPerformanceMetrics';
|
|
25
25
|
import { NoTopContentFound } from '../NoTopContentFound';
|
|
@@ -58,7 +58,10 @@ export function TopContentEditor() {
|
|
|
58
58
|
const filteredTagsIds = filteredTags.map((tag) => tag.id);
|
|
59
59
|
//filter top contents on basis of tags
|
|
60
60
|
const filteredData = filteredByQueryTC.flatMap((item) => {
|
|
61
|
-
const
|
|
61
|
+
const filteredContents = item.content.filter((content) => (content.tags || []).some((tag) => filteredTagsIds.includes(tag.id)));
|
|
62
|
+
// if there is any new addition of content we will find and add that to contents
|
|
63
|
+
const newContent = item.content.find((item) => item.mode === ContentMode.ADD);
|
|
64
|
+
const contents = !isEmpty(newContent) ? [...filteredContents, newContent] : [...filteredContents];
|
|
62
65
|
if (!isEmpty(contents))
|
|
63
66
|
return [Object.assign(Object.assign({}, item), { content: contents })];
|
|
64
67
|
return [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopContentReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/TopContentReducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAC7F,OAAO,EAAE,IAAI,EAAE,MAAM,0CAA0C,CAAC;AAChE,OAAO,EACH,WAAW,EAEX,mBAAmB,EACnB,eAAe,EAGf,iCAAiC,EAEpC,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAQxE,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACrD,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,C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AO,MAAM,2BAA2B,aAC1B,6BAA6B,uBAClB,oBAAoB,EAAE,oBACzB,mBAAmB,mBACpB,QAAQ,QAAQ,CAAC,mBACjB,MAAM,4BACG,OAAO,cACrB,GAAG,qBACG,OAAO,iGA4E5B,CAAC;AAGF,eAAO,MAAM,mBAAmB,aAClB,6BAA6B,uBAClB,oBAAoB,EAAE,MACvC,MAAM,cACE,MAAM,WACT,oBAAoB,SACtB,MAAM,iGAuEhB,CAAC;AAGF,eAAO,MAAM,2BAA2B,aAC1B,6BAA6B,uBAClB,oBAAoB,EAAE,cAC/B,MAAM,WACT,oBAAoB,gBACf,GAAG,EAAE,mBAqDtB,CAAC;AAGF,eAAO,MAAM,gBAAgB,aACf,6BAA6B,uBAClB,oBAAoB,EAAE,cAC/B,MAAM,mBA+BrB,CAAC;AAGF,eAAO,MAAM,iBAAiB,aAChB,6BAA6B,uBAClB,oBAAoB,EAAE,mBA2B9C,CAAC;AAEF,eAAO,MAAM,eAAe,aAAoB,6BAA6B,mBAwB5E,CAAC;AAEF,eAAO,MAAM,sBAAsB,aAAc,6BAA6B,uBAAuB,OAAO,SAK3G,CAAC;AAEF,eAAO,MAAM,iBAAiB,aAAc,6BAA6B,SAKxE,CAAC;AAEF,eAAO,MAAM,eAAe,aAAc,6BAA6B,QAAQ,IAAI,EAAE,SAKpF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,aACzB,6BAA6B,eAC1B,MAAM,WACV,MAAM,kBAsBlB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,aACzB,6BAA6B,cAC3B,qBAAqB,gBACnB,MAAM,mBAavB,CAAC"}
|
|
@@ -311,7 +311,7 @@ export const removeTopContent = (dispatch, topContentEditState, categoryId, i) =
|
|
|
311
311
|
}
|
|
312
312
|
else if (cat.id === categoryId) {
|
|
313
313
|
// an added item in a category is removed
|
|
314
|
-
cat.content = cat.content.filter((item
|
|
314
|
+
cat.content = cat.content.filter((item) => item.mode !== ContentMode.ADD);
|
|
315
315
|
}
|
|
316
316
|
});
|
|
317
317
|
dispatch({
|
|
@@ -408,7 +408,11 @@ export const saveAddToTopContent = (dispatch, topContentEditState, id, categoryI
|
|
|
408
408
|
}
|
|
409
409
|
else {
|
|
410
410
|
// creating a new top content
|
|
411
|
-
|
|
411
|
+
const newContent = cat.content.find((content) => content.mode === ContentMode.ADD);
|
|
412
|
+
if (!isEmpty(newContent)) {
|
|
413
|
+
const newContentIndex = cat.content.findIndex((content) => content.mode === ContentMode.ADD);
|
|
414
|
+
cat.content[newContentIndex] = Object.assign(Object.assign({}, newContent), { mode: ContentMode.INITIAL, contentTitle: content.contentTitle, contentUrl: content.contentUrl, topContentId: (_d = res === null || res === void 0 ? void 0 : res.topContents[0]) === null || _d === void 0 ? void 0 : _d.id, createdBy: (_e = res === null || res === void 0 ? void 0 : res.topContents[0]) === null || _e === void 0 ? void 0 : _e.createdBy, createdOn: (_f = res === null || res === void 0 ? void 0 : res.topContents[0]) === null || _f === void 0 ? void 0 : _f.createdOn, tags: content.tags });
|
|
415
|
+
}
|
|
412
416
|
}
|
|
413
417
|
}
|
|
414
418
|
});
|
package/lib/esm/scss/_main.scss
CHANGED
|
@@ -70,6 +70,20 @@
|
|
|
70
70
|
width: 100%;
|
|
71
71
|
// max-width: 440px;
|
|
72
72
|
}
|
|
73
|
+
|
|
74
|
+
.group-name-select {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
width: 100%;
|
|
78
|
+
|
|
79
|
+
.group-name-buttons {
|
|
80
|
+
display: flex;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.form-instructions.form-invalid {
|
|
84
|
+
margin: 0 !important;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
73
87
|
}
|
|
74
88
|
|
|
75
89
|
.toolbar-right {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/manage",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.105",
|
|
4
4
|
"description": "Customer Support Manage App",
|
|
5
5
|
"author": "Jordan Eudy <jeudy100@gmail.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -79,12 +79,12 @@
|
|
|
79
79
|
"@patternfly/patternfly": "5.1.0",
|
|
80
80
|
"@patternfly/react-core": "5.1.1",
|
|
81
81
|
"@patternfly/react-table": "5.1.1",
|
|
82
|
-
"@rh-support/components": "2.1.
|
|
82
|
+
"@rh-support/components": "2.1.81",
|
|
83
83
|
"@rh-support/configs": "2.0.20",
|
|
84
|
-
"@rh-support/react-context": "2.1.
|
|
84
|
+
"@rh-support/react-context": "2.1.90",
|
|
85
85
|
"@rh-support/types": "2.0.4",
|
|
86
|
-
"@rh-support/user-permissions": "2.1.
|
|
87
|
-
"@rh-support/utils": "2.1.
|
|
86
|
+
"@rh-support/user-permissions": "2.1.50",
|
|
87
|
+
"@rh-support/utils": "2.1.39",
|
|
88
88
|
"@types/react-beautiful-dnd": "^13.0.0",
|
|
89
89
|
"lodash": ">=4.17.15",
|
|
90
90
|
"mark.js": "^8.11.1",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"defaults and supports es6-module",
|
|
103
103
|
"maintained node versions"
|
|
104
104
|
],
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "a31bbe90e3282f3502dd6b4e7c0401afe81f5ba2"
|
|
106
106
|
}
|