@rh-support/manage 2.1.93 → 2.1.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"TagsManager.d.ts","sourceRoot":"","sources":["../../../../src/components/ManageTags/TagsManager.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAOxE,MAAM,CAAC,OAAO,UAAU,WAAW,sBAuXlC"}
1
+ {"version":3,"file":"TagsManager.d.ts","sourceRoot":"","sources":["../../../../src/components/ManageTags/TagsManager.tsx"],"names":[],"mappings":"AA6BA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAOxE,MAAM,CAAC,OAAO,UAAU,WAAW,sBAsYlC"}
@@ -7,8 +7,10 @@ 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 { ActionList, ActionListItem, Bullseye, Button, ButtonVariant, EmptyState, EmptyStateVariant, Flex, FormGroup, FormHelperText, HelperText, HelperTextItem, Modal, SearchInput, Spinner, TextInput, } from '@patternfly/react-core';
10
+ import { ActionList, ActionListItem, Bullseye, Button, ButtonVariant, EmptyState, EmptyStateVariant, Flex, FormGroup, FormHelperText, HelperText, HelperTextItem, Modal, Spinner, TextInput, TextInputGroup, TextInputGroupMain, TextInputGroupUtilities, } from '@patternfly/react-core';
11
11
  import PencilAltIcon from '@patternfly/react-icons/dist/js/icons/pencil-alt-icon';
12
+ import SearchIcon from '@patternfly/react-icons/dist/js/icons/search-icon';
13
+ import TimesIcon from '@patternfly/react-icons/dist/js/icons/times-icon';
12
14
  import TrashIcon from '@patternfly/react-icons/dist/js/icons/trash-icon';
13
15
  import { ErrorBoundary, ToastNotification } from '@rh-support/components';
14
16
  import { formatDate } from '@rh-support/utils';
@@ -149,6 +151,9 @@ export default function TagsManager() {
149
151
  setSelectedDeleteTag(null);
150
152
  }
151
153
  });
154
+ const onSearchClear = () => {
155
+ setTagSearchTerm('');
156
+ };
152
157
  const columns = [
153
158
  {
154
159
  accessor: (id) => tagsByIds[id].tagName,
@@ -237,9 +242,16 @@ export default function TagsManager() {
237
242
  React.createElement("label", { htmlFor: "tag-search-input" },
238
243
  React.createElement(Trans, null, "Search Tag")),
239
244
  React.createElement("div", { className: "pf-v5-u-flex-grow-1" },
240
- React.createElement(SearchInput, { type: "text", id: "tag-search-input", value: tagSearchTerm, onChange: (e, v) => setTagSearchTerm(v), placeholder: t('Search for a tag') })),
245
+ React.createElement(TextInputGroup, null,
246
+ React.createElement(TextInputGroupMain, { type: "text", id: "tag-search-input", placeholder: t('Search for a tag'), icon: React.createElement(SearchIcon, null), value: tagSearchTerm, onChange: (e, v) => setTagSearchTerm(v) }),
247
+ React.createElement(TextInputGroupUtilities, null,
248
+ React.createElement(Button, { variant: "plain", onClick: onSearchClear, "aria-label": "Clear button and input" },
249
+ React.createElement(TimesIcon, null))))),
241
250
  React.createElement("span", { className: "pf-v5-u-ml-sm" },
242
- React.createElement(Button, { variant: ButtonVariant.primary, isInline: true, onClick: () => setCreateTagModalOpen(true), "data-tracking-id": "tag-create-button" },
251
+ React.createElement(Button, { variant: ButtonVariant.primary, isInline: true, onClick: () => {
252
+ setCreateTagModalOpen(true);
253
+ setNewTagName(tagSearchTerm);
254
+ }, "data-tracking-id": "tag-create-button" },
243
255
  React.createElement(Trans, null, "Create tag"))))),
244
256
  React.createElement("div", { className: "tags-manager-wrapper" },
245
257
  React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading tags list') } }, tagResponse.isFetching ? (React.createElement(Bullseye, null,
@@ -1 +1 @@
1
- {"version":3,"file":"TopContentSingleItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItem.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAM7D,OAAO,EAIH,oBAAoB,EAOvB,MAAM,wCAAwC,CAAC;AAIhD,UAAU,MAAM;IACZ,kBAAkB,EAAE,OAAO,CAAC;IAC5B,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,QAAQ,CAAC,EAAE,sBAAsB,CAAC;IAClC,CAAC,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,sBAAsB,CAAC,GAAG,KAAA,OASzC;AAED,eAAO,MAAM,oBAAoB,kDAAmD,MAAM,sBA+bzF,CAAC"}
1
+ {"version":3,"file":"TopContentSingleItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItem.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAM7D,OAAO,EAIH,oBAAoB,EAOvB,MAAM,wCAAwC,CAAC;AAIhD,UAAU,MAAM;IACZ,kBAAkB,EAAE,OAAO,CAAC;IAC5B,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,QAAQ,CAAC,EAAE,sBAAsB,CAAC;IAClC,CAAC,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,sBAAsB,CAAC,GAAG,KAAA,OASzC;AAED,eAAO,MAAM,oBAAoB,kDAAmD,MAAM,sBA0czF,CAAC"}
@@ -45,7 +45,7 @@ export const TopContentSingleItem = ({ isArrangingContent, category, snapshot, i
45
45
  };
46
46
  const content = category.content && category.content[i];
47
47
  const { t } = useTranslation();
48
- const { topContentEditState, isCatOnlyForMajorVersion, selectedProduct, selectedVersion, contentUrls } = useTopContentContext();
48
+ const { topContentEditState, isCatOnlyForMajorVersion, selectedProduct, selectedVersion, contentUrls, filteredTags, } = useTopContentContext();
49
49
  const tagManagementEditState = useContext(TagManagementStateContext);
50
50
  const { tags: tagOptions } = tagManagementEditState;
51
51
  const topContentDispatch = useTopContentDispatchContext();
@@ -273,7 +273,7 @@ export const TopContentSingleItem = ({ isArrangingContent, category, snapshot, i
273
273
  ' ',
274
274
  React.createElement(Button, { variant: "link", isInline: true, icon: React.createElement(EditAltIcon, null), onClick: editToggle, title: 'Edit' }))) : (content.contentTitle),
275
275
  React.createElement("div", null, lastModifiedBy),
276
- React.createElement("div", null, (content.tags || []).map((tag) => (React.createElement(Label, { isCompact: true, className: "pf-v5-u-mr-xs pf-v5-u-mt-sm", key: tag.id }, tag.tagName)))))),
276
+ React.createElement("div", null, (content.tags || []).map((tag) => (React.createElement(Label, { isCompact: true, className: "pf-v5-u-mr-xs pf-v5-u-mt-sm", key: tag.id, color: filteredTags.some((t) => t.id === tag.id) ? 'gold' : 'grey' }, tag.tagName)))))),
277
277
  (!isPreview || content.mode === ContentMode.ADD || content.mode === ContentMode.NEW_SECTION_CONTENT) && (React.createElement("form", { noValidate: true, onSubmit: onSubmit, className: "card card-light push-bottom" },
278
278
  content.mode === ContentMode.NEW_SECTION_CONTENT && (React.createElement(AddNewCategoryDropDown, { onCategoryChange: onAddedNewCategoryChange })),
279
279
  React.createElement("div", { className: "form-group" },
@@ -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;AA+BhF,wBAAgB,gBAAgB,sBAqW/B"}
1
+ {"version":3,"file":"TopContentEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/TopContentManagement/TopContentEditor/TopContentEditor.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAgChF,wBAAgB,gBAAgB,sBA+W/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, setIsAddingCategory, setIsSearchModeEnabled, setTopContentArrangingCategory, setTopContentArrangingContent, } from '../../../reducers/TopContentReducer';
22
+ import { CategoryMode, 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';
@@ -35,8 +35,7 @@ export function TopContentEditor() {
35
35
  const [newCategoryVersion, setNewCategoryVersion] = useState(undefined);
36
36
  const [searchQuery, setSearchQuery] = useState('');
37
37
  const topContentResultsRef = useRef(null);
38
- const [filteredTags, setFilteredTags] = useState([]);
39
- const { topContentResponse, topContentEditState, isAddingCategory, isCatOnlyForMajorVersion, isSearchModeEnabled, selectedProduct, selectedVersion, categoryUsage, } = useTopContentContext();
38
+ const { topContentResponse, topContentEditState, isAddingCategory, isCatOnlyForMajorVersion, isSearchModeEnabled, selectedProduct, selectedVersion, categoryUsage, filteredTags, } = useTopContentContext();
40
39
  const { tags } = useContext(TagManagementStateContext);
41
40
  const topContentDispatch = useTopContentDispatchContext();
42
41
  const tagManagerDispatch = useContext(TagManagementDispatchContext);
@@ -138,6 +137,9 @@ export function TopContentEditor() {
138
137
  setIsSearchModeEnabled(topContentDispatch, searchTerm ? true : false);
139
138
  setFilteredByQueryTC(searchResults);
140
139
  };
140
+ const onTagFilterChange = (tags) => {
141
+ setFilteredTags(topContentDispatch, tags);
142
+ };
141
143
  const minorSelectedNoMinorContentButAvailableMajorContent = isContentOnlyForMajorVersion && getVersion(selectedVersion).minor && flagContentEditState.length !== 0;
142
144
  const isCategoryLimitReached = filteredTC.length >= CATEGORY_LIMIT.MAX;
143
145
  return (React.createElement(React.Fragment, null,
@@ -145,11 +147,11 @@ export function TopContentEditor() {
145
147
  !topContentResponse.isFetching && topContentResponse.isError && (React.createElement(Alert, { isInline: true, variant: AlertVariant.danger, title: React.createElement(Trans, null, "Error loading Top Content") })),
146
148
  React.createElement(TopContentProductVersionSelector, { selectedProduct: selectedProduct, selectedVersion: selectedVersion, onProductChange: onProductChange, onVersionChange: onVersionChange }),
147
149
  !topContentResponse.isFetching && (React.createElement("div", { className: "toolbar" },
148
- React.createElement(TopContentSearch, { dataTrackingId: "top-content-filter-manage", topContentData: flagContentEditState, onSearch: onSearch, topContentResultsWrapperRef: topContentResultsRef, searchQuery: searchQuery, setSearchQuery: setSearchQuery, className: "toolbar-content" }),
150
+ React.createElement(TopContentSearch, { dataTrackingId: "top-content-filter-manage", topContentData: flagContentEditState, onSearch: onSearch, topContentResultsWrapperRef: topContentResultsRef, searchQuery: searchQuery, setSearchQuery: setSearchQuery, className: "toolbar-content", isDisabled: isEmpty(flagContentEditState) }),
149
151
  React.createElement("div", { className: "toolbar-content pf-v5-u-ml-md" },
150
152
  React.createElement("label", { htmlFor: 'tag-selector' },
151
153
  React.createElement(Trans, null, "All tags")),
152
- React.createElement(TagsSelector, { tagOptions: tags, onChange: setFilteredTags, selectedTags: filteredTags })))),
154
+ React.createElement(TagsSelector, { tagOptions: tags, onChange: onTagFilterChange, selectedTags: filteredTags, disabled: isEmpty(flagContentEditState) })))),
153
155
  React.createElement("div", { className: "top-content-manage-wrapper pf-v5-u-pt-md" },
154
156
  !topContentResponse.isFetching && React.createElement(TopContentSuggestion, { searchQuery: searchQuery }),
155
157
  topContentResponse.isFetching ? (React.createElement(Bullseye, null,
@@ -1 +1 @@
1
- {"version":3,"file":"TopContentProvider.d.ts","sourceRoot":"","sources":["../../../src/context/TopContentProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAqB,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAEnH,eAAO,MAAM,uBAAuB,EAAE,gBAcrC,CAAC;AAGF,eAAO,MAAM,sBAAsB,iCAAiE,CAAC;AACrG,eAAO,MAAM,yBAAyB,8CAA6C,CAAC;AAEpF,wBAAgB,oBAAoB,qBAMnC;AAED,wBAAgB,4BAA4B,kCAM3C;AAED,wBAAgB,yBAAyB,CAAC,EAAE,QAAQ,EAAE;;CAAA,qBAOrD"}
1
+ {"version":3,"file":"TopContentProvider.d.ts","sourceRoot":"","sources":["../../../src/context/TopContentProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAqB,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAEnH,eAAO,MAAM,uBAAuB,EAAE,gBAerC,CAAC;AAGF,eAAO,MAAM,sBAAsB,iCAAiE,CAAC;AACrG,eAAO,MAAM,yBAAyB,8CAA6C,CAAC;AAEpF,wBAAgB,oBAAoB,qBAMnC;AAED,wBAAgB,4BAA4B,kCAM3C;AAED,wBAAgB,yBAAyB,CAAC,EAAE,QAAQ,EAAE;;CAAA,qBAOrD"}
@@ -15,6 +15,7 @@ export const intialTopContentContext = {
15
15
  isSearchModeEnabled: false,
16
16
  categoryUsage: {},
17
17
  suggestion: {},
18
+ filteredTags: [],
18
19
  };
19
20
  const initalDispatchContext = null;
20
21
  export const TopContentStateContext = React.createContext(intialTopContentContext);
@@ -1,4 +1,5 @@
1
1
  import { IProduct as IHydraProduct, IProduct } from '@cee-eng/hydrajs/@types/models/product';
2
+ import { ITag } from '@cee-eng/hydrajs/@types/models/tagModels';
2
3
  import { ITopContent, ITopContentCategory, ITopContentList, ITopContentResourceUsagesResponse } from '@cee-eng/hydrajs/@types/models/topContent/topContentModel';
3
4
  import { IAction, IApiResponseDetails } from '@rh-support/types/shared';
4
5
  export interface ITopContentItemState extends ITopContent {
@@ -53,6 +54,7 @@ export interface ITopContentState {
53
54
  isSearchModeEnabled: boolean;
54
55
  categoryUsage: ITopContentResourceUsagesResponse;
55
56
  suggestion: ITopContentSuggestion;
57
+ filteredTags: ITag[];
56
58
  }
57
59
  export declare enum ContentMode {
58
60
  INITIAL = "initial",
@@ -76,7 +78,8 @@ export declare enum TopContentReducerConstants {
76
78
  setIsSearchModeEnabled = "setIsSearchModeEnabled",
77
79
  resetDuplicatUrls = "resetDuplicatUrls",
78
80
  getTopContentResourceUsage = "getTopContentResourceUsage",
79
- setTopContentSuggestions = "setTopContentSuggestions"
81
+ setTopContentSuggestions = "setTopContentSuggestions",
82
+ updateFilteredTags = "updateFilteredTags"
80
83
  }
81
84
  type IActionType = IAction<TopContentReducerConstants, ITopContentState>;
82
85
  export type TopContentReducerDispatchType = (value: IActionType) => void;
@@ -101,6 +104,7 @@ export declare const reArrangeCategory: (dispatch: TopContentReducerDispatchType
101
104
  export declare const fetchCategories: (dispatch: TopContentReducerDispatchType) => Promise<never>;
102
105
  export declare const setIsSearchModeEnabled: (dispatch: TopContentReducerDispatchType, isSearchModeEnabled: boolean) => void;
103
106
  export declare const resetDuplicatUrls: (dispatch: TopContentReducerDispatchType) => void;
107
+ export declare const setFilteredTags: (dispatch: TopContentReducerDispatchType, tags: ITag[]) => void;
104
108
  /**
105
109
  * This function is used for to get top content suggestions from server
106
110
  * @param dispatch TopContentReducerDispatchType
@@ -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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A+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"}
@@ -39,9 +39,10 @@ export var TopContentReducerConstants;
39
39
  TopContentReducerConstants["resetDuplicatUrls"] = "resetDuplicatUrls";
40
40
  TopContentReducerConstants["getTopContentResourceUsage"] = "getTopContentResourceUsage";
41
41
  TopContentReducerConstants["setTopContentSuggestions"] = "setTopContentSuggestions";
42
+ TopContentReducerConstants["updateFilteredTags"] = "updateFilteredTags";
42
43
  })(TopContentReducerConstants || (TopContentReducerConstants = {}));
43
44
  export const TopContentReducer = (pState, action) => {
44
- var _a, _b;
45
+ var _a, _b, _c;
45
46
  switch (action.type) {
46
47
  case TopContentReducerConstants.resetContentWithSelectedProduct: {
47
48
  return Object.assign(Object.assign({}, intialTopContentContext), { selectedProduct: Object.assign({}, action.payload.selectedProduct) });
@@ -79,6 +80,9 @@ export const TopContentReducer = (pState, action) => {
79
80
  case TopContentReducerConstants.setTopContentSuggestions: {
80
81
  return Object.assign(Object.assign({}, pState), { suggestion: (_b = action.payload) === null || _b === void 0 ? void 0 : _b.suggestion });
81
82
  }
83
+ case TopContentReducerConstants.updateFilteredTags: {
84
+ return Object.assign(Object.assign({}, pState), { filteredTags: (_c = action.payload) === null || _c === void 0 ? void 0 : _c.filteredTags });
85
+ }
82
86
  default: {
83
87
  return pState;
84
88
  }
@@ -553,6 +557,12 @@ export const resetDuplicatUrls = (dispatch) => {
553
557
  payload: { contentUrls: {} },
554
558
  });
555
559
  };
560
+ export const setFilteredTags = (dispatch, tags) => {
561
+ dispatch({
562
+ type: TopContentReducerConstants.updateFilteredTags,
563
+ payload: { filteredTags: tags },
564
+ });
565
+ };
556
566
  /**
557
567
  * This function is used for to get top content suggestions from server
558
568
  * @param dispatch TopContentReducerDispatchType
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/manage",
3
- "version": "2.1.93",
3
+ "version": "2.1.95",
4
4
  "description": "Customer Support Manage App",
5
5
  "author": "Jordan Eudy <jeudy100@gmail.com>",
6
6
  "license": "ISC",
@@ -79,9 +79,9 @@
79
79
  "@patternfly/patternfly": "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.71",
82
+ "@rh-support/components": "2.1.73",
83
83
  "@rh-support/configs": "2.0.20",
84
- "@rh-support/react-context": "2.1.79",
84
+ "@rh-support/react-context": "2.1.81",
85
85
  "@rh-support/types": "2.0.4",
86
86
  "@rh-support/user-permissions": "2.1.48",
87
87
  "@rh-support/utils": "2.1.37",
@@ -102,5 +102,5 @@
102
102
  "defaults and supports es6-module",
103
103
  "maintained node versions"
104
104
  ],
105
- "gitHead": "9de4fff35aa1e2abec92656fa48e1b7b759a9e6c"
105
+ "gitHead": "a63a29d436d67d35700ea450c3eb16f09f6bab34"
106
106
  }