@rh-support/cases 0.2.28 → 0.2.29
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/case-list/case-list-filters/TypeFilter.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-filters/TypeFilter.js +6 -2
- package/lib/esm/components/case-list/case-list-table/CaseListTable.js +1 -1
- package/lib/esm/components/case-list/case-list-table/ExportCaseListCSV.js +1 -1
- package/lib/esm/utils/constants.js +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypeFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-filters/TypeFilter.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TypeFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-filters/TypeFilter.tsx"],"names":[],"mappings":"AAWA,UAAU,MAAM;IACZ,YAAY,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,eA6CvC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { MultiSelectDropDownList } from '@rh-support/components';
|
|
2
|
+
import { FeatureAnnouncementKeys, NewFeatureLabel } from '@rh-support/react-context';
|
|
2
3
|
import { getDropdownBtnPlaceholder, toOptions } from '@rh-support/utils';
|
|
3
4
|
import React, { useContext } from 'react';
|
|
4
|
-
import { useTranslation } from 'react-i18next';
|
|
5
|
+
import { Trans, useTranslation } from 'react-i18next';
|
|
5
6
|
import { SolrKeys } from '../../../enums/filters';
|
|
6
7
|
import { filterNamesMap } from '../../../utils/constants';
|
|
7
8
|
import { CaseListFilterDispatchContext, CaseListFilterStateContext } from '../CaseListFilterContext';
|
|
@@ -14,5 +15,8 @@ export function TypeFilter(props) {
|
|
|
14
15
|
filterKey: SolrKeys.type,
|
|
15
16
|
values: selectedTypes.map((selectedType) => selectedType.label),
|
|
16
17
|
});
|
|
17
|
-
return (React.createElement(MultiSelectDropDownList, { placeholder: getDropdownBtnPlaceholder(t('Select a type'), filterInfo[SolrKeys.type], ' ', props.allCaseTypes.length, t('All selected')), "data-tracking-id": "type-filter", id: "case-list-type-filter", title: t(filterNamesMap[SolrKeys.type]), label:
|
|
18
|
+
return (React.createElement(MultiSelectDropDownList, { placeholder: getDropdownBtnPlaceholder(t('Select a case type'), filterInfo[SolrKeys.type], ' ', props.allCaseTypes.length, t('All selected')), "data-tracking-id": "type-filter", id: "case-list-type-filter", title: t(filterNamesMap[SolrKeys.type]), label: React.createElement("h3", { className: "pull-bottom-narrow" },
|
|
19
|
+
t(filterNamesMap[SolrKeys.type]),
|
|
20
|
+
React.createElement(NewFeatureLabel, { "aria-label": "send notification new feature announcement", hasAutoWidth: true, featureName: FeatureAnnouncementKeys.CASE_TYPE_FILTER, headerContent: React.createElement(Trans, null, "New filter available"), position: 'right', bodyContent: React.createElement("div", null,
|
|
21
|
+
React.createElement(Trans, null, "You can now filter by case type.")) })), onChange: onFilterChangeMultipleSelect, selectedItems: toOptions(filterInfo[SolrKeys.type]), list: toOptions(props.allCaseTypes) }));
|
|
18
22
|
}
|
|
@@ -155,7 +155,7 @@ export function CaseListTable(props) {
|
|
|
155
155
|
{
|
|
156
156
|
id: CaseListColumnIds.type,
|
|
157
157
|
cellWidth: 10,
|
|
158
|
-
title: t('
|
|
158
|
+
title: t('Case type'),
|
|
159
159
|
sortable: true,
|
|
160
160
|
accessor: (data) => data.case_type,
|
|
161
161
|
show: isColumnVisible(CaseListColumnIds.type),
|
|
@@ -52,7 +52,7 @@ const csvHeadersSFDC = [
|
|
|
52
52
|
{ label: 'Modified date', key: SFDCKeys.lastPublicUpdateDate, transform: formatDateTime },
|
|
53
53
|
{ label: 'Uri', key: SFDCKeys.uri },
|
|
54
54
|
{ label: 'Alternate case ID', key: SFDCKeys.alternateId },
|
|
55
|
-
{ label: '
|
|
55
|
+
{ label: 'Case type', key: SFDCKeys.caseType },
|
|
56
56
|
];
|
|
57
57
|
const groupHeaderSOLR = { label: 'Group', key: SolrKeys.groupName };
|
|
58
58
|
const groupHeaderSFDC = { label: 'Group', key: SFDCKeys.groupName };
|
|
@@ -17,7 +17,7 @@ export const filterNamesMap = {
|
|
|
17
17
|
[SolrKeys.caseNumber]: 'Case number',
|
|
18
18
|
[SolrKeys.createdBySsoUsername]: 'Created by me',
|
|
19
19
|
[SolrKeys.caseContactSSO]: 'Owned by me',
|
|
20
|
-
[SolrKeys.type]: '
|
|
20
|
+
[SolrKeys.type]: 'Case type',
|
|
21
21
|
usernameFilterTitle: 'Username',
|
|
22
22
|
};
|
|
23
23
|
export const UpdatedCaseDataEvent = 'PCM-Next > case-list-data-background-refresh';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/cases",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.29",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"@patternfly/react-core": "4.128.2",
|
|
54
54
|
"@patternfly/react-table": "4.26.7",
|
|
55
55
|
"@rh-support/api": "0.3.9",
|
|
56
|
-
"@rh-support/components": "1.1.
|
|
57
|
-
"@rh-support/react-context": "0.2.
|
|
56
|
+
"@rh-support/components": "1.1.22",
|
|
57
|
+
"@rh-support/react-context": "0.2.24",
|
|
58
58
|
"@rh-support/types": "0.2.0",
|
|
59
|
-
"@rh-support/user-permissions": "0.2.
|
|
60
|
-
"@rh-support/utils": "0.2.
|
|
59
|
+
"@rh-support/user-permissions": "0.2.17",
|
|
60
|
+
"@rh-support/utils": "0.2.15",
|
|
61
61
|
"i18next": "^19.0.1",
|
|
62
62
|
"localforage": "^1.7.3",
|
|
63
63
|
"lodash": "^4.17.15",
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"not ie <= 11",
|
|
102
102
|
"not op_mini all"
|
|
103
103
|
],
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "95f6b6477203d61a26c97454278664b6023eb2cf"
|
|
105
105
|
}
|