@rh-support/manage 2.5.192 → 2.5.195

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.
Files changed (21) hide show
  1. package/lib/esm/ManageTabs.js +1 -1
  2. package/lib/esm/components/Groups/GroupSelect/GroupSelect.d.ts.map +1 -1
  3. package/lib/esm/components/Groups/GroupSelect/GroupSelect.js +8 -23
  4. package/lib/esm/components/ManageBookmarkedAccountsTab/ManageGroupedBookmarkedAccountsTab.js +1 -1
  5. package/lib/esm/components/ManageExpiredContents/ExpiredContentSingleItemView.d.ts.map +1 -1
  6. package/lib/esm/components/ManageExpiredContents/ExpiredContentSingleItemView.js +1 -7
  7. package/lib/esm/components/ManagePartnerships/PartnershipsList.d.ts.map +1 -1
  8. package/lib/esm/components/ManagePartnerships/PartnershipsList.js +4 -12
  9. package/lib/esm/components/ManagePartnerships/Requests.d.ts.map +1 -1
  10. package/lib/esm/components/ManagePartnerships/Requests.js +4 -9
  11. package/lib/esm/components/ManagePreferences/sections/PreferencesACL.js +1 -1
  12. package/lib/esm/components/ManagePreferences/sections/PreferencesCaseView.js +1 -1
  13. package/lib/esm/components/TopContentManagement/CategoryLimit/CategoryLimit.js +1 -1
  14. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentComponent.d.ts.map +1 -1
  15. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentComponent.js +2 -8
  16. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItem.js +1 -1
  17. package/lib/esm/reducers/TopContentReducer.d.ts.map +1 -1
  18. package/lib/esm/reducers/TopContentReducer.js +2 -5
  19. package/lib/esm/scss/_main.scss +5 -12
  20. package/lib/esm/scss/_pf-overrides.scss +0 -4
  21. package/package.json +8 -8
@@ -130,7 +130,7 @@ export function ManageTabs(props) {
130
130
  return (React.createElement("div", { className: "grid-main manage" },
131
131
  React.createElement(ErrorBoundary, { isPageLevelError: true }, (_b = (_a = tabsToRender[0]) === null || _a === void 0 ? void 0 : _a.component) !== null && _b !== void 0 ? _b : React.createElement(React.Fragment, null))));
132
132
  /**
133
- * Render array with tabs
133
+ * Render array with tabs
134
134
  */
135
135
  return (React.createElement("div", { className: "grid-main manage", role: "region", style: { display: 'flex' } },
136
136
  React.createElement(Tabs, { activeKey: getActiveTabKey(), onSelect: handleTabClick, "aria-label": t('Manage tabs'), component: TabsComponent.nav, isVertical: true, style: { width: 'auto' } }, map(tabsToRender, (tab, index) => (React.createElement(Tab, { eventKey: index, tabContentRef: tab.ref, tabContentId: `pf-tab-${index}-${tab.title.split(' ')[0]}-tabpanel`, title: React.createElement(TabTitleText, null,
@@ -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;AAwC3E,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,GAAI,OAAO,MAAM,sBA+iBxC,CAAC"}
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;AAwC3E,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,GAAI,OAAO,MAAM,sBA0hBxC,CAAC"}
@@ -41,7 +41,7 @@ export const GroupSelect = (props) => {
41
41
  useEffect(() => {
42
42
  var _a, _b;
43
43
  if (haventLoadedMetadata(caseGroups, (data) => data === undefined))
44
- fetchCaseGroupsForSSO(dispatch, loggedInUserJwtToken.preferred_username);
44
+ fetchCaseGroupsForSSO(dispatch, loggedInUserJwtToken.username);
45
45
  if (isEmpty(selectedGroup) && !isEmpty(caseGroups) && ((_a = caseGroups === null || caseGroups === void 0 ? void 0 : caseGroups.data) === null || _a === void 0 ? void 0 : _a.length) > 0) {
46
46
  const defaultCaseGroup = find(caseGroups === null || caseGroups === void 0 ? void 0 : caseGroups.data, (g) => g.isDefault);
47
47
  const newSelectedGroup = (defaultCaseGroup === null || defaultCaseGroup === void 0 ? void 0 : defaultCaseGroup.groupNum) === '-1'
@@ -54,7 +54,7 @@ export const GroupSelect = (props) => {
54
54
  }
55
55
  // eslint-disable-next-line react-hooks/exhaustive-deps
56
56
  }, [dispatch, loggedInUserJwtToken, caseGroups]);
57
- // handle dropdown open/close toggle
57
+ // handle dropdown open/close toggle.
58
58
  const [isOpen, setIsOpen] = useState(false);
59
59
  // handle group selection
60
60
  const [selectedGroup, setSelectedGroup] = useState();
@@ -85,7 +85,6 @@ export const GroupSelect = (props) => {
85
85
  const [isDropdownOpen, setIsDropdownOpen] = useState(false);
86
86
  const toggleIsDropdownOpen = () => setIsDropdownOpen(!isDropdownOpen);
87
87
  const closeDropdown = () => setIsDropdownOpen(false);
88
- const [activeItem, setActiveItem] = useState(null);
89
88
  const onActionFocus = (action) => () => {
90
89
  closeDropdown();
91
90
  setAction(action);
@@ -104,27 +103,16 @@ export const GroupSelect = (props) => {
104
103
  deleteGroupFetch.isFetching ||
105
104
  duplicateGroupFetch.isFetching;
106
105
  const onChange = (e, value) => {
107
- setIsOpen(true);
108
106
  setInput(value);
109
107
  if (value !== input) {
110
108
  setShouldFilter(true);
111
109
  }
112
110
  };
113
111
  useEffect(() => setInput(selectedGroup), [selectedGroup]);
114
- useEffect(() => {
115
- if (input && input != selectedGroup) {
116
- if (!isOpen) {
117
- setIsOpen(true);
118
- }
119
- }
120
- setFocusedItemIndex(-1);
121
- setActiveItem(null);
122
- // eslint-disable-next-line react-hooks/exhaustive-deps
123
- }, [input]);
124
112
  // group actions
125
113
  function setGroupOnFetch(groupName) {
126
114
  return __awaiter(this, void 0, void 0, function* () {
127
- yield fetchCaseGroupsForSSO(dispatch, loggedInUserJwtToken.preferred_username);
115
+ yield fetchCaseGroupsForSSO(dispatch, loggedInUserJwtToken.username);
128
116
  setSelectedGroup(groupName);
129
117
  });
130
118
  }
@@ -158,7 +146,7 @@ export const GroupSelect = (props) => {
158
146
  ToastNotification.addWarningMessage(t('Group already exists'));
159
147
  break;
160
148
  }
161
- yield createGroup(input, loggedInUserJwtToken.preferred_username);
149
+ yield createGroup(input, loggedInUserJwtToken.username);
162
150
  setAction('');
163
151
  break;
164
152
  }
@@ -230,10 +218,7 @@ export const GroupSelect = (props) => {
230
218
  break;
231
219
  }
232
220
  try {
233
- yield duplicateGroupFetch.request({
234
- name: input,
235
- contactSsoName: loggedInUserJwtToken.preferred_username,
236
- });
221
+ yield duplicateGroupFetch.request({ name: input, contactSsoName: loggedInUserJwtToken.username });
237
222
  yield setGroupOnFetch(input);
238
223
  setShowDropdown(true);
239
224
  setShowInput(false);
@@ -347,7 +332,7 @@ export const GroupSelect = (props) => {
347
332
  .filter((g) => !shouldFilter ||
348
333
  isEmpty(input && typeof input === 'string' && input.trim()) ||
349
334
  g.name.toLowerCase().includes(input.toLowerCase()));
350
- const { focusedItemIndex, onInputKeyDown, setFocusedItemIndex } = useSelectKeyboardNavigator({
335
+ const { focusedItemIndex, onInputKeyDown } = useSelectKeyboardNavigator({
351
336
  list: filteredGroups,
352
337
  isOpen,
353
338
  ignoreResetOnListChange: true,
@@ -358,7 +343,7 @@ export const GroupSelect = (props) => {
358
343
  });
359
344
  const toggle = (toggleRef) => (React.createElement(MenuToggle, { ref: toggleRef, variant: "typeahead", onClick: onToggleClick, isExpanded: isOpen, isFullWidth: true, isDisabled: props.isDisabled },
360
345
  React.createElement(TextInputGroup, { isPlain: true },
361
- React.createElement(TextInputGroupMain, Object.assign({ value: input, onClick: onToggleClick, onKeyDown: onInputKeyDown, onChange: onChange, autoComplete: "off", innerRef: textInputRef, placeholder: selectAGroupText, role: "combobox", isExpanded: isOpen, "aria-controls": "group-selector-listbox" }, (activeItem && { 'aria-activedescendant': activeItem }))),
346
+ React.createElement(TextInputGroupMain, { value: input, onClick: onToggleClick, onKeyDown: onInputKeyDown, onChange: onChange, autoComplete: "off", innerRef: textInputRef, placeholder: selectAGroupText, role: "combobox", isExpanded: isOpen, "aria-controls": "group-selector-listbox" }),
362
347
  caseGroups.isFetching ? (React.createElement(TextInputGroupUtilities, null,
363
348
  React.createElement(Spinner, { size: "md" }))) : (React.createElement(TextInputGroupUtilities, Object.assign({}, (!input ? { style: { display: 'none' } } : {})),
364
349
  React.createElement(Button, { icon: React.createElement(TimesIcon, { "aria-hidden": true }), variant: "plain", onClick: onClear, "aria-label": "Clear input value" }))))));
@@ -367,7 +352,7 @@ export const GroupSelect = (props) => {
367
352
  !showErrorMessage && !showInput && (React.createElement(React.Fragment, null,
368
353
  React.createElement("label", null,
369
354
  React.createElement(Trans, null, "Group")),
370
- React.createElement(Select, { id: "group-selector", isOpen: isOpen, onSelect: (e, selection) => handleSelect(selection), onOpenChange: (isOpen) => setIsOpen(isOpen), toggle: toggle, selected: selectedGroup, shouldFocusFirstItemOnOpen: false, "aria-label": "Select a group to view accounts", "aria-labelledby": selectAGroupText, "data-tracking-id": "group-list-selector", isScrollable: true },
355
+ React.createElement(Select, { id: "group-selector", isOpen: isOpen, onSelect: (e, selection) => handleSelect(selection), onOpenChange: (isOpen) => setIsOpen(isOpen), toggle: toggle, selected: selectedGroup, shouldFocusFirstItemOnOpen: false, "aria-label": "Select a group to view accounts", "aria-labelledby": selectAGroupText, "data-tracking-id": "group-list-selector" },
371
356
  React.createElement(SelectList, { id: "group-selector-listbox" }, filteredGroups.length > 0 ? (filteredGroups.map((group, index) => (React.createElement(SelectOption, { id: `group-option-${group.name}`, key: index, value: group, isFocused: focusedItemIndex === index, className: "pf-v6-c-select__menu-wrapper", isSelected: group.name === selectedGroup }, group.name)))) : (React.createElement(SelectOption, { key: "no-results", value: '' }, t('No results found'))))))),
372
357
  !showErrorMessage && showDropdown && (React.createElement(Dropdown, { className: "group-actions-dropdown group-action", toggle: dropdownToggle, isOpen: isDropdownOpen, onOpenChange: (isOpen) => setIsDropdownOpen(isOpen), "aria-label": t('Group actions dropdown'), shouldFocusFirstItemOnOpen: false, shouldFocusToggleOnSelect: true },
373
358
  React.createElement(MenuContent, null,
@@ -253,7 +253,7 @@ export function ManageGroupedBookmarkedAccountsTab({ canManageBookmarkAccounts }
253
253
  ' ',
254
254
  "bookmarks in the customer support tool"))), closeBtnAriaLabel: "Close" },
255
255
  React.createElement(Button, { icon: React.createElement(Icon, { size: "md" },
256
- React.createElement(InfoCircleIcon, { color: "#5e40be" })), variant: "plain", className: "manage-bookmark-info-icon-button", "aria-label": "Cluster Id Info" }))))),
256
+ React.createElement(InfoCircleIcon, null)), variant: "plain", className: "manage-bookmark-info-icon-button", "aria-label": "Cluster Id Info" }))))),
257
257
  React.createElement("div", { className: "toolbar pf-v6-u-justify-content-space-between" },
258
258
  React.createElement("form", { onSubmit: (event) => event.preventDefault(), className: "toolbar-left" },
259
259
  React.createElement("label", { htmlFor: "bookmark-account-selector" },
@@ -1 +1 @@
1
- {"version":3,"file":"ExpiredContentSingleItemView.d.ts","sourceRoot":"","sources":["../../../../src/components/ManageExpiredContents/ExpiredContentSingleItemView.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAgD,MAAM,OAAO,CAAC;AAIrE,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAIjG,UAAU,MAAM;IACZ,OAAO,EAAE,eAAe,CAAC;IACzB,QAAQ,EAAE,wBAAwB,CAAC;IACnC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,EAAE,CAAC,cAAc,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IAC1D,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAAC,EACjD,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,UAAU,GACb,EAAE,MAAM,qBAwOR"}
1
+ {"version":3,"file":"ExpiredContentSingleItemView.d.ts","sourceRoot":"","sources":["../../../../src/components/ManageExpiredContents/ExpiredContentSingleItemView.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAgD,MAAM,OAAO,CAAC;AAIrE,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAIjG,UAAU,MAAM;IACZ,OAAO,EAAE,eAAe,CAAC;IACzB,QAAQ,EAAE,wBAAwB,CAAC;IACnC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,EAAE,CAAC,cAAc,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IAC1D,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAAC,EACjD,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,UAAU,GACb,EAAE,MAAM,qBAgOR"}
@@ -136,13 +136,7 @@ export default function ExpiredContentSingleItemView({ category, content, onCanc
136
136
  React.createElement(TagsSelector, { tagOptions: tagOptions, onChange: handleLocalTagChange, selectedTags: localSelectedTags, placeholder: t('Select tags to improve discoverability'), id: "expired-content-tag" }))),
137
137
  React.createElement(FlexItem, null,
138
138
  React.createElement(FormGroup, { ref: datePickerMenuAppendRef, label: t('Expiry date') },
139
- React.createElement(DatePicker, { onBlur: onExpiryDateChange, onChange: onExpiryDateChange, value: !isEmpty(localExpiryDate) ? localExpiryDate.split('T')[0] : '', validators: [expiryDateValidator], id: "content-expiry-date", invalidFormatText: t('Invalid date format'), popoverProps: {
140
- position: 'left',
141
- hasAutoWidth: true,
142
- maxWidth: '22rem',
143
- minWidth: '22rem',
144
- appendTo: () => document.body,
145
- } })))),
139
+ React.createElement(DatePicker, { onBlur: onExpiryDateChange, onChange: onExpiryDateChange, value: !isEmpty(localExpiryDate) ? localExpiryDate.split('T')[0] : '', validators: [expiryDateValidator], id: "content-expiry-date", invalidFormatText: t('Invalid date format'), popoverProps: { position: 'top' } })))),
146
140
  React.createElement("span", { className: "top-content-single-item-footer" },
147
141
  React.createElement("span", null,
148
142
  React.createElement(Button, { variant: "primary", onClick: onContentSave, isDisabled: isSaveButtonDisabled || isSaving, isLoading: isSaving },
@@ -1 +1 @@
1
- {"version":3,"file":"PartnershipsList.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePartnerships/PartnershipsList.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAW/D,wBAAgB,gBAAgB,sBA+O/B"}
1
+ {"version":3,"file":"PartnershipsList.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePartnerships/PartnershipsList.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAW/D,wBAAgB,gBAAgB,sBAqO/B"}
@@ -11,7 +11,7 @@ import { pcm } from '@cee-eng/hydrajs';
11
11
  import { AlertVariant, Button, ButtonVariant, Label, SearchInput } from '@patternfly/react-core';
12
12
  import TrashIcon from '@patternfly/react-icons/dist/js/icons/trash-icon';
13
13
  import { defaultTableSortMethod, LoadingIndicator, ToastNotification, useConfirmation, } from '@rh-support/components';
14
- import { fetchAccountManagers, fetchManagedAccounts, GlobalMetadataDispatchContext, updateAccountManagers, updateManagedAccounts, useGlobalStateContext, } from '@rh-support/react-context';
14
+ import { fetchAccountManagers, fetchManagedAccounts, GlobalMetadataDispatchContext, useGlobalStateContext, } from '@rh-support/react-context';
15
15
  import React, { useContext, useEffect, useState } from 'react';
16
16
  import { Trans, useTranslation } from 'react-i18next';
17
17
  import { useLocation } from 'react-router-dom';
@@ -46,20 +46,14 @@ export function PartnershipsList() {
46
46
  });
47
47
  try {
48
48
  setIsdeleting(true);
49
+ setIsdeletingAccountNum(data.accountNum);
49
50
  if (data.isCustomerAccount) {
50
- setIsdeletingAccountNum(`${data.accountNum}-customer`);
51
51
  yield pcm.partnerships.deleteCustomerAccountByPartner(data.accountNum);
52
- updateManagedAccounts(dispatchToGlobalMetadataReducer, [
53
- ...managedAccounts.data.filter((i) => i.accountNum !== data.accountNum),
54
- ]);
55
52
  }
56
53
  else {
57
- setIsdeletingAccountNum(`${data.accountNum}-partner`);
58
54
  yield pcm.partnerships.deletePartnerAccountByCustomer(data.accountNum);
59
- updateAccountManagers(dispatchToGlobalMetadataReducer, [
60
- ...accountManagers.data.filter((i) => i.accountNum !== data.accountNum),
61
- ]);
62
55
  }
56
+ setAccountList(accountList.filter((a) => a.accountNum !== data.accountNum));
63
57
  ToastNotification.addSuccessMessage(t('Partnership removed successfully'));
64
58
  setIsdeleting(false);
65
59
  setIsdeletingAccountNum('');
@@ -117,9 +111,7 @@ export function PartnershipsList() {
117
111
  cellWidth: 10,
118
112
  cell: (data) => (React.createElement(Button, { icon: React.createElement(React.Fragment, null,
119
113
  React.createElement(TrashIcon, null),
120
- React.createElement(LoadingIndicator, { isInline: true, show: isDeleting &&
121
- `${data.accountNum}-${data.isCustomerAccount ? 'customer' : 'partner'}` ===
122
- isDeletingAccountNum, size: "xs" })), variant: ButtonVariant.plain, "aria-label": t('Remove partnership'), "data-tracking-id": "remove-partnership", onClick: () => removePartnership(data) })),
114
+ React.createElement(LoadingIndicator, { isInline: true, show: isDeleting && data.accountNum === isDeletingAccountNum, size: "xs" })), variant: ButtonVariant.plain, "aria-label": t('Remove partnership'), "data-tracking-id": "remove-partnership", onClick: () => removePartnership(data) })),
123
115
  },
124
116
  ];
125
117
  const requestCollaborationButton = () => (React.createElement("div", null,
@@ -1 +1 @@
1
- {"version":3,"file":"Requests.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePartnerships/Requests.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAanD,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,WAMvC,CAAC;AAGF,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,EAAE,YAAW,MAAW,WAKhE,CAAC;AAEF,wBAAgB,QAAQ,sBAqRvB"}
1
+ {"version":3,"file":"Requests.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePartnerships/Requests.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAanD,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,WAMvC,CAAC;AAGF,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,EAAE,YAAW,MAAW,WAKhE,CAAC;AAEF,wBAAgB,QAAQ,sBAgRvB"}
@@ -118,12 +118,12 @@ export function Requests() {
118
118
  setIsRequestAgainModalOpen(true);
119
119
  };
120
120
  const actionResolver = (rowData) => {
121
- var _a;
121
+ var _a, _b, _c;
122
122
  if (!rowData)
123
123
  return;
124
- const original = (_a = rowData.originalData) !== null && _a !== void 0 ? _a : rowData;
125
- const friendlyName = (original === null || original === void 0 ? void 0 : original.friendlyName) || '';
126
- const status = (original === null || original === void 0 ? void 0 : original.status) || '';
124
+ const friendlyName = rowData === null || rowData === void 0 ? void 0 : rowData.friendlyName;
125
+ //@ts-ignore
126
+ const status = ((_c = (_b = (_a = rowData.cells) === null || _a === void 0 ? void 0 : _a[1]) === null || _b === void 0 ? void 0 : _b.props) === null || _c === void 0 ? void 0 : _c.status) || '';
127
127
  return [
128
128
  ...(status === 'EXPIRED'
129
129
  ? [
@@ -133,11 +133,6 @@ export function Requests() {
133
133
  itemKey: 'request-again',
134
134
  'data-tracking-id': 'request-again',
135
135
  },
136
- {
137
- isSeparator: true,
138
- itemKey: 'separator',
139
- 'data-tracking-id': 'separator',
140
- },
141
136
  ]
142
137
  : []),
143
138
  {
@@ -48,7 +48,7 @@ export function PreferencesACL() {
48
48
  React.createElement(PreferenceSwitch, { id: "ACL-switch", label: isAclActivated ? t('ACL Enabled') : t('ACL Disabled'), isChecked: isAclActivated, onSwitchChange: onAclSwitch }),
49
49
  React.createElement("div", { className: "prefhostnameTooltip" },
50
50
  React.createElement(Tooltip, { content: t('This determines if the account is utilizing case group access controls'), position: "right" },
51
- React.createElement(InfoCircleIcon, { color: "#5e40be", className: "pf-v6-u-ml-sm cursor-pointer" })),
51
+ React.createElement(InfoCircleIcon, { className: "pf-v6-u-ml-sm cursor-pointer" })),
52
52
  isAclLoading && (React.createElement(Spinner, { size: "lg", className: "pf-v6-u-ml-sm hostnameSpinner", "aria-label": "Hostname loading" })))),
53
53
  React.createElement("div", { className: "pf-v6-u-mt-lg" },
54
54
  React.createElement("label", null,
@@ -216,6 +216,6 @@ export function PreferencesCaseView(props) {
216
216
  React.createElement(PreferenceSwitch, { id: "share-hostnames-switch", label: 'Share hostnames', isChecked: isSharingHostNames, onSwitchChange: onShareHostNamesSwitch }),
217
217
  React.createElement("div", { className: "prefhostnameTooltip" },
218
218
  React.createElement(Tooltip, { content: prefHostnameCopy, position: "right" },
219
- React.createElement(InfoCircleIcon, { className: "pf-v6-u-ml-sm cursor-pointer", color: "#5e40be" })),
219
+ React.createElement(InfoCircleIcon, { className: "pf-v6-u-ml-sm cursor-pointer" })),
220
220
  isHostnamesLoading && (React.createElement(Spinner, { size: "lg", className: "pf-v6-u-ml-sm hostnameSpinner", "aria-label": "Hostname loading" }))))))))));
221
221
  }
@@ -14,7 +14,7 @@ const CategoryLimit = () => {
14
14
  setModalOpen(true);
15
15
  } }, "Review guidelines."))) },
16
16
  React.createElement(Button, { icon: React.createElement(Icon, { size: "md" },
17
- React.createElement(CircleInfo, { color: "#5e40be" })), variant: "plain" })),
17
+ React.createElement(CircleInfo, null)), variant: "plain" })),
18
18
  React.createElement(CategoryLimitGuidelines, { isModalOpen: isModalOpen, onHideModal: onHideModal })));
19
19
  };
20
20
  export default CategoryLimit;
@@ -1 +1 @@
1
- {"version":3,"file":"TopContentComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentComponent.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,EAGH,oBAAoB,EAGvB,MAAM,wCAAwC,CAAC;AAGhD,MAAM,WAAW,yBAAyB;IACtC,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,iBAAiB,CAAC,yBAAyB,CAsHlF,CAAC"}
1
+ {"version":3,"file":"TopContentComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentComponent.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,EAGH,oBAAoB,EAGvB,MAAM,wCAAwC,CAAC;AAGhD,MAAM,WAAW,yBAAyB;IACtC,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,iBAAiB,CAAC,yBAAyB,CA+GlF,CAAC"}
@@ -9,8 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { Button } from '@patternfly/react-core';
11
11
  import { ToastNotification } from '@rh-support/components';
12
- import { isEmpty } from 'lodash';
13
- import React, { useEffect, useState } from 'react';
12
+ import React, { useState } from 'react';
14
13
  import { Draggable, Droppable } from 'react-beautiful-dnd';
15
14
  import { Trans, useTranslation } from 'react-i18next';
16
15
  import { useTopContentContext, useTopContentDispatchContext } from '../../../../context/TopContentProvider';
@@ -21,11 +20,6 @@ export const TopContentComponent = (props) => {
21
20
  const topContentDispatch = useTopContentDispatchContext();
22
21
  const { topContentEditState, topContentResponse, isSearchModeEnabled } = useTopContentContext();
23
22
  const [isArrangingContent, setIsArrangingContent] = useState(false);
24
- const [isDisableAddContent, setIsDisableAddContent] = useState(false);
25
- useEffect(() => {
26
- const value = props.category.content.find((item) => isEmpty(item.contentTitle));
27
- setIsDisableAddContent(!!value);
28
- }, [props.category.content]);
29
23
  // we add an category with empty content to state, the rest is handled like existing categories
30
24
  const addContent = () => addTopContent(topContentDispatch, topContentEditState, props.category.id);
31
25
  const arrangeSection = () => {
@@ -48,7 +42,7 @@ export const TopContentComponent = (props) => {
48
42
  };
49
43
  const buttons = (React.createElement("div", { className: "pf-v6-c-accordion__expanded-content-footer" },
50
44
  !isArrangingContent && props.categoryMode !== CategoryMode.NEW_SECTION && (React.createElement("span", null,
51
- React.createElement(Button, { className: "pf-v6-u-mr-md", variant: "secondary", onClick: addContent, "data-tracking-id": "add-content-top-content", isDisabled: isDisableAddContent },
45
+ React.createElement(Button, { className: "pf-v6-u-mr-md", variant: "secondary", onClick: addContent, "data-tracking-id": "add-content-top-content" },
52
46
  React.createElement(Trans, null, "Add content")),
53
47
  React.createElement(Button, { variant: "secondary", onClick: arrangeSection, isDisabled: props.category.content.length < 2 },
54
48
  React.createElement(Trans, null, "Arrange section")))),
@@ -326,7 +326,7 @@ export const TopContentSingleItem = ({ isArrangingContent, category, snapshot, i
326
326
  (content.tags || []).map((tag) => (React.createElement(Label, { isCompact: true, className: "pf-v6-u-mr-xs pf-v6-u-mt-sm", key: tag.id, color: filteredTags.some((t) => t.id === tag.id) ? 'yellow' : 'grey' }, tag.tagName))),
327
327
  !isEmpty((_c = content.expiryDate) !== null && _c !== void 0 ? _c : '') && !isFutureDate(content.expiryDate) && (React.createElement(Label, { isCompact: true, className: "pf-v6-u-mr-xs pf-v6-u-mt-sm", color: "red" },
328
328
  React.createElement(Trans, null, "Outdated Content")))))),
329
- (!isPreview || content.mode === ContentMode.ADD || content.mode === ContentMode.NEW_SECTION_CONTENT) && (React.createElement(Card, { variant: "secondary", className: "pf-v6-u-mb-md" },
329
+ (!isPreview || content.mode === ContentMode.ADD || content.mode === ContentMode.NEW_SECTION_CONTENT) && (React.createElement(Card, { variant: "secondary" },
330
330
  React.createElement(CardBody, null,
331
331
  React.createElement("form", { noValidate: true, onSubmit: onSubmit, ref: ref },
332
332
  content.mode === ContentMode.NEW_SECTION_CONTENT && (React.createElement(AddNewCategoryDropDown, { onCategoryChange: onAddedNewCategoryChange })),
@@ -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,CAAC,EAAE,CAAC;IAC9B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,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AO,MAAM,eAAe,GAAI,UAAU,6BAA6B,EAAE,MAAM,IAAI,EAAE,SAKpF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,GACnC,UAAU,6BAA6B,EACvC,aAAa,MAAM,EACnB,SAAS,MAAM,kBAsBlB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,GACnC,UAAU,6BAA6B,EACvC,YAAY,qBAAqB,EACjC,cAAc,MAAM,mBAavB,CAAC"}
@@ -198,9 +198,7 @@ export const fetchTopContent = (dispatch, selectedProduct, selectedVersion) => _
198
198
  });
199
199
  const resultFiltered = results.filter((c) => c.content.length > 0);
200
200
  const topContentEditState = resultFiltered.map((cat) => {
201
- const content = cat.content
202
- .filter((contentItem) => { var _a, _b; return ((_a = contentItem.contentTitle) === null || _a === void 0 ? void 0 : _a.trim()) && ((_b = contentItem.contentUrl) === null || _b === void 0 ? void 0 : _b.trim()); })
203
- .map((contentItem) => (Object.assign(Object.assign({}, contentItem), { mode: ContentMode.INITIAL })));
201
+ const content = cat.content.map((contentItem) => (Object.assign(Object.assign({}, contentItem), { mode: ContentMode.INITIAL })));
204
202
  return Object.assign(Object.assign({}, cat), { catMode: CategoryMode.EXISTING_SECTION, content });
205
203
  });
206
204
  const isCatOnlyForMajorVersion = ((_a = topContentEditState[0]) === null || _a === void 0 ? void 0 : _a.minorVersion) ? false : true;
@@ -478,8 +476,7 @@ export const saveChangeInCategoryContent = (dispatch, topContentEditState, categ
478
476
  // saves content re-arrenging
479
477
  export const reArrangeContent = (dispatch, topContentEditState, categoryId) => __awaiter(void 0, void 0, void 0, function* () {
480
478
  const categoryToBeSave = topContentEditState.find((cat) => cat.id === categoryId);
481
- const contentArr = categoryToBeSave.content.filter((item) => !isEmpty(item.contentTitle) && !isEmpty(item.contentUrl));
482
- categoryToBeSave.content = contentArr;
479
+ const contentArr = categoryToBeSave.content;
483
480
  const toUpdate = contentArr.map((item) => ({
484
481
  id: item.topContentId,
485
482
  contentRank: item.contentRank,
@@ -68,7 +68,6 @@
68
68
 
69
69
  & > * {
70
70
  display: flex;
71
- align-items: center;
72
71
  }
73
72
 
74
73
  .toolbar-left {
@@ -179,17 +178,7 @@
179
178
  border-radius: 8px;
180
179
  border-top-right-radius: 0px;
181
180
  border-top-left-radius: 0px;
182
-
183
- .pf-v6-c-table__th {
184
- font-size: 14px;
185
- padding-top: var(--pf-t--global--spacer--md);
186
- padding-bottom: var(--pf-t--global--spacer--md);
187
- }
188
-
189
- .pf-v6-c-table__sort .pf-v6-c-table__button {
190
- font-size: inherit;
191
- padding-block-start: 0;
192
- }
181
+ padding-top: 1rem;
193
182
 
194
183
  tbody:first-of-type {
195
184
  border-top: none;
@@ -512,6 +501,10 @@ div.grid-main.manage {
512
501
  }
513
502
 
514
503
  #manage-top-content {
504
+ .single-select-toggle-text {
505
+ margin-left: 1rem;
506
+ }
507
+
515
508
  .toolbar-right {
516
509
  margin-left: 1.5rem;
517
510
  }
@@ -188,7 +188,3 @@ div.pf-v6-c-pagination__nav-page-select {
188
188
  .pf-v6-c-alert {
189
189
  margin-top: 0;
190
190
  }
191
-
192
- .tags-selector-menu-toggle button {
193
- padding: 0 !important;
194
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/manage",
3
- "version": "2.5.192",
3
+ "version": "2.5.195",
4
4
  "description": "Customer Support Manage App",
5
5
  "author": "Jordan Eudy <jeudy100@gmail.com>",
6
6
  "license": "ISC",
@@ -75,12 +75,12 @@
75
75
  "@patternfly/patternfly": "6.2.1",
76
76
  "@patternfly/react-core": "6.2.1",
77
77
  "@patternfly/react-table": "6.2.1",
78
- "@rh-support/components": "2.5.164",
79
- "@rh-support/configs": "2.0.57",
80
- "@rh-support/react-context": "2.5.254",
81
- "@rh-support/types": "2.0.26",
82
- "@rh-support/user-permissions": "2.5.111",
83
- "@rh-support/utils": "2.5.92",
78
+ "@rh-support/components": "2.5.157",
79
+ "@rh-support/configs": "2.0.50",
80
+ "@rh-support/react-context": "2.5.256",
81
+ "@rh-support/types": "2.0.19",
82
+ "@rh-support/user-permissions": "2.5.104",
83
+ "@rh-support/utils": "2.5.85",
84
84
  "@types/react-beautiful-dnd": "^13.0.0",
85
85
  "i18next": "^23.15.0",
86
86
  "lodash": ">=4.17.15",
@@ -99,5 +99,5 @@
99
99
  "defaults and supports es6-module",
100
100
  "maintained node versions"
101
101
  ],
102
- "gitHead": "034e69ade7e0381f4a5c7089fb7af4e35e3edeae"
102
+ "gitHead": "4b0386b7afa3de7d916cfed18b5661b4aed0a5cc"
103
103
  }