@rh-support/manage 2.1.37 → 2.4.10-beta.6
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/README.md +0 -2
- package/lib/esm/components/Configs/ConfigSwitch.js +1 -1
- package/lib/esm/components/Configs/ConfigsTable.js +1 -1
- package/lib/esm/components/Groups/DefualtGroupSwitch/DefaultGroupSwitch.js +1 -1
- package/lib/esm/components/Groups/GroupSelect/GroupSelect.d.ts.map +1 -1
- package/lib/esm/components/Groups/GroupSelect/GroupSelect.js +3 -3
- package/lib/esm/components/Groups/GroupUserPermissionsSelect/GroupUserPermissionsSelect.js +1 -1
- package/lib/esm/components/Groups/ManageGroupUsers/ManageGroupUsers.js +2 -2
- package/lib/esm/components/ManageBookmarkedAccountsTab/AddEditBookmarkModal.js +1 -1
- package/lib/esm/components/ManageBookmarkedAccountsTab/BookmarkAccountSelector.d.ts.map +1 -1
- package/lib/esm/components/ManageBookmarkedAccountsTab/BookmarkAccountSelector.js +6 -9
- package/lib/esm/components/ManageBookmarkedAccountsTab/BookmarkGroupSelector.d.ts.map +1 -1
- package/lib/esm/components/ManageBookmarkedAccountsTab/BookmarkGroupSelector.js +5 -8
- package/lib/esm/components/ManageBookmarkedAccountsTab/ManageGroupedBookmarkedAccountsTab.d.ts.map +1 -1
- package/lib/esm/components/ManageBookmarkedAccountsTab/ManageGroupedBookmarkedAccountsTab.js +4 -5
- package/lib/esm/components/ManagePartnerships/PartnershipsList.js +2 -2
- package/lib/esm/components/ManagePartnerships/PartnershipsTermsModal.d.ts.map +1 -1
- package/lib/esm/components/ManagePartnerships/PartnershipsTermsModal.js +2 -4
- package/lib/esm/components/ManagePartnerships/RequestCollaborationModal.d.ts.map +1 -1
- package/lib/esm/components/ManagePartnerships/RequestCollaborationModal.js +9 -11
- package/lib/esm/components/ManagePartnerships/Requests.d.ts.map +1 -1
- package/lib/esm/components/ManagePartnerships/Requests.js +4 -24
- package/lib/esm/components/ManagePartnerships/index.d.ts.map +1 -1
- package/lib/esm/components/ManagePartnerships/index.js +2 -2
- package/lib/esm/components/ManagePreferences/PreferencesHeader.js +1 -1
- package/lib/esm/components/ManagePreferences/components/PreferenceSelect.d.ts.map +1 -1
- package/lib/esm/components/ManagePreferences/components/PreferenceSelect.js +2 -3
- package/lib/esm/components/ManagePreferences/components/PreferenceSwitch.js +1 -1
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseCreate.d.ts.map +1 -1
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseCreate.js +1 -2
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseSearch.d.ts.map +1 -1
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseSearch.js +1 -2
- package/lib/esm/components/ManagePreferences/sections/PreferencesCaseView.js +6 -7
- package/lib/esm/components/ManageTable/ManageTable.d.ts.map +1 -1
- package/lib/esm/components/ManageTable/ManageTable.js +6 -5
- package/lib/esm/components/NotificationEmails/NotificationEmailsModal.d.ts.map +1 -1
- package/lib/esm/components/NotificationEmails/NotificationEmailsModal.js +6 -13
- package/lib/esm/components/NotificationEmails/index.js +3 -3
- package/lib/esm/components/TopContentManagement/CategoryLimit/CategoryLimit.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/CategoryLimit/CategoryLimit.js +2 -3
- package/lib/esm/components/TopContentManagement/CategoryLimit/CategoryLimitGuidelines.js +1 -1
- package/lib/esm/components/TopContentManagement/CategoryLimit/QuestionAnswer.js +1 -1
- package/lib/esm/components/TopContentManagement/ContentUsage/ContentAccordion.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/ContentUsage/ContentAccordion.js +2 -2
- package/lib/esm/components/TopContentManagement/ContentUsage/PerformanceMetrics.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/ContentUsage/PerformanceMetrics.js +3 -3
- package/lib/esm/components/TopContentManagement/ContentUsage/PerformanceMetricsSelect.d.ts +1 -1
- package/lib/esm/components/TopContentManagement/ContentUsage/PerformanceMetricsSelect.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/ContentUsage/PerformanceMetricsSelect.js +3 -3
- package/lib/esm/components/TopContentManagement/ContentUsage/VersionPerformanceMetrics.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/ContentUsage/VersionPerformanceMetrics.js +4 -4
- package/lib/esm/components/TopContentManagement/NoTopContentFound.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/NoTopContentFound.js +15 -14
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/AddNewCategoryDropDown.js +2 -2
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentCategory.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentCategory.js +2 -3
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentComponent.js +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItem.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItem.js +32 -25
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItemLink.js +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentEditor.js +3 -3
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentSuggestion/TopContentSuggestion.js +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentSuggestion/TopContentSuggestionHint.js +3 -3
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentSuggestion/TopContentSuggestionHintAccept.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentSuggestion/TopContentSuggestionHintAccept.js +6 -7
- package/lib/esm/components/TopContentManagement/TopContentHeader.js +1 -1
- package/lib/esm/components/TopContentManagement/TopContentProductVersionSelector.js +6 -6
- package/lib/esm/reducers/TopContentHelpers.js +4 -4
- package/lib/esm/reducers/TopContentReducer.d.ts.map +1 -1
- package/lib/esm/reducers/TopContentReducer.js +3 -4
- package/lib/esm/scss/_main.scss +43 -25
- package/lib/esm/scss/_pf4-overrides.scss +132 -0
- package/lib/esm/scss/index.scss +5 -5
- package/package.json +15 -15
- package/lib/esm/scss/_pf-overrides.scss +0 -134
|
@@ -7,8 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { Button, Card, CardBody, Form, FormGroup, TextInput, Tooltip, ValidatedOptions } from '@patternfly/react-core';
|
|
11
|
-
import { Select, SelectOption, SelectVariant } from '@patternfly/react-core/deprecated';
|
|
10
|
+
import { Button, Card, CardBody, Form, FormGroup, Select, SelectOption, SelectVariant, TextInput, Tooltip, ValidatedOptions, } from '@patternfly/react-core';
|
|
12
11
|
import PencilAltIcon from '@patternfly/react-icons/dist/js/icons/pencil-alt-icon';
|
|
13
12
|
import { ToastNotification } from '@rh-support/components';
|
|
14
13
|
import { getVersion, isRegularVersion, isValidUrl } from '@rh-support/utils';
|
|
@@ -118,25 +117,25 @@ export const TopContentSuggestionHintAccept = ({ onCancel, resources }) => {
|
|
|
118
117
|
ToastNotification.addDangerMessage(t('There was an error loading top content categories'));
|
|
119
118
|
}
|
|
120
119
|
}, [topContentDispatch, t]);
|
|
121
|
-
return (React.createElement(Card, { className: "pf-
|
|
120
|
+
return (React.createElement(Card, { className: "pf-u-m-sm" },
|
|
122
121
|
React.createElement(CardBody, { className: "card-hint" },
|
|
123
122
|
React.createElement(Form, null,
|
|
124
123
|
isEditClicked ? (React.createElement(React.Fragment, null,
|
|
125
124
|
React.createElement(FormGroup, { label: t('Link to content'), isRequired: true, fieldId: "top-content-link" },
|
|
126
|
-
React.createElement(TextInput, { isRequired: true, type: "text", id: "top-content-resource-link", name: "top-content-resource-link", "data-tracking-id": "top-content-resource-link", value: linkToContent, onChange:
|
|
125
|
+
React.createElement(TextInput, { isRequired: true, type: "text", id: "top-content-resource-link", name: "top-content-resource-link", "data-tracking-id": "top-content-resource-link", value: linkToContent, onChange: setLinkToContent, placeholder: t('Enter link to content'), validated: isEmpty(linkToContent) || !isValidUrl(linkToContent)
|
|
127
126
|
? ValidatedOptions.error
|
|
128
127
|
: ValidatedOptions.default })),
|
|
129
128
|
React.createElement(FormGroup, { label: t('Headline'), isRequired: true, fieldId: "simple-form-email-01" },
|
|
130
|
-
React.createElement(TextInput, { isRequired: true, type: "text", id: "top-content-headline-category", name: "top-content-headline-category", "data-tracking-id": "top-content-headline-category", value: resourceTitle, onChange:
|
|
129
|
+
React.createElement(TextInput, { isRequired: true, type: "text", id: "top-content-headline-category", name: "top-content-headline-category", "data-tracking-id": "top-content-headline-category", value: resourceTitle, onChange: setResourceTitle, placeholder: t('Copy and paste the heading for consistency'), validated: isEmpty(trim(resourceTitle)) ? ValidatedOptions.error : ValidatedOptions.default })))) : (React.createElement("span", null,
|
|
131
130
|
React.createElement(Button, { variant: "link", isInline: true },
|
|
132
131
|
React.createElement("u", null,
|
|
133
|
-
React.createElement("a", { className: "hint-title pf-
|
|
132
|
+
React.createElement("a", { className: "hint-title pf-u-font-size-md", target: "_blank", href: linkToContent, rel: "noreferrer" }, resources.resourceTitle))),
|
|
134
133
|
React.createElement(Tooltip, { content: t('Edit Link to content and Headline'), position: "top" },
|
|
135
134
|
React.createElement(Button, { variant: "link", icon: React.createElement(PencilAltIcon, null), onClick: () => setIsEditClicked((pre) => !pre) })))),
|
|
136
135
|
React.createElement(FormGroup, { label: t('Category'), isRequired: true, fieldId: "simple-form-email-01" },
|
|
137
136
|
React.createElement(Select, Object.assign({ variant: SelectVariant.single, id: "category-selection", name: "category-selection", "data-testid": "category-selection", placeholderText: "Select a category", onToggle: onToggle, isOpen: isSelectOpen, onSelect: onSelect, selections: selected === null || selected === void 0 ? void 0 : selected.categoryName, isDisabled: categories.isError, loadingVariant: 'spinner' }, (categories.isFetching && { loadingVariant: 'spinner' })), categories.data.map((category, id) => (React.createElement(SelectOption, { key: id, value: category },
|
|
138
137
|
React.createElement("div", null, category.categoryName)))))),
|
|
139
|
-
React.createElement("div", { className: "pf-
|
|
138
|
+
React.createElement("div", { className: "pf-u-mt-sm" },
|
|
140
139
|
isCategoryLimitReached && !isCategoryInList && !isUndefined(selected) && React.createElement(CategoryLimit, null),
|
|
141
140
|
React.createElement(Button, { variant: "primary", onClick: onSaveContent, isDisabled: isSaving || isDisabled, isLoading: isSaving, "data-tracking-id": "suggested-content-save-button" },
|
|
142
141
|
React.createElement(Trans, null, "Save")),
|
|
@@ -4,7 +4,7 @@ export function TopContentHeader() {
|
|
|
4
4
|
return (React.createElement("header", null,
|
|
5
5
|
React.createElement("h2", null,
|
|
6
6
|
React.createElement(Trans, null, "Top content")),
|
|
7
|
-
React.createElement("p", { className: "pf-
|
|
7
|
+
React.createElement("p", { className: "pf-u-mt-md pf-u-mb-sm" },
|
|
8
8
|
React.createElement(Trans, null, "Add, edit, or remove top content solutions and categories. You can also create a new set of top content recommendations for specific versions.")),
|
|
9
9
|
React.createElement("p", null,
|
|
10
10
|
React.createElement(Trans, { i18nKey: "i18IRDashboard" },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { products as productsApi } from '@cee-eng/hydrajs';
|
|
2
|
-
import { Select, SelectOption, SelectVariant } from '@patternfly/react-core
|
|
2
|
+
import { Select, SelectOption, SelectVariant } from '@patternfly/react-core';
|
|
3
3
|
import CheckIcon from '@patternfly/react-icons/dist/js/icons/check-icon';
|
|
4
4
|
import { useFetch } from '@rh-support/components';
|
|
5
5
|
import { getUniqueSortedVersions, getVersion } from '@rh-support/utils';
|
|
@@ -81,9 +81,9 @@ function TopContentProductVersionSelector(props) {
|
|
|
81
81
|
setSelected(undefined);
|
|
82
82
|
};
|
|
83
83
|
const getProductOptions = (options) => {
|
|
84
|
-
return options.map((product, id) => (React.createElement(SelectOption, { key: id, value: product, className: "pf-
|
|
85
|
-
React.createElement("div", { className: "pf-
|
|
86
|
-
selected && product.name === selected.name && (React.createElement("span", { className: "pf-
|
|
84
|
+
return options.map((product, id) => (React.createElement(SelectOption, { key: id, value: product, className: "pf-c-select__menu-wrapper" },
|
|
85
|
+
React.createElement("div", { className: "pf-c-select__menu-item-main" }, product.name),
|
|
86
|
+
selected && product.name === selected.name && (React.createElement("span", { className: "pf-c-select__menu-item-icon" },
|
|
87
87
|
React.createElement(CheckIcon, { "aria-hidden": true }))))));
|
|
88
88
|
};
|
|
89
89
|
const onProductFilter = (_, value) => {
|
|
@@ -114,11 +114,11 @@ function TopContentProductVersionSelector(props) {
|
|
|
114
114
|
React.createElement("div", { className: "toolbar-left" },
|
|
115
115
|
React.createElement("label", { htmlFor: 'tc-product-selector-dropdown-toggle' },
|
|
116
116
|
React.createElement(Trans, null, "Product")),
|
|
117
|
-
React.createElement(Select, Object.assign({ variant: SelectVariant.typeahead, onToggle:
|
|
117
|
+
React.createElement(Select, Object.assign({ variant: SelectVariant.typeahead, onToggle: onProductToggle, selections: selected, isOpen: isProductOpen, onSelect: onProductSelect, onClear: onProductClear, placeholderText: t('Select a product') }, (isLoadingProducts && { loadingVariant: 'spinner' }), { onFilter: onProductFilter, isDisabled: isLoadingProducts, id: productLabelId, "data-tracking-id": productLabelId, "aria-label": t(productLabelId) }), getProductOptions(productOptions))),
|
|
118
118
|
React.createElement("div", { className: "toolbar-right" },
|
|
119
119
|
React.createElement("label", { htmlFor: "version-selector-dropdown-toggle" },
|
|
120
120
|
React.createElement(Trans, null, "Version")),
|
|
121
|
-
React.createElement(Select, Object.assign({ variant: SelectVariant.single, onToggle:
|
|
121
|
+
React.createElement(Select, Object.assign({ variant: SelectVariant.single, onToggle: onVersionToggle, onSelect: onVersionSelect, selections: selectedVersion, isOpen: isVersionOpen, placeholderText: t('Select a version'), isDisabled: isEmpty(versions === null || versions === void 0 ? void 0 : versions.items) }, (isLoadingVersions && { loadingVariant: 'spinner' }), { id: versionLabelId, "data-tracking-id": versionLabelId, "aria-label": t(versionLabelId) }), ((versions === null || versions === void 0 ? void 0 : versions.items) || []).map((version, id) => (React.createElement(SelectOption, { key: id, value: version }, version)))))));
|
|
122
122
|
}
|
|
123
123
|
TopContentProductVersionSelector.defaultProps = defaultProps;
|
|
124
124
|
export { TopContentProductVersionSelector };
|
|
@@ -24,14 +24,14 @@ export const getContentUrls = (contentsArray) => {
|
|
|
24
24
|
return contentsArray.reduce((result, category) => {
|
|
25
25
|
category.content.forEach((content) => {
|
|
26
26
|
if (isEmpty(result[encodeURI(content.contentUrl)])) {
|
|
27
|
-
result[
|
|
27
|
+
result[content.contentUrl] = { [encodeURI(category.categoryName)]: 1 };
|
|
28
28
|
}
|
|
29
29
|
else {
|
|
30
|
-
if (result[
|
|
31
|
-
result[
|
|
30
|
+
if (result[content.contentUrl][encodeURI(category.categoryName)]) {
|
|
31
|
+
result[content.contentUrl][encodeURI(category.categoryName)]++;
|
|
32
32
|
}
|
|
33
33
|
else {
|
|
34
|
-
result[
|
|
34
|
+
result[content.contentUrl][encodeURI(category.categoryName)] = 1;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
});
|
|
@@ -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,EACH,WAAW,EAEX,mBAAmB,EACnB,eAAe,EAGf,iCAAiC,EAEpC,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAOxE,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACrD,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,eAAe,EA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F,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;;;;;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"}
|
|
@@ -372,15 +372,14 @@ export const saveAddToTopContent = (dispatch, topContentEditState, id, categoryI
|
|
|
372
372
|
const toAdd = {
|
|
373
373
|
categoryName: categoryToBeSave.categoryName,
|
|
374
374
|
categoryId,
|
|
375
|
-
topContentMasterDataId: categoryToBeSave
|
|
375
|
+
topContentMasterDataId: categoryToBeSave.topContentMasterDataId,
|
|
376
376
|
contentTitle: content.contentTitle,
|
|
377
377
|
contentUrl: content.contentUrl,
|
|
378
378
|
contentRank: index,
|
|
379
379
|
isActive: 1,
|
|
380
380
|
};
|
|
381
381
|
const res = yield pcm.topContent.postTopContent({ topContents: [toAdd] });
|
|
382
|
-
|
|
383
|
-
newTopContentEditState.forEach((cat) => {
|
|
382
|
+
topContentEditState.forEach((cat) => {
|
|
384
383
|
var _a, _b, _c, _d, _e, _f;
|
|
385
384
|
if (cat.id === id) {
|
|
386
385
|
if (index === -1) {
|
|
@@ -398,7 +397,7 @@ export const saveAddToTopContent = (dispatch, topContentEditState, id, categoryI
|
|
|
398
397
|
dispatch({
|
|
399
398
|
type: TopContentReducerConstants.changeTopContentStateOnSave,
|
|
400
399
|
payload: {
|
|
401
|
-
topContentEditState
|
|
400
|
+
topContentEditState,
|
|
402
401
|
topContentResponse: getApiResourceObject(cloneDeep(topContentEditState)),
|
|
403
402
|
contentUrls: getContentUrls(topContentEditState),
|
|
404
403
|
},
|
package/lib/esm/scss/_main.scss
CHANGED
|
@@ -8,11 +8,15 @@
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.pf-
|
|
11
|
+
.pf-c-accordion .pf-m-expanded ul {
|
|
12
|
+
list-style-type: disc;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.pf-c-accordion .pf-c-accordion-footer {
|
|
12
16
|
padding: 16px 32px;
|
|
13
17
|
}
|
|
14
18
|
|
|
15
|
-
.pf-
|
|
19
|
+
.pf-c-accordion .pf-c-accordion__expanded-content-body {
|
|
16
20
|
.edit-solution {
|
|
17
21
|
margin-bottom: 2rem;
|
|
18
22
|
}
|
|
@@ -25,12 +29,33 @@
|
|
|
25
29
|
flex-direction: row;
|
|
26
30
|
}
|
|
27
31
|
|
|
32
|
+
button {
|
|
33
|
+
margin-left: 1rem;
|
|
34
|
+
}
|
|
35
|
+
|
|
28
36
|
&.add-new-category {
|
|
29
37
|
margin-bottom: 2rem;
|
|
30
38
|
}
|
|
31
39
|
}
|
|
32
40
|
}
|
|
33
41
|
|
|
42
|
+
.pf-c-accordion .pf-c-accordion__expanded-content-body .pf-c-accordion__expanded-content-footer {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: row;
|
|
45
|
+
|
|
46
|
+
.content-actions {
|
|
47
|
+
margin-left: auto;
|
|
48
|
+
|
|
49
|
+
& > * {
|
|
50
|
+
margin-right: 0.5rem;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
& > *:last-child {
|
|
54
|
+
margin-right: 0;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
34
59
|
.manage {
|
|
35
60
|
header {
|
|
36
61
|
margin-bottom: 1.3rem;
|
|
@@ -150,8 +175,8 @@
|
|
|
150
175
|
border-top: none;
|
|
151
176
|
}
|
|
152
177
|
|
|
153
|
-
.pf-
|
|
154
|
-
.pf-
|
|
178
|
+
.pf-c-table__action {
|
|
179
|
+
.pf-c-dropdown__menu button.pf-m-disabled:hover {
|
|
155
180
|
cursor: not-allowed;
|
|
156
181
|
}
|
|
157
182
|
}
|
|
@@ -161,14 +186,14 @@
|
|
|
161
186
|
padding: 0.5rem 1.2rem;
|
|
162
187
|
background-color: #f0f0f0;
|
|
163
188
|
|
|
164
|
-
.pf-
|
|
189
|
+
.pf-c-pagination {
|
|
165
190
|
padding: 0;
|
|
166
191
|
background-color: transparent;
|
|
167
192
|
|
|
168
|
-
.pf-
|
|
193
|
+
.pf-c-pagination__nav {
|
|
169
194
|
align-items: baseline;
|
|
170
195
|
|
|
171
|
-
.pf-
|
|
196
|
+
.pf-c-pagination__nav-page-select {
|
|
172
197
|
display: flex;
|
|
173
198
|
align-items: baseline;
|
|
174
199
|
}
|
|
@@ -196,27 +221,27 @@
|
|
|
196
221
|
border-top: none;
|
|
197
222
|
}
|
|
198
223
|
.top-content-needs-attention {
|
|
199
|
-
color: var(--pf-
|
|
224
|
+
color: var(--pf-global--danger-color--100);
|
|
200
225
|
}
|
|
201
226
|
.top-content-tooltip {
|
|
202
|
-
color: var(--pf-
|
|
227
|
+
color: var(--pf-global--danger-color--100);
|
|
203
228
|
padding: 2px;
|
|
204
229
|
}
|
|
205
230
|
}
|
|
206
231
|
|
|
207
232
|
// specific overrides under manage because of a different implementation
|
|
208
|
-
.pf-
|
|
209
|
-
.pf-
|
|
233
|
+
.pf-c-select {
|
|
234
|
+
.pf-c-select__toggle-wrapper > form:first-child {
|
|
210
235
|
width: 100%;
|
|
211
236
|
}
|
|
212
237
|
|
|
213
|
-
.pf-
|
|
214
|
-
.pf-
|
|
238
|
+
.pf-c-select__toggle-wrapper {
|
|
239
|
+
.pf-c-select__toggle-icon {
|
|
215
240
|
margin-left: 4px;
|
|
216
241
|
margin-right: 0;
|
|
217
242
|
}
|
|
218
243
|
|
|
219
|
-
.pf-
|
|
244
|
+
.pf-c-select__toggle-typeahead {
|
|
220
245
|
border-left: none;
|
|
221
246
|
border-right: none;
|
|
222
247
|
}
|
|
@@ -227,7 +252,7 @@
|
|
|
227
252
|
}
|
|
228
253
|
}
|
|
229
254
|
|
|
230
|
-
.pf-
|
|
255
|
+
.pf-c-button {
|
|
231
256
|
font-size: 14px;
|
|
232
257
|
}
|
|
233
258
|
|
|
@@ -250,12 +275,12 @@
|
|
|
250
275
|
width: -webkit-fill-available;
|
|
251
276
|
}
|
|
252
277
|
|
|
253
|
-
.pf-
|
|
278
|
+
.pf-c-table__action li:hover button:not(.pf-m-disabled) {
|
|
254
279
|
color: #06c;
|
|
255
280
|
}
|
|
256
281
|
|
|
257
|
-
.pf-
|
|
258
|
-
.pf-
|
|
282
|
+
.pf-c-table__action li:nth-child(2) button:hover,
|
|
283
|
+
.pf-c-table__action li:nth-child(3) button:hover {
|
|
259
284
|
color: #a30000;
|
|
260
285
|
}
|
|
261
286
|
|
|
@@ -294,10 +319,3 @@ svg.hostnameSpinner {
|
|
|
294
319
|
#requests-detached-toggle-content thead {
|
|
295
320
|
display: none;
|
|
296
321
|
}
|
|
297
|
-
|
|
298
|
-
.top-content-single-item-footer {
|
|
299
|
-
width: 100%;
|
|
300
|
-
display: flex;
|
|
301
|
-
flex-direction: row;
|
|
302
|
-
justify-content: space-between;
|
|
303
|
-
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
// Patternfly overrides
|
|
2
|
+
|
|
3
|
+
div#top-content-performance-metric.pf-c-modal-box {
|
|
4
|
+
.pf-c-modal-box__body {
|
|
5
|
+
.pf-c-title {
|
|
6
|
+
margin-bottom: unset;
|
|
7
|
+
}
|
|
8
|
+
.top-content-tooltip-view-metric-label {
|
|
9
|
+
color: var(--pf-global--primary-color--100);
|
|
10
|
+
}
|
|
11
|
+
.pf-c-panel__main-body {
|
|
12
|
+
padding: var(--pf-global--spacer--md);
|
|
13
|
+
}
|
|
14
|
+
.pf-c-toggle-group__button {
|
|
15
|
+
/* Somehow below style is getting added by Patternfly which is overriding default button padding
|
|
16
|
+
* [class*="pf-c-"], [class*="pf-c-"]::before, [class*="pf-c-"]::after {
|
|
17
|
+
padding: 0;
|
|
18
|
+
margin: 0;
|
|
19
|
+
background-color: transparent;
|
|
20
|
+
*/
|
|
21
|
+
padding: var(--pf-c-toggle-group__button--PaddingTop) var(--pf-c-toggle-group__button--PaddingRight)
|
|
22
|
+
var(--pf-c-toggle-group__button--PaddingBottom) var(--pf-c-toggle-group__button--PaddingLeft);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
div#top-content-category-limit-guidelines.pf-c-modal-box {
|
|
28
|
+
.pf-c-modal-box__body {
|
|
29
|
+
.pf-c-title {
|
|
30
|
+
margin-bottom: unset;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
div#top-content-major-version-performance-metric.pf-c-modal-box {
|
|
36
|
+
.pf-c-modal-box__body {
|
|
37
|
+
overflow-x: unset;
|
|
38
|
+
overflow-y: unset;
|
|
39
|
+
.pf-c-title {
|
|
40
|
+
margin-bottom: unset;
|
|
41
|
+
}
|
|
42
|
+
.pf-c-toggle-group__button {
|
|
43
|
+
/* Somehow below style is getting added by Patternfly which is overriding default button padding
|
|
44
|
+
* [class*="pf-c-"], [class*="pf-c-"]::before, [class*="pf-c-"]::after {
|
|
45
|
+
padding: 0;
|
|
46
|
+
margin: 0;
|
|
47
|
+
background-color: transparent;
|
|
48
|
+
*/
|
|
49
|
+
padding: var(--pf-c-toggle-group__button--PaddingTop) var(--pf-c-toggle-group__button--PaddingRight)
|
|
50
|
+
var(--pf-c-toggle-group__button--PaddingBottom) var(--pf-c-toggle-group__button--PaddingLeft);
|
|
51
|
+
}
|
|
52
|
+
.sticky-header {
|
|
53
|
+
position: sticky;
|
|
54
|
+
top: 0;
|
|
55
|
+
background: var(--pf-c-modal-box--BackgroundColor);
|
|
56
|
+
z-index: 89; // As .pf-c-toggle-group__button is having z-index: var(--pf-c-toggle-group__button--ZIndex)
|
|
57
|
+
padding-bottom: var(--pf-global--spacer--sm);
|
|
58
|
+
}
|
|
59
|
+
.content {
|
|
60
|
+
height: 30vh;
|
|
61
|
+
overflow: auto;
|
|
62
|
+
}
|
|
63
|
+
.panel-body {
|
|
64
|
+
padding: var(--pf-global--spacer--md);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Overrides performance metrics modal font weight
|
|
70
|
+
div.performance-metrics-modal {
|
|
71
|
+
div.pf-c-modal-box__body {
|
|
72
|
+
div.sticky-header {
|
|
73
|
+
div.pf-l-flex.pf-m-justify-content-space-between {
|
|
74
|
+
// For versions dropdown
|
|
75
|
+
div.pf-u-w-50.pf-u-pr-md {
|
|
76
|
+
div.pf-u-font-weight-bold {
|
|
77
|
+
font-weight: 600 !important;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
// For categories dropdown
|
|
81
|
+
div.pf-u-w-50.pf-u-pl-md {
|
|
82
|
+
div.pf-u-font-weight-bold {
|
|
83
|
+
font-weight: 600 !important;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// To override font weight on the accordion text in performance metrics modal - PCM-11644
|
|
90
|
+
div.content {
|
|
91
|
+
div.pf-c-panel.pf-m-bordered {
|
|
92
|
+
div.pf-c-panel__main {
|
|
93
|
+
div.pf-c-panel__main-body {
|
|
94
|
+
dl.pf-c-accordion.pf-m-bordered {
|
|
95
|
+
dt {
|
|
96
|
+
button {
|
|
97
|
+
span.pf-c-accordion__toggle-text {
|
|
98
|
+
span {
|
|
99
|
+
font-weight: 500 !important;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
#top-content-suggestion {
|
|
113
|
+
.pf-c-expandable-section__content {
|
|
114
|
+
border: unset;
|
|
115
|
+
}
|
|
116
|
+
.card-hint {
|
|
117
|
+
background-color: var(--pf-global--BackgroundColor--200);
|
|
118
|
+
}
|
|
119
|
+
.card-body {
|
|
120
|
+
padding: var(--pf-global--spacer--md);
|
|
121
|
+
}
|
|
122
|
+
.hint-title {
|
|
123
|
+
color: var(--pf-global--primary-color--100);
|
|
124
|
+
}
|
|
125
|
+
.accordion_title {
|
|
126
|
+
color: var(--pf-global--Color--100);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.top-content-panel {
|
|
131
|
+
z-index: 9;
|
|
132
|
+
}
|
package/lib/esm/scss/index.scss
CHANGED
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
.pf-
|
|
23
|
-
.pf-
|
|
24
|
-
.pf-
|
|
22
|
+
.pf-c-popover {
|
|
23
|
+
.pf-c-popover__content {
|
|
24
|
+
.pf-c-popover__body {
|
|
25
25
|
.top-content-tooltip-view-metric-label {
|
|
26
|
-
color: var(--pf-
|
|
26
|
+
color: var(--pf-global--primary-color--100);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
@import './
|
|
33
|
+
@import './pf4-overrides';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/manage",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.10-beta.6",
|
|
4
4
|
"description": "Customer Support Manage App",
|
|
5
5
|
"author": "Jordan Eudy <jeudy100@gmail.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"prepublishOnly": "npm run build"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@cee-eng/hydrajs": "4.16.
|
|
50
|
-
"@patternfly/patternfly": "
|
|
49
|
+
"@cee-eng/hydrajs": "4.16.43",
|
|
50
|
+
"@patternfly/patternfly": "4.196.7",
|
|
51
51
|
"@patternfly/pfe-accordion": "1.12.3",
|
|
52
52
|
"@patternfly/pfe-collapse": "1.12.3",
|
|
53
53
|
"@patternfly/pfe-tabs": "1.12.3",
|
|
54
|
-
"@patternfly/react-core": "
|
|
55
|
-
"@patternfly/react-table": "
|
|
54
|
+
"@patternfly/react-core": "4.264.0",
|
|
55
|
+
"@patternfly/react-table": "4.111.33",
|
|
56
56
|
"i18next": ">=17.0.1",
|
|
57
57
|
"lodash": ">=4.17.15",
|
|
58
58
|
"react": "17.0.2",
|
|
@@ -77,19 +77,19 @@
|
|
|
77
77
|
"typescript": "4.3.5"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@cee-eng/hydrajs": "4.16.
|
|
81
|
-
"@patternfly/patternfly": "
|
|
80
|
+
"@cee-eng/hydrajs": "4.16.43",
|
|
81
|
+
"@patternfly/patternfly": "4.196.7",
|
|
82
82
|
"@patternfly/pfe-accordion": "1.12.3",
|
|
83
83
|
"@patternfly/pfe-collapse": "1.12.3",
|
|
84
84
|
"@patternfly/pfe-tabs": "1.12.3",
|
|
85
|
-
"@patternfly/react-core": "
|
|
86
|
-
"@patternfly/react-table": "
|
|
87
|
-
"@rh-support/components": "2.
|
|
88
|
-
"@rh-support/configs": "2.0.
|
|
89
|
-
"@rh-support/react-context": "2.
|
|
85
|
+
"@patternfly/react-core": "4.264.0",
|
|
86
|
+
"@patternfly/react-table": "4.111.33",
|
|
87
|
+
"@rh-support/components": "2.4.10-beta.6",
|
|
88
|
+
"@rh-support/configs": "2.0.10",
|
|
89
|
+
"@rh-support/react-context": "2.4.10-beta.6",
|
|
90
90
|
"@rh-support/types": "2.0.2",
|
|
91
|
-
"@rh-support/user-permissions": "2.
|
|
92
|
-
"@rh-support/utils": "2.
|
|
91
|
+
"@rh-support/user-permissions": "2.4.10-beta.6",
|
|
92
|
+
"@rh-support/utils": "2.4.10-beta.6",
|
|
93
93
|
"@types/react-beautiful-dnd": "^13.0.0",
|
|
94
94
|
"i18next": ">=17.0.1",
|
|
95
95
|
"lodash": ">=4.17.15",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"defaults and supports es6-module",
|
|
104
104
|
"maintained node versions"
|
|
105
105
|
],
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "f4caba45a2ffbc0cb441fdd30630769b447931d1"
|
|
107
107
|
}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
// Patternfly overrides
|
|
2
|
-
|
|
3
|
-
div#top-content-performance-metric.pf-v5-c-modal-box {
|
|
4
|
-
.pf-v5-c-modal-box__body {
|
|
5
|
-
.pf-v5-c-title {
|
|
6
|
-
margin-bottom: unset;
|
|
7
|
-
}
|
|
8
|
-
.top-content-tooltip-view-metric-label {
|
|
9
|
-
color: var(--pf-v5-global--primary-color--100);
|
|
10
|
-
}
|
|
11
|
-
.pf-v5-c-toggle-group__button {
|
|
12
|
-
/* Somehow below style is getting added by Patternfly which is overriding default button padding
|
|
13
|
-
* [class*="pf-v5-c-"], [class*="pf-v5-c-"]::before, [class*="pf-v5-c-"]::after {
|
|
14
|
-
padding: 0;
|
|
15
|
-
margin: 0;
|
|
16
|
-
background-color: transparent;
|
|
17
|
-
*/
|
|
18
|
-
padding: var(--pf-v5-c-toggle-group__button--PaddingTop) var(--pf-v5-c-toggle-group__button--PaddingRight)
|
|
19
|
-
var(--pf-v5-c-toggle-group__button--PaddingBottom) var(--pf-v5-c-toggle-group__button--PaddingLeft);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
div#top-content-category-limit-guidelines.pf-v5-c-modal-box {
|
|
25
|
-
.pf-v5-c-modal-box__body {
|
|
26
|
-
.pf-v5-c-title {
|
|
27
|
-
margin-bottom: unset;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
div#top-content-major-version-performance-metric.pf-v5-c-modal-box {
|
|
33
|
-
.pf-v5-c-modal-box__body {
|
|
34
|
-
overflow-x: unset;
|
|
35
|
-
overflow-y: unset;
|
|
36
|
-
.pf-v5-c-title {
|
|
37
|
-
margin-bottom: unset;
|
|
38
|
-
}
|
|
39
|
-
.pf-v5-c-toggle-group__button {
|
|
40
|
-
/* Somehow below style is getting added by Patternfly which is overriding default button padding
|
|
41
|
-
* [class*="pf-v5-c-"], [class*="pf-v5-c-"]::before, [class*="pf-v5-c-"]::after {
|
|
42
|
-
padding: 0;
|
|
43
|
-
margin: 0;
|
|
44
|
-
background-color: transparent;
|
|
45
|
-
*/
|
|
46
|
-
padding: var(--pf-v5-c-toggle-group__button--PaddingTop) var(--pf-v5-c-toggle-group__button--PaddingRight)
|
|
47
|
-
var(--pf-v5-c-toggle-group__button--PaddingBottom) var(--pf-v5-c-toggle-group__button--PaddingLeft);
|
|
48
|
-
}
|
|
49
|
-
.sticky-header {
|
|
50
|
-
position: sticky;
|
|
51
|
-
top: 0;
|
|
52
|
-
background: var(--pf-v5-c-modal-box--BackgroundColor);
|
|
53
|
-
z-index: 89; // As .pf-v5-c-toggle-group__button is having z-index: var(--pf-v5-c-toggle-group__button--ZIndex)
|
|
54
|
-
padding-bottom: var(--pf-v5-global--spacer--sm);
|
|
55
|
-
}
|
|
56
|
-
.content {
|
|
57
|
-
height: 30vh;
|
|
58
|
-
overflow: auto;
|
|
59
|
-
}
|
|
60
|
-
.panel-body {
|
|
61
|
-
padding: var(--pf-v5-global--spacer--md);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// Overrides performance metrics modal font weight
|
|
67
|
-
div.performance-metrics-modal {
|
|
68
|
-
div.pf-v5-c-modal-box__body {
|
|
69
|
-
div.sticky-header {
|
|
70
|
-
div.pf-v5-l-flex.pf-m-justify-content-space-between {
|
|
71
|
-
// For versions dropdown
|
|
72
|
-
div.pf-v5-u-w-50.pf-v5-u-pr-md {
|
|
73
|
-
div.pf-v5-u-font-weight-bold {
|
|
74
|
-
font-weight: 600 !important;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
// For categories dropdown
|
|
78
|
-
div.pf-v5-u-w-50.pf-v5-u-pl-md {
|
|
79
|
-
div.pf-v5-u-font-weight-bold {
|
|
80
|
-
font-weight: 600 !important;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// To override font weight on the accordion text in performance metrics modal - PCM-11644
|
|
87
|
-
div.content {
|
|
88
|
-
div.pf-v5-c-panel.pf-m-bordered {
|
|
89
|
-
div.pf-v5-c-panel__main {
|
|
90
|
-
div.pf-v5-c-panel__main-body {
|
|
91
|
-
dl.pf-v5-c-accordion.pf-m-bordered {
|
|
92
|
-
dt {
|
|
93
|
-
button {
|
|
94
|
-
span.pf-v5-c-accordion__toggle-text {
|
|
95
|
-
span {
|
|
96
|
-
font-weight: 500 !important;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
#top-content-suggestion {
|
|
110
|
-
.pf-v5-c-expandable-section__content {
|
|
111
|
-
border: unset;
|
|
112
|
-
}
|
|
113
|
-
.card-hint {
|
|
114
|
-
background-color: var(--pf-v5-global--BackgroundColor--200);
|
|
115
|
-
}
|
|
116
|
-
.card-body {
|
|
117
|
-
padding: var(--pf-v5-global--spacer--md);
|
|
118
|
-
}
|
|
119
|
-
.hint-title {
|
|
120
|
-
color: var(--pf-v5-global--primary-color--100);
|
|
121
|
-
}
|
|
122
|
-
.accordion_title {
|
|
123
|
-
color: var(--pf-v5-global--Color--100);
|
|
124
|
-
margin: 0;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.top-content-panel {
|
|
129
|
-
z-index: 9;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.pf-v5-c-accordion__expandable-content {
|
|
133
|
-
margin: 0;
|
|
134
|
-
}
|